/* ==========================================================================
   Dr. Steve Henríquez — Cirugía bariátrica y metabólica
   Identidad: azul marino + dorado (logotipo original)
   ========================================================================== */

:root {
  --navy-950: #0B1A30;
  --navy-900: #10243F;
  --navy: #1B365D;
  --navy-600: #2A4D7E;
  --navy-100: #E6ECF4;
  --navy-50: #F2F5FA;

  --gold: #B19540;
  --gold-600: #96792A;
  --gold-text: #806721;      /* dorado legible sobre fondos claros (AA) */
  --gold-200: #E6D7A6;
  --gold-100: #F4EDD7;
  --gold-50: #FBF8EF;

  --ink: #18263A;
  --text: #34445A;
  --muted: #5E6E83;
  --line: #E1E7EF;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 36, 63, .06), 0 2px 8px rgba(16, 36, 63, .05);
  --shadow: 0 10px 30px -12px rgba(16, 36, 63, .18), 0 2px 6px rgba(16, 36, 63, .05);
  --shadow-lg: 0 30px 60px -24px rgba(16, 36, 63, .28);

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; font-variation-settings: "opsz" 120; }
h1 em, h2 em { font-style: italic; color: var(--gold-text); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
abbr[title] { text-decoration: none; }
.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 1.1rem;
}
.eyebrow-dot {
  flex: none; width: 22px; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 5px, transparent 5px 8px);
}
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1rem; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.note {
  display: flex; gap: .6em; align-items: flex-start;
  font-size: .9rem; color: var(--muted); margin-top: 28px; max-width: 820px;
}
.note .ic { color: var(--gold-600); margin-top: .2em; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.4em;
  font: 600 .98rem/1.1 var(--font-body); letter-spacing: .005em;
  color: var(--fg); background: var(--bg);
  border: 1.5px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 8px 20px -8px rgba(27, 54, 93, .55); }
