/* =============================================================
   Dra. Claudia Montiel Herrera — Cirugía General y Laparoscópica
   Brand: azul #5C93DD · menta #97DDCC · celeste #A4CBF1 · blanco
   Type: Montserrat
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;
  --bg-2:      #f4f9fe;
  --bg-3:      #e8f2fc;
  --sky:       #a4cbf1;
  --sky-2:     #cfe3f7;

  --blue:      #5c93dd;   /* azul del logo */
  --blue-600:  #3b73c2;   /* azul para texto/botones (contraste AA con blanco) */
  --blue-700:  #2c5a9e;
  --navy:      #0e2242;

  --mint:        #97ddcc; /* menta del logo */
  --mint-bright: #81e0cc;
  --mint-deep:   #25957f; /* menta legible sobre blanco (texto grande) */
  --mint-soft:   rgba(151,221,204,.32);

  --ink:       #16294a;
  --ink-soft:  #3f5373;
  --ink-mute:  #5a6c84;
  --line:        rgba(22,41,74,.12);
  --line-strong: rgba(22,41,74,.22);
  --star:      #f2b63d;

  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", 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;
  --container: 1240px;
  --shadow-card: 0 24px 50px -30px rgba(44,90,158,.45);
}

@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%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  font-family: var(--sans);
  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; background: var(--bg-3); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; font-family: var(--sans); font-weight: 700; color: var(--ink); }

/* Palabra destacada: itálica en azul con marcador menta (como el "#AmaTuSalud") */
em {
  font-style: italic; font-weight: 800; color: var(--blue-600);
  background: linear-gradient(transparent 62%, var(--mint-soft) 62%, var(--mint-soft) 92%, transparent 92%);
  padding-inline: .06em;
}
::selection { background: var(--mint); color: var(--navy); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.1rem; background: var(--navy); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .85rem;
}
.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.4rem; }
@media (min-width: 720px) { .container { padding-inline: 2.4rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.4rem, 5vw, 3.8rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 1rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--mint-bright); border-radius: 2px; }
.section-head.is-center .kicker::before { display: none; }
.section-head.is-center .kicker { justify-content: center; }

.section-title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; }
.section-sub { color: var(--ink-soft); font-size: 1.02rem; margin-top: 1rem; max-width: 42ch; }
.section-head.is-center .section-sub { margin-inline: auto; }

.hairline { height: 1px; background: var(--line); border: 0; }

.hashtag { font-style: italic; font-weight: 800; font-size: 1.15rem; color: var(--blue-600); letter-spacing: -0.01em; }
.hashtag span { color: var(--mint-deep); }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 700; font-size: .93rem;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s, border-color .3s;
}
.btn-primary {
  background: var(--blue-600); color: #fff;
  box-shadow: 0 12px 28px -10px rgba(59,115,194,.7);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--blue-700); box-shadow: 0 20px 40px -12px rgba(44,90,158,.75); }
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-ghost { border: 1.5px solid var(--blue-600); color: var(--blue-600); background: rgba(255,255,255,.55); }
.btn-ghost:hover { background: var(--blue-600); color: #fff; transform: translateY(-3px); }
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { background: var(--mint-bright); transform: translateY(-3px); }
.btn-sm { padding: .7rem 1.3rem; font-size: .82rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  will-change: transform; transition: transform .8s var(--ease-soft);
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .76rem; color: var(--ink-soft); font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-bright); box-shadow: 0 0 0 3px var(--mint-soft); flex-shrink: 0; }

/* Cards with tilt + halo (SIGNATURE EFFECT) */
.card {
  position: relative; isolation: isolate;
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 1.8rem; box-shadow: var(--shadow-card);
  transition: border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s, .5s, .5s; }
.has-halo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--mint-soft), transparent 62%);
  opacity: 0; transition: opacity .4s;
}
.has-halo:hover::before { opacity: 1; }
.card:hover { border-color: var(--blue); box-shadow: 0 34px 60px -28px rgba(44,90,158,.55); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--mint-soft); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: 1.2rem;
  transform: translateZ(30px);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; transform: translateZ(20px); }
.card p { color: var(--ink-soft); font-size: .92rem; transform: translateZ(10px); }
.card-tag {
  display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mint-deep); margin-bottom: .7rem;
}

