/* ===== Design tokens ===== */
:root {
  --navy: #0B1F4D;
  --navy-2: #1B2E6E;
  --navy-soft: #7C93E0;
  --bg-light: #FAFBFF;
  --bg-light-2: #EEF1FB;
  --border-light: #EDEFF5;
  --text-dark: #0B1F4D;
  --text-muted: #6B7280;
  --accent: #3A56B0;
  --green: #4ADE80;

  --font-body: 'Manrope', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  --container: 1280px;
  --space-section: clamp(56px, 9vw, 100px);
  --space-page: clamp(20px, 6vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; }
.eyebrow {
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Interior nav (Nosotros, Servicios, etc.) ===== */
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--space-page);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,251,255,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0); will-change: transform;
}
@media (max-width: 860px) {
  .site-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #FAFBFF; }
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 26px; height: 26px; }
.brand span { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-dark); letter-spacing: 1px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 14px; font-weight: 700; color: var(--text-dark); opacity: .8; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--navy); color: #fff;
  padding: 11px 24px; border-radius: 8px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: transform .15s ease;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* nav minimalista, igual a la del Inicio: solo logo + hamburguesa */
.site-nav-minimal .nav-links,
.site-nav-minimal .nav-cta { display: none; }
.site-nav-minimal .nav-toggle { display: block; }
.site-nav-minimal { justify-content: space-between; }

/* ===== Hero — foto completa, continuación de la intro (Inicio) ===== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroKen 16s ease-in-out infinite alternate; }
@keyframes heroKen { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,77,0.55) 0%, rgba(8,10,20,0.35) 35%, rgba(6,7,12,0.88) 100%);
}
.hero-nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--space-page);
}
.hero-nav .brand { display: flex; align-items: center; gap: 10px; }
.hero-nav .brand img { width: 30px; height: 30px; }
.hero-nav .brand span { color: #fff; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 1.5px; }
.hero-nav-links { display: flex; gap: 40px; }
.hero-nav-links a { color: #fff; font-size: 14px; font-weight: 600; opacity: .85; }
.hero-nav-links a:hover { opacity: 1; }
.hero-nav .nav-cta { background: rgba(11,31,77,0.45); border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.hero-nav .nav-cta:hover { background: #fff; color: var(--navy); }
body.nav-open .hero-nav, body.nav-open .site-nav { visibility: hidden; }

.hero-nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.hero-nav-toggle.is-visible { display: block; }
@media (max-width: 860px) { .hero-nav-links { display: none; } .hero-nav-toggle { display: block; } }

/* nav ultra-minima estilo Iventions: solo logo + hamburguesa */
.hero-nav-minimal .hero-nav-links,
.hero-nav-minimal .nav-cta { display: none; }