.btn-primary:hover { --bg: var(--navy-900); box-shadow: 0 12px 26px -10px rgba(27, 54, 93, .6); }
.btn-ghost { --bg: transparent; --fg: var(--navy); border-color: rgba(27, 54, 93, .22); }
.btn-ghost:hover { --bg: var(--navy); --fg: #fff; border-color: var(--navy); }
/* Botón de Bariatric Shop: secundario, con borde dorado suave e icono de bolsa */
.btn-shop { --bg: #fff; --fg: var(--navy); border-color: var(--gold-200); box-shadow: var(--shadow-sm); }
.btn-shop .ic-bag { color: var(--gold-600); transition: transform .3s var(--ease); }
.btn-shop:hover { --bg: var(--gold-50); border-color: var(--gold); box-shadow: 0 10px 22px -12px rgba(150, 121, 42, .55); }
.btn-shop:hover .ic-bag { transform: translateY(-1px) rotate(-6deg); }
.btn-shop .ic-ext { width: .95em; height: .95em; opacity: .55; }
.btn-gold { --bg: var(--gold); --fg: var(--navy-950); box-shadow: 0 10px 24px -10px rgba(177, 149, 64, .7); }
.btn-gold:hover { --bg: #C6AA55; }
.btn-soft { --bg: var(--navy-50); --fg: var(--navy); }
.btn-soft:hover { --bg: var(--navy); --fg: #fff; }
.btn-lg { min-height: 54px; padding: .95em 1.65em; font-size: 1.02rem; }
.btn-sm { min-height: 42px; padding: .6em 1.1em; font-size: .9rem; }
.btn .ic { width: 1.2em; height: 1.2em; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 700; font-size: .95rem; color: var(--navy); text-decoration: none;
}
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic, .btn:hover .ic-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: height .35s var(--ease);
}
/* El fondo translúcido va en un pseudo-elemento: un backdrop-filter en el propio
   header convertiría al menú móvil (position: fixed) en hijo recortado del header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(16, 36, 63, .35);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled { --header-h: 66px; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header .container { max-width: 1440px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.header-shop, .header-cta { flex: none; }
.header-shop { min-height: 46px; padding: .7em .95em; }
.header-cta { padding: .75em 1.1em; }
.header-shop .hs-short { display: none; }
.header-shop .ic-bag { width: 1.25em; height: 1.25em; }
.brand { flex: none; display: block; }
.brand img { height: 50px; width: auto; transition: height .35s var(--ease); }
.is-scrolled .brand img { height: 44px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  position: relative; display: block; padding: .55em .55em;
  font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: 8px;
  white-space: nowrap;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: .55em; right: .55em; bottom: .3em; height: 2px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.main-nav ul a.is-active { color: var(--navy); }
.main-nav .nav-mobile-actions, .main-nav .nav-mobile-meta { display: none; }
.header-cta { flex: none; }
.nav-toggle { display: none; }

@media (max-width: 1400px) {
  .main-nav ul a { font-size: .88rem; padding: .55em .5em; }
  .main-nav ul a::after { left: .5em; right: .5em; }
}

@media (max-width: 1365px) {
  .header-cta { display: none; }
  .header-inner { gap: 10px; }
  .header-shop { margin-left: auto; position: relative; z-index: 2; }
  body.nav-open .header-shop { visibility: hidden; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 0 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
    box-shadow: var(--shadow-sm); position: relative; z-index: 2;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .35s var(--ease), opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 28px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: rgba(255, 255, 255, .98);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s;
    overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a {
    font-family: var(--font-display); font-size: clamp(1.6rem, 6.5vw, 2rem); font-weight: 500;
    padding: .3em 0; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .main-nav ul a::after { display: none; }
  .main-nav.is-open li { animation: navIn .5s var(--ease) both; }
  .main-nav.is-open li:nth-child(2) { animation-delay: .04s; }
  .main-nav.is-open li:nth-child(3) { animation-delay: .08s; }
  .main-nav.is-open li:nth-child(4) { animation-delay: .12s; }
  .main-nav.is-open li:nth-child(5) { animation-delay: .16s; }
  .main-nav.is-open li:nth-child(6) { animation-delay: .2s; }
  .main-nav.is-open li:nth-child(7) { animation-delay: .24s; }
  .main-nav .nav-mobile-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .main-nav .nav-cta-mobile { display: inline-flex; color: #fff; padding: .8em 1.4em; border-radius: 999px; }
  .main-nav .nav-shop-mobile { display: inline-flex; color: var(--navy); padding: .8em 1.4em; border-radius: 999px; font-size: .98rem; }
  .main-nav .nav-mobile-meta { display: block; font-size: .9rem; color: var(--muted); }
  .main-nav .nav-mobile-meta a { display: inline; padding: 0; font-size: inherit; color: var(--navy); font-weight: 700; }
  .brand { position: relative; z-index: 2; }
  .brand img { height: 42px; }
  body.nav-open { overflow: hidden; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 72px));
  padding-bottom: clamp(110px, 12vw, 150px);
  background: linear-gradient(180deg, var(--navy-50) 0%, #FBFCFE 70%, #fff 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 78% 40%, rgba(177, 149, 64, .14), transparent 38%),
    radial-gradient(circle at 10% 0%, rgba(42, 77, 126, .10), transparent 40%),
    linear-gradient(rgba(27, 54, 93, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 54, 93, .045) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02; letter-spacing: -.025em; margin-bottom: 1.4rem;
}
.hero h1 em { display: block; }
.hero-lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); max-width: 34em; color: var(--text); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.hero-meta { flex-direction: column; gap: 10px; }
.hero-meta li { display: inline-flex; align-items: flex-start; gap: .55em; line-height: 1.45; }
.hero-meta li .ic { margin-top: .15em; }
.hero-meta strong { color: var(--ink); font-weight: 700; }
.nowrap { white-space: nowrap; }
.hero-meta .ic { color: var(--gold-600); }

.hero-visual { position: relative; max-width: 560px; width: 100%; justify-self: end; }
.hero-portrait { position: relative; aspect-ratio: 1 / 1; }
.hero-ring { position: absolute; inset: -4%; width: 108%; height: 108%; animation: spinSlow 60s linear infinite; }
.hero-photo {
  position: absolute; inset: 7%;
  border-radius: 50%; overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(27, 54, 93, .06);
}
/* La foto se desplaza hacia abajo y se reduce ligeramente: la cabeza queda completa dentro del círculo */
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: translateY(7%) scale(.93); transform-origin: 50% 0; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; max-width: 270px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px;
  box-shadow: var(--shadow); font-size: .82rem; line-height: 1.3;
  animation: floatY 7s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: .88rem; }
.float-card small { color: var(--muted); font-size: .76rem; }
/* Tarjetas del hero: premio (años 2024-2026 en una sola tarjeta) abajo a la izquierda y certificación MINSA a la derecha.
   En móvil pasan debajo del retrato. */
.hero-cards { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.hero-cards .float-card {
  pointer-events: auto; padding: 16px 22px 16px 16px; gap: 16px;
  animation: fcIn .7s cubic-bezier(.2, .7, .2, 1) both, floatY 7s ease-in-out .7s infinite;
}
.hero-cards .fc-icon { width: 48px; height: 48px; }
.fc-text { display: flex; flex-direction: column; min-width: 0; }
.hero-cards .float-card strong { font-size: .95rem; line-height: 1.35; }
.hero-cards .float-card small { font-size: .8rem; line-height: 1.4; }
.fc-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 7px; }
.fc-year { padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--gold-text); background: var(--gold-100); }
.fc-minsa small { margin-top: 3px; }
.fc-award { left: -8%; bottom: 7%; max-width: 300px; animation-delay: .15s, .85s; }
.fc-minsa { right: -9%; top: 53%; max-width: 300px; animation-delay: .35s, -3.5s; }
@media (max-width: 1279px) {
  .hero-cards .float-card { max-width: 250px; padding: 12px 16px 12px 12px; gap: 12px; }
  .hero-cards .fc-icon { width: 40px; height: 40px; }
  .fc-award { left: -5%; bottom: 2%; }
  .fc-minsa { right: -3%; top: 47%; }
}
@media (max-width: 1140px) {
  /* Retrato más estrecho: las dos tarjetas se apilan debajo, con el mismo contenido */
  .hero-cards { position: static; display: grid; gap: 12px; margin-top: 22px; }
  .hero-cards .float-card { position: static; max-width: none; padding: 16px 22px 16px 16px; animation: fcIn .7s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes fcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fc-icon {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: var(--gold-100); color: var(--gold-600);
}
.fc-icon-navy { background: var(--navy); color: #fff; }
.fc-icon .ic { width: 22px; height: 22px; }
.fc-badge {
  position: absolute; left: 4%; top: 6%; width: 84px; height: 84px; padding: 10px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow);
}
.hero-signature {
  margin-top: clamp(32px, 5vw, 56px);
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--muted);
  display: flex; align-items: center; gap: 14px;
}
.hero-signature::before { content: ""; width: 40px; height: 1px; background: var(--gold); }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---------- Confianza ---------- */
.trust { position: relative; z-index: 2; margin-top: clamp(-88px, -8vw, -64px); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.trust-card { padding: 28px 26px; position: relative; transition: background-color .3s; }
.trust-card + .trust-card::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line);
}
.trust-card:hover { background: var(--gold-50); }
.trust-icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px;
  border-radius: 12px; background: var(--navy-50); color: var(--navy);
}
.trust-icon .ic { width: 22px; height: 22px; }
.trust-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: .3rem; letter-spacing: -.005em; }
.trust-card p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
/* Años del premio a la Excelencia Empresarial en la tarjeta de confianza */
.trust-card .trust-years { margin: .2rem 0 .5rem; line-height: 1.3; }

