/* Public booking page (/reservar), its terms (/reservar/terminos) and its privacy notice (/reservar/privacidad).
   Look: direction «Horizonte», the same as the new orchardchile.com (repo orchard-website, site/assets/site.css):
   warm paper, deep blue for headings and actions, amber only as an accent, Fraunces headings, Figtree text, capsule
   shapes and soft shadows. The page lives inside the website's iframe (paper slot, about 330 to 900 px wide) and also
   opens on its own. Fonts are served by FULLMED itself: the page's CSP allows nothing from third parties. Licences
   (SIL OFL 1.1) sit next to the fonts in /web-booking-assets/fonts/. */

@font-face{font-family:"Fraunces";font-style:normal;font-weight:300 600;font-display:swap;src:url(/web-booking-assets/fonts/fraunces-soft72-latin.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 800;font-display:swap;src:url(/web-booking-assets/fonts/figtree-latin.woff2) format("woff2")}
/* Wordmark subset: only the letters of «Centro Médico Orchard». Downloaded only when the page is opened directly. */
@font-face{font-family:"Orchard Wordmark";font-style:normal;font-weight:400 700;font-display:block;src:url(/web-booking-assets/fonts/outfit-wordmark.woff2) format("woff2")}

:root{
  color-scheme:light;
  --deep:#264e93;
  --deep-strong:#1c3b72;
  --ink:#182641;
  --ink-2:#4a5670;
  --paper:#fbf7f0;
  --paper-2:#f4ecdd;
  --sand-tint:#f6e6cc;
  --amber-strong:#8a5a12;
  --rule:#e4d8c4;
  --white:#fff;
  /* Outlines of fields and radio circles: 3.2:1 on paper and 3.5:1 on white (WCAG 1.4.11). Placeholders 4.8:1. */
  --field:#818a9c;
  --placeholder:#6b7385;
  /* WhatsApp green, dark enough for white text (5:1). */
  --wa:#16804a;
  --wa-strong:#0f6a3c;
  --err:#8f1d16;
  --err-bg:#fbeae6;
  --err-line:#efc5bc;
  --font-display:"Fraunces",Georgia,"Times New Roman",serif;
  --font-sans:"Figtree",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-brand:"Orchard Wordmark","Figtree",ui-sans-serif,system-ui,sans-serif;
  --ease:cubic-bezier(.2,.8,.2,1);
  --lift:0 1px 0 rgb(20 44 87 / .04),0 30px 50px -40px rgb(20 44 87 / .35);
  /* The site's chevron (pointing down), used as a mask for the week arrows. */
  --chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  /* WhatsApp glyph (Simple Icons, CC0), used as a mask so it takes the text colour. */
  --wa-glyph:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.55 var(--font-sans)}
a{color:var(--deep);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--deep-strong)}
:focus-visible{outline:3px solid var(--deep);outline-offset:3px}
[hidden]{display:none!important}
.wb{max-width:680px;margin:0 auto;padding:14px clamp(16px,4.5vw,28px) 28px}
.wb-muted{color:var(--ink-2)}
.wb-nowrap{white-space:nowrap}
.wb-small{font-size:.875rem}
.wb-panel p{margin:0 0 12px;text-wrap:pretty}

/* Clinic header: shown only when the page is opened directly (web-booking.js). Inside the website's iframe the site
   itself names the clinic. Same lockup as the site: round mark and wordmark. */
.wb-brand{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;padding:6px 0 14px;margin-bottom:12px;border-bottom:1px solid var(--rule)}
.wb-brand-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--deep);text-decoration:none;border-radius:999px}
.wb-brand-link:hover{color:var(--deep-strong)}
.wb-brand-link img{display:block;width:40px;height:40px;flex:none}
.wb-brand-text{display:flex;flex-direction:column;font-family:var(--font-brand);line-height:1;text-transform:uppercase}
.wb-brand-top{font-size:.64rem;font-weight:400;letter-spacing:.24em}
.wb-brand-name{font-size:1.28rem;font-weight:700;letter-spacing:.07em;margin-top:4px}
.wb-brand-note{font-size:.75rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--amber-strong)}
.wb-brand-back{font-weight:600;font-size:.95rem}