/* Nav */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(44,90,158,.4);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: .75rem; line-height: 1.1; }
.nav-brand img { width: 46px; height: auto; background: none; }
.nav-brand-text { display: flex; flex-direction: column; }
.nav-brand strong { font-size: .98rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.nav-brand span { font-size: .66rem; color: var(--ink-mute); letter-spacing: .04em; font-weight: 600; }
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: .3rem 0; font-size: .86rem; font-weight: 600; color: var(--ink-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--mint-bright); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-soft);
}
.nav-link:hover, .nav-link.is-active { color: var(--blue-600); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions .btn-primary { display: none; }
@media (min-width: 720px) { .nav-actions .btn-primary { display: inline-flex; } }

.nav-burger {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1.5px solid var(--line-strong); background: #fff;
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger-icon { position: relative; width: 18px; height: 12px; }
.nav-burger-icon span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease-soft), opacity .3s;
}
.nav-burger-icon span:nth-child(1) { top: 0; }
.nav-burger-icon span:nth-child(2) { top: 50%; margin-top: -1px; }
.nav-burger-icon span:nth-child(3) { bottom: 0; }
.nav.is-open .nav-burger-icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav-burger-icon span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger-icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: linear-gradient(170deg, #fff 0%, var(--sky-2) 100%); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.nav-mobile .btn { margin-top: 1rem; font-size: 1rem; }

/* Forms */
.field { position: relative; margin-bottom: 1.1rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 1.35rem 1rem .55rem; border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: #fff; color: var(--ink); font-family: inherit; font-size: 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field label {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; transition: all .25s var(--ease-out); color: var(--ink-mute); font-size: .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--mint-soft); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .85rem; transform: none; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}

.cta-form { transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form-submit { width: 100%; position: relative; }
.cta-form-spinner { position: absolute; inset: 0; display: none; place-items: center; }
.cta-form-submit.is-sending .cta-form-label { opacity: 0; }
.cta-form-submit.is-sending .cta-form-spinner { display: grid; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Accordion (FAQs) */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; text-align: left; font-size: 1.08rem; font-weight: 700; color: var(--ink);
}
.accordion-trigger:hover { color: var(--blue-600); }
.accordion-trigger .plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.accordion-trigger .plus::before, .accordion-trigger .plus::after {
  content: ""; position: absolute; background: var(--blue-600); border-radius: 2px;
}
.accordion-trigger .plus::before { left: 0; top: 50%; width: 100%; height: 2.5px; margin-top: -1.25px; }
.accordion-trigger .plus::after { top: 0; left: 50%; height: 100%; width: 2.5px; margin-left: -1.25px; transition: transform .35s var(--ease-soft); }
.accordion-item.is-open .accordion-trigger .plus::after { transform: rotate(90deg); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-soft); }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }
.accordion-panel p { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 62ch; }

/* Marquee */
.marquee { overflow: hidden; position: relative; margin-top: .6rem; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee-track { display: inline-flex; gap: 3.5rem; white-space: nowrap; will-change: transform; align-items: center; padding-right: 3.5rem; }
.marquee-track span { font-size: 1.15rem; font-weight: 700; color: var(--ink-mute); font-style: italic; letter-spacing: -0.01em; }

/* =============================================================
   6. Sections
   ============================================================= */

/* Splash */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: #fff;
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .9s, clip-path 1.1s;
  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: 1.4rem; }
.splash-mark img { width: 92px; height: auto; background: none; animation: splashPulse 1.8s var(--ease-soft) infinite; }
@keyframes splashPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.splash-line { width: 110px; height: 3px; background: var(--bg-3); position: relative; overflow: hidden; border-radius: 3px; }
.splash-line::after {
  content: ""; position: absolute; inset: 0; background: var(--mint-bright); border-radius: 3px;
  animation: splashLoad 1.6s var(--ease-soft) infinite;
}
@keyframes splashLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Hero (inicio) */
.hero {
  position: relative; overflow: clip;
  padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  background: linear-gradient(165deg, var(--bg-2) 0%, var(--sky-2) 55%, var(--sky) 100%);
}
.hero::before {
  content: ""; position: absolute; right: -160px; top: -140px; width: 560px; height: 560px; border-radius: 50%;
  background: var(--mint-soft); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -120px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%;
  background: rgba(92,147,221,.14); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .82fr; gap: 4rem; } }
