/* ============================================================
   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: '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);
}

/* ── Animaciones fade-left / fade-right ────────────────────── */
.animate-on-scroll.fade-left {
  transform: translateX(-32px);
  transition:
    opacity 0.65s var(--ease-out-expo),
    transform 0.65s var(--ease-out-expo);
}

.animate-on-scroll.fade-left.visible {
  opacity: 1;
  transform: none;
}

/* Stagger en el texto */
.sobre-nosotros-text .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.sobre-nosotros-text .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.sobre-nosotros-text .animate-on-scroll:nth-child(3) { transition-delay: 0.25s; }

.sobre-nosotros-text-container > .animate-on-scroll { transition-delay: 0.35s; }

/* ============================================================
   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;
  }
}