/* ---------- Perfil ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.profile-media { margin: 0; position: relative; }
.profile-frame { position: relative; border-radius: var(--radius-lg); }
.profile-frame::before {
  content: ""; position: absolute; inset: 0; transform: translate(18px, 18px);
  border: 1.5px solid var(--gold); border-radius: var(--radius-lg); z-index: -1;
}
.profile-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
/* Fotografía circular complementaria (premios 2024 y 2025) superpuesta en la esquina superior derecha */
.profile-inset {
  position: absolute; z-index: 2; top: -38px; right: -46px;
  width: clamp(150px, 44%, 214px); aspect-ratio: 1; height: auto; object-fit: cover; object-position: 50% 40%;
  border-radius: 50%; border: 4px solid #fff;
  box-shadow: 0 0 0 1.5px var(--gold), 0 18px 34px -16px rgba(16, 36, 63, .55);
}
.profile-media figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px; width: fit-content;
  display: inline-flex; align-items: center; gap: .5em;
  padding: 10px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: #fff;
  background: rgba(16, 36, 63, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.profile-media figcaption .ic { color: var(--gold-200); }
.profile-copy h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: .4rem; }
.profile-role { font-weight: 600; color: var(--navy); margin-bottom: 1.6rem; }
.story-lead { position: relative; padding-left: 22px; margin-bottom: 1.8rem; border-left: 2px solid var(--gold); }
.story-lead p { font-family: var(--font-display); font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.story-lead strong { font-weight: 500; color: var(--navy); }
.story-label, .chapter-num {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text);
}
.story-label { margin-bottom: .5rem; }
.credentials, .recognitions { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cred-title { display: flex; align-items: center; gap: .55em; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 1rem; }
.cred-title .ic { color: var(--gold-600); }
.cred-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.cred-list li { padding-left: 14px; border-left: 2px solid var(--navy-100); line-height: 1.35; }
.cred-kind { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.cred-list strong { display: block; color: var(--ink); font-size: .98rem; }
.cred-list small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }

.story { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 7vw, 80px); position: relative; }
.story::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); opacity: .7;
}
.chapter { padding-top: 26px; position: relative; }
.chapter::before { content: ""; position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.chapter-num { margin-bottom: .6rem; }
.chapter h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: .6rem; }
.chapter p { font-size: .96rem; color: var(--text); line-height: 1.65; }
.chapter strong { color: var(--ink); }

