/* Forza X — tema claro, acentos plateados / metálicos */
:root {
  --bg-deep: #f8f9fb;
  --bg-elevated: #eef1f5;
  --bg-card: #ffffff;
  --border-subtle: rgba(55, 65, 80, 0.12);
  --text: #1a1f26;
  --text-muted: #5c6570;
  --accent: #7a8490;
  --accent-strong: #5a6470;
  --accent-soft: rgba(90, 100, 112, 0.12);
  --accent-hover: #8e98a3;
  --metallic: linear-gradient(145deg, #e8eaee 0%, #c5cad2 45%, #dfe3e8 100%);
  --metallic-border: rgba(100, 110, 125, 0.35);
  --blue-dark: #2d4760;
  --blue-dark-soft: rgba(45, 71, 96, 0.12);
  --whatsapp: #25d366;
  --star-gold: #d4a017;
  --star-gold-mid: #f4d03f;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-hero: "Anton", "DM Sans", system-ui, sans-serif;
  --shadow: 0 20px 60px rgba(30, 40, 55, 0.08);
  --radius: 999px;
  --radius-card: 16px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-center {
  text-align: center;
}

.section-title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

.section-subtitle--wide {
  max-width: 820px;
}

.section-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1010;
  background: rgba(248, 249, 251, 0.98);
  border-bottom: 1px solid var(--border-subtle);
}

.header.menu-open {
  z-index: 10060;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.main-nav--desktop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.main-nav--desktop .nav-menu {
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  line-height: 1;
}

.logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.logo-text small {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  line-height: 1.1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0.2rem;
  transition:
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-dark), var(--accent-strong));
  transform: translateX(-50%);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text);
}

