/* Private-clinic register: white ground, deep navy, champagne hairlines.
   Display: Cormorant Garamond. Text: Manrope. */
:root {
  --navy: #0B1B33;
  --navy-2: #13294A;
  --gold: #C2A26A;
  --gold-text: #8C6D33;
  --ground: #FFFFFF;
  --mist: #F5F6F8;
  --ink: #111C2E;
  --muted: #4E5A6B;
  --line: #E1E5EB;
  --on-navy: #C5CEDB;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.65; font-weight: 400; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold-text); display: flex; align-items: center; gap: 14px; }
.label::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.navy .label { color: var(--gold); }
.h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.3px; }
.lead { margin: 0; color: var(--muted); font-size: 18px; }
.navy { background: var(--navy); color: #fff; }
.navy .lead, .navy p { color: var(--on-navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 28px; border-radius: 2px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.4px; text-decoration: none; background: var(--gold); color: var(--navy); border: 1px solid var(--gold); cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #D3B784; color: var(--navy); }
.btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-line:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }

/* Utility bar + header */
.util { background: var(--navy); color: var(--on-navy); font-size: 13px; }
.util .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.util strong { color: #fff; font-weight: 600; letter-spacing: 0.4px; }
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 16px; }
.brand { color: var(--navy); text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--display); font-weight: 600; font-size: 27px; letter-spacing: 0.2px; }
.brand span { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.brand:hover { color: var(--navy); }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 14px; font-weight: 500; }
.menu a { color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--gold-text); }
.menu .btn { min-height: 44px; padding: 10px 22px; color: var(--navy); }

/* Hero */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-block: 84px 92px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.5px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-text > p { margin: 0; font-size: 19px; color: var(--on-navy); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-img { position: relative; min-width: 0; }
.hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; }
.hero-img::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: -1; }
.hero-img { z-index: 0; }
.creds-row { border-top: 1px solid rgba(255,255,255,.14); }
.creds-row .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-block: 0; }
.cred { padding: 26px 28px 26px 0; display: flex; flex-direction: column; gap: 2px; }
.cred + .cred { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.cred b { font-family: var(--display); font-weight: 500; font-size: 30px; color: #fff; line-height: 1.1; }
.cred span { font-size: 14px; color: var(--on-navy); }

/* Sections */
section { scroll-margin-top: 90px; }
.block { padding-block: 104px; }
.mist { background: var(--mist); }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 56px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split .text { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* High-resolution consultation */
.flow { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.flow li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.flow li:last-child { border-bottom: 1px solid var(--line); }
.flow .n { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--gold-text); }
.flow h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.flow p { margin: 0; color: var(--muted); font-size: 16px; }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.area { padding: 34px 32px 38px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: #fff; text-decoration: none; color: var(--ink); }
.area h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.1; }
.area p { margin: 0; color: var(--muted); font-size: 15.5px; }
.area small { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; color: var(--gold-text); }
a.area:hover { background: var(--mist); color: var(--ink); }

/* Treatments */
.treat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.treat div { padding: 26px 0; border-top: 1px solid rgba(255,255,255,.16); }
.treat h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 27px; color: #fff; }
.treat p { margin: 0; font-size: 15.5px; }

/* Doctor */
.doc-quote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; color: var(--navy); border-left: 1px solid var(--gold); padding-left: 24px; }
.cv { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.cv li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.cv li span:first-child { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-text); padding-top: 3px; }
.sig { display: flex; align-items: center; gap: 16px; }
.sig img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.sig b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.sig span { font-size: 13px; color: var(--muted); }

/* Hospital */
.facts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.facts4 div { padding: 24px 20px 0 0; }
.facts4 b { display: block; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1; color: var(--navy); }
.facts4 span { font-size: 14px; color: var(--muted); }

/* Articles */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.15; }
.post p { margin: 0; color: var(--muted); font-size: 15.5px; }
.meta { font-size: 12px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-text); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 23px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-weight: 300; font-size: 26px; line-height: 1; color: var(--gold-text); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 820px; }

/* Contact */
.contact .split { align-items: start; }
.phone { font-family: var(--display); font-weight: 500; font-size: 46px; line-height: 1; color: #fff; letter-spacing: 0.5px; }
form.f { background: #fff; color: var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.f h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px; }
.f label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; }
.f input[type=text], .f input[type=tel], .f textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C9D0DA; border-radius: 2px; background: #fff; min-height: 48px; color: var(--ink); }
.f .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 13.5px; }
.f .check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hidden { display: none; }

