/* Dr. Adán Valenzuela Arenivar · Urólogo en Chihuahua
   Identidad: azul marino del logo (#214780) + periwinkle de la mitad clara del riñón.
   Poppins para títulos (la del sitio original) y Lexend para lectura (diseñada para leer con fluidez). */

@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 300 700; font-style: normal; font-display: swap; src: url(/fonts/lexend.woff2) format('woff2'); }

:root {
  --navy: #214780;
  --navy-deep: #152f57;
  --night: #0f2140;
  --ink: #15233d;
  --text: #2a3752;
  --muted: #55627a;
  --blue: #2a67c2;
  --peri: #8c92cf;
  --peri-soft: #e6e8f7;
  --ice: #eef3fa;
  --line: #d6dfec;
  --wa: #15803d;
  --wa-dark: #116c33;
  --white: #fff;

  --display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --body: 'Lexend', 'Segoe UI', system-ui, sans-serif;

  --gutter: 20px;
  --header-h: 68px;
  --radius: 18px;
  --shadow: 0 30px 60px -30px rgba(21, 47, 87, .45);
  --split: linear-gradient(90deg, var(--navy) 0 50%, var(--peri) 50% 100%);
}
@media (min-width: 761px) { :root { --gutter: 32px; --header-h: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--body);
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
@media (min-width: 761px) { body { font-size: 1.0625rem; } }
img { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; margin: 0 0 .75rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { text-wrap: pretty; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { 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 { position: absolute; left: -9999px; top: .75rem; z-index: 100; background: var(--white); color: var(--navy); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { left: .75rem; }
.i { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: middle; }
.small { font-size: .95rem; color: var(--muted); }

/* Etiqueta superior: lleva la marca bicolor del logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0; font: 700 .78rem/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ''; width: 14px; height: 14px; border-radius: 3px; background: var(--split); flex: none; }
.eyebrow--light { color: #b9c6f0; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.15 var(--display); letter-spacing: 0; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .i { width: 1.3em; height: 1.3em; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-call, .btn-primary { background: var(--navy); color: var(--white); }
.btn-call:hover, .btn-primary:hover { background: var(--navy-deep); }
.btn-call--light { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-call--light:hover { background: var(--navy); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.actions--center { justify-content: center; }

/* ───────── Encabezado ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(21, 47, 87, .6); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { display: block; height: 34px; width: auto; }
@media (min-width: 761px) { .brand img { height: 44px; } }

.menu-link {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .8rem; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: 600 .95rem/1.2 var(--display); color: var(--ink); text-decoration: none;
}
.menu-link:hover { color: var(--blue); background: var(--ice); }
.i-chev { transition: transform .2s; }
.sub-toggle[aria-expanded='true'] .i-chev { transform: rotate(180deg); }
.submenu ul { list-style: none; margin: 0; padding: 0; }
.submenu a { display: block; padding: .45rem 0; color: var(--ink); text-decoration: none; line-height: 1.3; }
.submenu a:hover { color: var(--blue); }
.submenu-title {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem;
  font: 700 .76rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.submenu-title img { width: 20px; height: auto; }

.nav-toggle { display: none; }

@media (min-width: 1101px) {
  .menu { display: flex; align-items: center; gap: .15rem; }
  .has-sub { position: relative; }
  .submenu {
    display: none; position: absolute; top: calc(100% + 12px); left: -180px; width: 880px;
    padding: 1.5rem 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 30px 60px -28px rgba(21, 47, 87, .45);
  }
  .submenu::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: var(--split); }
  .submenu.is-open { display: block; }
  .submenu-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .menu-cta { margin-left: .5rem; min-height: 46px; padding: .6rem 1.1rem; font-size: .95rem; }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
    border: 0; background: none; cursor: pointer; color: var(--navy);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    content: ''; display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -7px; }
  .nav-toggle-bars::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .menu {
    display: none; position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; overflow-y: auto;
    padding: .5rem var(--gutter) 7rem; background: var(--white); border-top: 1px solid var(--line);
  }
  .menu.is-open { display: flex; }
  .menu-link { justify-content: space-between; width: 100%; padding: 1rem 0; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu-link:hover { background: none; }
  .submenu { display: none; padding: .75rem 0 1rem; border-bottom: 1px solid var(--line); }
  .submenu.is-open { display: block; }
  .submenu-in { display: grid; gap: 1.1rem; }
  .submenu a { font-size: 1.05rem; padding: .5rem 0; }
  .menu-cta { margin-top: 1.5rem; }
  body.menu-open { overflow: hidden; }

  /* Sin JavaScript el menú se muestra completo */
  .no-js .nav-toggle { display: none; }
  .no-js .menu { display: flex; position: static; padding: 0 0 1rem; border: 0; }
  .no-js .header-in { flex-wrap: wrap; }
  .no-js .submenu { display: block; }
}

/* ───────── Portada (home) ───────── */
.hero { position: relative; isolation: isolate; background: var(--ice); overflow: hidden; }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-in { padding-block: 1.75rem 5.5rem; }
.hero h1 { margin: .9rem 0 0; font-weight: 700; }
.h1-a { display: block; color: var(--navy); font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.025em; }
.h1-b { display: block; margin-top: .6rem; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.hero-lead { margin: 1rem 0 0; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.45; max-width: 30ch; }

@media (min-width: 761px) {
  .hero-media img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 80% 25%; z-index: -2; }
  .hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(238, 243, 250, .96) 0%, rgba(238, 243, 250, .86) 40%, rgba(238, 243, 250, 0) 66%);
  }
  .hero-in { display: flex; align-items: center; min-height: clamp(540px, 74vh, 700px); padding-block: 3.5rem 7.5rem; }
  .hero-copy { max-width: 620px; }
}

/* Ficha: precio, trayectoria y registro profesional, como un comprobante */
.ficha-wrap { position: relative; z-index: 2; margin-top: -4rem; }
.ficha {
  position: relative; display: grid; grid-template-columns: 1fr;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.ficha::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--split); }
.ficha-cell { padding: 1.6rem 1.5rem 1.5rem; }
.ficha-cell + .ficha-cell { border-top: 2px dashed var(--line); }
.ficha-label { margin: 0 0 .45rem; font: 700 .76rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ficha-value { margin: 0; font: 700 clamp(2rem, 1.5rem + 1.6vw, 2.7rem)/1 var(--display); color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ficha-value small { font-size: .42em; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.ficha-value--id { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); letter-spacing: 0; }
.ficha-note { margin: .6rem 0 0; font-size: .98rem; line-height: 1.45; }
.ficha-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .75rem; font-weight: 700; font-size: .95rem; }
@media (min-width: 761px) {
  .ficha { grid-template-columns: 1fr 1fr; }
  .ficha-cell { padding: 1.9rem 1.9rem 1.8rem; }
  .ficha-cell + .ficha-cell { border-top: 0; border-left: 2px dashed var(--line); }
  .ficha-cell--id { grid-column: 1 / -1; border-left: 0 !important; border-top: 2px dashed var(--line) !important; }
}
@media (min-width: 1001px) {
  .ficha { grid-template-columns: 1fr 1fr 1.35fr; }
  .ficha-cell--id { grid-column: auto; border-top: 0 !important; border-left: 2px dashed var(--line) !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .ficha { animation: rise .8s .25s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ───────── Secciones ───────── */
.section { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.section--ice { background: var(--ice); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head h2 { margin-top: .6rem; }
.section-head p:last-child { margin: 0; color: var(--muted); font-size: 1.12rem; }

/* Servicios agrupados por órgano */
.organ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.organ { padding: 1.5rem 1.5rem .5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.organ-head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.organ-head img { width: 40px; height: auto; }
.organ-head h3 { margin: 0; }
.organ-list { list-style: none; margin: 0; padding: 0; }
.organ-list li + li { border-top: 1px solid var(--line); }
.organ-list a, .related-list a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center;
  padding: 1rem 0; color: inherit; text-decoration: none;
}
.organ-name { font: 600 1.05rem/1.3 var(--display); color: var(--ink); }
.organ-desc { grid-column: 1; margin-top: .2rem; font-size: .98rem; line-height: 1.4; color: var(--muted); }
.organ-list .i-arrow, .related-list .i-arrow, .cond-list .i-arrow { grid-column: 2; grid-row: 1 / span 2; width: 1.3rem; height: 1.3rem; color: var(--blue); transition: transform .2s; }
a:hover > .organ-name { color: var(--blue); }
a:hover > .i-arrow { transform: translateX(4px); }

/* Urología pediátrica */
.peds { padding-block: clamp(4rem, 3rem + 4vw, 6rem); background: linear-gradient(rgba(238, 243, 250, .5), rgba(238, 243, 250, .5)), var(--ice) url(/img/fondo-hexagonos.webp) center / cover; }
.peds-in { display: grid; gap: 2.5rem; align-items: center; }
.peds-copy h2 { margin-top: .6rem; }
.peds-copy > p { max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.chips li { padding: .4rem .95rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .95rem; color: var(--ink); }
.peds-media { margin: 0; justify-self: center; }
.peds-media img { display: block; width: 100%; max-width: 400px; height: auto; border-radius: 220px 220px 24px 24px; }
@media (min-width: 900px) { .peds-in { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }

/* Sobre mí */
.about-in { display: grid; gap: 2.5rem; }
.about-media { margin: 0; justify-self: center; width: min(100%, 420px); padding-top: 2rem; border-radius: 240px 240px 24px 24px; background: linear-gradient(180deg, var(--peri-soft), var(--ice)); overflow: hidden; }
.about-media img { display: block; width: 100%; height: auto; }
.about-copy h2 { margin-top: .6rem; }
.about-copy h3 { margin: 2rem 0 .5rem; }
@media (min-width: 900px) {
  .about-in { grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
  .about-media { position: sticky; top: calc(var(--header-h) + 24px); }
}
.prose p { margin: 0 0 1.1rem; max-width: 68ch; }
.prose :where(ul, ol) { margin: 0 0 1.1rem; padding-left: 1.3rem; max-width: 68ch; }
.prose :where(li) { margin: .45rem 0; padding-left: .25rem; }
.prose :where(li)::marker { color: var(--blue); font-weight: 700; }
.lead { font-size: 1.28rem; line-height: 1.5; color: var(--ink); }
.creds { list-style: none; margin: .75rem 0 1rem; padding: 0; border-top: 1px solid var(--line); }
.creds li { position: relative; padding: .9rem 0 .9rem 1.6rem; border-bottom: 1px solid var(--line); line-height: 1.5; }
.creds li::before { content: ''; position: absolute; left: 0; top: 1.4rem; width: 11px; height: 11px; border-radius: 2px; background: var(--split); }
.creds strong { color: var(--ink); }

/* Enfermedades tratadas */
.cond-list { display: grid; grid-template-columns: 1fr; column-gap: 2.5rem; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cond-list li { border-bottom: 1px solid var(--line); }
.cond-list a, .cond-list span { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; color: var(--ink); text-decoration: none; }
.cond-list a { color: var(--navy); font-weight: 700; }
.cond-list a:hover { color: var(--blue); }
.procs { margin: 2rem 0 0; max-width: 72ch; }
@media (min-width: 700px) { .cond-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cond-list { grid-template-columns: repeat(3, 1fr); } }

/* Consulta */
.consult { position: relative; isolation: isolate; padding-block: clamp(4rem, 3rem + 4vw, 6rem); background: var(--navy); color: #e3eaf7; overflow: hidden; }
.consult::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(/img/fondo-hexagonos.webp) center / cover; opacity: .12; mix-blend-mode: screen; }
.consult-in { display: grid; gap: 2.5rem; align-items: center; }
.consult h2 { margin-top: .6rem; color: var(--white); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
.consult-copy p { max-width: 52ch; }
.consult a:not(.btn) { color: var(--white); }
.consult-side { padding: 1.75rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); }
.consult-side-title { margin: 0 0 .5rem; font: 700 .76rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #b9c6f0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: .5rem 0 .5rem 2rem; line-height: 1.45; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .72rem; width: 1.2rem; height: 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%238C92CF'/%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.consult :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
@media (min-width: 900px) { .consult-in { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }

/* Ubicación */
.loc-in { display: grid; gap: 2.5rem; }
.loc-copy h2 { margin-top: .6rem; }
.loc-address { margin: 1rem 0 1.25rem; font-style: normal; font-size: 1.15rem; line-height: 1.5; color: var(--ink); }
.hours { width: 100%; margin: 1.75rem 0 1.25rem; border-collapse: collapse; }
.hours th, .hours td { padding: .7rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.hours th { padding-right: 1rem; font-weight: 700; color: var(--ink); }
.loc-phones { margin: 0; }
.loc-map { min-height: 360px; overflow: hidden; background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius); }
.loc-map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (min-width: 900px) { .loc-in { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: stretch; } }

/* Banda final de contacto */
.cta-band { padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem); background: var(--navy-deep) url(/img/fondo-quirofano-azul.webp) center / cover; color: #e3eaf7; text-align: center; }
.cta-in { max-width: 780px; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 0 auto; font-size: 1.2rem; max-width: 52ch; }
.cta-band .cta-alt { margin-top: 1.25rem; font-size: 1rem; }
.cta-band a:not(.btn) { color: var(--white); }

/* ───────── Páginas de servicio ───────── */
.page-head { padding-block: 1.5rem 3rem; background: linear-gradient(90deg, rgba(238, 243, 250, .85), rgba(238, 243, 250, .45)), var(--ice) url(/img/fondo-hexagonos.webp) center / cover; border-bottom: 1px solid var(--line); }
.page-head--plain { background: var(--ice); padding-block: 1.5rem 2.5rem; }
.page-head-in { display: grid; gap: 2rem; align-items: end; }
.page-head h1 { margin: .5rem 0 1rem; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); color: var(--navy); }
.page-intro { font-size: 1.18rem; line-height: 1.55; max-width: 60ch; }
.page-intro p { margin: 0; }
.byline { margin: 1.25rem 0 0; font-size: .92rem; color: var(--muted); }
.byline a { color: var(--muted); }
.page-head-media { display: none; margin: 0; }
.page-head-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 220px 220px 22px 22px; }
.page-head-media--cutout img { object-fit: contain; object-position: bottom; background: linear-gradient(180deg, var(--peri-soft), var(--white)); padding-top: 1.5rem; }
@media (min-width: 900px) {
  .page-head { padding-block: 2rem 3.5rem; }
  .page-head-in { grid-template-columns: 1.3fr .7fr; gap: 3.5rem; }
  .page-head-media { display: block; max-width: 380px; justify-self: end; width: 100%; }
}

.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .92rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: .35rem; }
.crumbs a { color: var(--muted); }

.page-body { display: grid; gap: 2.5rem; padding-block: clamp(2.75rem, 2.25rem + 2vw, 4.5rem); }
@media (min-width: 1000px) { .page-body { grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2.5rem, 5vw, 4.5rem); } }
.article section + section { margin-top: 2.5rem; }
.article h2 { margin: 0 0 .9rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); }
.alert { padding: 1rem 1.25rem; background: #fff6e5; border-left: 4px solid #c2620a; border-radius: 0 12px 12px 0; color: #42300f; }
.table { width: 100%; margin: 1.25rem 0; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: .75rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--ice); font: 600 .9rem/1.3 var(--display); color: var(--ink); }
.table tbody th { width: 38%; color: var(--ink); }
.dl { margin: 0 0 1rem; max-width: 640px; }
.dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.dl dt { font-weight: 700; color: var(--ink); }
.dl dd { margin: 0; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; list-style: none; cursor: pointer; font: 600 1.06rem/1.35 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i-chev { color: var(--blue); }
.faq details[open] summary .i-chev { transform: rotate(180deg); }
.faq details p { margin: 0 0 1.2rem; }
.disclaimer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }

.aside-card { position: relative; padding: 1.75rem 1.5rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 40px -30px rgba(21, 47, 87, .45); overflow: hidden; }
.aside-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: var(--split); }
@media (min-width: 1000px) { .aside-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.aside-price { margin: 0; font: 700 2.3rem/1 var(--display); color: var(--navy); letter-spacing: -.02em; }
.aside-note { margin: .4rem 0 0; }
.aside-card hr { margin: 1.25rem 0; border: 0; border-top: 2px dashed var(--line); }
.aside-small { margin: 0 0 .9rem; font-size: .98rem; line-height: 1.45; }
.aside-card .btn { margin-top: .6rem; }

.related { padding-block: 0 clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.related h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.related-list a { height: 100%; padding: 1.15rem 1.25rem; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; }
.related-list a:hover { border-color: var(--blue); }

.legal { padding-block: 2.5rem 4.5rem; max-width: 820px; }
.legal h2 { margin: 2rem 0 .6rem; font-size: 1.4rem; }
.linklike { padding: 0; border: 0; background: none; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ───────── Pie de página ───────── */
.site-footer { padding-top: 3.5rem; background: var(--night); color: #c9d4e8; font-size: 1rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-name { margin: 0; font: 700 1.15rem/1.3 var(--display); color: var(--white); }
.footer-role { margin: .25rem 0 1rem; color: #9fb0cf; }
.site-footer address { margin-bottom: 1rem; font-style: normal; }
.site-footer a, .site-footer .linklike { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); }
.footer-cred { font-size: .9rem; color: #9fb0cf; }
.footer-title { margin: 0 0 .8rem; font: 700 .76rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #9fb0cf; }
.footer-list, .footer-social { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.footer-list li { margin: .4rem 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer-hours { margin: 0 0 1.75rem; }
.footer-hours div { margin-bottom: .6rem; }
.footer-hours dt { font-weight: 700; color: var(--white); }
.footer-hours dd { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; color: #9fb0cf; }
.footer-legal p { margin: 0; }

/* ───────── Botones fijos y aviso de cookies ───────── */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: var(--white); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4);
  transition: background-color .2s, transform .2s;
}
.fab-wa:hover { background: var(--wa-dark); transform: scale(1.05); }
.fab-wa .i { width: 32px; height: 32px; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .fab-wa { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -22px rgba(21, 47, 87, .6);
  }
  .mobile-bar .btn { min-height: 50px; padding: .65rem .5rem; }
  body { padding-bottom: 76px; }
}

.cookie {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1rem 1.5rem; width: min(740px, 100% - 2 * var(--gutter));
  padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(21, 47, 87, .5); font-size: .95rem; line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie-actions { display: flex; gap: .5rem; flex: none; }
.cookie .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .92rem; }
@media (max-width: 760px) {
  .cookie { bottom: 84px; flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}