.meet {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  margin-top: clamp(56px, 8vw, 96px); padding: clamp(28px, 5vw, 64px);
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: 32px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(177, 149, 64, .10), transparent 55%), linear-gradient(160deg, var(--navy-50), #fff 65%);
}
/* Anillo decorativo dorado detrás del video */
.meet::before {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%;
  border: 1.5px solid rgba(177, 149, 64, .35); box-shadow: 0 0 0 46px rgba(27, 54, 93, .03);
}
.meet h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.12; margin: .7rem 0 1.1rem; }
.meet h2 em { display: block; }
.meet-lead { font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--text); max-width: 34em; margin-bottom: 1.8rem; }
.meet-lead p + p { margin-top: .85em; }
.meet-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meet-media { justify-self: center; width: min(100%, 320px); }
.meet-frame { position: relative; padding: 10px; border-radius: 42px; background: #fff; box-shadow: var(--shadow-lg); }
.meet-frame::before {
  content: ""; position: absolute; inset: -16px; z-index: -1; border-radius: 54px;
  border: 1.5px dashed rgba(177, 149, 64, .6);
}
.meet .ba-player-vertical { border-radius: 32px; }
/* Pulso discreto del botón de reproducción mientras el video no se reproduce */
.meet .ba-play-btn { position: relative; }
.meet .ba-player:not(.is-playing) .ba-play-btn::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75);
  animation: meetPulse 2.6s ease-out infinite;
}
@keyframes meetPulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .meet .ba-player:not(.is-playing) .ba-play-btn::after { animation: none; display: none; } }
@media (max-width: 960px) {
  .meet { grid-template-columns: 1fr; }
  .meet-media { width: min(100%, 300px); }
}
@media (max-width: 640px) {
  .meet { padding: 26px 20px 36px; border-radius: 24px; }
  .meet-actions .btn { flex: 1 1 100%; }
}

.profile-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 7vw, 72px); align-items: start; }
.signature { margin: 0 0 1.2rem; }
.signature p { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--navy); margin-bottom: .3rem; }
.signature cite { font-style: normal; font-size: .9rem; font-weight: 600; color: var(--gold-text); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.milestones { display: grid; gap: 12px; }
.milestones li {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
  background: var(--bg-soft); border-radius: var(--radius); font-size: .95rem; line-height: 1.5;
  transition: transform .3s var(--ease), background-color .3s;
}
.milestones li:hover { transform: translateX(4px); background: var(--gold-50); }
.milestones strong { color: var(--ink); }
.ms-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--gold-600); box-shadow: var(--shadow-sm); }

