/* ═══════════════════════════════════════════════════════════
   BH INSTALACIONES — Stylesheet
   Colores: #1E3A8A (azul) · #F58220 (naranja) · #FFFFFF (blanco)
   Fonts: Oswald 600/700 · Barlow Condensed · Barlow
═══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────
   CSS CUSTOM PROPERTIES
────────────────────────────────────────── */
:root {
  --azul:          #1E3A8A;
  --azul-oscuro:   #15295F;
  --azul-hover:    #2747A3;
  --naranja:       #F58220;
  --naranja-hover: #DD6E14;
  --blanco:        #FFFFFF;
  --gris-fondo:    #f5f5f5;
  --gris-borde:    #e0e0e0;
  --texto:         #1c1c1e;
  --texto-suave:   #555;
  --texto-muy-suave: #888;

  --font-titulo:    'Oswald', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
  --font-cuerpo:    'Barlow', sans-serif;

  --container: 1200px;
  --radius:    4px;
  --radius-md: 8px;

  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:   cubic-bezier(0.25, 0, 0, 1);
}

/* ──────────────────────────────────────────
   RESET
────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
body {
  font-family: var(--font-cuerpo);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol { list-style: none; }
button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ──────────────────────────────────────────
   LAYOUT UTILITIES
────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 108px 0; }
.section-light  { background: var(--blanco); }
.section-dark   { background: var(--azul); }
.section-muted  { background: var(--gris-fondo); }

.section-header {
  margin-bottom: 72px;
}

/* ──────────────────────────────────────────
   TYPOGRAPHY ATOMS
────────────────────────────────────────── */
.overline {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 14px;
}
.overline-light {
  color: rgba(255, 255, 255, 0.5);
}

.section-title {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.5px;
  color: var(--azul);
}
.section-title-light { color: var(--blanco); }

/* ──────────────────────────────────────────
   SCROLL REVEAL
   GPU-only: opacity + transform
   Honors prefers-reduced-motion
────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.52s var(--ease-expo),
    transform 0.56s var(--ease-expo);
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition:
    transform   150ms var(--ease-out),
    opacity     150ms ease-out,
    background-color 150ms ease-out,
    border-color 150ms ease-out;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  /* Mantener la elevación durante el press (evita el salto) */
  .btn:hover:active { transform: translateY(-2px) scale(0.97); }
}

.btn-primary {
  background: var(--naranja);
  color: var(--blanco);
  border-color: var(--naranja);
  box-shadow: 0 6px 24px rgba(245, 130, 32, 0.32);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--naranja-hover);
    border-color: var(--naranja-hover);
    box-shadow: 0 12px 34px rgba(245, 130, 32, 0.42);
  }
}

.btn-wa {
  background: #25D366;
  color: var(--blanco);
  border-color: #25D366;
}
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: #1ebe5c; border-color: #1ebe5c; }
}

.btn-email {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .btn-email:hover { border-color: var(--blanco); }
}

/* ──────────────────────────────────────────
   TAGS
────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

/* ══════════════════════════════════════════
   BARRA DE PROGRESO DE SCROLL
══════════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: var(--naranja);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition:
    background-color 280ms var(--ease-out),
    padding         280ms var(--ease-out),
    box-shadow      280ms var(--ease-out);
}
.navbar.scrolled {
  background: var(--blanco);
  padding: 13px 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.09);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 280ms var(--ease-out);
}

.navbar.scrolled .nav-logo-img {
  filter: none;
}

/* Footer logo — white version */
.footer-logo-img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Keep legacy selectors inert in case referenced elsewhere */
.nav-logo-footer .logo-letters { color: var(--blanco); }
.nav-logo-footer .logo-text    { color: rgba(255, 255, 255, 0.6); }

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition:
    color 180ms ease-out,
    background-color 180ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--blanco); }
}
.navbar.scrolled .nav-link { color: var(--azul); }
@media (hover: hover) and (pointer: fine) {
  .navbar.scrolled .nav-link:hover { color: var(--naranja); }
}

