/* =============================================================
   KineGerson — Kinesiología & Rehabilitación
   Archetype: Glassmorphism Modern (medical blue / white)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

:root {
  --bg:           #ffffff;
  --bg-2:         #eef5fc;
  --bg-3:         #f6fafe;
  --ink:          #0f2747;
  --ink-soft:     #2c3e5c;
  --ink-mute:     #5d6f88;
  --accent:       #1466c0;
  --accent-deep:  #0a3b78;
  --accent-bright:#3aa0e0;
  --accent-teal:  #14a6ab;

  --glass:        rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.7);
  --line:         rgba(15, 39, 71, 0.10);
  --shadow-1:     0 10px 30px -12px rgba(15, 39, 71, 0.18);
  --shadow-2:     0 30px 60px -20px rgba(20, 102, 192, 0.30);
  --shadow-blue:  0 24px 60px -22px rgba(20, 102, 192, 0.45);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Manrope", var(--sans);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1200px;
  --radius: 20px;
  --radius-lg: 28px;
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.07;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  z-index: 10001; border-radius: 10px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }
@media (min-width: 720px) { .container { width: min(100% - 4rem, var(--container)); } }

.kicker {
  display: inline-block;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 600; font-size: .9rem; letter-spacing: .02em;
  color: var(--accent-deep);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  padding: .5rem .95rem; border-radius: 100px;
  box-shadow: var(--shadow-1);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 0 rgba(20, 166, 171, .5);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 166, 171, .45); }
  50% { box-shadow: 0 0 0 7px rgba(20, 166, 171, 0); }
}

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* =============================================================
   4. Typography scale
   ============================================================= */
.hero-title { font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -0.03em; }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-lead { color: var(--ink-mute); font-size: 1.08rem; max-width: 56ch; }

/* =============================================================
   5. Components
   ============================================================= */
.glass {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass {
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
  }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display);
  font-weight: 700; font-size: .98rem;
  padding: .92rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .35s var(--ease-out), color .35s var(--ease-out);
  will-change: transform;
}
.btn .ico { width: 1.1rem; height: 1.1rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 55%, var(--accent-deep));
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 30px 70px -20px rgba(20, 102, 192, .6); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost {
  background: var(--glass-strong);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-1); }
.btn-block { width: 100%; }

.has-magnetic { position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--accent);
  margin-top: .6rem;
}
.link-arrow .ico { transition: transform .4s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(15,39,71,.4);
}
.nav-inner {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
  display: flex; align-items: center; gap: 1.2rem;
}
@media (min-width: 720px) { .nav-inner { width: min(100% - 4rem, var(--container)); } }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { flex: none; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.22rem; letter-spacing: -.02em; color: var(--ink); }
.brand-word strong { font-weight: 800; color: var(--accent); }

.nav-links { display: none; margin-left: auto; gap: 1.7rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-weight: 500; color: var(--ink-soft); padding: .25rem 0; transition: color .3s var(--ease-out); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: none; padding: .68rem 1.2rem; font-size: .92rem; }
@media (min-width: 960px) { .nav-cta { display: inline-flex; margin-left: .4rem; } }
@media (min-width: 960px) { .nav-links + .nav-cta { margin-left: 0; } }
@media (max-width: 959px) { .nav-links ~ .nav-cta { margin-left: auto; } }

.nav-burger {
  margin-left: auto;
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px;
  border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--line);
}
.nav-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out), opacity .3s; }
@media (min-width: 960px) { .nav-burger { display: none; } }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: linear-gradient(160deg, #ffffff, var(--bg-2));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  padding: 2rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
  pointer-events: none;
}
.mobile-menu[aria-hidden="false"] { clip-path: inset(0); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.mobile-menu nav a {
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--ink);
  padding: .55rem 1rem; opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color .3s;
}
.mobile-menu[aria-hidden="false"] nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--accent); }
.mobile-menu[aria-hidden="false"] nav a:nth-child(1) { transition-delay: .08s; }
.mobile-menu[aria-hidden="false"] nav a:nth-child(2) { transition-delay: .13s; }
.mobile-menu[aria-hidden="false"] nav a:nth-child(3) { transition-delay: .18s; }
.mobile-menu[aria-hidden="false"] nav a:nth-child(4) { transition-delay: .23s; }
.mobile-menu[aria-hidden="false"] nav a:nth-child(5) { transition-delay: .28s; }
.mobile-menu[aria-hidden="false"] nav a:nth-child(6) { transition-delay: .33s; }
.mobile-menu[aria-hidden="false"] nav a:nth-child(7) { transition-delay: .38s; }
.mobile-menu .btn { margin-top: 1.4rem; }
.mobile-menu-social { display: flex; gap: 1.4rem; margin-top: 1.6rem; font-weight: 600; color: var(--accent); }