.mv { margin-bottom: 1.6rem; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mv-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--navy-50); border-radius: 12px; margin: 8px 8px 0; }
.mv-tabs button {
  font: 700 .85rem var(--font-body); letter-spacing: .04em;
  padding: .55em 1.1em; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.mv-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.mv-panel { padding: 14px 18px 16px; font-family: var(--font-display); font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.mv-panel:not([hidden]) { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Especialidades ---------- */
.services { background: var(--bg-soft); }
.services .section-head { max-width: 760px; }
.service-grid {
  display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 24px;
}
.service-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.sc-media { overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy-50); }
.sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .sc-media img { transform: scale(1.05); }
.sc-media-contain { background: #fff; }
/* Retrato vertical en la tarjeta de cirugía bariátrica: encuadre desde la cabeza */
.sc-media-portrait { background: #EEF0F4; }
.sc-media-portrait img { object-position: 50% 12%; }
.sc-media-contain img { object-fit: cover; object-position: 50% 30%; }
.sc-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.sc-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.55rem; letter-spacing: -.01em; }
.sc-body p { color: var(--muted); font-size: .98rem; }
.sc-actions { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .45em .9em; border-radius: 999px; background: var(--gold-100); color: var(--gold-text);
}
.sc-feature { grid-row: span 2; background: var(--navy); border-color: var(--navy); }
.sc-feature .sc-media { aspect-ratio: auto; flex: 1 1 320px; min-height: 300px; }
.sc-feature .sc-body { flex: 0 0 auto; }
.sc-feature h3 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.sc-feature p { color: rgba(255, 255, 255, .78); }
.sc-feature .sc-tag { background: rgba(177, 149, 64, .2); color: var(--gold-200); }
.sc-feature .link-arrow { color: #fff; }
.sc-feature .btn-soft { --bg: var(--gold); --fg: var(--navy-950); }
.sc-feature .btn-soft:hover { --bg: #C6AA55; }
.service-card:not(.sc-feature) { display: grid; grid-template-columns: 42% 1fr; }
.service-card:not(.sc-feature) .sc-media { aspect-ratio: auto; height: 100%; }

/* Procedimientos */
.procedures { margin-top: clamp(64px, 9vw, 112px); }
.proc-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 32px; }
.proc-intro h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.proc-intro p { color: var(--muted); }
.proc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.proc-card {
  position: relative; padding: 28px; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.proc-card::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-200)); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.proc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proc-card:hover::after { transform: scaleX(1); }
.proc-art { display: block; width: 100%; height: 150px; padding: 16px; object-fit: contain; margin-bottom: 22px; border-radius: 20px; background: radial-gradient(circle at 50% 120%, var(--gold-100), transparent 60%), var(--navy-50); transition: transform .5s var(--ease); }
.proc-card:hover .proc-art { transform: scale(1.02); }
.proc-card h4 { font-size: 1.18rem; margin-bottom: .25rem; }
.proc-kind { font-size: .85rem; font-weight: 600; color: var(--gold-text); margin-bottom: 1rem; }
.ticks li { position: relative; padding-left: 26px; font-size: .94rem; line-height: 1.5; margin-bottom: .6rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

/* Laparoscopia */
.lap {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center;
}
.lap-media { position: relative; isolation: isolate; }
.lap-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); }
/* Fotografía horizontal de la clínica: formato cuadrado para conservar el letrero y al doctor */
.lap-media-square img { aspect-ratio: 1 / 1; }
.lap-media::after {
  content: ""; position: absolute; inset: -14px; z-index: -1;
  border-radius: 214px 214px 36px 36px; border: 1.5px dashed rgba(177, 149, 64, .6);
}
.lap-body > h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .8rem; }
.lap-body > p { color: var(--muted); margin-bottom: 1.8rem; }
.lap-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.lap-group h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 0 0 .9rem; }
.lap-group h4:not(:first-child) { margin-top: 1.6rem; }
.lap-group h4 small { font-size: inherit; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chips li {
  padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.35;
  transition: border-color .25s, transform .25s var(--ease);
}
.chips li:hover { border-color: var(--gold); transform: translateX(3px); }
.chips li span { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }

/* ---------- Beneficios ---------- */
.benefits { background: var(--navy-900); color: rgba(255, 255, 255, .8); overflow: hidden; isolation: isolate; }
.benefits-deco {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 92% 8%, rgba(177, 149, 64, .22), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(42, 77, 126, .55), transparent 45%);
}
.benefits-deco::after {
  content: ""; position: absolute; right: -180px; top: 50%; width: 620px; height: 620px; transform: translateY(-50%);
  border-radius: 50%; border: 1.5px solid rgba(177, 149, 64, .25);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .015), 0 0 0 120px rgba(255, 255, 255, .012);
}
.section-head-light h2 { color: #fff; }
.section-head-light h2 em { color: var(--gold-200); }
.section-head-light .eyebrow { color: var(--gold-200); }
.section-head-light .section-lead { color: rgba(255, 255, 255, .72); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.benefit {
  padding: 28px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: background-color .35s, border-color .35s, transform .35s var(--ease);
}
.benefit:hover { background: rgba(255, 255, 255, .07); border-color: rgba(177, 149, 64, .45); transform: translateY(-4px); }
.b-icon {
  width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px;
  border-radius: 16px; background: rgba(177, 149, 64, .14); color: var(--gold-200);
}
.b-icon .ic { width: 26px; height: 26px; }
.benefit h3 { color: #fff; margin-bottom: .5rem; }
.benefit p { font-size: .95rem; line-height: 1.55; }
.benefit-cta {
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  background: linear-gradient(145deg, rgba(177, 149, 64, .22), rgba(177, 149, 64, .06));
  border-color: rgba(177, 149, 64, .4);
}
.benefit-cta p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; color: #fff; }
.benefit-cta .btn { align-self: flex-start; }
.note-light { color: rgba(255, 255, 255, .6); }
.note-light .ic { color: var(--gold-200); }

/* ---------- Acompañamiento ---------- */
.journey-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; margin-bottom: clamp(48px, 7vw, 80px); }
.journey-head .section-head { margin-bottom: 0; }
.journey-photo { margin: 0; position: relative; }
.journey-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.journey-photo figcaption {
  position: absolute; right: 18px; bottom: -16px; padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--navy-950); font-weight: 700; font-size: .85rem; box-shadow: var(--shadow);
}
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px);
  transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform 1.6s var(--ease);
}
.steps.is-visible { --progress: 1; }
.step { position: relative; }
.step-num {
  position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 20px;
  border-radius: 50%; background: #fff; border: 1.5px solid var(--navy-100);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--navy);
  box-shadow: var(--shadow-sm); transition: background-color .3s, color .3s, border-color .3s;
}
.step:hover .step-num { background: var(--navy); color: #fff; border-color: var(--navy); }
.step:last-child .step-num { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.step h3 { margin-bottom: .45rem; font-size: 1.08rem; }
.step p { font-size: .93rem; color: var(--muted); line-height: 1.55; }

.tools { margin-top: clamp(48px, 7vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.tool-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: #fff; }
.tool-icon .ic { width: 22px; height: 22px; }
.tool h3 { font-size: 1rem; margin-bottom: .25rem; }
.tool p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.tool q { font-style: italic; }

/* ---------- Bariatric Shop ---------- */
.shop { background: linear-gradient(180deg, var(--gold-50), #fff 60%); }
.shop-intro {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px);
  align-items: center; margin-bottom: clamp(40px, 6vw, 56px);
}
.shop-logo { width: min(330px, 100%); height: auto; margin-bottom: 1.4rem; }
.shop-tagline { font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.2; color: var(--ink); margin-bottom: .9rem; letter-spacing: -.01em; }
.shop-copy .section-lead { max-width: 36em; margin-bottom: 1.8rem; }
.shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.shop-cats { display: grid; gap: 12px; }
.shop-cats li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.shop-cats strong { display: block; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.shop-cats small { display: block; color: var(--muted); font-size: .84rem; }
.cat-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); }
.cat-icon .ic { width: 20px; height: 20px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.product:hover, .product:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-200); }
.product-media { aspect-ratio: 4 / 3; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.product-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.product:hover .product-media img { transform: scale(1.04); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.product-brand { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .3rem; }
.product-name { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; margin-bottom: .35rem; overflow-wrap: break-word; }
.product-kind { font-size: .88rem; color: var(--muted); margin-bottom: 1rem; }
.product-price { margin-top: auto; margin-bottom: 1rem; }
.product-price .price { font-size: 1.3rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.product-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.product-btn { width: 100%; min-height: 48px; }
.product-btn .ic { width: 1em; height: 1em; }
.product-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 40px;
  font-size: .86rem; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 999px;
  transition: color .25s, background-color .25s;
}
.product-wa:hover { color: var(--navy); background: var(--navy-50); }
.product-wa .ic { width: 1.05em; height: 1.05em; color: #1F9D55; }
.shop-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; }
.shop-foot .note { margin-top: 0; flex: 1 1 420px; }

/* ---------- Mentores ---------- */
.mentors { background: linear-gradient(180deg, #fff, var(--gold-50)); padding-block: clamp(64px, 8vw, 104px); }
.mentors-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.mentors .section-head { margin-bottom: 0; }
.mentor-list { display: grid; gap: 16px; }
.mentor {
  display: flex; align-items: center; gap: 20px; padding: 18px 22px 18px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.mentor:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mentor img { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--gold-200); }
.mentor h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.mentor p { font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head .btn { margin-top: 1.6rem; }
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-weight: 700; font-size: 1.06rem; color: var(--ink); transition: color .25s;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--navy-600); }
.acc-icon {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--navy); transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.acc-item[open] .acc-icon { transform: rotate(45deg); background: var(--navy); color: #fff; border-color: var(--navy); }
.acc-body { overflow: hidden; }
.acc-body p { padding: 0 56px 24px 4px; color: var(--text); }

/* ---------- Contacto ---------- */
.contact { padding-top: 0; }
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  border-radius: 32px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow-lg);
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.contact-main { position: relative; padding: clamp(32px, 5vw, 64px); color: rgba(255, 255, 255, .8); isolation: isolate; }
.contact-main::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -220px; bottom: -260px;
  border-radius: 50%; border: 1.5px solid rgba(177, 149, 64, .3);
  box-shadow: 0 0 0 50px rgba(255, 255, 255, .02);
}
.contact-main .eyebrow { color: var(--gold-200); }
.contact-main h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.contact-main h2 em { color: var(--gold-200); }
.contact-lead { font-size: 1.08rem; margin-bottom: 2rem; max-width: 30em; }
.wa-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 2rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: #fff; margin-bottom: .45rem; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 16px;
  font: 500 1rem var(--font-body); color: var(--ink);
  background: #fff; border: 2px solid transparent; border-radius: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231B365D' stroke-width='2' stroke-linecap='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(177, 149, 64, .25); }
.field input[aria-invalid="true"] { border-color: #F2A38F; }
.field-hint, .field-error { grid-column: 1 / -1; font-size: .84rem; margin: 0; }
.field-hint { color: rgba(255, 255, 255, .62); }
.field-error { color: #FFC7B8; font-weight: 600; }
.wa-form .btn { grid-column: 1 / -1; justify-self: start; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.contact-links a {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; transition: background-color .25s;
}
.contact-links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.contact-links li { flex: 1 1 auto; }
.contact-links small { display: block; font-weight: 500; font-size: .76rem; color: rgba(255, 255, 255, .6); }
.cl-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--gold-200); }

.contact-side { position: relative; z-index: 1; background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.map { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-50); margin-bottom: 8px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }
.info-block { padding: 14px 16px; }
.info-block + .info-block { border-top: 1px solid var(--line); }
.info-block h3 { display: flex; align-items: center; gap: .5em; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: .6rem; }
.info-block h3 .ic { color: var(--gold-600); }
.info-block p { font-size: .96rem; margin-bottom: .6rem; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: .95rem; }
.hours dt { color: var(--muted); }
.hours-note { font-size: 1rem; color: var(--ink); margin: 0; }
/* Escritorio: el mapa ocupa el alto disponible para equilibrar la columna con el formulario */
@media (min-width: 961px) {
  .contact-side .map { flex: 1 1 auto; aspect-ratio: auto; min-height: 260px; }
}
.hours dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 120px; height: auto; flex: none; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-col h2 { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 1rem; }
.footer-col li { margin-bottom: .9rem; }
.footer-col a { display: inline-block; padding: 8px 0; margin: -8px 0; color: rgba(255, 255, 255, .82); text-decoration: none; word-break: break-word; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-hours { margin-top: 1.4rem; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.footer-hours h3 { display: flex; align-items: center; gap: .5em; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-200); margin-bottom: .7rem; }
.footer-hours p { margin: 0 0 .5rem; font-size: .9rem; line-height: 1.45; }
.footer-hours p:last-child { margin-bottom: 0; }
.footer-hours strong { color: #fff; font-weight: 600; }
.footer-legal { padding-top: 28px; display: grid; gap: .6rem; font-size: .84rem; color: rgba(255, 255, 255, .55); padding-right: 96px; }
.footer-legal strong { color: rgba(255, 255, 255, .8); }
.footer-legal p { margin: 0; }
.copy { margin-top: .6rem !important; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px 0 16px;
  border-radius: 999px; background: #1F9D55; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
  box-shadow: 0 14px 30px -10px rgba(16, 36, 63, .45);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s, background-color .25s;
}
.wa-float .ic { width: 26px; height: 26px; }
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s; }
.wa-float:hover { background: #178547; color: #fff; }
body.nav-open .wa-float { opacity: 0; visibility: hidden; }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Página del doctor: animación de entrada guiada por el scroll (CSS puro).
   El contenido es visible por defecto y su aparición se calcula según la posición
   en pantalla, así que las capturas de página completa, la impresión y los saltos
   del menú muestran siempre las secciones. Los navegadores sin soporte mantienen
   el sistema anterior (IntersectionObserver). No afecta a Bariatric Shop (.bs-page). */
@keyframes revealIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports (animation-timeline: view()) {
  body:not(.bs-page) .reveal {
    opacity: 1; transform: none; transition: none;
    /* fill-mode none: antes y después del tramo de entrada el bloque es visible; solo se anima
       mientras entra por el borde inferior de la pantalla */
    animation: revealIn linear none; animation-timeline: view(); animation-range: entry 0% entry 70%;
  }
  body:not(.bs-page) .reveal[data-delay="1"] { animation-range: entry 6% entry 76%; }
  body:not(.bs-page) .reveal[data-delay="2"] { animation-range: entry 12% entry 82%; }
  body:not(.bs-page) .reveal[data-delay="3"] { animation-range: entry 18% entry 88%; }
  body:not(.bs-page) .reveal[data-delay="4"] { animation-range: entry 24% entry 94%; }
  /* Hero: entrada al cargar (ya está en pantalla) */
  body:not(.bs-page) #inicio .reveal { animation: revealIn .8s var(--ease) both; animation-timeline: auto; }
  body:not(.bs-page) #inicio .reveal[data-delay="1"] { animation-delay: .1s; }
  /* Línea punteada del recorrido de pasos */
  body:not(.bs-page) .steps { view-timeline-name: --steps; }
  body:not(.bs-page) .steps::before { transform: none; transition: none; animation: lineGrow linear none; animation-timeline: --steps; animation-range: entry 0% cover 40%; }
}
@media print {
  body:not(.bs-page) .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  body:not(.bs-page) .steps::before { transform: none !important; animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .story { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .story::before { display: none; }
  .chapter { padding-top: 22px; border-top: 2px dashed rgba(177, 149, 64, .55); }
  .chapter::before { top: -7px; }
  .shop-intro { grid-template-columns: 1fr; }
  .shop-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-cats li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .product-grid { gap: 16px; }
  .product-media { padding: 12px 20px; }
  .product-body { padding: 18px 18px 18px; }
  .steps::before { display: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-visual { justify-self: center; max-width: 480px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-card:nth-child(3)::before { display: none; }
  .trust-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .profile-grid, .lap, .journey-head, .mentors-grid, .faq-grid { grid-template-columns: 1fr; }
  .profile-media { max-width: 520px; }
  .service-grid { grid-template-columns: 1fr; }
  .sc-feature { grid-row: auto; }
  .sc-feature .sc-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .proc-intro { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; max-width: 640px; }
  .lap-media { max-width: 420px; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-head { position: static; }
  .profile-foot { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  :root { --header-h: 68px; }
  .hero { padding-bottom: 96px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { max-width: 380px; margin-top: 8px; }
  /* Tarjetas debajo del retrato: 2024 y MINSA a lo ancho, 2025 y 2026 lado a lado */
  .hero-cards { gap: 10px; margin-top: 18px; }
  .hero-cards .float-card { padding: 12px 16px 12px 12px; gap: 12px; }
  .hero-cards .fc-icon { width: 40px; height: 40px; }
  .hero-cards .float-card strong { font-size: .88rem; }
  .fc-years { margin: 6px 0 5px; }
  .fc-icon { width: 34px; height: 34px; border-radius: 10px; }
  .fc-icon .ic { width: 18px; height: 18px; }
  .fc-badge { width: 56px; height: 56px; padding: 7px; left: 2%; top: 4%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 20px; }
  .trust-years, .trust-years + p { grid-column: 2; }
  .trust-card .trust-icon { grid-row: span 2; margin: 0; }
  .trust-card::before { display: none; }
  .trust-card + .trust-card { border-top: 1px solid var(--line); }
  .profile-frame::before { transform: translate(10px, 10px); }
  .profile-inset { top: -22px; right: -8px; width: 146px; border-width: 3px; }
  .cred-list { grid-template-columns: 1fr; gap: 12px; }
  .credentials, .recognitions { padding: 18px; }
  .story { grid-template-columns: 1fr; row-gap: 0; }
  .chapter { padding: 4px 0 26px 30px; border-top: 0; border-left: 2px dashed rgba(177, 149, 64, .55); }
  .chapter:last-child { padding-bottom: 4px; }
  .chapter::before { left: -7px; top: 4px; }
  .chapter h3 { font-size: 1.2rem; }
  .profile-actions .btn { flex: 1 1 100%; }
  .shop-logo { width: min(280px, 100%); }
  .shop-cats { grid-template-columns: 1fr; }
  .shop-cats li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
  .shop-actions .btn { flex: 1 1 100%; }
  .shop-actions .link-arrow { min-height: 44px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product { border-radius: var(--radius); }
  .product-media { aspect-ratio: 1 / 1; padding: 8px; }
  .product-body { padding: 12px 12px 10px; }
  .product-brand { font-size: .64rem; letter-spacing: .1em; }
  .product-name { font-size: 1.02rem; }
  .product-kind { font-size: .76rem; margin-bottom: .7rem; }
  .product-price { margin-bottom: .7rem; }
  .product-price .price { font-size: 1.05rem; }
  .product-btn { min-height: 44px; padding: .6em .5em; font-size: .82rem; white-space: normal; text-align: center; gap: .35em; }
  .product-wa { min-height: 44px; font-size: .78rem; }
  .shop-foot .btn { flex: 1 1 100%; }
  .service-card:not(.sc-feature) { grid-template-columns: 1fr; }
  .service-card:not(.sc-feature) .sc-media { aspect-ratio: 16 / 10; height: auto; }
  .sc-body { padding: 22px; }
  .sc-actions .btn { flex: 1 1 auto; }
  .proc-card { padding: 22px; }
  .lap-groups { grid-template-columns: 1fr; gap: 0; }
  .lap-group + .lap-group { margin-top: 1.6rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit { padding: 22px; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
  .benefit .b-icon { grid-row: span 2; margin: 0; }
  .benefit-cta { display: flex; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 28px; }
  .step-num { grid-row: span 2; margin: 0; }
  .step:not(:last-child)::before {
    content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px;
    background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 11px);
  }
  .mentor { align-items: flex-start; padding: 16px; gap: 16px; }
  .mentor img { width: 64px; height: 64px; }
  .acc-item summary { font-size: 1rem; padding: 18px 2px; }
  .acc-body p { padding-right: 8px; }
  .contact-card { border-radius: 24px; }
  .wa-form { grid-template-columns: 1fr; }
  .wa-form .btn { justify-self: stretch; }
  .contact-links { flex-direction: column; }
  .hours div { flex-direction: column; gap: 0; padding: 6px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand img { width: 92px; }
  .footer-legal { padding-right: 0; padding-bottom: 72px; }
  .wa-float { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-float-label { display: none; }
  .header-shop { padding: 0 14px; gap: .4em; font-size: .9rem; }
  .header-shop .hs-label { display: none; }
  .header-shop .hs-short { display: inline; }
}

@media (min-width: 1600px) {
  .container { max-width: 1360px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  body:not(.bs-page) .reveal, body:not(.bs-page) .steps::before { animation: none !important; opacity: 1; transform: none; }
  .hero-ring, .float-card { animation: none; }
}

@media (max-width: 359px) {
  .header-shop { width: 46px; padding: 0; }
  .header-shop .hs-short { display: none; }
}