/* CTA button in nav */
.nav-cta {
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: var(--blanco) !important;
  transition:
    background-color 180ms ease-out,
    border-color     180ms ease-out,
    color            180ms ease-out !important;
}
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    background: var(--naranja);
    border-color: var(--naranja) !important;
    color: var(--blanco) !important;
  }
}
.navbar.scrolled .nav-cta {
  border-color: var(--azul) !important;
  color: var(--azul) !important;
}
@media (hover: hover) and (pointer: fine) {
  .navbar.scrolled .nav-cta:hover {
    background: var(--naranja);
    border-color: var(--naranja) !important;
    color: var(--blanco) !important;
  }
}

/* ── Mobile hamburger ── */
.nav-toggle { display: none; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.12);
  animation: heroSettle 2400ms var(--ease-expo) forwards;
}
@keyframes heroSettle {
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; transform: none; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 15, 50, 0.84) 0%,
    rgba(0, 30, 80, 0.68) 55%,
    rgba(0, 50, 128, 0.38) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 130px;
  padding-bottom: 100px;
  max-width: 860px;
}

.hero-overline {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(52px, 8.5vw, 100px);
  line-height: 0.94;
  letter-spacing: -2.5px;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 28px;
}

.hero-subtitle {
  font-family: var(--font-condensed);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 52px;
  line-height: 1.4;
}

/* Stagger delays for hero entrance */
.hero-overline { transition-delay: 0ms; }
.hero-title     { transition-delay: 90ms; }
.hero-subtitle  { transition-delay: 180ms; }
.hero-content .btn { transition-delay: 270ms; }

/* ── Scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.45);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBob 2.4s ease-in-out infinite;
  transition: color 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .hero-scroll:hover { color: rgba(255, 255, 255, 0.8); }
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
}

/* ══════════════════════════════════════════
   QUIÉNES SOMOS
══════════════════════════════════════════ */
/* ── Cañería que se traza con el scroll ── */
.pipe-flow {
  margin: 8px 0 48px;
}
.pipe-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.pipe-track {
  stroke: rgba(30, 58, 138, 0.12);
  stroke-width: 5;
}
.pipe-draw {
  stroke: var(--azul);
  stroke-width: 5;
}
.pipe-cursor {
  r: 9;
  fill: var(--naranja);
  filter: drop-shadow(0 0 7px rgba(245, 130, 32, 0.85));
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.pipe-flow.is-active .pipe-cursor { opacity: 1; }

/* En pantallas chicas el SVG se achica: engrosamos trazo y cursor */
@media (max-width: 768px) {
  .pipe-track, .pipe-draw { stroke-width: 10; }
  .pipe-cursor { r: 16; }
  .pipe-flow { margin: 4px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .pipe-cursor { display: none; }
}

.nosotros-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 80px;
}

.nosotros-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nosotros-text p {
  font-size: 17px;
  line-height: 1.75;
  color: #404040;
}

/* Stagger nosotros-text paragraphs */
.nosotros-text .reveal:nth-child(1) { transition-delay: 0ms; }
.nosotros-text .reveal:nth-child(2) { transition-delay: 80ms; }
.nosotros-text .reveal:nth-child(3) { transition-delay: 160ms; }

/* ── Valor cards ── */
.nosotros-valores {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.valor-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 16px;
  align-items: start;
}
.valor-icon {
  width: 52px;
  height: 52px;
  background: var(--azul);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  flex-shrink: 0;
  grid-row: 1 / 3;
}
.valor-body h3 {
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--azul);
  margin-bottom: 4px;
  padding-top: 4px;
}
.valor-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--texto-suave);
}

/* Stagger valor cards */
.nosotros-valores .valor-card:nth-child(1) { transition-delay: 0ms; }
.nosotros-valores .valor-card:nth-child(2) { transition-delay: 80ms; }
.nosotros-valores .valor-card:nth-child(3) { transition-delay: 160ms; }

