/* Web de ejemplo · Clínica Alba (negocio ficticio) */
@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
:root { --bg: #FBF8F5; --ink: #2A1F2D; --muted: #6E6372; --line: #EAE2DD; --brand: #7A3E65; --brand-ink: #fff; --soft: #F3E9EF; --card: #fff; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #17121A; --ink: #F1EBEF; --muted: #B3A8B1; --line: #2E2530; --brand: #D08AB8; --brand-ink: #17121A; --soft: #2A1E28; --card: #1F1922; color-scheme: dark; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 "Instrument Sans", system-ui, sans-serif; padding-bottom: 72px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); } h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); } h3 { font-size: 1.1rem; }
a { color: var(--brand); }
.in { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.ribbon { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; background: #14161A; color: #fff; font-size: .8rem; padding: 7px 12px; text-align: center; }
.ribbon a { color: #fff; opacity: .85; }
.ribbon .ribbon-cta { background: #2346E0; color: #fff; opacity: 1; padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.hdr { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hdr .in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { display: block; font-family: "Bricolage Grotesque"; font-size: 1.1rem; } .brand small { color: var(--muted); font-size: .78rem; }
.mark { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; } .nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; } .nav a:hover { color: var(--ink); background: var(--soft); }
.btn { font: 500 .95rem "Instrument Sans", sans-serif; background: var(--brand); color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 999px; padding: 0 18px; min-height: 42px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { filter: brightness(1.08); }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-line { background: transparent; color: var(--brand); }
.hero { padding: 56px 0 48px; background: radial-gradient(1200px 400px at 80% -10%, var(--soft), transparent); }
.hero .sub { color: var(--muted); font-size: 1.15rem; max-width: 46ch; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9E6A; }
.status.closed::before { background: #C0392B; }
.sec { padding: 56px 0; } .sec.alt { background: var(--soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.meta { color: var(--muted); margin: 0 0 12px; }
.person .ph { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); color: var(--brand); display: grid; place-items: center; font: 600 1.2rem "Bricolage Grotesque"; margin-bottom: 8px; }
.stars { color: #E2A400; letter-spacing: 2px; }
blockquote { margin: 0; } figcaption { color: var(--muted); font-size: .9rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.map { height: 180px; border-radius: 16px; border: 1px solid var(--line); background: repeating-linear-gradient(45deg, var(--card), var(--card) 12px, var(--soft) 12px, var(--soft) 24px); position: relative; }
.pin { position: absolute; left: 50%; top: 45%; width: 22px; height: 22px; background: var(--brand); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 18px; } .hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); } .hours td { text-align: right; }
.ftr { padding: 28px 0; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.mbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px; background: var(--card); border-top: 1px solid var(--line); display: none; z-index: 20; }
.mbar .btn { width: 100%; min-height: 50px; }
@media (max-width: 760px) { .nav { display: none; } .hdr .btn { display: none; } .mbar { display: block; } .two { grid-template-columns: 1fr; } }
@media (min-width: 761px) { body { padding-bottom: 0; } }
/* Modal de reserva */
.modal { position: fixed; inset: 0; background: rgba(20, 12, 20, .5); z-index: 50; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.sheet { background: var(--bg); width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 20px; max-height: 90vh; overflow-y: auto; }
@media (min-width: 640px) { .modal { place-items: center; } .sheet { border-radius: 20px; } }
.m-head { display: flex; justify-content: space-between; align-items: center; } .m-head h2 { font-size: 1.4rem; margin: 0; }
.x { background: none; border: 0; font-size: 1.8rem; color: var(--muted); cursor: pointer; width: 40px; height: 40px; }
.steps { display: flex; gap: 6px; margin: 12px 0 16px; } .steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); } .steps span.on { background: var(--brand); }
.opts { display: grid; gap: 8px; } .opt { text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.opt[aria-pressed="true"], .opt:hover { border-color: var(--brand); } .opt[aria-pressed="true"] { background: var(--soft); }
.opts.days { grid-template-columns: repeat(5, 1fr); } .opts.days .opt { flex-direction: column; align-items: center; padding: 10px 4px; }
.opts.times { grid-template-columns: repeat(3, 1fr); } .opts.times .opt { justify-content: center; }
.fld { display: grid; gap: 4px; margin-bottom: 10px; } .fld input { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.m-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.done { text-align: center; padding: 18px 0; } .done .ok { width: 56px; height: 56px; border-radius: 50%; background: #E3F4EC; color: #1F8A5B; display: grid; place-items: center; margin: 0 auto 10px; font-size: 1.6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
