/* ==========================================================================
   otorrinoaguilera.com — estilo «Azul noche»
   ========================================================================== */

/* Fuentes alojadas en el propio dominio (SIL Open Font License, ver fonts/OFL-*.txt) */
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #132A45;
  --night-2: #0E2038;
  --night-3: #1A3558;
  --ink: #16294A;
  --text: #2A3345;
  --muted: #5B6474;
  --copper: #9E5537;
  --copper-dark: #8C4B31;
  --copper-light: #D0926F;
  --cream: #FAF7F2;
  --cream-2: #F3EEE6;
  --white: #FFFFFF;
  --line: #E4DDD3;
  --line-dark: rgba(255, 255, 255, .12);
  --sky-soft: #DDEAF4;
  --peach-soft: #F6DFD0;
  --on-night: #D6DEE9;
  --on-night-muted: #A9B6C8;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --header-h: 88px;
  --shadow: 0 24px 50px -28px rgba(14, 32, 56, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); margin: 0; letter-spacing: -.015em; overflow-wrap: break-word; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 6px; }
.on-night :focus-visible, .footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .article-head :focus-visible, .hours :focus-visible, .dark-card :focus-visible, .cta-inner :focus-visible {
  outline-color: var(--copper-light); box-shadow: 0 0 0 3px var(--night);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font: 600 13px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--copper);
}
.eyebrow::after { content: ""; width: 72px; height: 1.5px; background: currentColor; opacity: .8; }
.on-night .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--copper-light); }
.rule { display: block; width: 64px; height: 2px; background: var(--copper); margin-bottom: 26px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: 500 18px/1.2 var(--serif); text-decoration: none; text-align: center;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-copper { background: linear-gradient(180deg, #A65D3F, var(--copper)); color: #fff; box-shadow: 0 10px 24px -12px rgba(166, 93, 63, .8); }
.btn-copper:hover { background: var(--copper-dark); transform: translateY(-2px); }
.btn-night { background: var(--night); color: #fff; }
.btn-night:hover { background: var(--night-3); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 18px; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); border-top: 6px solid var(--night); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand::before { content: ""; width: 2px; height: 50px; background: var(--copper); flex: none; }
.brand-text strong { display: block; font: 500 30px/1.05 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.brand-text span { display: block; margin-top: 6px; font: 500 11px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { text-decoration: none; font-size: 18.5px; color: var(--ink); padding: 8px 0; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav .btn { min-height: 50px; padding: 12px 28px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); min-width: 48px; min-height: 48px; }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 40%, #1B3659 0%, var(--night) 45%, var(--night-2) 100%); color: var(--on-night); padding: 64px 0 0; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero-text { padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(46px, 6.2vw, 86px); font-weight: 500; line-height: 1.02; letter-spacing: -.025em; margin: 30px 0 26px; }
.hero .lead { font-size: clamp(19px, 1.7vw, 23px); font-weight: 300; line-height: 1.55; color: var(--on-night); max-width: 580px; }
.hero .signature { margin-top: 14px; font-style: italic; font-size: 20px; color: var(--on-night); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; margin-top: 38px; }
.hero-ctas .link-arrow { color: #fff; }
.hero-places { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 38px; font-size: 19px; color: var(--on-night); }
.hero-places svg { width: 24px; height: 24px; color: var(--on-night); }
.hero-places .sep { width: 1.5px; height: 24px; background: var(--on-night-muted); opacity: .6; }

.hero-photo { position: relative; align-self: end; justify-self: center; width: min(100%, 470px); margin-top: 30px; }
.hero-photo .frame { position: absolute; inset: -22px -24px 26px 24px; border: 1.5px solid var(--copper-light); pointer-events: none; }
.hero-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 457 / 534; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.hero-arcs { position: absolute; inset: 0; pointer-events: none; color: var(--copper-light); opacity: .75; }
.hero-arcs svg { position: absolute; right: 0; top: 4%; width: 50%; height: 100%; overflow: visible; }
@media (max-width: 1020px) { .hero-arcs { display: none; } }

/* ---------- Introducción con 3 áreas ---------- */
.intro { background: var(--cream); padding: 64px 0 72px; }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
.intro-head { padding-right: 48px; }
.intro-head h2 { font-size: clamp(34px, 3.4vw, 46px); margin-bottom: 18px; }
.intro-head p { color: var(--muted); font-size: 19px; }
.area { padding: 0 30px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.area .ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--ink); margin-bottom: 22px; }
.area .ico.peach { background: var(--peach-soft); }
.area .ico svg { width: 38px; height: 38px; }
.area h3 { font-size: 27px; margin-bottom: 12px; }
.area p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.area a { margin-top: auto; padding-top: 18px; color: var(--copper); width: max-content; display: inline-flex; min-height: 44px; align-items: center; }
.area a svg { width: 30px; height: 30px; }

/* ---------- Secciones ---------- */
section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(36px, 4vw, 54px); margin: 22px 0 16px; }
.section-head p { color: var(--muted); font-size: 19px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow::before { content: ""; width: 72px; height: 1.5px; background: currentColor; opacity: .8; }
.bg-white { background: var(--white); }
.bg-cream-2 { background: var(--cream-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 > *, .grid-2 > *, .steps > *, .contact > *, .about > *, .tests > *, .hero .wrap > *, .article-layout > *, .intro .wrap > * { min-width: 0; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 34px 32px 36px; position: relative; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .num { position: absolute; top: 30px; right: 30px; font: 600 13px var(--sans); letter-spacing: .2em; color: var(--copper); }
.card .ico { width: 60px; height: 60px; border-radius: 50%; background: var(--sky-soft); color: var(--ink); display: grid; place-items: center; margin-bottom: 22px; }
.card:nth-child(even) .ico { background: var(--peach-soft); }
.card .ico svg { width: 30px; height: 30px; }
.card h3 { font-size: 26px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 17px; line-height: 1.55; }

/* Pruebas (fondo azul noche) */
.on-night { background: var(--night); color: var(--on-night); }
.on-night h2, .on-night h3 { color: #fff; }
.on-night .section-head p { color: var(--on-night); }
.tests { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.test-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.test-list li { display: flex; gap: 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.test-list .n { font: 600 13px var(--sans); letter-spacing: .18em; color: var(--copper-light); min-width: 28px; }
.test-list strong { display: block; color: #fff; font-weight: 500; font-size: 21px; }
.test-list small { display: block; color: var(--on-night-muted); font-size: 16px; margin-top: 2px; }
.note { margin-top: 30px; padding-left: 20px; border-left: 2px solid var(--copper-light); color: var(--on-night); font-size: 17px; }

/* Cómo pedir cita */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { border-top: 1.5px solid var(--copper); padding-top: 26px; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 400 44px/1 var(--serif); color: var(--copper); margin-bottom: 18px; }
.step h3 { font-size: 25px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 17.5px; }
.step a { color: var(--copper); overflow-wrap: anywhere; }

/* Acerca de mí */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; }
.about-text h2 { font-size: clamp(36px, 4vw, 54px); margin: 22px 0 24px; }
.about-text p { font-size: 19px; color: var(--text); }
.about-text p + p { margin-top: 16px; }
.cv-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 32px; }
.cv-actions .link-arrow { color: var(--copper); }
.about-side { display: grid; gap: 22px; }
.stats-note { font: 500 13px var(--sans); letter-spacing: .06em; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: 20px 10px 20px 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 400 46px/1 var(--serif); color: var(--copper); }
.stat span { display: block; margin-top: 8px; font: 500 13.5px/1.35 var(--sans); color: var(--muted); }
.pubs { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.pubs h3 { font-size: 24px; margin-bottom: 16px; }
.pubs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pubs li { font-size: 16px; color: var(--muted); line-height: 1.5; padding-left: 18px; position: relative; }
.pubs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--copper); }
.pubs li strong { color: var(--ink); font-weight: 600; }
.pubs a { color: var(--copper); }
.pubs .award { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.pubs .award strong { color: var(--ink); }

/* Publicaciones (tarjetas del blog) */
.post { display: flex; flex-direction: column; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post .art { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.post .art svg { width: 34%; height: auto; transition: transform .5s ease; }
.post:hover .art svg { transform: scale(1.06); }
.art.a1 { background: var(--sky-soft); color: var(--ink); }
.art.a2 { background: var(--peach-soft); color: var(--copper-dark); }
.art.a3 { background: #E3E7EE; color: var(--night); }
.post .body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.post .tag { font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }
.post h3 { font-size: 27px; margin: 10px 0 10px; }
.post p { color: var(--muted); font-size: 17px; line-height: 1.55; }
.post .meta-line { font: 500 13.5px var(--sans); color: var(--muted); margin-top: 14px; }
.post .more { margin-top: auto; padding-top: 18px; color: var(--copper); display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.post .more svg { width: 22px; height: 22px; transition: transform .3s ease; }
.post:hover .more svg { transform: translateX(5px); }
.center-cta { display: flex; justify-content: center; margin-top: 44px; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: start; }
.contact-text h2 { font-size: clamp(36px, 4vw, 54px); margin: 22px 0 16px; }
.contact-text > p { font-size: 19px; color: var(--muted); }
.phone-big { display: inline-block; margin-top: 22px; font: 400 clamp(38px, 4.4vw, 58px)/1.1 var(--serif); color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--copper); }
.contact-list { display: grid; gap: 18px; margin-top: 30px; }
.contact-list small { display: block; font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--copper); margin-bottom: 4px; }
.contact-list a, .contact-list address { font-size: 19px; color: var(--ink); font-style: normal; overflow-wrap: break-word; }
.contact-list .link-arrow { color: var(--copper); font-size: 17px; }
.hours { background: var(--night); color: var(--on-night); border-radius: 6px; padding: 38px; }
.hours h3 { color: #fff; font-size: 30px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 20px; font: 600 13.5px var(--sans); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #8FA3AF; }
.status.open i { background: #3BD68A; box-shadow: 0 0 0 4px rgba(59, 214, 138, .2); }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 2px; border-bottom: 1px solid var(--line-dark); font-size: 18px; font-weight: 400; text-align: left; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; color: #fff; }
.hours td.closed { color: var(--on-night-muted); }
.hours tr.today th, .hours tr.today td { color: var(--copper-light); }
.hours tr.today th { font-weight: 600; }
.hours .today-tag { font-size: 14px; font-weight: 400; }
.hours .small { margin-top: 20px; font-size: 16px; color: var(--on-night-muted); }

/* Pie */
.footer { background: var(--night-2); color: var(--on-night-muted); padding: 56px 0 34px; font-size: 16px; }
.footer .top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--line-dark); }
.footer .brand::before { background: var(--copper-light); }
.footer .brand-text strong { color: #fff; font-size: 26px; }
.footer .brand-text span { color: var(--on-night-muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.footer nav a { text-decoration: none; color: var(--on-night); padding: 6px 0; font-size: 17px; }
.footer nav a:hover { color: var(--copper-light); }
.footer .bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .disclaimer { max-width: 820px; }

/* ---------- Blog: listado y artículo ---------- */
.page-hero { background: var(--night); color: var(--on-night); padding: 60px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 70px); margin: 24px 0 16px; }
.page-hero p { font-size: 20px; font-weight: 300; max-width: 680px; }
.list-section { padding: 72px 0 104px; }

.crumbs { font: 500 14px var(--sans); color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-hero .crumbs, .article-head .crumbs { color: var(--on-night-muted); }
.crumbs a { color: var(--copper); text-decoration: none; }
.page-hero .crumbs a, .article-head .crumbs a { color: var(--copper-light); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: inherit; }

.article-head { background: var(--night); color: var(--on-night); padding: 52px 0 56px; }
.article-head .inner { max-width: 820px; }
.article-head h1 { color: #fff; font-size: clamp(38px, 5vw, 64px); margin: 24px 0 26px; }
.article-head .tag { font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--copper-light); }
.byline { display: flex; align-items: center; gap: 16px; font-size: 17px; flex-wrap: wrap; color: var(--on-night); }
.byline img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1.5px solid var(--copper-light); }
.byline strong { color: #fff; display: block; font-weight: 500; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; padding: 56px 0 96px; }
.prose { max-width: 740px; font-size: 19px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 32px; margin-top: 1.7em; }
.prose h2 + * { margin-top: .6em; }
.prose .lead { font-size: 22px; line-height: 1.6; color: var(--ink); }
.prose ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.prose ul li { padding: 18px 20px 18px 22px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--copper); border-radius: 4px; font-size: 18px; line-height: 1.65; }
.prose ul li strong { color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; max-width: 420px; height: auto; border-radius: 4px; }
.prose figcaption { font: 500 14px var(--sans); color: var(--muted); margin-top: 10px; }
.prose sup a { color: var(--copper); text-decoration: none; font-weight: 700; padding: 0 2px; }
.prose a { color: var(--copper); }
.sources { margin-top: 2.4em; padding: 24px 26px; background: var(--cream-2); border-radius: 4px; font-size: 16.5px; }
.sources h2 { font-size: 22px; margin: 0 0 12px; }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.sources a { word-break: break-word; }
.editorial-note { font-size: 16px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.disclaimer-box { margin-top: 2.2em; display: flex; gap: 14px; padding: 20px 22px; background: var(--sky-soft); border-radius: 4px; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.disclaimer-box svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }

.aside { position: sticky; top: calc(var(--header-h) + 30px); display: grid; gap: 18px; }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.aside-card h2 { font-size: 22px; margin-bottom: 12px; }
.aside-card p { font-size: 16.5px; color: var(--muted); margin-bottom: 18px; }
.aside-card .btn { width: 100%; }
.aside-card.dark-card { background: var(--night); border: 0; }
.aside-card.dark-card h2 { color: #fff; }
.aside-card.dark-card p { color: var(--on-night); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; text-decoration: none; font-size: 17px; color: var(--ink); padding: 8px 10px; border-radius: 4px; }
.toc a:hover { background: var(--cream-2); color: var(--copper); }
.toc-mobile { display: none; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 4px 18px; font-size: 17px; }
.toc-mobile summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 12px 0; min-height: 44px; }
.toc-mobile ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 2px; }
.toc-mobile a { display: block; padding: 8px 0; color: var(--copper); text-decoration: none; }

.related { background: var(--cream-2); padding: 88px 0; }
.related h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 32px; }

.cta-band { padding: 0 0 104px; }
.cta-inner { background: var(--night); border-radius: 6px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); max-width: 640px; }
.cta-inner p { color: var(--on-night); margin-top: 10px; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found h1 { font-size: clamp(40px, 6vw, 72px); margin: 22px 0; }
.not-found p { color: var(--muted); font-size: 19px; margin-bottom: 30px; }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Aparición suave (solo cuando main.js ha arrancado) */
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal-ready .reveal.d1 { transition-delay: .08s; } .reveal-ready .reveal.d2 { transition-delay: .16s; } .reveal-ready .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .nav a:not(.btn) { font-size: 17px; }
  .intro .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .intro-head { grid-column: 1 / -1; padding-right: 0; max-width: 720px; }
  .area:nth-child(2) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1020px) {
  .hero .wrap, .tests, .about, .contact, .article-layout { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .hero-photo { width: min(88%, 440px); margin: 20px auto 0; }
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside .toc { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 900px) {
  .header .wrap { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding: 12px 0; }
  .nav { flex-wrap: wrap; gap: 6px 20px; }
  .nav-ready .header .wrap { flex-wrap: nowrap; height: var(--header-h); padding: 0; }
  .nav-ready .menu-toggle { display: block; }
  .nav-ready .nav {
    position: fixed; inset: calc(var(--header-h) + 6px) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 10px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(14, 32, 56, .45);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: all .25s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-ready .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav-ready .nav a:not(.btn) { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 19px; }
  .nav-ready .nav a:not(.btn)::after { display: none; }
  .nav-ready .nav .btn { margin-top: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --header-h: 76px; }
  body { font-size: 17px; }
  section { padding: 72px 0; }
  .brand { gap: 14px; }
  .brand::before { height: 42px; }
  .brand-text strong { font-size: 24px; }
  .brand-text span { font-size: 9.5px; letter-spacing: .26em; }
  .hero { padding-top: 44px; }
  .hero-ctas .btn { width: 100%; }
  .hero-places { font-size: 17px; }
  .intro .wrap, .grid-3, .steps, .aside { grid-template-columns: 1fr; }
  .area, .area:nth-child(2) { border-left: 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 16px 0; border-left: 0; display: flex; align-items: center; gap: 16px; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat b { font-size: 36px; min-width: 56px; }
  .stat span { margin-top: 0; }
  .hours { padding: 28px 22px; }
  .cta-inner { padding: 40px 24px; }
  .cta-inner .btn { width: 100%; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 27px; }
  .prose .lead { font-size: 20px; }
  .pubs { padding: 22px 18px; }
}
@media (max-width: 380px) {
  .brand-text strong { font-size: 21px; }
  .brand-text span { letter-spacing: .18em; }
  .eyebrow { letter-spacing: .16em; gap: 12px; }
  .eyebrow::after { width: 40px; }
}
@media (max-width: 700px) {
  .hero-places .sep { display: none; }
  .hero-places { gap: 6px 14px; }
  .eyebrow::after { width: 36px; }
}

/* Ronda 4 */
.nw { white-space: nowrap; }
.post h2 { font-size: 27px; margin: 10px 0 10px; }
.byline .who { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; }
@media (max-width: 700px) { .byline { display: grid; gap: 12px; } }
@media (max-width: 400px) {
  .card { padding: 28px 22px 30px; }
  .card h3 { font-size: 22px; -webkit-hyphens: auto; hyphens: auto; }
  .card .num { top: 24px; right: 22px; }
  .btn { padding-inline: 22px; }
}

/* Cita online en la agenda de Vithas */
.contact-ctas { margin-top: 26px; }
.contact-text > .or-call { margin-top: 24px; font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--copper); }
.contact-text > .or-call + .phone-big { margin-top: 6px; }
.aside-card .aside-phone { margin: 14px 0 0; text-align: center; font-size: 16px; color: var(--on-night); }
.aside-card .aside-phone a { color: #fff; white-space: nowrap; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-phone { color: #fff; font-size: 17px; }
@media (max-width: 700px) { .contact-ctas .btn, .cta-actions { width: 100%; } }
.booking-note { margin-top: 12px; font: 500 14px/1.4 var(--sans); color: var(--muted); }
.hero .booking-note { color: var(--on-night-muted); margin-top: 14px; }
.contact-text > .booking-note { font-size: 14px; color: var(--muted); }


/* «Pedir cita» siempre visible en la cabecera (también en móvil) */
.header .wrap { gap: 20px; }
.header .nav { margin-left: auto; }
.header-cta { order: 3; min-height: 50px; padding: 12px 26px; flex: none; }
.menu-toggle { order: 4; }
@media (max-width: 900px) {
  .nav-ready .header .wrap { gap: 10px; }
  .header-cta { margin-left: auto; min-height: 44px; padding: 10px 16px; font-size: 16px; gap: 8px; }
  .header-cta svg { width: 18px; height: 18px; }
  .nav-ready .nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .header-cta { padding: 10px 13px; }
  .header-cta svg { display: none; }
  .brand { gap: 10px; }
  .brand-text strong { font-size: 19px; }
  .brand-text span { font-size: 8.5px; letter-spacing: .2em; }
  .menu-toggle { min-width: 44px; padding: 8px; }
}
@media (max-width: 360px) {
  .header-cta svg { display: block; }
  .header-cta .cta-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.brand-text strong, .brand-text span { white-space: nowrap; }
@media (max-width: 420px) {
  .brand-text span { font-size: 8px; letter-spacing: .08em; }
}
@media (max-width: 360px) {
  .brand-text strong { font-size: 17px; }
  .brand-text span { font-size: 7.5px; letter-spacing: .06em; }
}
@media (max-width: 360px) {
  .header .brand-text span { display: none; }
  .header .brand::before { height: 30px; }
}
.footer .brand-text strong, .footer .brand-text span { white-space: normal; }

/* Tarjeta destacada a lo ancho (Roncopatía y AOS) */
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; }
.card-wide .ico { margin-bottom: 0; background: var(--peach-soft); }
.card-wide h3 { margin-bottom: 6px; }
.card-wide .link-arrow { color: var(--copper); font-size: 17px; white-space: nowrap; }
@media (max-width: 1020px) {
  .card-wide { grid-template-columns: auto minmax(0, 1fr); }
  .card-wide .link-arrow { grid-column: 1 / -1; justify-self: start; white-space: normal; }
}
@media (max-width: 700px) {
  .card-wide { grid-template-columns: 1fr; }
}