.hero-content { position: relative; z-index: 2; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--space-page) 80px; }
.hero-content .eyebrow { color: var(--navy-soft); }
.hero-content h1 {
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 6.5vw, 76px); line-height: 1.04; letter-spacing: -1px;
  max-width: 820px; margin: 18px 0 26px;
}
.hero-content p { color: #D9DEEF; font-size: clamp(14.5px, 3.6vw, 17px); line-height: 1.6; max-width: 520px; margin: 0 0 36px; }

.hero-content-centered { align-items: center; text-align: center; }
.hero-content-centered h1 { max-width: 780px; margin: 0 0 20px; }
.hero-content-centered p { max-width: 480px; margin: 0; }
.hero-status-centered { justify-content: center; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--accent); color: #fff; padding: 16px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(58,86,176,.6); }
.btn-hero-ghost {
  color: #fff; padding: 16px 32px; border-radius: 8px; font-size: 15px; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.4); cursor: pointer; transition: background .2s ease;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.1); }

.hero-status { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 var(--space-page) 28px; }
@media (max-width: 480px) { .hero-status { padding-right: 96px; } }
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero-status span { color: #B9C4EE; font-size: 12.5px; font-weight: 600; }

/* ===== Sections ===== */
section { padding: var(--space-section) max(var(--space-page), calc((100% - 1400px) / 2)); }
.section-head { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; margin: 0; color: var(--text-dark); }
.section-head .link { color: var(--accent); font-weight: 700; font-size: 14.5px; }

.trust-strip { overflow: hidden; padding: 36px 0; border-bottom: 1px solid var(--border-light); }
.trust-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: trustMarquee 32s linear infinite; }
.trust-strip:hover .trust-track { animation-play-state: paused; }
.trust-track span { color: var(--text-dark); font-size: 16px; font-weight: 800; opacity: .5; white-space: nowrap; }
@keyframes trustMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stats-section { background: var(--bg-light-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); text-align: center; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; } }
.stats-grid > div { padding: 0 24px; border-left: 1px solid rgba(11,31,77,0.12); }
.stats-grid > div:first-child { border-left: 0; }
@media (max-width: 700px) {
  .stats-grid > div { border-left: 0; border-top: 1px solid rgba(11,31,77,0.12); padding: 24px 0; }
  .stats-grid > div:first-child { border-top: 0; }
}
.stats-grid .num { color: var(--text-dark); font-size: 48px; font-weight: 800; }
.stats-grid .label { color: var(--text-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-top: 6px; }

/* ===== Capsula flotante de metricas ===== */
.stats-capsule-wrap { display: flex; justify-content: center; padding: 56px var(--space-page); }
.stats-capsule {
  width: 100%; max-width: 900px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(220,230,245,0.85); border-radius: 100px;
  padding: 22px 24px; box-shadow: 0 18px 45px -10px rgba(11,31,77,0.14), 0 6px 18px -4px rgba(11,31,77,0.07), inset 0 1px 1px 0 rgba(255,255,255,0.9);
  transition: box-shadow .3s ease;
}
.stats-capsule:hover { box-shadow: 0 26px 60px -12px rgba(11,31,77,0.2), 0 8px 22px -4px rgba(11,31,77,0.1); }
.stats-capsule-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 700px) { .stats-capsule-grid { grid-template-columns: 1fr; } .stats-capsule { border-radius: 28px; } }
.stats-metric {
  position: relative; text-align: center; padding: 6px 14px;
  border-left: 1px solid rgba(148,163,184,.35);
  transition: transform .2s ease;
}
.stats-metric:first-child { border-left: 0; }
@media (max-width: 700px) {
  .stats-metric { border-left: 0; border-top: 1px solid rgba(148,163,184,.35); padding: 16px 0; }
  .stats-metric:first-child { border-top: 0; }
}
.stats-metric:hover { transform: translateY(-2px); }
.stats-metric .num { color: var(--text-dark); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.stats-metric .num .plus { color: var(--text-dark); font-weight: 900; }
.stats-metric .label { color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; margin-top: 8px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; perspective: 1600px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contacto-grid { grid-template-columns: 1fr; } }

.card .float-inner { display: flex; flex-direction: column; height: 100%; }

.card {
  background: #fff; border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden;
  cursor: pointer; box-shadow: 0 2px 10px -4px rgba(11,31,77,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -20px rgba(11,31,77,0.25); }
.card img { width: 100%; height: 170px; object-fit: cover; }
.card .body { padding: 22px; }
.card .body h3 { font-size: 16.5px; font-weight: 800; margin: 0 0 8px; color: var(--text-dark); }
.card .body p { color: var(--text-muted); font-size: 13px; line-height: 1.55; margin: 0; }
.card.card-navy { display: flex; flex-direction: column; }
.card.card-navy .navy-head {
  height: 170px; background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.card.card-navy .navy-head .plus { color: #fff; font-family: var(--font-display); font-size: 44px; font-weight: 700; opacity: .9; }
.card.card-navy .body { background: #fff; }
.card.card-navy .title { color: var(--text-dark); font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.card.card-navy .desc { color: var(--text-muted); font-size: 13px; line-height: 1.55; }

/* ===== Tarjetas de valores (Nosotros) ===== */
.value-card {
  position: relative; overflow: hidden; cursor: default;
  padding: 26px; display: flex; flex-direction: column; gap: 8px;
  border-width: 1.5px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover { border-color: var(--v-accent); box-shadow: 0 22px 44px -14px var(--v-shadow); }
.values-track .value-card:hover { transform: scale(1.02); }
.value-card-blob {
  position: absolute; top: -48px; right: -48px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--v-accent); filter: blur(28px); opacity: 0; transition: opacity .4s ease, transform .5s ease;
  pointer-events: none;
}
.value-card:hover .value-card-blob { opacity: .22; transform: scale(1.5); }
.value-card-top { position: relative; display: flex; align-items: center; justify-content: space-between; }
.value-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--v-accent));
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.value-card:hover .value-icon { transform: scale(1.08); }
.value-icon svg { width: 20px; height: 20px; stroke: var(--v-accent-light); }
.value-tag { position: relative; font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: .5px; transition: color .3s ease; }
.value-card:hover .value-tag { color: var(--v-accent); }
.value-card h3 { position: relative; font-size: 16px; margin: 4px 0 0; color: var(--text-dark); transition: color .3s ease; }
.value-card:hover h3 { color: var(--v-accent); }
.value-card p { position: relative; color: var(--text-muted); font-size: 13px; line-height: 1.55; margin: 0; flex-grow: 1; }
.value-footer { position: relative; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border-light); display: flex; align-items: center; gap: 7px; }
.value-footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--v-accent); flex-shrink: 0; }
.value-footer span { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); }

.values-carousel { overflow: hidden; padding: 4px var(--space-page); }
.values-track { display: flex; gap: 22px; width: max-content; animation: valuesMarquee 34s linear infinite; }
.values-carousel:hover .values-track { animation-play-state: paused; }
.values-track .value-card { width: min(280px, 78vw); flex-shrink: 0; }
@keyframes valuesMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Filosofia de servicio (Nosotros) ===== */
.philosophy-card {
  position: relative; overflow: hidden; margin: 0 var(--space-page);
  background: #fff; border: 1px solid var(--border-light); border-radius: 24px;
  padding: 56px 40px; box-shadow: 0 10px 30px -5px rgba(11,31,77,0.08), 0 4px 12px -2px rgba(11,31,77,0.04);
}
.philosophy-card-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .philosophy-card-grid { grid-template-columns: 1fr; } .philosophy-card { padding: 36px 24px; } }
.philosophy-card h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--text-dark); line-height: 1.2; margin: 0 0 18px; }
.philosophy-card p { font-size: clamp(14.5px, 3.6vw, 17px); color: var(--text-muted); line-height: 1.65; margin: 0; }
.philosophy-card p strong { color: var(--accent); font-weight: 700; }
.philosophy-photo-frame { position: relative; }
.philosophy-photo-frame::before {
  content: ''; position: absolute; inset: -10px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(58,86,176,.18), rgba(124,147,224,.22));
  transform: rotate(-1deg);
}
.philosophy-photo-frame img {
  position: relative; width: 100%; height: 280px; object-fit: cover; border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(11,31,77,0.18), 0 8px 16px -4px rgba(11,31,77,0.08);
}