.hero-inner { max-width: 40rem; }
.hero-badge-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.4rem; }
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; margin: .5rem 0 1.2rem; }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-foot {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-strong);
  display: flex; flex-wrap: wrap; gap: 1.8rem 2.4rem;
}
.hero-foot-item { display: flex; flex-direction: column; }
.hero-foot-item strong { font-size: 1.5rem; font-weight: 800; color: var(--blue-600); letter-spacing: -0.02em; }
.hero-foot-item span { font-size: .76rem; font-weight: 600; color: var(--ink-soft); max-width: 16ch; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 410px); }
.hero-figure {
  border-radius: 30px; overflow: hidden; aspect-ratio: 4/5; border: 6px solid #fff;
  box-shadow: 0 40px 80px -30px rgba(44,90,158,.6);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-chip {
  position: absolute; background: #fff; border-radius: 18px; padding: .85rem 1.1rem;
  box-shadow: 0 22px 44px -20px rgba(44,90,158,.55); display: flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; color: var(--ink);
}
.hero-chip strong { font-size: 1.35rem; font-weight: 800; color: var(--blue-600); line-height: 1; }
.hero-chip span { color: var(--ink-soft); font-weight: 600; max-width: 11ch; line-height: 1.25; }
.hero-chip-a { left: -1rem; bottom: 7.2rem; }
.hero-chip-b { right: -.6rem; top: 1.8rem; }
@media (min-width: 540px) { .hero-chip-a { left: -2rem; } .hero-chip-b { right: -1.6rem; } }
.hero-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-bright); box-shadow: 0 0 0 4px var(--mint-soft); }

/* Page hero (páginas internas) */
.page-hero {
  position: relative; overflow: clip;
  padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(165deg, var(--bg-2) 0%, var(--sky-2) 60%, var(--sky) 100%);
}
.page-hero::before {
  content: ""; position: absolute; right: -140px; top: -120px; width: 440px; height: 440px; border-radius: 50%;
  background: var(--mint-soft); pointer-events: none;
}
.page-hero-grid { position: relative; z-index: 1; display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 860px) { .page-hero-grid { grid-template-columns: 1.2fr .55fr; gap: 4rem; } }
.page-hero-inner { max-width: 42rem; }
.page-hero h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.page-hero p { color: var(--ink-soft); font-size: 1.04rem; max-width: 42ch; }
.page-hero-figure {
  justify-self: center; width: min(72%, 330px); aspect-ratio: 4/5; border-radius: 26px; overflow: hidden;
  border: 5px solid #fff; box-shadow: 0 34px 70px -28px rgba(44,90,158,.6);
}
.page-hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Stats */
.stats { padding-block: clamp(2.4rem, 5vw, 3.6rem); background: var(--bg-3); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-value { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--blue-600); letter-spacing: -0.03em; }
.stat-label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-top: .35rem; max-width: 18ch; margin-inline: auto; }

/* About teaser (split) */
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: .85fr 1fr; gap: 4.5rem; } }
.split-figure { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-card); }
.split-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 1.4s var(--ease-soft); }
.split-figure:hover img { transform: scale(1.05); }
.split-quote {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 1rem 1.2rem;
  font-style: italic; font-weight: 700; font-size: .92rem; color: var(--blue-700);
}
.split-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.split-text p.kicker { color: var(--blue-600); margin-bottom: 1rem; }
.split-text .section-title { margin-bottom: 1.3rem; }
.split-text p:last-of-type { margin-bottom: 1.6rem; }

/* Grid of cards */
.grid-cards { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

/* Banda de quirófano */
.band { position: relative; min-height: 560px; display: flex; align-items: flex-end; overflow: clip; color: #fff; }
.band-bg { position: absolute; inset: 0; z-index: -2; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,34,66,.1) 20%, rgba(14,34,66,.92) 88%);
}
@media (min-width: 860px) {
  .band::after { background: linear-gradient(90deg, rgba(14,34,66,.92) 0%, rgba(14,34,66,.62) 42%, rgba(14,34,66,.05) 78%); }
  .band { align-items: center; min-height: 600px; }
}
.band-inner { max-width: 30rem; padding-block: clamp(3rem, 7vw, 5rem); }
.band .kicker { color: var(--mint-bright); }
.band .kicker::before { background: var(--mint-bright); }
.band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.band h2 em { color: var(--mint-bright); background: none; }
.band p { color: rgba(255,255,255,.88); margin-bottom: 1.8rem; }
.band .btn-primary { background: #fff; color: var(--blue-700); box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.band .btn-primary:hover { background: var(--mint); color: var(--navy); }

/* Financing / insurers */
.finance-block {
  display: grid; gap: 2.2rem; align-items: center; padding: 2.4rem; border-radius: 28px;
  background: linear-gradient(135deg, var(--bg-3), var(--mint-soft)); border: 1px solid var(--line);
}
@media (min-width: 860px) { .finance-block { grid-template-columns: 1fr auto; padding: 3rem; } }
.finance-block h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: .7rem; }
.finance-block p { color: var(--ink-soft); max-width: 46ch; }
.finance-logo { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.finance-logo em { color: var(--mint-deep); background: none; font-style: normal; }

/* Testimonials */
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem; box-shadow: var(--shadow-card); }
.testi-stars { display: flex; gap: .25rem; color: var(--star); margin-bottom: 1rem; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-card p { font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: 1.1rem; line-height: 1.55; }
.testi-meta { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--ink-mute); font-weight: 600; }
.testi-meta strong { color: var(--blue-600); font-weight: 800; }