/* Steps: four capsule bars, filled up to the current step. A finished step is a button that reopens it. */
.wb-head{position:sticky;top:0;z-index:2;background:var(--paper);padding:6px 0 12px}
.wb-steps{display:flex;gap:6px;list-style:none;margin:0;padding:0;counter-reset:s}
.wb-steps li{flex:1 1 0;min-width:0;counter-increment:s}
.wb-steps button{position:relative;display:block;width:100%;min-height:44px;margin:0;padding:12px 0 6px;border:0;border-radius:4px;background:none;font:inherit;font-size:.78rem;line-height:1.3;text-align:left;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}
.wb-steps button::before{content:counter(s) ". "}
.wb-steps button::after{content:"";position:absolute;top:0;left:0;right:0;height:4px;border-radius:999px;background:var(--rule);transition:background-color .3s var(--ease)}
.wb-steps .is-done button{color:var(--ink)}
.wb-steps .is-done button:enabled{cursor:pointer}
.wb-steps .is-done button:enabled:hover{color:var(--deep);text-decoration:underline;text-underline-offset:.2em}
.wb-steps .is-current button{color:var(--deep);font-weight:700}
.wb-steps .is-done button::after,.wb-steps .is-current button::after{background:var(--deep)}
/* Narrow columns (phones, and the site's iframe on phones): the bars already show the order, so the numbers go and
   «Tratamiento» fits in bold. */
@media (max-width:420px){.wb-steps button{font-size:.75rem}.wb-steps button::before{content:none}}

h2{font-family:var(--font-display);font-weight:440;font-size:clamp(1.5rem,1.2rem + 1.2vw,1.85rem);line-height:1.15;letter-spacing:-.012em;color:var(--deep);margin:6px 0 8px;text-wrap:balance}
#wb-age-note,#wb-service-line,#wb-choice-line{margin-bottom:0}
#wb-loading p{display:flex;align-items:center;gap:10px;margin:18px 0}
#wb-loading p::before{content:"";flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--rule);border-top-color:var(--deep);animation:wb-spin .9s linear infinite}

/* Step 1: services as cards, like the site's service cards, with a radio circle. */
.wb-services{display:grid;gap:10px;margin:16px 0 4px}
.wb-option{display:flex;align-items:center;gap:14px;width:100%;margin:0;padding:15px 18px 15px 16px;text-align:left;font:inherit;color:var(--ink);background:var(--white);border:1px solid var(--rule);border-radius:22px;box-shadow:var(--lift);cursor:pointer;transition:border-color .16s,box-shadow .16s}
.wb-option::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;border:2px solid var(--field);background:var(--white);transition:border-color .16s,background-color .16s,box-shadow .16s}
.wb-option > span:first-child{flex:1;min-width:0;font-family:var(--font-display);font-size:clamp(1.0625rem,.95rem + .5vw,1.125rem);font-weight:440;line-height:1.2;color:var(--deep)}
.wb-option small{display:block;margin-top:4px;font-family:var(--font-sans);font-size:.875rem;line-height:1.3;color:var(--ink-2)}
.wb-price{flex:none;white-space:nowrap;font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.wb-option:hover{border-color:var(--field)}
.wb-option[aria-checked="true"]{border-color:var(--deep);box-shadow:inset 0 0 0 1px var(--deep),var(--lift)}
.wb-option[aria-checked="true"]::before{border-color:var(--deep);background:var(--deep);box-shadow:inset 0 0 0 4px var(--white)}

/* Fields */
.wb-field{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0;margin:12px 0 0;font-size:.9rem;font-weight:600;color:var(--ink)}
.wb-field input,.wb-field select{width:100%;min-height:48px;margin:0;padding:11px 14px;font:inherit;font-size:1rem;font-weight:400;color:var(--ink);background-color:var(--white);border:1px solid var(--field);border-radius:14px;transition:border-color .16s,box-shadow .16s}
.wb-field input:not([type="date"]){-webkit-appearance:none;appearance:none}
.wb-field select{-webkit-appearance:none;appearance:none;padding-right:44px;cursor:pointer;background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23264e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/18px 18px}
.wb-field input::placeholder{color:var(--placeholder);opacity:1}
.wb-field input:hover,.wb-field select:hover{border-color:var(--ink-2)}
/* The transparent outline keeps a visible focus in Windows high-contrast mode, which drops box shadows. */
.wb-field input:focus,.wb-field select:focus{outline:2px solid transparent;outline-offset:1px;border-color:var(--deep);box-shadow:0 0 0 3px rgb(38 78 147 / .22)}
.wb-row{display:flex;gap:12px}
/* Two fields per row down to 480 px, so the form stays short in the site's iframe on laptops (about 530 px wide). */
@media (max-width:480px){.wb-row{flex-direction:column;gap:0}}

/* Step 3, laid out like the Reservo widget the clinic used: month, one week at a time (days without free hours are
   dimmed and cannot be chosen), then the hours of the chosen day. On phones the week arrows sit beside «Mes», so the
   seven days get the whole width. */
.wb-schedule{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"month month month" "prev days next" "slots slots slots";align-items:center;gap:0 6px;margin-top:14px;padding:16px 12px 18px;background:var(--white);border:1px solid var(--rule);border-radius:22px;box-shadow:var(--lift)}
.wb-week{display:contents}
.wb-schedule .wb-month-field{grid-area:month;justify-self:center;width:100%;max-width:240px;margin:0 0 14px}
.wb-week-nav{width:44px;height:44px;padding:0;border:0;border-radius:12px;background:none;color:var(--deep);cursor:pointer;display:grid;place-items:center}
.wb-week-nav::before{content:"";width:22px;height:22px;background:currentColor;-webkit-mask:var(--chevron) center/contain no-repeat;mask:var(--chevron) center/contain no-repeat}
.wb-week-prev{grid-area:prev}
.wb-week-prev::before{transform:rotate(90deg)}
.wb-week-next{grid-area:next}
.wb-week-next::before{transform:rotate(-90deg)}
.wb-week-nav:enabled:hover{background:var(--paper)}
.wb-week-nav:disabled{opacity:.3;cursor:default}
.wb-days{grid-area:days;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.wb-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;padding:9px 0 10px;font:inherit;font-size:.75rem;line-height:1.2;color:var(--ink-2);background:var(--white);border:1px solid var(--rule);border-radius:14px;cursor:pointer;transition:border-color .16s,background-color .16s,color .16s}
.wb-day strong{font-family:var(--font-display);font-size:1.3rem;font-weight:440;line-height:1.1;color:var(--deep)}
.wb-day:enabled:hover{border-color:var(--field)}
.wb-day[aria-pressed="true"]{color:var(--white);background:var(--deep);border-color:var(--deep)}
.wb-day[aria-pressed="true"] strong{color:var(--white)}
.wb-day:disabled{cursor:default;opacity:.38;background:transparent;border-color:transparent}
.wb-day.is-today:not([aria-pressed="true"]) strong{text-decoration:underline 2px var(--amber);text-underline-offset:4px}
.wb-schedule .wb-slots{grid-area:slots}
@media (max-width:480px){
  .wb-schedule{grid-template-areas:"prev month next" "days days days" "slots slots slots";padding:14px 10px 16px}
  .wb-schedule .wb-month-field{max-width:none}
  .wb-week-nav{align-self:end;height:46px;margin-bottom:14px}
}
.wb-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin-top:16px;min-height:44px}
.wb-slot{min-height:46px;padding:7px 6px;font:inherit;line-height:1.25;font-weight:600;font-variant-numeric:tabular-nums;color:var(--deep);background:var(--white);border:1px solid var(--rule);border-radius:999px;cursor:pointer;transition:border-color .16s,background-color .16s,color .16s}
.wb-slot:hover{border-color:var(--field)}
.wb-slot[aria-checked="true"]{color:var(--white);background:var(--deep);border-color:var(--deep)}
.wb-slots .wb-muted{grid-column:1/-1;margin:4px 0}