/* ===== Cobertura / Donde trabajamos (Nosotros) ===== */
.coverage-card {
  position: relative; margin: 0 var(--space-page);
  background: #fff; border: 1px solid var(--border-light); border-radius: 24px;
  padding: 48px 40px; box-shadow: 0 15px 35px -15px rgba(11,31,77,0.1);
  background-image: linear-gradient(to right, rgba(124,147,224,.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(124,147,224,.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.coverage-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .coverage-grid { grid-template-columns: 1fr; }
  .coverage-card { margin: 0; padding: 28px 14px; }
}
.coverage-card h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: var(--text-dark); margin: 0 0 16px; line-height: 1.25; }
.coverage-card p { font-size: clamp(13.5px, 3.4vw, 15.5px); color: var(--text-muted); line-height: 1.7; margin: 0; }
.coverage-card p strong { color: var(--text-dark); font-weight: 700; }
.coverage-card p em { color: var(--accent); font-weight: 700; font-style: normal; }
.coverage-pills { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-light); display: flex; flex-wrap: wrap; gap: 10px; }
.coverage-pill { display: flex; align-items: center; gap: 8px; background: var(--bg-light-2); border: 1px solid var(--border-light); border-radius: 10px; padding: 9px 14px; font-size: 12px; font-weight: 700; color: var(--text-dark); }
.coverage-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: pulse 2s ease-in-out infinite; }
.coverage-pill svg { width: 14px; height: 14px; stroke: var(--accent); flex-shrink: 0; }

