/* Marca: paleta tomada de las piezas públicas del Centro Odontológico Boulevard */
:root {
  --green-900: #123d2c;
  --green-700: #1d5c42;
  --green-600: #2a7654;
  --green-500: #3f9068;
  --green-100: #e3efe7;
  --green-50: #f2f7f3;
  --red: #c4282e;
  --paper: #fbfaf7;
  --ink: #1d2a24;
  --muted: #5b6b63;
  --line: #d8e3dc;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(18, 61, 44, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--green-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h1 em { font-style: italic; color: var(--green-600); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--green-700); }
.wrap { width: min(1160px, 100% - 32px); 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(--green-700); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--green-600); margin-bottom: .8em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; border: 0; border-radius: 999px; padding: .95em 1.5em; font: 600 1rem/1 var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn svg { width: 1.25em; height: 1.25em; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-900); }
.btn--ghost { background: transparent; color: var(--green-700); box-shadow: inset 0 0 0 1.5px var(--green-600); }
.btn--ghost:hover { background: var(--green-50); }
.btn--sm { padding: .7em 1.1em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn:focus-visible, .service:focus-visible, .choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 3px; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 247, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand img { height: 44px; width: auto; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--green-600); }

/* Portada */
.hero { position: relative; background: linear-gradient(160deg, var(--green-50) 0%, #eaf3ed 55%, var(--green-100) 100%); padding: 36px 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 20%, rgba(63, 144, 104, .12) 0 60px, transparent 61px), radial-gradient(circle at 20% 28%, rgba(63, 144, 104, .1) 0 22px, transparent 23px), radial-gradient(circle at 88% 12%, rgba(63, 144, 104, .1) 0 34px, transparent 35px); pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 28px; align-items: center; }
.lead { font-size: 1.12rem; color: #33443c; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; color: #33443c; }
.hero__facts li { display: flex; gap: 10px; align-items: center; }
.hero__facts svg { width: 20px; height: 20px; color: var(--green-600); flex: none; }
.hero__photo { position: relative; margin: 0 auto; width: min(420px, 88%); }
.hero__blob { position: absolute; inset: 12% -6% -2% -6%; background: var(--green-600); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; opacity: .16; }
.hero__photo img { position: relative; border-radius: 28px 28px 120px 28px; box-shadow: var(--shadow); aspect-ratio: 5 / 7; object-fit: cover; width: 100%; }
.hero__photo figcaption { position: absolute; left: -8px; bottom: 26px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: grid; line-height: 1.3; }
.hero__photo figcaption strong { font-family: var(--serif); color: var(--green-900); }
.hero__photo figcaption span { font-size: .82rem; color: var(--muted); }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--paper); }

/* Pasos */
.steps { padding: 8px 0 12px; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps__list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.steps__n { font: 600 .8rem/1 var(--sans); color: var(--red); letter-spacing: .1em; }
.steps__list h3 { margin: 8px 0 4px; }
.steps__list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Secciones */
.section { padding: 64px 0; }
.section--tint { background: var(--green-50); }
.section__head { max-width: 640px; margin-bottom: 28px; }
.split { display: grid; gap: 32px; align-items: center; }

/* Tratamientos */
.services { display: grid; gap: 14px; }
.service { text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; cursor: pointer; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.service:hover { border-color: var(--green-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.service__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.service__icon svg { width: 26px; height: 26px; }
.service__name { display: block; margin: 0 0 2px; font: 600 1.08rem/1.25 var(--serif); color: var(--green-900); }
.service__short { display: block; color: var(--muted); font-size: .92rem; }
.service__go { color: var(--green-600); font-size: 1.3rem; }
.service--featured .service__icon { background: var(--green-700); color: #fff; }
.service--urgent { border-color: #efc9ca; background: #fff8f8; }
.service--urgent .service__icon { background: #fbe3e4; color: var(--red); }
.notice { margin-top: 18px; font-size: .85rem; color: var(--muted); }

/* Primera vez */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { background: #fff; border-radius: 14px; padding: 16px 18px 16px 50px; position: relative; border: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Doctor */
.doctor__photo { margin: 0; max-width: 340px; }
.doctor__photo img { border-radius: 24px; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; box-shadow: var(--shadow); }
.doctor__role { font-weight: 600; color: var(--green-600); }
.doctor__license { font-size: .9rem; color: var(--muted); }

/* Obras sociales */
.os { display: grid; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.os__icon { width: 44px; height: 44px; color: var(--green-600); }
.os h2 { font-size: 1.5rem; }
.os p { margin: 0; }

/* Consultorio */
.info { display: grid; gap: 14px; margin: 18px 0 0; }
.info div { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.info dd { margin: 2px 0 0; font-weight: 500; }
.place { margin: 0; }
.place img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 16 / 11; object-fit: cover; }

/* Pie */
.footer { background: var(--green-900); color: #dce9e1; padding: 40px 0 110px; }
.footer__grid { display: grid; gap: 10px; }
.footer img { height: 46px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 8px; }
.footer .muted { color: #a9c2b4; }

/* Botón flotante */
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px; font: 600 1rem/1 var(--sans); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); cursor: pointer; }
.fab svg { width: 24px; height: 24px; }

/* Ventanas */
.sheet { border: 0; padding: 0; border-radius: 24px 24px 0 0; width: 100%; max-width: 100%; margin: auto auto 0; max-height: 92vh; background: #fff; color: var(--ink); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); }
.sheet::backdrop { background: rgba(18, 61, 44, .45); backdrop-filter: blur(2px); }
.sheet[open] { animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__close-form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 12px 12px 0; background: linear-gradient(#fff 70%, transparent); z-index: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--green-50); color: var(--green-900); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sheet__body { padding: 0 22px 26px; }
.sheet__body h2 { font-size: 1.6rem; }
.pills { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--green-50); color: var(--green-700); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 500; }

/* Formulario de turno */
.turno fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.turno legend { font-weight: 600; margin-bottom: 8px; }
.choices { display: grid; gap: 8px; }
.choices--2 { grid-template-columns: 1fr 1fr; }
.choices--3 { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s; text-align: center; }
#reason-options .choice span { text-align: left; }
.choice input:checked + span { border-color: var(--green-600); background: var(--green-50); color: var(--green-900); font-weight: 600; }
.field { display: grid; gap: 6px; margin-bottom: 18px; font-weight: 600; }
.field input { font: 400 1rem var(--sans); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px var(--green-100); }
.form-error { color: var(--red); font-weight: 600; font-size: .9rem; }
.privacy { margin-top: -4px; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--green-900); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; font-size: .92rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 720px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .os { grid-template-columns: auto 1fr auto; padding: 32px 36px; }
  .sheet { border-radius: 24px; max-width: 520px; margin: auto; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
  .hero { padding: 64px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .hero__photo { width: 100%; max-width: 430px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--doctor { grid-template-columns: .8fr 1.2fr; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .service { grid-template-columns: 1fr; align-content: start; padding: 24px; }
  .service__go { display: none; }
  .fab { display: none; }
  .footer { padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
