/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --blue: #18B5F4;
  --blue-deep: #1F246D;
  --blue-light: #5AD6FF;
  --bg: #F7FBFD;
  --gray: #5C6470;
  --white: #FFFFFF;
  --ink: #101325;

  --font-display: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 84px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --container: 1280px;
  --shadow-card: 0 20px 50px -20px rgba(31, 36, 109, 0.18);
  --shadow-soft: 0 10px 30px -12px rgba(31, 36, 109, 0.12);
}

/* =============================================================
   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(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  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; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; color: var(--blue-deep); }
::selection { background: var(--blue-light); color: var(--blue-deep); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--white); color: var(--blue-deep);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.section { padding-block: 5rem; position: relative; }
.section-bg-alt { background: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blue); display: inline-block; }
.section-head { max-width: 56ch; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--gray); font-size: 1.05rem; margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.7rem; border-radius: 999px; font-family: var(--font-display);
  font-weight: 700; font-size: .95rem; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 14px 30px -10px rgba(24,181,244,.55); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -10px rgba(24,181,244,.6); }
.btn-secondary { background: var(--white); color: var(--blue-deep); border: 1.5px solid rgba(31,36,109,.15); }
.btn-secondary:hover { transform: translateY(-3px); border-color: var(--blue); }
.btn-ghost { color: var(--blue-light); border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* =============================================================
   4. Navigation
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247,251,253,.7); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(31,36,109,.06);
  transition: background .3s, box-shadow .3s;
}
@supports not (backdrop-filter: blur(1px)) { .nav { background: rgba(247,251,253,.96); } }
.nav.is-scrolled { box-shadow: var(--shadow-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 800; color: var(--blue-deep); font-size: 1.05rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 8px 18px -6px rgba(24,181,244,.5);
}
.brand-text-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; color: var(--gray); letter-spacing: .04em; }
.brand-logo { height: 34px; width: auto; display: block; }
@media (min-width: 960px) { .brand-logo { height: 38px; } }
.footer-logo-badge { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: .6rem 1rem; margin-bottom: 1rem; }
.footer-logo { height: 28px; width: auto; display: block; }

.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a { font-weight: 600; font-size: .92rem; color: var(--blue-deep); position: relative; padding-block: .3rem; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); transition: width .3s var(--ease-out); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: .9rem; }

.nav-burger { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--blue-deep); position: relative; transition: transform .3s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--blue-deep); transition: transform .3s, top .3s; }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }
.nav-burger.is-open span { background: transparent; }
.nav-burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; background: var(--white); z-index: 480;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  overflow-y: auto;
}
.nav-mobile.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile-inner { padding: 2rem 1.5rem 3rem; display: flex; flex-direction: column; gap: .4rem; }
.nav-mobile a { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; padding: .8rem 0; border-bottom: 1px solid rgba(31,36,109,.08); color: var(--blue-deep); }
.nav-mobile .btn { margin-top: 1.4rem; width: 100%; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }
  .nav-mobile { display: none; }
}

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; padding-top: var(--nav-h);
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: linear-gradient(160deg, #0c1240, #142b73 45%, #0c3a66); }
.hero-media video, .hero-media .hero-fallback-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,16,55,.78) 0%, rgba(15,30,80,.62) 45%, rgba(8,12,40,.88) 100%);
}
.hero-placeholder-badge {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; backdrop-filter: blur(6px);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding-block: 3.5rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--blue-light); font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 0 4px rgba(90,214,255,.25); }
.hero-title { font-size: clamp(2.2rem, 6vw, 3.8rem); color: #fff; max-width: 20ch; }
.hero-sub { color: rgba(255,255,255,.86); font-size: 1.15rem; margin-top: 1.4rem; max-width: 50ch; }
.hero-region { color: var(--blue-light); font-weight: 600; margin-top: .6rem; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-scroll .line { width: 1.5px; height: 30px; background: linear-gradient(180deg, rgba(255,255,255,.9), transparent); animation: scrollPulse 2.2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* =============================================================
   6. Confianza / stats
   ============================================================= */