.coverage-map-card { background: #fff; border: 1px solid var(--border-light); border-radius: 16px; padding: 18px; box-shadow: 0 8px 24px -8px rgba(11,31,77,.12); max-width: 380px; margin-left: auto; }
.coverage-map-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.coverage-map-header-title { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dark); }
.coverage-map-header-title svg { width: 14px; height: 14px; stroke: var(--accent); }
.coverage-map-header span:last-child { font-family: 'Space Grotesk', monospace; font-size: 10px; color: var(--text-muted); }
.coverage-map-canvas {
  position: relative; height: 260px; border-radius: 10px; overflow: hidden;
  background: #fff radial-gradient(#DCE3F7 1px, transparent 1px); background-size: auto, 12px 12px;
  border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center;
}
.coverage-map-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.95); border: 1px solid var(--border-light);
  padding: 4px 9px; border-radius: 6px; font-size: 9px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .3px;
}
.coverage-map-footer { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.coverage-map-footer .ping-wrap { position: relative; width: 10px; height: 10px; }
@media (max-width: 900px) {
  .coverage-map-card { padding: 12px; max-width: none; }
  .coverage-map-canvas { height: 300px; }
  .coverage-map-canvas svg { width: 100%; height: 100%; }
}

/* ===== Header centrado con degradado (seccion Valores) ===== */
.section-head-grad {
  position: relative; text-align: center; margin-bottom: 48px; padding: 0 var(--space-page) 8px;
  background-image: radial-gradient(rgba(37,99,235,.06) 1px, transparent 0);
  background-size: 24px 24px;
}
.section-head-grad-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.18);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 16px;
}
.section-head-grad-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #1652F0; animation: pulse 2s ease-in-out infinite; }
.section-head-grad-badge span { color: #1652F0; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.section-head-grad h2 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; margin: 0; color: var(--text-dark); letter-spacing: -1px; }
.section-head-grad h2 .grad {
  background: linear-gradient(90deg, #1652F0, #00B4D8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head-grad p { max-width: 620px; margin: 14px auto 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

.testimonial { background: #F5F7FD; }
.testimonial-carousel { position: relative; max-width: 800px; margin: 0 auto; min-height: 180px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.testimonial-carousel img { -webkit-user-drag: none; }

.testimonial-slide {
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.testimonial-slide.is-active { position: relative; opacity: 1; pointer-events: auto; transform: translateY(0); }

.testimonial-slide img,
.testimonial-slide .avatar-initials { width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0; }
.testimonial-slide img { object-fit: cover; }
.testimonial-slide .avatar-initials {
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
}

.testimonial blockquote { color: var(--text-dark); font-size: 22px; line-height: 1.4; font-weight: 700; margin: 0 0 12px; }
.testimonial cite { color: var(--accent); font-size: 13px; font-weight: 700; font-style: normal; }

.testimonial-dots { display: flex; gap: 10px; justify-content: center; margin-top: 32px; }
.testimonial-dots .dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(11,31,77,0.2); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.testimonial-dots .dot.is-active { background: var(--accent); transform: scale(1.3); }
.testimonial-dots .dot::after { content: ''; position: absolute; inset: -14px -4px; }

.partner-cert { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-light); font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.partner-cert-links { display: flex; gap: 10px; margin-top: 10px; }
.partner-cert-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-light); color: var(--navy); font-weight: 700; font-size: 12px; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.partner-cert-links a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.partner-cert-links a[href*="wa.me"]:hover { background: #25D366; border-color: #25D366; }

.service-pager { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.service-page { display: none; }
.service-page.is-active { display: block; }
.service-pager-dots { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.service-pager-dots .dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(11,31,77,0.2); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.service-pager-dots .dot.is-active { background: var(--accent); transform: scale(1.3); }
.service-pager-dots .dot::after { content: ''; position: absolute; inset: -14px -4px; }

.cta-final { position: relative; background: linear-gradient(135deg, var(--navy), var(--navy-2)); text-align: center; overflow: hidden; }
.cta-final h2 { position: relative; color: #fff; font-size: clamp(28px,4vw,38px); font-weight: 800; margin: 14px 0 32px; }
.cta-final-contact { position: relative; margin-top: 20px; font-size: 13.5px; color: var(--navy-soft); }
.cta-final-contact a { color: #fff; font-weight: 700; }
.cta-final-contact a:hover { color: var(--navy-soft); }
.btn-white {
  position: relative; display: inline-block; background: #fff; color: var(--navy);
  padding: 16px 36px; border-radius: 8px; font-size: 14.5px; font-weight: 800; cursor: pointer;
  transition: transform .15s ease;
}
.btn-white:hover { transform: translateY(-2px); }

.site-footer { padding: 40px var(--space-page); background: var(--navy); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer .foot-brand { display: flex; align-items: center; gap: 12px; }
.site-footer .foot-brand img { width: 34px; height: 34px; }
.site-footer .foot-brand span { color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.site-footer .foot-contact { color: var(--navy-soft); font-size: 12.5px; }

/* ===== Intro splash (una sola vez al cargar) ===== */
.intro-splash {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #08090B; overflow: hidden;
  animation: introFadeOut .9s ease 4.3s forwards;
}
.intro-splash.is-done { display: none; }
.intro-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.intro-bg.a { background-image: url('/assets/img/hero/hero-solar-01.jpg'); animation: introKen 4.6s ease-out forwards, introCrossA 4.6s ease-in-out forwards; }
.intro-bg.b { background-image: url('/assets/img/hero/parque-industrial-bquilla.jpg'); animation: introKen 4.6s ease-out forwards, introCrossB 4.6s ease-in-out forwards; }
@keyframes introKen { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes introCrossA { 0% { opacity: 1; } 55% { opacity: 1; } 78% { opacity: 0; } 100% { opacity: 0; } }
@keyframes introCrossB { 0% { opacity: 0; } 55% { opacity: 0; } 78% { opacity: 1; } 100% { opacity: 1; } }
.intro-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,7,9,0.7) 0%, rgba(6,7,9,0.35) 45%, rgba(6,7,9,0.85) 100%);
}
.intro-content { position: relative; z-index: 2; text-align: center; }
.intro-badge {
  display: inline-flex; margin-bottom: 22px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
  opacity: 0; transform: scale(0.8);
  animation: introBadgeIn .8s cubic-bezier(.2,.8,.2,1) .1s forwards;
}
.intro-badge img { width: 108px; height: 108px; display: block; }
@keyframes introBadgeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 600px) {
  .intro-badge img { width: 76px; height: 76px; }
}
.intro-wordmark {
  color: #fff; font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 52px); font-weight: 700; letter-spacing: 6px;
  margin: 0 0 18px; text-transform: uppercase;
  opacity: 0; filter: blur(10px); transform: scale(1.06);
  animation: introFocusIn 1.1s cubic-bezier(.2,.8,.2,1) .4s forwards;
}
.intro-rule {
  width: 0; height: 1px; background: linear-gradient(90deg, transparent, #7C93E0, transparent);
  margin: 0 auto 18px; animation: introRuleIn .9s ease .95s forwards;
}
.intro-tagline { color: #B9C4EE; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; opacity: 0; animation: introTextIn 1s ease 1.1s forwards; }
@keyframes introTextIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes introFocusIn { from { opacity: 0; filter: blur(10px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes introRuleIn { from { width: 0; } to { width: 90px; } }
.intro-fog {
  position: absolute; left: 0; right: 0; bottom: -10%; height: 60%;
  background: linear-gradient(0deg, rgba(230,230,235,0.95), rgba(230,230,235,0.5) 45%, transparent);
  filter: blur(22px); opacity: 0;
  animation: introFogRise 1.6s ease-in 3.2s forwards;
}
@keyframes introFogRise { from { transform: translateY(30%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes introFadeOut { to { opacity: 0; visibility: hidden; pointer-events: none; } }
body.intro-active { overflow: hidden; }

.case-tile-3d {
  transition: transform .12s ease-out, box-shadow .3s ease;
  transform-style: preserve-3d; overflow: hidden;
}
.case-tile-3d:hover { box-shadow: 0 30px 54px -22px rgba(11,31,77,0.4); }
.case-tile-3d img { transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.case-tile-3d:hover img { transform: scale(1.1); }

.case-tile-3d .body h3 { position: relative; display: inline-block; padding-bottom: 6px; }
.case-tile-3d .body h3::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.case-tile-3d:hover .body h3::after { transform: scaleX(1); }

/* ===== MacerBot ===== */
.bot-launcher { position: fixed; bottom: 24px; right: 24px; z-index: 90; display: flex; align-items: center; gap: 12px; }

/* bounce identico al de la referencia (Tailwind animate-bounce) */
@keyframes botBounce {
  0%, 100% { transform: translateY(-6%); animation-timing-function: cubic-bezier(.8,0,1,1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,.2,1); }
}
.bot-teaser {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(6px);
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--border-light);
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.3); white-space: nowrap;
  animation: botBounce 1.4s infinite;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.bot-teaser.is-visible { opacity: 1; pointer-events: auto; }
.bot-teaser span:last-child { color: var(--navy); font-size: 12.5px; font-weight: 600; }
.bot-teaser .dot-solid-sm { background: #10B981; }
.dot-solid-sm { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* dot con anillo expandiendose (Tailwind animate-ping) */
@keyframes pingRing { 75%, 100% { transform: scale(2); opacity: 0; } }
.ping-ring, .ping-dot { position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.ping-ring { animation: pingRing 1.6s cubic-bezier(0,0,.2,1) infinite; opacity: .75; }
.ping-ring.sm, .ping-dot.sm { border: 1.5px solid var(--navy); }

.bot-fab {
  position: relative; width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: #0F172A;
  padding: 2px; border: 0; cursor: pointer;
  box-shadow: 0 12px 30px -4px rgba(15,23,42,0.45), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .3s ease, background .2s ease;
}
.bot-fab:hover { transform: scale(1.06); background: #1E293B; }
.bot-fab:active { transform: scale(.95); }
.bot-fab-glow {
  position: absolute; inset: 0; border-radius: 50%; background: #0F172A;
  filter: blur(10px); opacity: .3; transition: opacity .3s ease; z-index: -1;
}
.bot-fab:hover .bot-fab-glow { opacity: .6; }
.bot-fab-inner {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: #0F172A;
  display: flex; align-items: center; justify-content: center;
}
.bot-fab-icon { transition: transform .3s ease; }
.bot-fab:hover .bot-fab-icon { transform: rotate(8deg); }
.bot-fab-status { position: absolute; top: 0; right: 0; width: 14px; height: 14px; }
.bot-fab-status .ping-dot { border: 2px solid #fff; }
.bot-fab-status .ping-ring, .bot-fab-status .ping-dot { background: #10B981; }

.bot-window {
  position: fixed; bottom: 96px; right: 24px; width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px);
  background: #fff; border-radius: 20px; overflow: hidden; z-index: 91;
  box-shadow: 0 40px 70px -20px rgba(11,31,77,0.5);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.bot-window.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.bot-header {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  padding: 16px 16px 12px; display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0;
}
.bot-header-circuit { position: absolute; inset: 0; opacity: .22; pointer-events: none; }
.bot-header-info { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.bot-header-text { display: flex; flex-direction: column; gap: 2px; }
.bot-header-title { display: flex; align-items: center; gap: 7px; }
.bot-header-title strong { color: #fff; font-size: 15px; font-family: var(--font-display); }
.bot-badge {
  background: rgba(37,99,235,0.5); color: #fff; font-size: 9px; font-weight: 800;
  letter-spacing: .4px; padding: 2px 7px; border-radius: 5px;
}
.bot-header-text small { color: var(--navy-soft); font-size: 11.5px; }
.bot-status { display: flex; align-items: center; gap: 6px; color: #9BAEE8; font-size: 11px; margin-top: 1px; }
.bot-avatar-ring { position: relative; flex-shrink: 0; }
.bot-avatar {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.bot-avatar-online { position: absolute; bottom: -2px; right: -2px; width: 12px; height: 12px; }
.bot-header-actions { display: flex; align-items: center; gap: 2px; position: relative; }
.bot-header button {
  position: relative; background: none; border: 0; cursor: pointer; padding: 5px;
  width: 28px; height: 28px; border-radius: 8px; color: #CBD5E1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.bot-header button:hover { background: rgba(11,31,77,0.6); color: #fff; }
#botClose:hover { background: #DC2626; color: #fff; }

.bot-messages { flex-grow: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.bot-session-pill { text-align: center; }
.bot-session-pill span {
  background: var(--bg-light-2); color: #5A6B9E; font-size: 10.5px; font-weight: 700;
  letter-spacing: .4px; padding: 5px 12px; border-radius: 100px;
}

.bot-msg-row { display: flex; gap: 10px; align-items: flex-start; }
.bot-msg-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy); flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.bot-msg-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.bot-msg-meta strong { font-size: 12px; color: var(--text-dark); }
.bot-msg-meta em { font-size: 10.5px; color: var(--text-muted); font-style: normal; }

.bot-msg { max-width: 100%; padding: 12px 14px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; line-height: 1.5; }
.bot-msg-bot { background: var(--bg-light-2); color: var(--text-dark); }
.bot-msg-user { background: var(--navy); color: #fff; align-self: flex-end; max-width: 85%; border-radius: 14px 14px 4px 14px; }
.bot-msg.typing { display: flex; align-items: center; gap: 5px; width: fit-content; padding: 14px 16px; }
.bot-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .35; animation: botTyping 1.2s ease-in-out infinite; }
.bot-msg.typing span:nth-child(2) { animation-delay: .18s; }
.bot-msg.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes botTyping { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.bot-msg-bot p { margin: 0 0 8px; }
.bot-msg-bot p:last-child, .bot-msg-bot ul:last-child { margin-bottom: 0; }
.bot-msg-bot ul { margin: 4px 0 8px; padding-left: 18px; }
.bot-msg-bot li { margin-bottom: 5px; }

.bot-whatsapp-link {
  align-self: flex-start; background: #0B6B2C; color: #fff; font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 100px; text-decoration: none;
}
.bot-action-link {
  align-self: flex-start; background: var(--bg-light-2); color: var(--accent); font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: 100px; text-decoration: none; border: 1px solid var(--border-light);
}

.bot-quick-label { color: #8A93B0; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.bot-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; }
.bot-quick-replies button {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border-light); color: var(--text-dark);
  font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 11px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.bot-quick-replies button:hover { background: var(--bg-light-2); border-color: var(--accent); }

.bot-input-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border-light); padding: 4px 12px; flex-shrink: 0; }
.bot-attach { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bot-input-row input { flex-grow: 1; border: 0; padding: 14px 4px; font-size: 13.5px; outline: none; font-family: inherit; }
.bot-input-row button[type="submit"] {
  background: var(--accent); border: 0; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.bot-footer-bar {
  display: flex; justify-content: space-between; padding: 8px 16px; flex-shrink: 0;
  border-top: 1px solid var(--border-light); background: var(--bg-light);
}
.bot-footer-bar span { color: var(--text-muted); font-size: 10px; }

@media (max-width: 480px) {
  .bot-window { right: 16px; bottom: 88px; }
  .bot-teaser { display: none; }
}

/* ===== Tarjeta de datos de contacto (estilo panel tecnico) ===== */
.contact-panel {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 16px; padding: 22px; position: relative; overflow: hidden;
  box-shadow: 0 2px 10px -4px rgba(11,31,77,0.1); transition: box-shadow .3s ease;
}
.contact-panel:hover { box-shadow: 0 8px 24px -8px rgba(11,31,77,0.18); }
.contact-panel-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.contact-panel-title { display: flex; align-items: center; gap: 9px; }
.contact-panel-title .dot-solid-sm { background: #2563EB; }
.contact-panel-title h3 { color: var(--text-dark); font-size: 16px; margin: 0; }
.contact-panel-badge { color: #2563EB; font-size: 11px; font-weight: 700; letter-spacing: 1px; }

.contact-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-light-2); border: 1px solid var(--border-light);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
  transition: border-color .25s ease;
}
.contact-item:hover { border-color: var(--navy-soft); }
.contact-item:last-child { margin-bottom: 0; }
.contact-item-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-item-icon.icon-location { background: #FEE2E2; }
.contact-item-icon.icon-phone { background: #DBEAFE; }
.contact-item-icon.icon-mail { background: #EDE9FE; }
.contact-item-icon.icon-whatsapp { background: #DCFCE7; }
.contact-item-label { color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 3px; }
.contact-item-value { color: var(--text-dark); font-size: 14.5px; font-weight: 700; }
.contact-item-value a { color: inherit; }

.hours-inline { border-top: 1px solid var(--border-light); padding-top: 16px; margin-top: 16px; }
.hours-inline h4 { font-size: 13px; font-weight: 800; color: var(--text-dark); margin: 0 0 8px; }
.hours-inline p { margin: 0 0 4px; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.hours-inline p:last-child { margin-bottom: 0; }
.hours-inline p strong { color: var(--text-dark); font-weight: 700; }

.map-card-inline { border-top: 1px solid var(--border-light); margin-top: 18px; padding-top: 16px; }
.map-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.map-card-header h3 { font-size: 14.5px; color: var(--text-dark); margin: 0; }
.map-card-coords { color: var(--text-muted); font-size: 11.5px; font-family: 'Space Grotesk', monospace; }
.map-card-badge { display: flex; align-items: center; gap: 6px; background: #EFF6FF; color: #1D4ED8; border: 1px solid #DBEAFE; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 100px; white-space: nowrap; }
.map-card-badge .dot-solid-sm { background: #2563EB; }
.map-card-embed { height: 200px; border-radius: 12px; overflow: hidden; }
.map-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; flex-wrap: wrap; }
.map-card-address { display: flex; align-items: center; gap: 8px; color: var(--text-dark); font-size: 13px; font-weight: 600; }
.map-card-cta { background: #2563EB; color: #fff; font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 8px; white-space: nowrap; transition: background .2s ease; }
.map-card-cta:hover { background: #1D4ED8; }
.map-card-cta-outline { background: #fff; color: #334155; border: 1px solid var(--border-light); }
.map-card-cta-outline:hover { background: #F8FAFC; }

.btn-contact-primary { background: #2563EB; color: #fff; padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: background .2s ease; }
.btn-contact-primary:hover { background: #1D4ED8; }

.form-success { animation: formPopIn .5s cubic-bezier(.2,.8,.3,1.3); }
.form-success-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: #10B981; display: flex; align-items: center; justify-content: center;
  animation: formIconPop .6s cubic-bezier(.2,.8,.3,1.4) .1s both;
}
@keyframes formPopIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes formIconPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

.form-alert-error {
  display: flex; align-items: center; gap: 10px;
  background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  font-size: 13.5px; font-weight: 600; padding: 12px 14px; border-radius: 10px;
  animation: formAlertShake .45s ease;
}
@keyframes formAlertShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* ===== Page intro (paginas internas) ===== */
.page-intro {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  padding: 90px var(--space-page) 64px;
}
.page-intro-circuit { position: absolute; inset: 0; opacity: .18; pointer-events: none; }
.page-intro-inner { position: relative; max-width: 720px; }

/* Variante ondulada animada (Nosotros, Servicios, Casos de Exito, Contacto) */
.page-intro-wave {
  background: linear-gradient(135deg, #050f1f 0%, #0b1e3f 55%, #0f2a56 100%);
  padding-bottom: 96px;
}
.page-intro-wave-dots {
  position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image: radial-gradient(rgba(56,189,248,.14) 1px, transparent 0);
  background-size: 28px 28px;
}
.page-intro-wave-glow {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px);
}
.page-intro-wave-glow.g1 {
  left: -128px; top: -128px; width: 380px; height: 380px;
  background: rgba(37,99,235,.2); animation: waveGlowDrift1 12s ease-in-out infinite;
}
.page-intro-wave-glow.g2 {
  right: 0; top: 25%; width: 460px; height: 460px;
  background: rgba(56,189,248,.15); animation: waveGlowDrift2 15s ease-in-out infinite;
}
@keyframes waveGlowDrift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); opacity: .5; } 50% { transform: translate3d(40px,-25px,0) scale(1.18); opacity: .8; } }
@keyframes waveGlowDrift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); opacity: .4; } 50% { transform: translate3d(-50px,30px,0) scale(1.15); opacity: .7; } }

.page-intro-wave-particle {
  position: absolute; border-radius: 50%; background: #38BDF8; pointer-events: none;
  box-shadow: 0 0 8px #38BDF8;
}
.page-intro-wave-particle.p1 { left: 18%; top: 38%; width: 6px; height: 6px; animation: waveParticle1 8s cubic-bezier(.4,0,.2,1) infinite; }
.page-intro-wave-particle.p2 { left: 45%; top: 62%; width: 4px; height: 4px; animation: waveParticle2 10s cubic-bezier(.4,0,.2,1) infinite 2s; }
.page-intro-wave-particle.p3 { left: 72%; top: 25%; width: 8px; height: 8px; animation: waveParticle3 9s cubic-bezier(.4,0,.2,1) infinite 4s; }
@keyframes waveParticle1 { 0% { transform: translate3d(0,0,0); opacity: .1; } 50% { opacity: .7; } 100% { transform: translate3d(120px,-80px,0); opacity: 0; } }
@keyframes waveParticle2 { 0% { transform: translate3d(0,0,0); opacity: .15; } 50% { opacity: .85; } 100% { transform: translate3d(-90px,-110px,0); opacity: 0; } }
@keyframes waveParticle3 { 0% { transform: translate3d(0,0,0); opacity: .2; } 50% { opacity: .9; } 100% { transform: translate3d(70px,-90px,0); opacity: 0; } }

.page-intro-wave-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-intro-wave-svg .w1 { animation: waveFlow1 11s ease-in-out infinite alternate; transform-origin: center bottom; }
.page-intro-wave-svg .w2 { animation: waveFlow2 14s ease-in-out infinite alternate; transform-origin: center bottom; }
@keyframes waveFlow1 { 0% { transform: translate3d(0,0,0) scaleY(1); } 50% { transform: translate3d(-35px,14px,0) scaleY(1.06); } 100% { transform: translate3d(25px,-10px,0) scaleY(.97); } }
@keyframes waveFlow2 { 0% { transform: translate3d(0,0,0) scaleY(1); } 50% { transform: translate3d(45px,-18px,0) scaleY(1.08); } 100% { transform: translate3d(-25px,12px,0) scaleY(.94); } }
.page-intro-wave-svg .beam { stroke-dasharray: 600 200; animation: waveBeamFlow 9s linear infinite; }
.page-intro-wave-svg .beam-dash { animation: waveDashStream 3s linear infinite; }
@keyframes waveBeamFlow { 0% { stroke-dashoffset: 2000; opacity: .6; } 50% { opacity: .95; } 100% { stroke-dashoffset: 0; opacity: .6; } }
@keyframes waveDashStream { 0% { stroke-dashoffset: 120; } 100% { stroke-dashoffset: 0; } }

.page-intro-wave-cascade { position: absolute; bottom: -1px; left: 0; right: 0; width: 100%; line-height: 0; pointer-events: none; }
.page-intro-wave-cascade svg { display: block; width: 100%; height: 56px; }

@media (prefers-reduced-motion: reduce) {
  .page-intro-wave-glow, .page-intro-wave-particle, .page-intro-wave-svg .w1,
  .page-intro-wave-svg .w2, .page-intro-wave-svg .beam, .page-intro-wave-svg .beam-dash {
    animation: none !important; transform: none !important;
  }
}

.page-intro-wave .eyebrow { color: #38BDF8; }
.page-intro-wave p { color: rgba(219,234,254,.9); }
.page-intro h1 {
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 14px 0 18px;
}
.page-intro p { color: #C9D3F5; font-size: clamp(13.5px, 3.4vw, 16px); line-height: 1.6; margin: 0; }

/* ===== Tabs ===== */
.tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  background: #fff; border: 1px solid var(--border-light); color: var(--text-dark);
  font-size: 13.5px; font-weight: 700; padding: 11px 20px; border-radius: 100px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn:hover { border-color: var(--accent); }
.tab-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* scroll reveal — rapido, sin arrastre */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .35s ease-out, transform .35s ease-out;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* indicador de hover en nav (punto que aparece bajo el link) */
.hero-nav-links a, .nav-links a { position: relative; padding-bottom: 6px; }
.hero-nav-links a::after, .nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px;
  border-radius: 50%; background: currentColor; opacity: 0; transform: translate(-50%, 4px);
  transition: opacity .25s ease, transform .25s ease;
}
.hero-nav-links a:hover::after, .nav-links a:hover::after { opacity: 1; transform: translate(-50%, 0); }

/* nav drawer — panel con corte diagonal que entra deslizando */
.nav-drawer {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden; pointer-events: none;
}
.nav-drawer.is-open { visibility: visible; pointer-events: auto; }

.nav-drawer-panel {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  clip-path: polygon(0 0, 10% 0, 100% 20%, 100% 100%, 70% 100%, 0 6%);
  transform: translateX(105%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nav-drawer.is-open .nav-drawer-panel { transform: translateX(0); }
@media (max-width: 700px) {
  .nav-drawer-panel { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); transform: translateY(-105%); }
  .nav-drawer.is-open .nav-drawer-panel { transform: translateY(0); }
}

.nav-drawer-bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--space-page);
}
.nav-drawer-bar .brand span { color: #fff; }
.nav-drawer .nav-close {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
}

.nav-drawer-links {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 0; height: calc(100vh - 92px); height: calc(100svh - 92px); padding: 0 28px 40px;
}
.nav-drawer-links a {
  position: relative;
  color: #fff; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(30px, 4.2vw, 68px); line-height: 1.3; letter-spacing: -2px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
  padding-bottom: 4px;
}
.nav-drawer.is-open .nav-drawer-links a { opacity: 1; transform: translateY(0); }

.nav-drawer-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--navy-soft); transform: scaleX(0); transform-origin: right;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.nav-drawer.is-open .nav-drawer-links a:hover { transform: translateY(-6px); }
.nav-drawer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-drawer.is-open .nav-drawer-links a:nth-child(1) { transition-delay: .12s; }
.nav-drawer.is-open .nav-drawer-links a:nth-child(2) { transition-delay: .16s; }
.nav-drawer.is-open .nav-drawer-links a:nth-child(3) { transition-delay: .2s; }
.nav-drawer.is-open .nav-drawer-links a:nth-child(4) { transition-delay: .24s; }


/* ===== Apoyo al deporte (Nosotros) ===== */
.sport-grid { display: grid; grid-template-columns: 1.95fr 1.5fr; gap: 28px; align-items: center; }
.sport-frame { position: relative; margin: 0; }
.sport-frame::before {
  content: ''; position: absolute; inset: -10px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(58,86,176,.18), rgba(124,147,224,.22));
  transform: rotate(-1deg);
}
.sport-frame:nth-child(2)::before { transform: rotate(1deg); }
.sport-frame img {
  position: relative; display: block; width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(11,31,77,0.18), 0 8px 16px -4px rgba(11,31,77,0.08);
}
@media (max-width: 900px) { .sport-grid { grid-template-columns: 1fr; gap: 32px; } }