/* =============================================================
   7. Mesh gradient (signature)
   ============================================================= */
.mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mesh::before {
  content: ""; position: absolute; inset: -25%;
  background:
    radial-gradient(38% 42% at var(--mesh-x) var(--mesh-y), rgba(58, 160, 224, .55), transparent 62%),
    radial-gradient(34% 38% at 78% 26%, rgba(20, 166, 171, .42), transparent 60%),
    radial-gradient(40% 44% at 22% 78%, rgba(20, 102, 192, .40), transparent 64%),
    conic-gradient(from var(--mesh-angle) at 50% 50%, rgba(198, 216, 247, .35), rgba(182, 230, 232, .25), rgba(143, 196, 239, .35), rgba(198, 216, 247, .35));
  filter: blur(60px) saturate(135%);
  opacity: .9;
  animation: meshShift 26s ease-in-out infinite;
}
.mesh-soft::before { opacity: .55; filter: blur(80px) saturate(120%); }
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 28%; --mesh-y: 32%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 72%; --mesh-y: 64%; }
  100% { --mesh-angle: 360deg; --mesh-x: 28%; --mesh-y: 32%; }
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 2.4rem);
  padding-bottom: 2rem;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, var(--bg-3), var(--bg));
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
  display: grid; gap: 2.6rem; align-items: center;
}
@media (min-width: 720px) { .hero-inner { width: min(100% - 4rem, var(--container)); } }
@media (min-width: 960px) { .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; } }

.hero-copy > * + * { margin-top: 1.35rem; }
.hero-title { color: var(--ink); }
.hero-sub { color: var(--ink-soft); font-size: 1.12rem; max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-trust {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.3rem;
  margin-top: 1.8rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.hero-trust .ico { color: var(--accent); }

/* hero figure */
.hero-figure { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero-photo-wrap {
  position: relative;
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(58,160,224,.18), rgba(20,166,171,.12));
  padding: 0;
  aspect-ratio: 1 / 1;
  overflow: visible;
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  border-radius: 30px;
  box-shadow: var(--shadow-2);
  filter: saturate(1.03);
}
.hero-photo-wrap::before {
  content: ""; position: absolute; inset: -6% -6% 8% -6%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, rgba(20,102,192,.30), transparent 70%);
  filter: blur(40px);
}
[data-float] { animation: floatY 6.5s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-card { position: absolute; padding: .85rem 1.05rem; border-radius: 18px; box-shadow: var(--shadow-2); }
.hero-card-name { left: -4%; bottom: 11%; display: flex; flex-direction: column; }
.hero-card-k { font-family: var(--display); font-weight: 800; font-size: 1rem; color: var(--ink); }
.hero-card-s { font-size: .78rem; color: var(--ink-mute); line-height: 1.3; }
.hero-card-stat { right: -5%; top: 9%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero-card-n { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--accent); line-height: 1; }
.hero-card-stat .hero-card-s { margin-top: .2rem; }

/* hero marquee */
.hero-marquee {
  position: relative; z-index: 2;
  margin-top: 2.6rem;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  overflow: hidden;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap; will-change: transform;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  color: var(--ink-soft);
}
.marquee-track i { color: var(--accent-teal); font-style: normal; }
.marquee-track span { padding-block: .2rem; }

/* =============================================================
   9. Sections base
   ============================================================= */
.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); }
.section-head .section-lead { margin-inline: auto; }
.section-head .kicker { display: inline-block; }

/* About */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-3)); }
.about-grid { display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .95fr 1.05fr; gap: 4rem; } }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); object-fit: cover; aspect-ratio: 4/3.4; }
.about-badge {
  position: absolute; right: -.6rem; bottom: -1.2rem;
  display: flex; align-items: center; gap: .7rem;
  padding: .9rem 1.1rem; border-radius: 18px; max-width: 230px;
  font-weight: 600; font-size: .9rem; color: var(--ink-soft);
  box-shadow: var(--shadow-2);
}
.about-badge .ico { color: var(--accent); width: 1.6rem; height: 1.6rem; flex: none; }
.about-text > * + * { margin-top: 1.1rem; }
.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.about-text p { color: var(--ink-soft); }

/* =============================================================
   10. Cards grid (services + testimonials)
   ============================================================= */
.cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card { padding: 1.8rem 1.7rem 1.9rem; position: relative; overflow: hidden; }
.card-ico {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, rgba(58,160,224,.18), rgba(20,166,171,.16));
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
}
.card-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.18rem; margin-bottom: .55rem; letter-spacing: -.01em; }
.card p { color: var(--ink-mute); font-size: .97rem; }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent), var(--accent-teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-soft);
}
.card:hover::after { transform: scaleX(1); }