/* CTA con malla animada */
.cta-mesh {
  position: relative; isolation: isolate; overflow: clip; border-radius: 32px;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4rem); text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue) 100%);
}
.cta-mesh::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(50% 45% at var(--mesh-x) var(--mesh-y), rgba(151,221,204,.7), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(164,203,241,.28), rgba(151,221,204,.18), rgba(255,255,255,.12), rgba(164,203,241,.28));
  filter: blur(70px);
  opacity: .9;
  animation: meshShift 24s linear infinite;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 25%; --mesh-y: 35%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 75%; --mesh-y: 65%; }
  100% { --mesh-angle: 360deg; --mesh-x: 25%; --mesh-y: 35%; }
}
.cta-mesh h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 1rem; max-width: 26ch; margin-inline: auto; }
.cta-mesh p { color: rgba(255,255,255,.92); max-width: 42ch; margin: 0 auto 2rem; }
.cta-mesh .kicker { color: var(--mint-bright); }
.cta-mesh .kicker::before { background: var(--mint-bright); }
.cta-mesh .hero-actions { justify-content: center; }
.cta-mesh .btn-primary { background: #fff; color: var(--blue-700); box-shadow: 0 16px 34px -14px rgba(0,0,0,.45); }
.cta-mesh .btn-primary:hover { background: var(--mint); color: var(--navy); }
.cta-mesh .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.cta-mesh .btn-ghost:hover { background: #fff; color: var(--blue-700); }

/* Gallery strip */
.gallery-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 720px) { .gallery-strip { grid-template-columns: repeat(4, 1fr); } }
.gallery-strip figure { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; position: relative; box-shadow: var(--shadow-card); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 1.2s var(--ease-soft); }
.gallery-strip figure:hover img { transform: scale(1.07); }

/* Insurers pill list */
.insurer-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.insurer-pill { padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* Contact page */
.contact-grid { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact-info-item { display: flex; gap: 1rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.contact-info-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mint-soft); color: var(--blue-600); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: .92rem; font-weight: 800; margin-bottom: .2rem; }
.contact-info-item p, .contact-info-item a { color: var(--ink-soft); font-size: .92rem; display: block; }
.contact-info-item a:hover { color: var(--blue-600); }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-card); }

/* Footer */
.footer { padding-block: 3.5rem 2rem; background: var(--bg-3); }
.footer-grid { display: grid; gap: 2.4rem; margin-bottom: 2.4rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { width: 74px; height: auto; margin-bottom: .9rem; background: none; }
.footer-brand strong { font-size: 1.12rem; font-weight: 800; display: block; margin-bottom: .5rem; }
.footer-brand p { color: var(--ink-soft); font-size: .88rem; max-width: 32ch; }
.footer-col h5 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 800; margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; color: var(--ink-soft); font-weight: 600; margin-bottom: .6rem; }
.footer-col a:hover { color: var(--blue-600); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .76rem; color: var(--ink-mute); padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer .hairline { background: var(--line-strong); }

/* Cursor */
.cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; display: none; opacity: 0; transition: opacity .25s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--blue-600); border-radius: 50%; }
.cursor-ring { width: 32px; height: 32px; margin: -16px; border: 1.5px solid var(--blue); border-radius: 50%; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s; }
.cursor.is-interactive .cursor-ring { width: 50px; height: 50px; margin: -25px; background: var(--mint-soft); }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   7. Effects (reveal)
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   9. Reduced motion — solo lo realmente intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-mesh::before { animation: none; }
  .splash-line::after, .splash-mark img { animation: none; }
}

/* ---- Reserva en línea (widget Doctoralia) ---- */
.booking-card {
  max-width: 44rem;
  margin: 2.2rem auto 0;
  background: #fff;
  border-radius: 1.4rem;
  padding: 1.2rem;
  box-shadow: 0 18px 50px -24px rgba(44, 90, 158, .35);
  border: 1px solid var(--sky-2);
  min-height: 12rem;
}
.booking-card .zl-url { font-weight: 600; color: var(--blue-600); }
/* El widget de Doctoralia calcula su propia altura y puede crecer sin límite: se fija. */
.booking-card iframe { display: block; width: 100% !important; height: 760px !important; max-height: 760px !important; }
@media (max-width: 520px) { .booking-card { padding: .6rem; } }