.stats { background: var(--blue-deep); padding-block: 3.2rem; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: -60% -10% -50% -10%; background: radial-gradient(45% 35% at 30% 40%, rgba(90,214,255,.25), transparent 70%); filter: blur(60px); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; position: relative; z-index: 1; }
.stat-item { text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.8rem); color: #fff; }
.stat-label { color: rgba(255,255,255,.72); font-size: .85rem; margin-top: .35rem; font-weight: 500; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   7. Cards / Services
   ============================================================= */
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card-service {
  background: var(--white); border-radius: var(--radius-lg); padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-card); border: 1px solid rgba(31,36,109,.05);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  display: flex; flex-direction: column; gap: 1rem; height: 100%;
}
.card-service:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -22px rgba(31,36,109,.28); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--blue), var(--blue-light)); color: #fff;
}
.card-icon svg { width: 28px; height: 28px; }
.card-service h3 { font-size: 1.2rem; }
.card-service p { color: var(--gray); font-size: .95rem; flex: 1; }
.card-link { color: var(--blue); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; }
.card-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.card-service:hover .card-link svg { transform: translateX(4px); }

/* =============================================================
   8. Tecnología médica
   ============================================================= */
.tech-section { background: linear-gradient(165deg, #0c1240, #122a6e 55%, #0e3a63); color: #fff; border-radius: 0; position: relative; overflow: hidden; }
.tech-section::before { content: ""; position: absolute; inset: -50% -10% -40% -10%; background: radial-gradient(40% 30% at 70% 20%, rgba(90,214,255,.3), transparent 70%); filter: blur(90px); pointer-events: none; }
.tech-section .section-head h2, .tech-section .eyebrow { color: #fff; }
.tech-section .eyebrow { color: var(--blue-light); }
.tech-section .eyebrow::before { background: var(--blue-light); }
.tech-section .section-head p { color: rgba(255,255,255,.78); }
.tech-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; position: relative; z-index: 1; }
@media (min-width: 720px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
.card-tech {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md);
  padding: 1.8rem; backdrop-filter: blur(10px);
  transition: transform .35s var(--ease-out), background .35s;
}
.card-tech:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.card-tech .placeholder-frame { aspect-ratio: 4/3; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.card-tech .photo-frame { aspect-ratio: 4/3; border-radius: var(--radius-sm); margin-bottom: 1.2rem; }
.card-tech h3 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.card-tech p { color: rgba(255,255,255,.7); font-size: .88rem; }
.card-tech a { display: inline-flex; gap: .4rem; align-items: center; color: var(--blue-light); font-weight: 700; font-size: .85rem; margin-top: .9rem; }

/* Photo placeholder blocks — clearly marked, swap later */
.placeholder-frame {
  position: relative; width: 100%; border-radius: var(--radius-md); overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(24,181,244,.12) 0 18px, rgba(31,36,109,.08) 18px 36px);
  display: flex; align-items: center; justify-content: center; min-height: 160px;
  border: 1.5px dashed rgba(31,36,109,.25);
}
.placeholder-frame .ph-label {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--blue-deep);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; text-align: center; padding: 1rem;
  background: rgba(255,255,255,.78); border-radius: var(--radius-sm); backdrop-filter: blur(4px);
}
.placeholder-frame .ph-label svg { width: 26px; height: 26px; color: var(--blue); }
.placeholder-frame.on-dark { border-color: rgba(255,255,255,.25); background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 18px, rgba(255,255,255,.03) 18px 36px); }
.placeholder-frame.on-dark .ph-label { background: rgba(15,22,60,.7); color: #fff; }
.placeholder-frame.on-dark .ph-label svg { color: var(--blue-light); }

/* =============================================================
   9. Especialistas (agenda style)
   ============================================================= */
.specialist-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .specialist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .specialist-grid { grid-template-columns: repeat(3, 1fr); } }
.card-specialist { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(31,36,109,.06); display: flex; flex-direction: column; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.card-specialist:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card-specialist .placeholder-frame { aspect-ratio: 4/3; border-radius: 0; min-height: 0; }
.card-specialist-body { padding: 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-specialist-body h3 { font-size: 1.15rem; }
.card-specialist-tag { color: var(--blue); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.card-specialist-body p { color: var(--gray); font-size: .92rem; flex: 1; }

/* =============================================================
   10. Región / mapa
   ============================================================= */
.region-wrap { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .region-wrap { grid-template-columns: 1fr 1fr; } }
.region-map { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, #e9f7fe, #d9f0fc); border: 1.5px dashed rgba(24,181,244,.35); }
.region-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.region-map-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.region-chips { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.region-chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; padding: .45rem 1rem; border-radius: 999px; font-weight: 700; font-family: var(--font-display); font-size: .82rem; color: var(--blue-deep); box-shadow: var(--shadow-soft); }
.region-chip .dotmark { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(24,181,244,.22); }

.photo-frame { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-credit { position: absolute; bottom: .5rem; right: .6rem; font-size: .62rem; color: rgba(255,255,255,.75); background: rgba(15,22,60,.55); padding: .15rem .5rem; border-radius: 999px; backdrop-filter: blur(4px); }
.region-pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.region-pin .dotmark { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(24,181,244,.22); }
.region-pin span.city { font-weight: 700; font-family: var(--font-display); font-size: .82rem; color: var(--blue-deep); background: #fff; padding: .2rem .6rem; border-radius: 999px; box-shadow: var(--shadow-soft); }
.region-pin.p1 { top: 30%; left: 38%; }
.region-pin.p2 { top: 52%; left: 55%; }
.region-pin.p3 { top: 70%; left: 25%; }
.region-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.6rem; }
.region-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--gray); font-size: .95rem; }
.region-list svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: .1rem; }

/* =============================================================
   11. Testimonios
   ============================================================= */
.testi-track { display: flex; gap: 1.4rem; overflow-x: auto; overflow-y: visible; padding: .5rem .2rem 1.6rem; scroll-snap-type: x mandatory; }
.testi-card { scroll-snap-align: start; flex: 0 0 min(340px, 86vw); background: #fff; border-radius: var(--radius-md); padding: 1.8rem; box-shadow: var(--shadow-soft); border: 1px solid rgba(31,36,109,.06); }
.testi-stars { color: var(--blue); display: flex; gap: .2rem; margin-bottom: .9rem; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-card p { color: var(--ink); font-size: .98rem; }
.testi-name { margin-top: 1rem; font-weight: 700; font-family: var(--font-display); color: var(--blue-deep); font-size: .88rem; }

/* =============================================================
   12. Blog
   ============================================================= */
.blog-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.card-blog { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(31,36,109,.06); transition: transform .35s var(--ease-out); }
.card-blog:hover { transform: translateY(-6px); }
.card-blog .placeholder-frame { aspect-ratio: 16/10; border-radius: 0; min-height: 0; }
.card-blog-body { padding: 1.4rem 1.5rem 1.7rem; }
.card-blog-cat { color: var(--blue); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.card-blog-body h3 { font-size: 1.05rem; margin: .5rem 0 .6rem; }
.card-blog-body p { color: var(--gray); font-size: .9rem; }

/* =============================================================
   13. CTA final
   ============================================================= */
.cta-final { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); border-radius: var(--radius-lg); padding: 3.5rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content:""; position: absolute; inset: -60% -10% -50% -10%; background: radial-gradient(40% 40% at 80% 20%, rgba(255,255,255,.25), transparent 70%); pointer-events: none; }
.cta-final h2 { color: #fff; max-width: 26ch; margin-inline: auto; position: relative; z-index: 1; }
.cta-final .btn { position: relative; z-index: 1; margin-top: 1.8rem; }
.cta-final .btn-primary { background: #fff; color: var(--blue-deep); box-shadow: 0 14px 30px -10px rgba(0,0,0,.25); }

/* =============================================================
   14. Footer
   ============================================================= */
.footer { background: var(--blue-deep); color: rgba(255,255,255,.78); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer ul { display: flex; flex-direction: column; gap: .6rem; }
.footer a { font-size: .9rem; transition: color .25s; }
.footer a:hover { color: var(--blue-light); }
.footer .brand { color: #fff; margin-bottom: .9rem; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 18px; height: 18px; }

/* =============================================================
   15. Floating WhatsApp + Call
   ============================================================= */
.float-actions { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 600; display: flex; flex-direction: column; gap: .8rem; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -8px rgba(0,0,0,.35); transition: transform .3s var(--ease-out); }
.float-btn:hover { transform: scale(1.08); }
.float-btn.whatsapp { background: #25D366; color: #fff; }
.float-btn.call { background: var(--blue-deep); color: #fff; }
.float-btn svg { width: 26px; height: 26px; }

/* =============================================================
   16. Generic page hero (subpages)
   ============================================================= */
.page-hero { padding-top: calc(var(--nav-h) + 3.5rem); padding-bottom: 3.5rem; background: linear-gradient(160deg, #0c1240, #122a6e 60%, #0e3a63); color: #fff; position: relative; overflow: hidden; }
.page-hero::before { content:""; position: absolute; inset: -50% -10% -40% -10%; background: radial-gradient(40% 30% at 80% 10%, rgba(90,214,255,.3), transparent 70%); filter: blur(90px); pointer-events: none; }
.page-hero .breadcrumbs { position: relative; z-index: 1; display: flex; gap: .5rem; font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 1.2rem; flex-wrap: wrap; }
.page-hero .breadcrumbs a:hover { color: var(--blue-light); }
.page-hero h1 { position: relative; z-index: 1; color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); max-width: 26ch; }
.page-hero p { position: relative; z-index: 1; color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 56ch; margin-top: 1rem; }
.page-hero .hero-actions { position: relative; z-index: 1; margin-top: 1.8rem; }

/* =============================================================
   17. Content blocks (service detail pages)
   ============================================================= */
.split { display: grid; gap: 2.4rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.split.reverse > :first-child { order: 2; }
.prose h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; }
.prose p { color: var(--gray); margin-bottom: 1rem; }
.prose ul { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.prose ul li { display: flex; gap: .6rem; align-items: flex-start; color: var(--gray); }
.prose ul li svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: .15rem; }

.benefit-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 720px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit-item { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--radius-sm); padding: 1.2rem; box-shadow: var(--shadow-soft); }
.benefit-item svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; }
.benefit-item h4 { font-size: .98rem; color: var(--blue-deep); margin-bottom: .3rem; }
.benefit-item p { font-size: .87rem; color: var(--gray); margin: 0; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: .9rem; max-width: 760px; margin-inline: auto; }
.faq-item { background: #fff; border-radius: var(--radius-sm); border: 1px solid rgba(31,36,109,.08); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; text-align: left; font-family: var(--font-display); font-weight: 700; color: var(--blue-deep); font-size: .98rem; }
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .3s var(--ease-out); color: var(--blue); }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease-out); }
.faq-a-inner { padding: 0 1.4rem 1.2rem; color: var(--gray); font-size: .92rem; }

/* Packages grid (laboratorio) */
.package-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .package-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .package-grid { grid-template-columns: repeat(4, 1fr); } }
.package-card { background: #fff; border-radius: var(--radius-md); padding: 1.6rem; box-shadow: var(--shadow-soft); border-top: 4px solid var(--blue); }
.package-card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.package-card p { color: var(--gray); font-size: .88rem; }

/* Belice page */
.belice-steps { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .belice-steps { grid-template-columns: repeat(3, 1fr); } }
.belice-step { background: #fff; border-radius: var(--radius-md); padding: 1.8rem; box-shadow: var(--shadow-soft); position: relative; }
.belice-step .num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--blue-light); -webkit-text-stroke: 1.5px var(--blue-deep); margin-bottom: .6rem; }

/* Contact page */
.contact-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-card); }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.contact-info-item svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; }
.contact-info-item h4 { font-size: .95rem; color: var(--blue-deep); margin-bottom: .2rem; }
.contact-info-item p { color: var(--gray); font-size: .9rem; margin: 0; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: .85rem; font-weight: 600; color: var(--blue-deep); margin-bottom: .4rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid rgba(31,36,109,.14);
  font: inherit; background: var(--bg); transition: border-color .25s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); outline: none; }
.form-field textarea { min-height: 110px; resize: vertical; }

/* =============================================================
   18. Reveal animations
   ============================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll .line { animation: none; }
}