/* ── Bárbara highlight ── */
.barbara-highlight {
  display: grid;
  grid-template-columns: 360px 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--azul);
  margin-bottom: 64px;
}
.barbara-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  flex-shrink: 0;
}
.barbara-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) brightness(0.9) contrast(1.05);
  transition: transform 500ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) {
  .barbara-highlight:hover .barbara-img-wrap img {
    transform: scale(1.04);
  }
}
.barbara-info {
  padding: 52px 52px 52px 56px;
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.barbara-info .overline {
  color: var(--naranja);
  margin-bottom: 0;
}
.barbara-info h3 {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: var(--blanco);
}
.barbara-info p {
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.78);
}
.barbara-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

/* ══════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════ */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.servicio-card {
  position: relative;
  padding: 44px 32px 40px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background-color 240ms ease-out;
}
.servicio-card:last-child { border-right: none; }
/* Línea de acento superior que se dibuja en hover */
.servicio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--naranja);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease-expo);
}

@media (hover: hover) and (pointer: fine) {
  .servicio-card:hover {
    background: rgba(255, 255, 255, 0.07);
  }
  .servicio-card:hover::before { transform: scaleX(1); }
  .servicio-card:hover .servicio-icon {
    background: var(--naranja);
    color: var(--blanco);
    transform: translateY(-2px);
  }
}

.servicio-icon {
  width: 64px;
  height: 64px;
  background: rgba(245, 130, 32, 0.14);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja);
  flex-shrink: 0;
  transition:
    background-color 300ms var(--ease-out),
    color            300ms var(--ease-out),
    transform        420ms var(--ease-expo);
}
.servicio-card h3 {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--blanco);
  line-height: 1.2;
}
.servicio-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  flex-grow: 1;
}

/* Stagger servicio cards */
.servicios-grid .servicio-card:nth-child(1) { transition-delay: 0ms; }
.servicios-grid .servicio-card:nth-child(2) { transition-delay: 70ms; }
.servicios-grid .servicio-card:nth-child(3) { transition-delay: 140ms; }
.servicios-grid .servicio-card:nth-child(4) { transition-delay: 210ms; }
.servicios-grid .servicio-card:nth-child(5) { transition-delay: 280ms; }

/* ══════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════ */
.portfolio-tabs {
  display: flex;
  border-bottom: 1.5px solid var(--gris-borde);
  margin-bottom: 40px;
  gap: 0;
}
.tab-btn {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--texto-muy-suave);
  padding: 12px 22px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  border-radius: 0;
  transition:
    color        180ms ease-out,
    border-color 180ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .tab-btn:hover { color: var(--azul); }
}
.tab-btn.active {
  color: var(--azul);
  border-bottom-color: var(--naranja);
}
.tab-btn:focus-visible {
  outline: 2px solid var(--naranja);
  outline-offset: -2px;
}

/* ── Portfolio panels ── */
.portfolio-panel { display: none; }
.portfolio-panel.active {
  display: block;
  animation: panelIn 0.28s var(--ease-expo) both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-panel.active { animation: none; }
}

/* ── Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--gris-borde);
  cursor: default;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms var(--ease-expo);
  will-change: transform;
}
.portfolio-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 10, 35, 0.76));
  font-family: var(--font-condensed);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity   220ms ease-out,
    transform 240ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) {
  .portfolio-item:hover img { transform: scale(1.05); }
  .portfolio-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════
   FRANJA DE ESPECIALIDADES (marquee scroll-driven)
══════════════════════════════════════════ */
.especialidades {
  background: var(--azul-oscuro);
  padding: clamp(30px, 5vw, 52px) 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vw, 16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mq-row { overflow: hidden; }

.mq-track {
  display: flex;
  width: max-content;
  align-items: center;
  transform: translate3d(calc(-33.333% + var(--mq, 0px)), 0, 0);
  will-change: transform;
}
.mq-row-1 .mq-track { transform: translate3d(calc(-33.333% - var(--mq, 0px)), 0, 0); }
.mq-row-2 .mq-track { transform: translate3d(calc(-33.333% + var(--mq, 0px)), 0, 0); }

.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(24px, 4vw, 46px);
  position: relative;
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: clamp(19px, 3vw, 32px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
}
.mq-item svg { color: var(--naranja); flex-shrink: 0; }
/* Punto separador */
.mq-item::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--naranja);
  transform: translateY(-50%);
  opacity: 0.55;
}
/* Fila 2: capa más tenue para dar profundidad */
.mq-item-alt { color: rgba(255, 255, 255, 0.42); }
.mq-item-alt svg { color: rgba(245, 130, 32, 0.65); }
.mq-item-alt::after { background: rgba(255, 255, 255, 0.3); }