/* Article page */
.article { padding-block: 64px 96px; }
.article .wrap { max-width: 780px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.75; }
.article h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5.4vw, 60px); line-height: 1.04; }
.article h2 { margin: 22px 0 0; font-family: var(--display); font-weight: 600; font-size: 31px; line-height: 1.15; }
.article p { margin: 0; }
.article .intro { font-size: 21px; color: var(--muted); }
.article .wide { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.box { background: var(--mist); border-left: 2px solid var(--gold); padding: 26px 28px; }
.box h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 25px; }
.box ul { margin: 0; padding-left: 22px; }
.cta-band { background: var(--navy); color: #fff; padding: 34px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.15; }
.cta-band p { margin: 4px 0 0; color: var(--on-navy); font-size: 15px; }
.note { font-size: 14px; color: var(--muted); }

/* Legal */
.legal .wrap { max-width: 800px; padding-block: 56px 96px; }
.legal h1 { font-family: var(--display); font-weight: 500; font-size: 48px; margin: 0 0 16px; }
.legal h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 32px 0 8px; }

/* Footer */
.foot { background: var(--navy); color: var(--on-navy); font-size: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-block: 34px; }
.foot a { color: var(--on-navy); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-img { max-width: 460px; }
  .areas, .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block { padding-block: 80px; }
}
@media (max-width: 640px) {
  .areas, .posts, .treat { grid-template-columns: minmax(0, 1fr); }
  .creds-row .wrap { grid-template-columns: minmax(0, 1fr); }
  .cred, .cred + .cred { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .cred:first-child { border-top: 0; }
  .cv li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero-img::after { inset: 12px -10px -12px 12px; }
  .top { position: static; }
  .util-addr { display: none; }
  .menu a:not(.btn) { display: none; }
  .top .wrap { flex-wrap: nowrap; }
  .brand strong { font-size: 23px; }
  .brand span { font-size: 10px; letter-spacing: 1.4px; }
  .phone { font-size: 38px; }
  form.f { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Specialty pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.answer { margin: 0; font-size: 19px; line-height: 1.7; color: var(--ink); padding: 22px 26px; background: var(--mist); border-left: 2px solid var(--gold); }
.article ul, .article ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article .faq summary { font-size: 21px; }
.byline { display: flex; gap: 16px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
.byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.byline p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.related { display: flex; flex-direction: column; gap: 0; }
.related .label { margin-bottom: 12px; }
.rel { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--navy); }
.rel:last-child { border-bottom: 1px solid var(--line); }
.cvlist li, .arealist li { font-size: 17px; }

/* Footer with links */
.foot .foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 56px; padding-block: 48px 28px !important; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-brand { font-family: var(--display); font-weight: 600; font-size: 24px; color: #fff; margin-bottom: 6px; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px !important; font-size: 13px; }
@media (max-width: 760px) { .foot .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.treat h3 a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(194,162,106,.6); }
.treat h3 a:hover { color: var(--gold); }

/* Exercise plans (mobile first) */
.aviso { background: #FFF8E8; border: 1px solid #EAD9AE; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.regla { background: var(--navy); color: #fff; padding: 20px 22px; }
.regla p { color: var(--on-navy); margin: 0; }
.regla .label { color: var(--gold); margin-bottom: 8px; }
.bloque { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.bloque summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 22px; }
.bloque > p, .bloque > ul { margin-top: 12px !important; }
.plan-bar { position: sticky; top: 0; z-index: 5; background: var(--ground); padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tab { font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; padding: 8px; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.cuenta { font-size: 13px; color: var(--muted); }
.pane h2 { margin-top: 8px !important; }
.cuando { font-size: 14px; font-weight: 600; color: var(--gold-text); }
.exs { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-direction: column; gap: 14px !important; }
.ex { border: 1px solid var(--line); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ex p { margin: 0; font-size: 16px; line-height: 1.55; }
.ex img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ex-head { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.ex-head input { width: 26px; height: 26px; flex: none; accent-color: var(--navy); }
.ex-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ex-head strong { display: block; font-size: 17px; line-height: 1.3; }
.ex-head small { display: block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ex:has(input:checked) { border-color: #9DC3A8; background: #F3FAF5; }
.dosis { font-weight: 600; color: var(--navy); background: var(--mist); padding: 8px 12px; font-size: 15px !important; }
@media print {
  .util, .top, .foot, .plan-bar, .no-print, .crumbs { display: none !important; }
  .pane { display: block !important; }
  .ex { break-inside: avoid; }
  details.bloque > *:not(summary) { display: block; }
  body { font-size: 12pt; }
}