/* Buttons: pills as wide as their text, like the site's. */
.wb-actions{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:20px}
.wb-center{justify-content:center}
.wb-actions + p{margin-top:14px}
.wb-primary,.wb-secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:0;padding:0 24px;border-radius:999px;font:600 1rem/1.15 var(--font-sans);text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,opacity .16s}
.wb-primary{margin-left:auto;color:var(--white);background:var(--deep);border:1px solid var(--deep)}
.wb-primary:hover{color:var(--white);background:var(--deep-strong);border-color:var(--deep-strong)}
.wb-primary:disabled{opacity:.42;cursor:not-allowed}
.wb-primary:disabled:hover{background:var(--deep);border-color:var(--deep)}
.wb-secondary{color:var(--deep);background:transparent;border:1px solid rgb(38 78 147 / .38)}
.wb-secondary:hover{color:var(--deep-strong);border-color:var(--deep)}
.wb-whatsapp{margin:0;min-height:54px;padding:0 28px;font-size:1.0625rem;white-space:normal;background:var(--wa);border-color:var(--wa)}
.wb-whatsapp:hover{background:var(--wa-strong);border-color:var(--wa-strong)}
.wb-whatsapp::before,.wb-contact::before{content:"";flex:none;width:22px;height:22px;background:currentColor;-webkit-mask:var(--wa-glyph) center/contain no-repeat;mask:var(--wa-glyph) center/contain no-repeat}
.wb-contact::before{width:20px;height:20px}
.wb-contact,.wb-contact-other{margin-top:10px}
/* The e-mail option carries the whole address: it wraps instead of overflowing a phone-width column or the iframe. */
.wb-contact-other{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.wb-contact+.wb-contact-other,.wb-contact-other+.wb-contact-other{margin-left:8px}
@media (max-width:480px){.wb-contact+.wb-contact-other,.wb-contact-other+.wb-contact-other{margin-left:0}}
.wb-slots .wb-contact{grid-column:1/-1;justify-self:start;margin-top:0}

/* Step 3: consent and errors */
.wb-consent{display:flex;gap:12px;align-items:flex-start;margin:16px 0 0;padding:14px 16px;font-size:.875rem;line-height:1.5;color:var(--ink-2);background:var(--paper-2);border-radius:16px;cursor:pointer}
.wb-consent input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--deep);cursor:pointer}
.wb-consent a{color:var(--deep);text-decoration:underline}
.wb-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
/* A field the error is about: marked in red, its message right under it. */
.wb-field input[aria-invalid="true"]{border-color:var(--err);box-shadow:0 0 0 3px var(--err-bg)}
.wb-consent:has(input[aria-invalid="true"]){box-shadow:inset 0 0 0 2px var(--err)}
.wb-next-note{margin:16px 0 0}
/* Step 3: why the patient is back at the hours (the chosen one was taken). */
.wb-notice{margin:4px 0 12px;padding:11px 14px;font-size:.9rem;line-height:1.45;color:var(--ink);background:var(--paper-2);border-left:4px solid var(--deep);border-radius:12px}
/* Step 5: what happens after the WhatsApp confirmation. */
.wb-next{margin:18px 0 0;padding:14px 16px;font-size:.9rem;line-height:1.5;color:var(--ink-2);background:var(--paper-2);border-radius:16px}
.wb-next h3{margin:0 0 6px;font-size:.95rem;font-weight:600;color:var(--ink)}
.wb-next ul{margin:0;padding-left:18px}
.wb-next li + li{margin-top:4px}
/* Read by screen readers only (the one countdown warning). */
.wb-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wb-error{margin:14px 0 0;padding:11px 14px;font-size:.9rem;line-height:1.45;color:var(--err);background:var(--err-bg);border:1px solid var(--err-line);border-radius:14px}