@media (prefers-reduced-motion: reduce) {
  .mq-track { transform: translate3d(-33.333%, 0, 0) !important; }
}

/* ══════════════════════════════════════════
   EQUIPO / STAFF
══════════════════════════════════════════ */
/* ── Socios destacados ── */
.socios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}

.socio-card {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 32px;
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 16px rgba(21, 41, 95, 0.04);
  transition: transform 420ms var(--ease-expo), box-shadow 420ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) {
  .socio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px -20px rgba(21, 41, 95, 0.28);
  }
}

.socio-photo {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--azul);
  flex-shrink: 0;
  box-shadow: 0 10px 24px -10px rgba(21, 41, 95, 0.4);
}
.socio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 600ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) {
  .socio-card:hover .socio-photo img { transform: scale(1.06); }
}

.socio-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 1px;
  color: var(--blanco);
}
.socio-avatar-azul    { background: linear-gradient(145deg, var(--azul), var(--azul-oscuro)); }
.socio-avatar-naranja { background: linear-gradient(145deg, var(--naranja), var(--naranja-hover)); }

.socio-info { flex: 1; padding-top: 2px; }
.socio-info h3 {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 22px;
  color: var(--azul);
  margin-bottom: 4px;
}
.staff-role {
  display: block;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 12px;
}
.socio-info p {
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--texto-suave);
}

/* ── Resto del equipo: roster compacto ── */
.equipo-roster {
  border-top: 1px solid var(--gris-borde);
  padding-top: 44px;
  text-align: center;
}
.equipo-roster .overline {
  display: block;
  margin-bottom: 32px;
  color: var(--texto-suave);
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.roster-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.roster-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--blanco);
  box-shadow: 0 8px 18px -8px rgba(21, 41, 95, 0.3);
  transition: transform 380ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) {
  .roster-item:hover .roster-avatar { transform: translateY(-4px) scale(1.05); }
}
.roster-avatar-azul    { background: linear-gradient(145deg, var(--azul), var(--azul-oscuro)); }
.roster-avatar-naranja { background: linear-gradient(145deg, var(--naranja), var(--naranja-hover)); }

.roster-name {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 16px;
  color: var(--azul);
  line-height: 1.2;
}
.roster-role {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--naranja);
}

/* Stagger */
.socios-grid .socio-card:nth-child(2) { transition-delay: 90ms; }
.roster-grid .roster-item:nth-child(1) { transition-delay: 0ms; }
.roster-grid .roster-item:nth-child(2) { transition-delay: 70ms; }
.roster-grid .roster-item:nth-child(3) { transition-delay: 140ms; }
.roster-grid .roster-item:nth-child(4) { transition-delay: 210ms; }

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.section-contacto {
  text-align: center;
}
.contacto-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}
.contacto-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 52px;
  margin-top: 8px;
}
.contacto-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
/* WhatsApp como CTA principal */
.btn-wa-lg {
  font-size: 17px;
  padding: 18px 40px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.32);
}
@media (hover: hover) and (pointer: fine) {
  .btn-wa-lg:hover { box-shadow: 0 14px 38px rgba(37, 211, 102, 0.42); }
}
/* Acciones secundarias */
.contacto-secondary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.contacto-secondary .btn { font-size: 14px; }

.gmb-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition:
    color               200ms ease-out,
    text-decoration-color 200ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .gmb-link:hover {
    color: var(--blanco);
    text-decoration-color: rgba(255, 255, 255, 0.6);
  }
}

/* Stagger contacto */
.contacto-inner .overline       { transition-delay: 0ms; }
.contacto-inner .section-title  { transition-delay: 80ms; }
.contacto-inner .contacto-subtitle { transition-delay: 160ms; }
.contacto-inner .contacto-actions  { transition-delay: 240ms; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--azul-oscuro);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 28px;
}