/* tilt */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .12s; box-shadow: var(--shadow-2); }

/* =============================================================
   11. Banner
   ============================================================= */
.banner { position: relative; min-height: 60vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 116%; top: -8%; object-fit: cover; object-position: center 30%; z-index: -2; }
.banner-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,30,60,.85) 0%, rgba(10,59,120,.65) 45%, rgba(10,59,120,.15) 100%);
}
.banner-inner { padding-block: 4rem; max-width: 760px; }
.banner-quote { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 2.1rem); line-height: 1.3; color: #fff; letter-spacing: -.01em; }
.banner-sign { margin-top: 1.2rem; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: .02em; }

/* =============================================================
   12. Approach + stats
   ============================================================= */
.approach { background: linear-gradient(180deg, var(--bg-3), var(--bg)); overflow: hidden; }
.approach .container { position: relative; z-index: 2; }
.pillars { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: .4rem; text-align: center; }
.pillar-ico {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  box-shadow: var(--shadow-1);
}
.pillar-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.pillar p { color: var(--ink-mute); font-size: .93rem; }

.stats {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: 1fr; gap: 0;
  padding: 1.6rem;
  text-align: center;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 1rem; position: relative; }
@media (min-width: 720px) { .stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); } }
.stat-n { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.stat-pct { font-size: .6em; }
.stat-l { display: block; margin-top: .5rem; color: var(--ink-mute); font-size: .92rem; font-weight: 500; }

/* =============================================================
   13. Gallery
   ============================================================= */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); aspect-ratio: 4/3; }
.gallery-item-tall { aspect-ratio: 4/3; }
@media (min-width: 720px) {
  .gallery-item-tall { grid-row: span 2; aspect-ratio: auto; }
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,59,120,.28));
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.gallery-item:hover::after { opacity: 1; }

/* =============================================================
   13b. Videos / Reels (carga bajo demanda)
   ============================================================= */
.videos { background: linear-gradient(180deg, var(--bg-3), var(--bg)); }
.reels {
  display: flex; gap: 1.1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding: .6rem .2rem 1.8rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
  touch-action: pan-x;
}
.reels::-webkit-scrollbar { height: 8px; }
.reels::-webkit-scrollbar-thumb { background: rgba(20,102,192,.4); border-radius: 8px; }
.reels::-webkit-scrollbar-track { background: transparent; }
.reel {
  position: relative; flex: 0 0 auto;
  width: 236px; aspect-ratio: 9 / 16;
  border-radius: 22px; overflow: hidden;
  background: #0a2548;
  box-shadow: var(--shadow-2);
  scroll-snap-align: center;
  isolation: isolate;
}
@media (min-width: 720px) { .reel { width: 262px; } }
.reel-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0a2548; }
.reel-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(10,37,72,.10) 30%, rgba(10,37,72,.5));
  transition: opacity .4s var(--ease-out);
}
.reel-play::before {
  content: ""; position: absolute;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.45);
  transition: transform .4s var(--ease-bounce);
}
.reel-play svg { position: relative; width: 28px; height: 28px; color: var(--accent-deep); margin-left: 4px; }
.reel:hover .reel-play::before { transform: scale(1.1); }
.reel.is-playing .reel-play { opacity: 0; pointer-events: none; }
.reel-tag {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 1.6rem .95rem .85rem;
  font-family: var(--display); font-weight: 700; font-size: .92rem; line-height: 1.25; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(10,37,72,.9));
  pointer-events: none;
  transition: opacity .4s var(--ease-out);
}
.reel.is-playing .reel-tag { opacity: 0; }

/* =============================================================
   14. Testimonials
   ============================================================= */
.testimonials { background: linear-gradient(180deg, var(--bg), var(--bg-3)); }
.quote { padding: 2.2rem 1.8rem 1.8rem; position: relative; display: flex; flex-direction: column; }
.quote-mark { position: absolute; top: .2rem; right: 1.2rem; font-family: var(--display); font-weight: 800; font-size: 4.5rem; line-height: 1; color: rgba(20,102,192,.16); }
.quote blockquote { font-size: 1.04rem; color: var(--ink-soft); line-height: 1.6; }
.quote figcaption { margin-top: 1.3rem; display: flex; flex-direction: column; }
.quote figcaption strong { font-family: var(--display); font-weight: 700; color: var(--ink); }
.quote figcaption span { font-size: .85rem; color: var(--ink-mute); }

/* =============================================================
   15. FAQ
   ============================================================= */
