/* ============================================================
   CONSTRUFACH — SOBRE NOSOTROS
   ============================================================ */

/* ── Sección ───────────────────────────────────────────────── */
.sobre-nosotros-container {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

/* Patrón de puntos decorativo en el fondo */
.sobre-nosotros-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── Video ─────────────────────────────────────────────────── */
.sobre-nosotros-img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;

  /* Overlay navy sutil sobre el video */
  filter: brightness(0.75) saturate(0.85);
}

/* Borde rojo derecho que separa video del texto */
.sobre-nosotros-img::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
}

/* Usamos un wrapper pseudo para el borde porque video no admite ::after */
.sobre-nosotros-container > video {
  position: relative;
}

.sobre-nosotros-container > video + * {
  border-left: 4px solid var(--red);
}

/* ── Columna de texto ──────────────────────────────────────── */
.sobre-nosotros-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 5rem 3.5rem;
  position: relative;
  z-index: 1;
}

/* ── Bloque de texto ───────────────────────────────────────── */
.sobre-nosotros-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sobre-nosotros-sub-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sobre-nosotros-sub-title::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.sobre-nosotros-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.sobre-nosotros-title .colored {
  color: var(--red);
}

.sobre-nosotros-info {
  font-family: 'Poppins', 'Barlow', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

.sobre-nosotros-info b {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* ── Tags / valores ────────────────────────────────────────── */
.sobre-nosotros-tags {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sobre-nosotros-tag {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--red);
  transition:
    background 0.3s ease,
    transform 0.3s var(--ease-out-expo);
}

.sobre-nosotros-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.tag-img-container {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tag-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1) opacity(0.8);
  transition: filter 0.25s ease, transform 0.3s var(--ease-out-expo);
}

.sobre-nosotros-tag:hover .tag-img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(2000%) hue-rotate(333deg) brightness(95%);
  transform: scale(1.1);
}

.tag-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

.sobre-nosotros-tag:hover .tag-title {
  color: var(--white);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .sobre-nosotros-container {
    grid-template-columns: 1fr;
  }

  .sobre-nosotros-img {
    min-height: 320px;
    max-height: 420px;
  }

  .sobre-nosotros-container > video + * {
    border-left: none;
    border-top: 4px solid var(--red);
  }

  .sobre-nosotros-text-container {
    padding: 3.5rem 1.75rem;
  }
}

@media (max-width: 480px) {
  .sobre-nosotros-tags {
    grid-template-columns: 1fr;
  }

  .sobre-nosotros-text-container {
    padding: 2.5rem 1.25rem;
  }
}

/* ============================================================
   QUIÉNES SOMOS — historia del fundador con dos fotos
   ============================================================ */
.nsv {
  position: relative;
  background: var(--white);
  padding: 5.5rem 3rem;
  scroll-margin-top: 90px;
}

.nsv-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ── Encabezado ───────────────────────────────────────────── */
.nsv-head {
  max-width: 720px;
  margin-bottom: 3rem;
}

.nsv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}

.nsv-eyebrow::before {
  content: '';
  width: 38px;
  height: 2px;
  background: var(--red);
}

.nsv-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}

/* ── Grid: fotos a la izquierda, texto a la derecha ───────── */
.nsv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
}

.nsv-photos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nsv-photo {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
}

.nsv-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.nsv-photo-founder img {
  aspect-ratio: 4 / 4.4;
  object-position: 78% center; /* Franco está a la derecha del encuadre */
}

.nsv-photo figcaption {
  padding: 0.6rem 0.9rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Texto ────────────────────────────────────────────────── */
.nsv-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nsv-text {
  font-family: 'Poppins', 'Barlow', sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4a5561;
  margin: 0;
  text-wrap: pretty;
}

/* Primera frase, más grande: es la que engancha */
.nsv-text-lead {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

/* Firma */
.nsv-sign {
  margin: 0.6rem 0 0;
  padding-top: 1rem;
  border-top: 2px solid var(--red);
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nsv-sign-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.nsv-sign-role {
  font-family: 'Poppins', 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: #7a8a9a;
}

/* Compromisos */
.nsv-claims {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.nsv-claims li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Poppins', 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
}

.nsv-claims li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Mobile: relato en orden, cada foto acompaña su parte ─── */
@media (max-width: 900px) {
  .nsv {
    padding: 3.5rem 0 3.5rem;
  }

  .nsv-head {
    padding: 0 1.5rem;
    margin-bottom: 1.75rem;
  }

  /* Un solo flujo vertical: foto Franco → texto → foto equipo → compromisos */
  .nsv-grid {
    display: flex;
    flex-direction: column;
    gap: 0; /* el gap de 4rem es solo para las columnas de escritorio */
  }

  .nsv-photos,
  .nsv-content {
    display: contents;
  }

  .nsv-photo {
    border-radius: 0;
  }

  .nsv-photo-founder img {
    aspect-ratio: 4 / 3;
    object-position: 82% 20%;
  }

  .nsv-photo figcaption {
    padding: 0.55rem 1.5rem;
    background: var(--navy);
  }

  .nsv-text,
  .nsv-sign,
  .nsv-claims {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .nsv-text {
    font-size: 1.08rem;
    margin-top: 1.1rem;
  }

  .nsv-text-lead {
    font-size: 1.55rem;
    margin-top: 1.6rem;
  }

  .nsv-sign {
    margin-top: 1.4rem;
  }

  .nsv-claims {
    order: 11;
    margin-top: 1.5rem;
  }
}