/* Footer logo — white version */
.nav-logo-footer .logo-letters { color: var(--blanco); }
.nav-logo-footer .logo-text    { color: rgba(255, 255, 255, 0.6); }

.footer-nav {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 16px;
  transition: color 180ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { color: var(--blanco); }
}

.footer-contact-links {
  display: flex;
  gap: 20px;
}
.footer-contact-links a {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 180ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .footer-contact-links a:hover { color: var(--naranja); }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy,
.footer-location {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--font-condensed);
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════
   POWERED BY GUDLIME
══════════════════════════════════════════ */
.powered-by {
  background: var(--gris-fondo);
  padding: 15px 0;
  text-align: center;
  border-top: 1px solid var(--gris-borde);
}
.powered-by-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .powered-by-link:hover { opacity: 1; }
}
.powered-by span {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  color: var(--texto-muy-suave);
}
.powered-by-logo {
  height: 21px;
  width: auto;
  display: block;
}

/* ══════════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-logo-img {
    height: 24px;
    max-width: calc(100vw - 100px);
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    padding: 4px 2px;
    z-index: 1001;
    position: relative;
  }
  .toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blanco);
    border-radius: 2px;
    transition:
      transform  250ms var(--ease-expo),
      opacity    200ms ease-out;
  }
  .navbar.scrolled .toggle-bar { background: var(--azul); }

  .nav-toggle.open .toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open .toggle-bar:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
  .nav-toggle.open .toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobile menu drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--azul);
    flex-direction: column;
    gap: 0;
    padding: 80px 32px 40px;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(100%);
    transition: transform 300ms var(--ease-expo);
    z-index: 1000;
    box-shadow: -4px 0 32px rgba(0,0,0,0.2);
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-link {
    display: block;
    padding: 18px 0;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8) !important;
    letter-spacing: 1.5px;
  }
  .nav-cta {
    border: none !important;
    color: var(--naranja) !important;
    margin-top: 4px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nosotros-layout { gap: 48px; }
  .barbara-highlight { grid-template-columns: 280px 1fr; }
  .barbara-info { padding: 40px 40px 40px 44px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-contact-links { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .servicio-card { border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }

  /* Hero */
  .hero-content { padding-top: 110px; padding-bottom: 72px; }
  .hero-title { letter-spacing: -1.5px; }
  .hero-subtitle { font-size: 16px; }

  /* Nosotros */
  .nosotros-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .barbara-highlight {
    grid-template-columns: 1fr;
  }
  .barbara-img-wrap:not(.barbara-photo-gallery) { aspect-ratio: 16 / 9; }
  .barbara-info { padding: 32px 28px; }

  /* Servicios */
  .servicios-grid { grid-template-columns: 1fr 1fr; }

  /* Portfolio */
  .portfolio-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
    mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
  }
  .tab-btn { white-space: nowrap; font-size: 12px; padding: 12px 16px; }
  .portfolio-grid { gap: 8px; }

  /* Equipo */
  .socios-grid { grid-template-columns: 1fr; gap: 20px; }
  .roster-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

@media (max-width: 540px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .socio-card { flex-direction: column; gap: 18px; align-items: center; text-align: center; padding: 28px 24px; }
  .socio-info { text-align: center; }
  .contacto-secondary { flex-direction: column; align-items: stretch; width: 100%; }
  .contacto-secondary .btn { justify-content: center; }
  .btn-wa-lg { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════
   STATS ROW (con animación count-up)
══════════════════════════════════════════ */
.section-stats {
  padding: clamp(36px, 5vw, 56px) 0;
  background: var(--gris-fondo);
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.section-stats .stats-row {
  border: none;
  padding: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--gris-borde);
  flex-shrink: 0;
}

.stat-number-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 8px;
}

.stat-number {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  color: var(--azul);
  letter-spacing: -2px;
}

.stat-suffix {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--naranja);
  line-height: 1;
}

.stat-label {
  display: block;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--texto-muy-suave);
}
.stat-label small {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #b0b0b0;
}