/* Step 4: the held hour, in a card with the site's wave on top. */
.wb-summary{position:relative;overflow:hidden;margin:14px 0 18px;padding:28px 20px 18px;background:var(--white);border:1px solid var(--rule);border-radius:22px;box-shadow:var(--lift)}
.wb-summary::before{content:"";position:absolute;left:0;right:0;top:0;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath fill='%23dfa240' d='M0 0H200V9C150 4 110 15 70 8S20 4 0 9Z'/%3E%3Cpath fill='%23264e93' d='M0 0H200V5C150 1 110 10 70 4S20 1 0 5Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat}
.wb-summary dl{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:0}
.wb-summary dt{color:var(--ink-2)}
.wb-summary dd{margin:0;font-weight:600;color:var(--ink)}
#wb-countdown{font-variant-numeric:tabular-nums}
#wb-number{white-space:nowrap}
#wb-code{display:inline-block;padding:0 8px;border-radius:999px;background:var(--sand-tint);letter-spacing:.06em}

/* Privacy notice page */
.wb-doc{max-width:720px;padding-bottom:48px}
.wb-doc h1{font-family:var(--font-display);font-weight:440;font-size:clamp(1.9rem,1.5rem + 1.8vw,2.6rem);line-height:1.08;letter-spacing:-.02em;color:var(--deep);margin:18px 0 8px;text-wrap:balance}
.wb-doc h2{font-size:1.3rem;margin:28px 0 8px}
/* In the terms page the privacy notice sits under its own heading, so its sections are one level down. */
.wb-doc h3{font-family:var(--font-display);font-weight:440;font-size:1.12rem;line-height:1.25;color:var(--deep);margin:22px 0 6px}
.wb-doc p{margin:0 0 12px}
.wb-doc p,.wb-doc li{line-height:1.65}
.wb-doc ul{padding-left:1.3em;margin:8px 0 12px}
.wb-doc li{margin:.3em 0}

/* Phones: a little tighter, so each step needs less scrolling inside the site's iframe. Fields stay 46 px tall. */
@media (max-width:480px){
  .wb{padding-bottom:20px}
  .wb-head{padding:4px 0 10px}
  .wb-field{margin-top:10px;gap:4px}
  .wb-field input,.wb-field select{min-height:46px;padding:10px 13px}
  #wb-service-line,#wb-choice-line{font-size:.9rem;line-height:1.45}
  .wb-consent{margin-top:14px;padding:12px 14px}
  .wb-actions{margin-top:16px}
  /* The step's main button stays in reach at the bottom of the screen (opened directly on a phone). Not on the
     confirmation, whose button already shows first and whose text the bar would cover. */
  .wb-panel:not(#wb-step-5) > .wb-actions,#wb-form > .wb-actions{position:sticky;bottom:0;z-index:1;margin-left:-4px;margin-right:-4px;padding:10px 4px calc(10px + env(safe-area-inset-bottom));background:var(--paper)}
}

/* Motion: a short rise when a step appears. */
@media (prefers-reduced-motion:no-preference){
  .wb-panel:not([hidden]){animation:wb-in .35s var(--ease) both}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
@keyframes wb-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes wb-spin{to{transform:rotate(360deg)}}