.nav-cta {
  border: 1px solid var(--metallic-border);
  color: var(--accent-strong) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius);
  background: var(--accent-soft);
  transition:
    background 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(90, 100, 112, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 50, 65, 0.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 1px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  padding-top: calc(71px + 3rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("img/hero-fallback.webp") center / cover no-repeat;
}

.hero-video {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (min-width: 769px) {
  .hero-bg {
    display: none;
  }

  .hero-video {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none !important;
  }

  .hero-bg {
    display: block !important;
  }

  .nav-link,
  .nav-cta {
    transition: none;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-cta:hover,
  .nav-cta:focus-visible {
    transform: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Abajo blanco (fondo de página), hacia arriba transparente para ver video/imagen */
  background: linear-gradient(
    to top,
    var(--bg-deep) 0%,
    rgba(248, 249, 251, 0.88) 38%,
    rgba(255, 255, 255, 0.35) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
}

.hero-kicker {
  margin-bottom: 1.5rem;
}

.hero-kicker span {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(45, 71, 96, 0.15);
  border-radius: var(--radius);
  padding: 0.55rem 1.35rem;
  box-shadow: 0 2px 12px rgba(45, 71, 96, 0.08);
}

.hero-text-glow {
  position: relative;
}

.hero-text-glow::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -30px;
  right: -30px;
  bottom: -10px;
  background: radial-gradient(
    ellipse 85% 80% at 30% 40%,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.55) 40%,
    transparent 72%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
  border-radius: 24px;
}

.hero-title {
  font-family: var(--font-hero);
  font-size: clamp(2.85rem, 6.1vw, 5.05rem);
  font-weight: 400;
  line-height: 0.98;
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--blue-dark);
  max-width: 24ch;
  text-wrap: balance;
}

.hero-title__line {
  display: block;
}

.hero-title__line--strong {
  letter-spacing: 0.02em;
}

.hero-title__line--soft {
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  letter-spacing: 0.12em;
  line-height: 1.25;
  color: rgba(45, 71, 96, 0.82);
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #2f3844;
  max-width: 720px;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

@media (min-width: 1100px) {
  .hero {
    padding-top: calc(71px + 4.5rem);
  }

  .hero-text-glow::before {
    top: -36px;
    left: -60px;
    right: -60px;
    bottom: -24px;
    filter: blur(10px);
  }

  .hero-kicker span {
    font-size: 0.78rem;
    padding: 0.6rem 1.6rem;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease, box-shadow var(--transition);
}

.btn-primary {
  background: var(--metallic);
  color: var(--text);
  border: 1px solid var(--metallic-border);
  box-shadow: 0 4px 16px rgba(80, 90, 105, 0.12);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #eef0f4 0%, #d0d5dd 50%, #e4e8ed 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80, 90, 105, 0.15);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border: 1px solid var(--metallic-border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--metallic-border);
  background: rgba(255, 255, 255, 0.5);
}

.btn-whatsapp-hero {
  background: var(--whatsapp);
  color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp-hero:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

.btn-call-hero {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid var(--metallic-border);
  box-shadow: 0 4px 16px rgba(40, 50, 65, 0.08);
}

.btn-call-hero:hover {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(40, 50, 65, 0.1);
}

/* Fondo con ondas animadas (premium wave lines) */
.section-waves {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    168deg,
    rgba(250, 251, 253, 1) 0%,
    rgba(234, 238, 244, 1) 42%,
    rgba(242, 245, 249, 1) 100%
  );
}

.wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  opacity: 1;
}

.section-waves > .container {
  position: relative;
  z-index: 1;
}

.section-waves .about-info {
  position: relative;
  background: rgba(244, 246, 250, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem;
}

.wave-text-shield {
  position: relative;
  background: rgba(244, 246, 250, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem 1.25rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.wave-text-shield .section-title {
  margin-bottom: 0.5rem;
}

.wave-text-shield .section-subtitle {
  margin-bottom: 0;
}

/* About */
.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-text {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.fact-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.fact-item:hover {
  border-color: rgba(100, 110, 125, 0.28);
  box-shadow: var(--shadow);
}

.fact-item i {
  color: var(--blue-dark);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.fact-item span {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.fact-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--blue-dark);
  padding-left: 1.25rem;
  margin: 0 0 2rem;
  line-height: 1.45;
}

/* Servicios grid */
.servicios {
  padding: 5rem 0 6rem;
  background: var(--bg-elevated);
}

.servicios-scroll-strip {
  display: contents;
}

.wooa-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 150px;
  gap: 1.25rem;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
  filter: brightness(0.97) contrast(1.02);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(255, 255, 255, 0.15) 45%, rgba(26, 31, 38, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.tile-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  z-index: 2;
  pointer-events: none;
}

.tile-caption span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.tile-more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease, gap 0.3s ease;
}

.tile-more i {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.tile:hover .tile-more {
  color: #fff;
  gap: 0.65rem;
}

.tile:hover .tile-more i {
  transform: translateX(3px);
}

.tile:hover img {
  transform: scale(1.05);
}

.tile:hover {
  box-shadow: 0 20px 50px rgba(40, 50, 65, 0.12);
}

.tile-a { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.tile-b { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.tile-c { grid-column: 1 / span 5; grid-row: 3 / span 2; }
.tile-d { grid-column: 6 / span 7; grid-row: 3 / span 1; }
.tile-e { grid-column: 6 / span 7; grid-row: 4 / span 1; }

/* HIIT: fila baja y muy ancha; object-position sube el encuadre (no usar translateY: deja franja del fondo de la tarjeta) */
@media (min-width: 993px) {
  .tile-e {
    display: flex;
    flex-direction: column;
  }

  .tile-e img {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
  }
}

.tile-oferta {
  grid-column: 1 / span 12;
  grid-row: 5 / span 2;
  cursor: default;
  background: linear-gradient(155deg, #2a3240 0%, #1c222c 55%, #303a48 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  min-height: 200px;
}

.tile-oferta::before {
  display: none;
}

.tile-oferta-content {
  max-width: 560px;
}

.tile-oferta-content h3 {
  font-family: var(--font-hero);
  font-size: 1.85rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: #fff;
}

.tile-oferta-content p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.btn-cta-grid {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(155deg, #3d4756 0%, #252d38 55%, #323b48 100%);
  color: #fff !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  padding: 1.05rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.12),
    0 12px 36px rgba(30, 38, 48, 0.35);
}

.btn-cta-grid:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.1),
    0 18px 44px rgba(30, 38, 48, 0.42);
}

.btn-cta-grid--outline {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--metallic-border);
  box-shadow: 0 4px 14px rgba(40, 50, 65, 0.06);
}

.btn-cta-grid--outline:hover {
  background: rgba(45, 55, 68, 0.08);
  box-shadow: 0 8px 24px rgba(40, 50, 65, 0.12);
}

/* En el hero, el CTA "Ver programas" debe verse como el CTA oscuro */
#inicio .btn-cta-grid--outline {
  background: linear-gradient(155deg, #3d4756 0%, #252d38 55%, #323b48 100%);
  color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.12),
    0 12px 36px rgba(30, 38, 48, 0.35);
}

#inicio .btn-cta-grid--outline:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.1),
    0 18px 44px rgba(30, 38, 48, 0.42);
}

/* Modal */
.program-modal {
  position: fixed;
  inset: 0;
  background: rgba(245, 247, 250, 0.82);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 3rem 1rem;
}

.program-modal.show {
  display: flex;
}

.program-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  max-width: 560px;
  width: 100%;
  padding: 2rem;
  position: relative;
  margin: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: border-color var(--transition);
}

.close-btn:hover {
  border-color: var(--accent-strong);
}

.modal-img {
  width: 100%;
  border-radius: var(--radius-card);
  margin-bottom: 1.25rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.modal-title {
  font-family: var(--font-hero);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.modal-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.fact {
  flex: 1;
  min-width: 28%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  text-align: center;
  border-radius: 12px;
}

.fact i {
  color: var(--accent-strong);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.fact h4 {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.35;
}

.btn-whatsapp-modal {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  background: var(--whatsapp);
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  padding: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter var(--transition);
}

.btn-whatsapp-modal:hover {
  filter: brightness(1.08);
}

/* Results */
.results {
  padding: 6rem 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.result-card {
  margin: 0;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.result-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: brightness(0.98);
}

.result-card figcaption {
  padding: 1.15rem 1.25rem;
}

.result-card figcaption strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.result-card figcaption p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.result-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-dark);
  transition: color 0.3s ease, gap 0.3s ease;
}

.result-cta i {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.result-cta:hover {
  color: var(--text);
  gap: 0.65rem;
}

.result-cta:hover i {
  transform: translateX(3px);
}

/* Testimonials */
.testimonials {
  padding: 6rem 0;
  background: var(--bg-elevated);
}

.testimonials-slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  /* Permite scroll vertical de página y habilita swipe horizontal controlado por JS */
  touch-action: pan-y;
}

.testimonial-track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0.5rem 2.5rem;
  box-sizing: border-box;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  position: relative;
  border-radius: var(--radius-card);
  box-shadow: 0 4px 24px rgba(40, 50, 65, 0.06);
}

.testimonial-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-author-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.rating {
  font-size: 0.85rem;
  margin: 0.2rem 0;
}

.rating .fa-star {
  color: var(--star-gold);
  text-shadow:
    0 0 2px rgba(212, 160, 23, 0.45),
    0 1px 0 rgba(184, 134, 11, 0.35);
  filter: drop-shadow(0 2px 3px rgba(180, 140, 20, 0.35));
}

.location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.quote-icon {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 2.5rem;
  color: var(--accent-soft);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: 50%;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(40, 50, 65, 0.08);
}

.slider-btn:hover {
  border-color: var(--metallic-border);
  color: var(--accent-strong);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}

.dot.active {
  background: var(--accent-strong);
  width: 22px;
  border-radius: 4px;
}

/* CTA / Contact */
.cta-vision {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #eef1f5 100%);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cta-left h2 {
  font-family: var(--font-hero);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}

.cta-left > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item i {
  color: var(--blue-dark);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.info-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.info-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-buttons .btn {
  flex: 1;
  min-width: 140px;
}

.btn.call {
  background: var(--metallic);
  color: var(--text);
  border: 1px solid var(--metallic-border);
  box-shadow: 0 4px 14px rgba(80, 90, 105, 0.1);
}

.btn.call:hover {
  background: linear-gradient(145deg, #eef0f4 0%, #d0d5dd 50%, #e4e8ed 100%);
}

.btn.whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn.whatsapp:hover {
  filter: brightness(1.06);
}

.cta-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.cta-form h3 {
  font-family: var(--font-hero);
  font-size: 1.65rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label,
.cta-form label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 12px;
  transition: border-color var(--transition);
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: rgba(100, 110, 125, 0.45);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.phone-group {
  display: flex;
  gap: 0.5rem;
}

.phone-group select {
  flex: 0 0 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

.checkbox-group input {
  margin-top: 0.25rem;
  accent-color: var(--accent-strong);
}

.btn-large {
  width: 100%;
  margin-top: 0.5rem;
}

.form-status {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent-strong);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--blue-dark);
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: border-color var(--transition), color var(--transition);
}

.footer-social a:hover {
  border-color: var(--metallic-border);
  color: var(--accent-strong);
}

.footer-links h4,
.footer-legal h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links a,
.footer-legal a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent-strong);
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  z-index: 999;
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 420px;
    margin: 0 auto;
  }

  .wooa-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-template-columns: unset;
    grid-auto-rows: unset;
  }

  .servicios-scroll-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    padding: 0.25rem 0 0.75rem;
    margin: 0 -1.25rem;
    padding-inline: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .servicios-scroll-strip::-webkit-scrollbar {
    height: 6px;
  }

  .servicios-scroll-strip::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 3px;
  }

  .servicios-scroll-strip .tile {
    /* En móvil/tablet: tarjetas más grandes y vistosas */
    flex: 0 0 clamp(180px, 56vw, 240px);
    width: clamp(180px, 56vw, 240px);
    max-width: clamp(180px, 56vw, 240px);
    scroll-snap-align: center;
    aspect-ratio: 3 / 4;
    min-height: 240px;
    box-shadow: 0 18px 44px rgba(40, 50, 65, 0.12);
  }

  .servicios-scroll-strip .tile-caption {
    left: 1.1rem;
    bottom: 1rem;
  }

  .servicios-scroll-strip .tile-caption span {
    font-size: clamp(1.15rem, 4.8vw, 1.55rem);
  }

  .servicios-scroll-strip .tile-more {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.82);
  }

  .tile-a,
  .tile-b,
  .tile-c,
  .tile-d,
  .tile-e {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .tile-oferta {
    grid-column: unset !important;
    grid-row: unset !important;
    width: 100%;
    min-height: auto;
    aspect-ratio: auto;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Menú móvil (overlay fuera del header — evita bugs con backdrop-filter) */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  visibility: hidden;
}

.mobile-nav.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 28, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  inset: 0;
  left: auto;
  width: min(100vw, 380px);
  max-width: 100%;
  background: var(--bg-deep);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(5.25rem, calc(env(safe-area-inset-top) + 4.75rem)) 1.25rem max(2rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

@media (max-width: 400px) {
  .mobile-nav__panel {
    width: 100%;
    border-left: none;
  }
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.mobile-nav__list .nav-link {
  display: block;
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.mobile-nav__list .nav-link::after {
  display: none;
}

.mobile-nav__list .nav-link:hover,
.mobile-nav__list .nav-link:focus-visible,
.mobile-nav__list .nav-link.active {
  color: var(--blue-dark);
}

.mobile-nav__list .nav-cta {
  margin-top: 1rem;
  text-align: center;
  border: 1px solid var(--blue-dark) !important;
  color: var(--blue-dark) !important;
  padding: 0.85rem 1.25rem !important;
  border-radius: var(--radius);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 768px) {
  .header .container {
    padding-left: max(1.25rem, calc(env(safe-area-inset-left) + 1rem));
    padding-right: max(1.25rem, calc(env(safe-area-inset-right) + 1rem));
  }

  .main-nav--desktop {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-shrink: 0;
    z-index: 10060;
    position: relative;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .testimonial-slide {
    padding: 0.5rem 0;
  }

  .slider-btn {
    display: none;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
    padding-top: 4rem;
  }

  .hero-overlay {
    background: rgba(248, 249, 251, 0.82);
  }

  .hero-inner {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.05rem, 9.2vw, 3.2rem);
    line-height: 1.02;
    max-width: 18ch;
  }

  .hero-title__line--soft {
    font-size: clamp(0.92rem, 3.6vw, 1.1rem);
    letter-spacing: 0.1em;
    line-height: 1.3;
  }

  .hero-buttons {
    gap: 0.65rem;
  }

  .hero-buttons .btn {
    padding: 0.85rem 1.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .section-waves .about-info {
    padding: 1.25rem 1rem;
  }

  .wave-text-shield {
    padding: 1.25rem 1rem 1rem;
  }

  .section-subtitle--wide {
    max-width: 100%;
  }

  .tile-oferta {
    padding: 2rem 1rem;
  }

  .tile-oferta-content h3 {
    font-size: 1.45rem;
  }

  .btn-cta-grid {
    font-size: 0.72rem;
    padding: 0.9rem 1.5rem;
  }

  .cta-form {
    padding: 1.5rem 1rem;
  }

  .cta-left h2 {
    font-size: 1.65rem;
  }

  .result-card figcaption {
    padding: 0.85rem 1rem;
  }
}