/* Stagger stat items */
.stats-row .stat-item:nth-child(1) { transition-delay: 0ms; }
.stats-row .stat-item:nth-child(3) { transition-delay: 80ms; }
.stats-row .stat-item:nth-child(5) { transition-delay: 160ms; }

/* ══════════════════════════════════════════
   BÁRBARA — GALERÍA DE FOTOS DE DOCENCIA
══════════════════════════════════════════ */
.barbara-photo-gallery {
  aspect-ratio: unset;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Técnica padding-top: compatible con todos los navegadores,
   evita el bug de Safari con aspect-ratio + CSS Grid */
.barbara-gallery-item {
  position: relative;
  width: 100%;
  padding-top: 75%; /* proporción 4:3 */
  overflow: hidden;
}

.barbara-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(10%) contrast(1.05);
  transition: transform 500ms var(--ease-expo);
}
@media (hover: hover) and (pointer: fine) {
  .barbara-highlight:hover .barbara-gallery-img {
    transform: scale(1.04);
  }
}

.barbara-utn-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  background: rgba(0, 50, 128, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
}
.barbara-utn-badge img {
  filter: invert(1);
  mix-blend-mode: screen;
  width: 28px;
  height: auto;
}
.barbara-utn-badge span {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blanco);
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   VIDEOS — CONFIANZA Y TRAYECTORIA
══════════════════════════════════════════ */
.section-videos { padding-bottom: 88px; }

/* Encabezado centrado para que combine con la grilla centrada de videos */
.section-videos .section-header { text-align: center; }

.videos-subtitle {
  max-width: 560px;
  margin: 12px auto 0;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto-suave);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.video-card {
  background: var(--blanco);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 220ms ease-out, transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .video-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
  }
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  object-fit: cover;
  background: #000;
}

.video-caption { padding: 20px 24px; }
.video-caption h3 {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 17px;
  color: var(--azul);
  margin-bottom: 6px;
}
.video-caption p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--texto-suave);
}

/* Stagger videos */
.videos-grid .video-card:nth-child(1) { transition-delay: 0ms; }
.videos-grid .video-card:nth-child(2) { transition-delay: 90ms; }

/* ══════════════════════════════════════════
   FAQ / PREGUNTAS FRECUENTES
══════════════════════════════════════════ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--gris-borde);
  border-radius: var(--radius-md);
  background: var(--blanco);
  overflow: hidden;
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.faq-item[open] {
  border-color: var(--naranja);
  box-shadow: 0 8px 28px -14px rgba(21, 41, 95, 0.22);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 17px;
  color: var(--azul);
  transition: color 200ms var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--naranja); }
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--naranja);
  transition: transform 340ms var(--ease-expo);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 26px 24px;
}
.faq-answer p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--texto-suave);
  max-width: 68ch;
}

/* Animación de apertura */
.faq-item[open] .faq-answer {
  animation: faqReveal 380ms var(--ease-expo);
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .faq-chevron { transition: none; }
  .faq-item[open] .faq-answer { animation: none; }
}

/* ── Instagram button in contacto ── */
.btn-instagram {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.45);
}
@media (hover: hover) and (pointer: fine) {
  .btn-instagram:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
  }
}

/* ── Instagram link in footer ── */
.footer-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ══════════════════════════════════════════
   RESPONSIVE — VIDEOS & STATS
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .stats-row { gap: 0; padding: 32px 0; }
  .stat-item { padding: 0 20px; }
  .stat-number { font-size: 40px; }
  .videos-grid { grid-template-columns: 1fr; max-width: 420px; }
  .barbara-utn-badge { left: 12px; bottom: 12px; padding: 8px 14px 8px 8px; }
}

@media (max-width: 540px) {
  .stats-row { flex-direction: column; border-top: none; border-bottom: none; gap: 0; padding: 0; }
  .stat-item { padding: 24px 0; width: 100%; border-bottom: 1px solid var(--gris-borde); }
  .stat-item:first-of-type { border-top: 1px solid var(--gris-borde); }
  .stat-divider { display: none; }
}