.faq { background: var(--bg-3); }
.faq-grid { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 3.5rem; } }
.faq-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.faq-head .section-lead { margin-top: 1rem; }
@media (min-width: 960px) { .faq-head { position: sticky; top: calc(var(--nav-h) + 1.5rem); } }
.faq-list { display: flex; flex-direction: column; gap: .9rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--display); font-weight: 700; font-size: 1.04rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .35s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(0); }
.faq-body { padding: 0 1.4rem 1.25rem; }
.faq-body p { color: var(--ink-mute); }
.faq-item[open] summary { color: var(--accent); }

/* =============================================================
   16. Contact
   ============================================================= */
.contact { background: linear-gradient(180deg, var(--bg-3), var(--bg)); overflow: hidden; }
.contact .container { position: relative; z-index: 2; }
.contact-grid { display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.contact-copy > p { color: var(--ink-soft); margin-top: 1rem; max-width: 42ch; }
.contact-list { list-style: none; margin-top: 1.8rem; display: flex; flex-direction: column; gap: .8rem; }
.contact-list a, .contact-plain {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem; border-radius: 16px;
  background: var(--glass-strong); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.contact-list a:hover { transform: translateX(5px); box-shadow: var(--shadow-1); border-color: var(--accent); }
.contact-list span:not(.contact-ico) { display: flex; flex-direction: column; font-weight: 600; color: var(--ink); }
.contact-list span:not(.contact-ico) strong { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: linear-gradient(140deg, rgba(58,160,224,.2), rgba(20,166,171,.16)); color: var(--accent-deep); }
.contact-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* form */
.contact-card { padding: 1.8rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.35rem 1rem .55rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.65);
  color: var(--ink); font: inherit;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea { resize: vertical; min-height: 88px; padding-top: 1.5rem; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-top: 1.4rem; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231466c0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20,102,192,.12); }
.field label {
  position: absolute; left: 1rem; top: 1rem;
  pointer-events: none; color: var(--ink-mute); font-size: .98rem;
  transition: all .25s var(--ease-out);
}
.field label.label-static,
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .42rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.form-note { font-size: .82rem; color: var(--ink-mute); text-align: center; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { background: linear-gradient(180deg, var(--bg), #0a2548); color: rgba(255,255,255,.78); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner { display: grid; gap: 2.2rem; padding-bottom: 2.6rem; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.6rem; } }
.footer .brand-word { color: #fff; }
.footer .brand-word strong { color: var(--accent-bright); }
.footer .brand-mark { filter: drop-shadow(0 0 0 transparent); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; color: rgba(255,255,255,.62); font-size: .94rem; }
.footer-nav { display: flex; flex-direction: column; gap: .65rem; }
.footer-nav a { color: rgba(255,255,255,.72); font-weight: 500; transition: color .3s, padding-left .3s; width: max-content; }
.footer-nav a:hover { color: #fff; padding-left: 4px; }
.footer-social { display: flex; flex-direction: column; gap: .7rem; }
.footer-social-label { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: .2rem; }
.footer-social a { display: inline-flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.78); font-weight: 500; font-size: .92rem; transition: color .3s, transform .3s; width: max-content; }
.footer-social a:hover { color: #fff; transform: translateX(3px); }
.footer-social svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.4rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.55);
  width: min(100% - 2.4rem, var(--container)); margin-inline: auto;
}
@media (min-width: 720px) { .footer-bottom { width: min(100% - 4rem, var(--container)); } }

/* =============================================================
   18. Floating WhatsApp
   ============================================================= */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #25d366, #128c4f);
  box-shadow: 0 14px 30px -8px rgba(18,140,79,.6);
  transition: transform .4s var(--ease-bounce), box-shadow .4s;
}
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 18px 40px -8px rgba(18,140,79,.7); }
@media (min-width: 960px) { .wa-float { right: 1.6rem; bottom: 1.6rem; } }

/* =============================================================
   19. Reveal animation
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   20. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: linear-gradient(160deg, #ffffff, var(--bg-2));
  display: grid; place-items: center;
  transition: opacity .8s var(--ease-out), clip-path 1s var(--ease-soft);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.splash-logo { animation: splashPop .9s var(--ease-bounce) both; }
.splash-word { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; color: var(--ink); opacity: 0; animation: splashFade .6s .25s var(--ease-out) forwards; }
.splash-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(20,102,192,.15); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-bright), var(--accent)); animation: splashLoad 1.6s var(--ease-out) infinite; }
@keyframes splashPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes splashFade { to { opacity: 1; } }
@keyframes splashLoad { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* =============================================================
   21. Reduced motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-float] { animation: none; }
  .eyebrow .dot { animation: none; }
  .mesh::before { animation: none; }
  .marquee-track { animation: none !important; }
  .splash-bar i { animation: none; }
}
