/**
 * home-legacy.css — Ajustes del home del cliente
 * ----------------------------------------------------------------------
 * Aditivo sobre styles.css + brand.css. Se enlaza SOLO en index.html (el home;
 * antes legacy.html).
 *   · Hero a pantalla completa (imagen FS) en vez de la columna con imagen
 *   · Selector de sucursal dentro de cada tarjeta de servicio
 * El resto del layout (bento, ubicaciones, contacto) se reordena en el HTML.
 */

/* ══ HERO — pantalla completa ══════════════════════════════════════════ */
.hero--fs {
  padding: 0;
  background: #0d1117;
  overflow: hidden;
}

/* Escenario visual: imagen + velo + texto + controles */
.hero-stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

/* Carrusel de fondo a sangre completa (reusa el JS existente) */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero--fs .hero-carousel { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero--fs .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero--fs .hero-slide.active { position: absolute; opacity: 1; }
.hero--fs .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}

/* Velo para legibilidad del texto */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13,17,23,0.72) 0%, rgba(13,17,23,0.28) 52%, rgba(13,17,23,0.05) 100%),
    linear-gradient(180deg, rgba(13,17,23,0.35) 0%, rgba(13,17,23,0) 30%, rgba(13,17,23,0.55) 100%);
}

/* Contenido sobre la imagen */
.hero-fs-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px clamp(20px, 4vw, 48px) 120px;
}
.hero--fs .hero-text { max-width: 640px; }

.hero--fs .hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero--fs h1 {
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}
.hero--fs .hero-subtitle {
  color: rgba(255,255,255,0.86);
  max-width: 520px;
}
.hero--fs .btn-secondary {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.hero--fs .btn-secondary:hover { background: #fff; color: var(--text); border-color: #fff; }

/* Controles del carrusel, anclados al escenario */
.hero-stage .hero-arrow {
  opacity: 1;
  z-index: 3;
  width: 46px;
  height: 46px;
}
.hero-stage .hero-arrow-prev { left: clamp(16px, 3vw, 40px); }
.hero-stage .hero-arrow-next { right: clamp(16px, 3vw, 40px); }
.hero-stage .hero-campus-label {
  z-index: 3;
  top: 108px;
  bottom: auto;
  left: auto;
  right: clamp(20px, 4vw, 48px);
}
.hero-stage .hero-dots {
  z-index: 3;
  bottom: 28px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* Barra de stats: pegada bajo el escenario, sin margen */
.hero--fs .hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

@media (max-width: 720px) {
  .hero-stage { min-height: 88vh; }
  .hero-stage .hero-arrow { display: none; }
  .hero-stage .hero-campus-label { top: 90px; }
}

/* ══ Nav sobre el hero oscuro ══════════════════════════════════════════
   Arriba (sin scroll) el nav es transparente sobre la imagen oscura, así que
   el texto y el logo pasan a blanco. Al hacer scroll recupera su fondo claro
   y vuelve el color original. */
.nav:not(.scrolled) .nav-links a { color: #fff; }
.nav:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }
.nav:not(.scrolled) .hamburger span { background: #fff; }
.nav:not(.scrolled) .nav-mobile-reserve { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ══ Selector de sucursal en las tarjetas de servicio ══════════════════ */
.espacio-sucursal-select {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
}
.espacio-sucursal-select > span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-right: 2px;
}
.espacio-sucursal-select a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  padding: 6px 13px;
  border: 1.5px solid rgba(0, 128, 66, 0.22);
  border-radius: var(--radius-btn, 8px);
  background: var(--green-soft);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.espacio-sucursal-select a:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* La tarjeta ya no es un enlace: mantiene el hover pero sin cursor de liga */
.espacios .espacio-card { cursor: default; }

/* ══ TESTIMONIOS ══════════════════════════════════════════════════════ */
.testimonios {
  padding: clamp(64px, 8vw, 120px) 0;
}
.testimonios-header {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonio-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--gray-light, #e5e5e5);
  border-radius: var(--radius-card, 16px);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonio-stars {
  display: flex;
  gap: 2px;
}
.testimonio-stars svg {
  width: 18px;
  height: 18px;
  fill: #f59e0b;
  stroke: none;
}
.testimonio-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.testimonio-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.testimonio-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green, #008042);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.testimonio-author strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.testimonio-author span {
  font-size: 0.78rem;
  color: var(--text-secondary, #666);
}
.testimonios-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 40px);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary, #666);
}
.testimonios-badge svg {
  color: #f59e0b;
}
