:root {
  --ink: #10363a;
  --text: #374e51;
  --paper: #fcfaf6;
  --white: #fff;
  --soft: #e9f0ee;
  --line: #c4d3d0;
  --accent: #876026;
  --gutter: clamp(18px, 5.5vw, 80px);
  --section-space: clamp(56px, 8vw, 112px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.65 system-ui, sans-serif; }
h1, h2, h3, p { margin: 0 0 16px; }
h1, h2 { color: var(--ink); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 80px); }
h2 { font-size: clamp(34px, 5vw, 59px); }
h3 { color: var(--ink); font-size: 19px; line-height: 1.35; }
p { max-width: 68ch; }
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { color: #496b63; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a66f20; outline-offset: 4px; }
.skip { position: fixed; top: -120px; left: 12px; background: white; padding: 12px; z-index: 4; }
.skip:focus { top: 12px; }
.preview { background: var(--ink); color: #fff; padding: 6px 12px; text-align: center; font-size: .75rem; letter-spacing: .08em; }
header, footer, main > section, .hero { max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-block: 9px 6px; }
.brand { display: inline-block; line-height: 0; max-width: 67%; }
.brand img { width: clamp(162px, 24vw, 228px); height: auto; max-width: 100%; }
nav { display: flex; gap: 0 18px; flex-wrap: wrap; width: 100%; order: 1; border-top: 1px solid var(--line); }
nav a, #language { display: inline-flex; align-items: center; min-height: 44px; font-size: .86rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.header-actions { display: flex; gap: 14px; align-items: center; }
#language { justify-content: center; min-width: 44px; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; font-weight: 700; }
.button { background: var(--ink); color: white; border: 1px solid transparent; border-radius: 8px; min-height: 50px; padding: 11px 20px; display: inline-flex; justify-content: center; align-items: center; text-align: center; text-decoration: none; font-size: .94rem; font-weight: 650; line-height: 1.35; }
.button:hover { background: #275359; color: white; }
.header-actions .small { display: none; }
.hero-layout { background: #f4eee5; border-block: 1px solid #e7e0d5; }
.hero { display: grid; align-items: center; gap: 26px; padding-block: clamp(34px, 6vw, 84px); }
.eyebrow { color: var(--accent); font-weight: 750; font-size: .76rem; letter-spacing: .105em; text-transform: uppercase; margin-bottom: 14px; }
.intro { max-width: 51ch; font-size: clamp(16px, 1.5vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 24px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 650; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; }
.micro, figcaption { font-size: .875rem; line-height: 1.5; }
.hero .micro { margin-top: 10px; margin-bottom: 0; }
.hero-image { margin: 0; min-width: 0; }
.hero-image img { display: block; width: 100%; height: auto; border-radius: 22px; }
.hero-image figcaption { margin-top: 6px; color: var(--text); text-align: end; }
main > section { padding-block: var(--section-space); }
main > section + section { border-top: 1px solid var(--line); }
.section-top { display: grid; }
.steps, .support-grid, .payment-grid, .roles, .clinic-grid { display: grid; gap: 12px; margin-top: 22px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin-bottom: 0; }
.steps > li, .support-grid article, .payment-grid article, .roles article, .clinic-card { padding: clamp(17px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.steps > li { counter-increment: step; }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--accent); font: 1.2rem Georgia, serif; }
.steps p, .support-grid article p, .payment-grid article p { margin-bottom: 0; }
.coordination, .travel-section { background: #f5f2eb; }
.care, .fee, .contact { display: grid; align-items: start; gap: 26px; }
.care, .clinic-section, .contact { background: var(--soft); }
.treatments { display: grid; margin: 0; list-style: none; padding: 0; gap: 7px; }
.treatments a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 51px; padding: 10px 15px; border-radius: 8px; background: var(--white); text-decoration: none; line-height: 1.4; }
.treatments a:hover { text-decoration: underline; }
.treatments a::after { content: '→'; color: var(--accent); flex: none; }
.roles ul { margin: 0; padding-left: 20px; }
.roles li { margin-block: 7px; }
.clinic-grid > div:first-child { align-self: center; }
.clinic-social { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.clinic-social p { margin-bottom: 0; }
.clinic-social-link { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; margin-inline-end: 14px; }
.clinic-map { display: flex; width: fit-content; margin-bottom: 10px; }
.fee { background: var(--ink); color: #e7f0eb; }
.fee h2, .fee .eyebrow { color: #fff7e7; }
.fee ul { margin-top: 0; padding-inline-start: 20px; }
.wompi-payment { grid-column: 1 / -1; background: var(--paper); color: var(--text); padding: clamp(18px, 3vw, 36px); border-radius: 12px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; color: var(--ink); font-size: 1.05rem; }
details p { margin-top: 0; }
.contact-note { border-left: 2px solid var(--accent); margin-bottom: 6px; padding-left: 14px; }
form { display: grid; gap: 14px; background: white; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
label { display: block; font-size: .9rem; color: var(--ink); font-weight: 600; }
input, select, textarea { color: var(--ink); background: var(--paper); display: block; width: 100%; min-width: 0; min-height: 46px; padding: 8px 10px; border: 1px solid #7f9692; border-radius: 6px; margin-top: 4px; font-size: 1rem; font-weight: 400; }
#result .email-action { margin: 8px 0; }
#result .text-link { margin-inline-end: 10px; }
#status { margin: 0; font-size: .9rem; }
#status:empty { display: none; }
main > .privacy-section { padding-block: 18px 28px; }
footer { display: grid; align-items: center; gap: 10px; padding-block: 22px; font-size: .875rem; }
footer p { margin-bottom: 0; }
@media (min-width: 600px) {
  .steps, .support-grid, .roles { grid-template-columns: 1fr 1fr; }
  .payment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  footer { grid-template-columns: 1fr 1fr; }
  footer .micro { grid-column: 1 / -1; }
}
@media (min-width: 920px) {
  header { flex-wrap: nowrap; padding-block: 13px; }
  nav { order: 0; width: auto; border: 0; gap: 22px; }
  .header-actions .small { display: inline-flex; }
  .hero { grid-template-columns: 1.05fr 1fr; gap: 6%; }
  .section-top, .care, .contact, .fee, .clinic-grid { grid-template-columns: 1fr 1fr; gap: 16px 6%; }
  .section-top .eyebrow { grid-column: 1 / -1; }
  .steps, .support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .clinic-grid { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

#inquiry .consent { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 12px; line-height: 1.55; font-weight: 400; }
#inquiry .consent input { width: 20px; height: 20px; min-height: 20px; margin-top: 3px; accent-color: var(--ink); }
#inquiry button:disabled { opacity: .7; cursor: wait; }
#inquiry .consent:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 5px; }

/* Keep direct contact accessible above the phone's system controls. */
.whatsapp-float {
 position: fixed;
 z-index: 20;
 right: max(16px, env(safe-area-inset-right));
 bottom: max(16px, env(safe-area-inset-bottom));
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 9px;
 min-height: 54px;
 padding: 12px 18px;
 border: 1px solid #fff;
 border-radius: 30px;
 background: #075e54;
 color: #fff;
 box-shadow: 0 4px 20px #10363a30;
 font-size: 15px;
 font-weight: 650;
 text-decoration: none;
}
.whatsapp-float:hover { background: #064c44; color: #fff; }
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 380px) {
 .whatsapp-float { min-width: 54px; padding: 12px; }
 .whatsapp-float span { display: none; }
}

#inquiry button[type="submit"] { width: 100%; min-height: 54px; margin-top: 8px; }
#inquiry { scroll-margin-bottom: 90px; }

.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 10px; }
.footer-contact h3 { margin-bottom: 4px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; max-width: 100%; }

/* Compact navigation controls with distinct, accessible touch targets. */
.whatsapp-float { width: 54px; height: 54px; min-width: 54px; padding: 12px; border-radius: 50%; }
.back-to-top { position: fixed; z-index: 20; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 66px); display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 3px 14px #10363a20; }
.back-to-top:hover { background: var(--soft); }
.accompaniment p { margin-bottom: 0; font-size: clamp(16px, 1.5vw, 19px); }

.accompaniment { display: grid; align-items: center; gap: 28px; }
.accompaniment-copy { min-width: 0; }
.accompaniment-visual { margin: 0; width: 100%; max-width: 440px; justify-self: center; }
.accompaniment-visual img { display: block; width: 100%; height: auto; border-radius: 18px; }
.accompaniment-visual figcaption { margin-top: 8px; text-align: center; color: var(--text); }
@media (min-width: 920px) {
 .accompaniment { grid-template-columns: 1.1fr 1fr; gap: 6%; }
 .accompaniment-visual { max-width: 480px; }
}

/* Preserve the official brand dimensions and colors above. */
nav { position: relative; align-items: center; gap: 0 18px; }
#treatment-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); font-size: .86rem; }
#treatment-toggle::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin-top: -4px; }
#treatment-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
#treatment-menu { position: absolute; top: 100%; left: 0; z-index: 30; width: min(660px, 100%); background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 14px 40px #10363a24; }
#treatment-links { display: grid; grid-template-columns: 1fr; gap: 0 14px; margin: 0; padding: 0; list-style: none; }
#treatment-menu a { width: 100%; min-height: 44px; padding: 8px; line-height: 1.4; border-radius: 5px; }
#treatment-menu a:hover { background: var(--soft); }
#treatment-menu > a { border-top: 1px solid var(--line); margin-top: 10px; }
#care { display: block; }
#care > div:first-child { max-width: 760px; margin-bottom: 32px; }
.treatment-cards { display: grid; gap: 18px; }
.treatment-card { min-width: 0; padding: 24px; background: white; border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 24px; }
.treatment-card > img { display: block; width: 76px; height: 76px; object-fit: contain; margin-bottom: 18px; }
.treatment-card > p { margin-bottom: 8px; }
.treatment-card summary { font-size: .94rem; padding: 12px 0; }
.treatment-card details p { font-size: .94rem; }
.treatment-card > a { margin-top: 8px; }
.about-copy { display: grid; gap: 24px; margin-top: 28px; }
.about-motto { font: italic 1.7rem Georgia,serif; color: var(--ink); margin-top: 24px; }
.header-actions .small { display: inline-flex; }
.header-actions { gap: 8px; }
@media (max-width: 599px) { header .header-actions { width: 100%; justify-content: flex-end; } #treatment-menu { max-height: 68vh; overflow-y: auto; } }
@media (min-width: 600px) { .treatment-cards, .about-copy { grid-template-columns: repeat(2,minmax(0,1fr)); } #treatment-links { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 920px) and (max-width: 1199px) { header { flex-wrap: wrap; } nav { order: 1; width: 100%; border-top: 1px solid var(--line); } }
@media (min-width: 1200px) { nav { gap: 16px; } #treatment-menu { width: 640px; } .treatment-cards { grid-template-columns: repeat(3,minmax(0,1fr)); } }

/* The compact navigation applies below the desktop breakpoint. */
#mobile-menu-toggle { display: none; }
@media (max-width: 919px) {
  header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding-block: 10px; }
  header .brand { grid-column: 1; grid-row: 1; max-width: 100%; }
  header .header-actions { display: contents; }
  header #language { grid-column: 2; grid-row: 1; }
  #mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; grid-column: 3; grid-row: 1; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .875rem; }
  header .header-actions .small { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 44px; }
  header nav { grid-column: 1 / -1; grid-row: 3; width: 100%; padding-top: 8px; }
  header.mobile-menu-ready:not(.mobile-menu-open) nav { display: none; }
  header.mobile-menu-open nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  header nav > a, #treatment-toggle { width: 100%; padding: 10px 8px; }
  #treatment-menu { position: static; width: 100%; max-height: 55vh; overflow-y: auto; box-shadow: none; padding: 8px; }
  #treatment-links { grid-template-columns: minmax(0, 1fr); }
}
