/* ReservaPro — minisitio público. Vanilla CSS, sin frameworks. */
:root {
  --brand: #E3C39E;
  --dark: #1B2A49;
  --on-brand: #1B2A49;    /* texto sobre --brand (se recalcula en JS) */
  --on-dark: #ffffff;
  --brand-soft: color-mix(in srgb, var(--brand) 18%, white);
  --brand-line: color-mix(in srgb, var(--brand) 45%, white);
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #15181f;
  --muted: #5f6673;
  --line: #e7e9ee;
  --wa: #25D366;
  --wa-dark: #1ebe5b;
  --danger: #d23f3f;
  --ok: #1f9d55;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -8px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .35);
  --font-head: "Plus Jakarta Sans", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
body.modal-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--dark) 55%, var(--brand)); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: .5rem .9rem; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
.muted-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--dark) 70%, var(--brand)); margin-bottom: .35rem; }
.empty { color: var(--muted); text-align: center; padding: 2rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, filter .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-brand { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 70%, black); }
.btn-brand:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 80%, black); }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { filter: brightness(1.12); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { background: #fff; border-color: var(--dark); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f2f5; color: var(--text); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0, 0, 0, .25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.header-nav a { text-decoration: none; font-weight: 500; color: var(--muted); font-size: .93rem; transition: color .15s; }
.header-nav a:hover { color: var(--dark); }
.header-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.header-nav + .header-actions { margin-left: 0; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 600; color: var(--dark); font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: var(--header-h); min-height: 560px; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--dark); }
.hero-cover { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .15) 40%, color-mix(in srgb, var(--dark) 85%, black) 100%); }
.hero-content { padding: 3rem 0 2.5rem; width: min(1180px, 100% - 2rem); }
.hero-card { max-width: 720px; }
.hero-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.hero-logo { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; border: 3px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow); background: #fff; flex: none; }
.hero-name { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero-tagline { font-size: clamp(1rem, .9rem + .5vw, 1.2rem); opacity: .92; margin-top: .25rem; font-weight: 500; }
.rating-row { display: flex; align-items: center; gap: .55rem; font-size: .95rem; margin-bottom: .9rem; }
.rating-row strong { font-size: 1.05rem; }
.hero .muted-link { color: rgba(255, 255, 255, .85); }
.stars { display: inline-flex; gap: 2px; color: #F5B301; }
.stars svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(8px);
  font-size: .86rem; font-weight: 500; text-decoration: none;
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip-open .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .25); }
.chip-closed .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff7a7a; box-shadow: 0 0 0 4px rgba(255, 122, 122, .25); }
.hero-desc { max-width: 60ch; opacity: .9; margin-bottom: 1.4rem; font-size: .98rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Buscador + tabs */
.search { display: flex; align-items: center; gap: .55rem; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: .55rem 1rem; min-width: min(320px, 100%); transition: border-color .15s, box-shadow .15s; color: var(--muted); }
.search:focus-within { border-color: var(--dark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 40%, transparent); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--text); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .15s;
}
.tab:hover { border-color: var(--dark); color: var(--dark); }
.tab[aria-selected="true"] { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }

/* Tarjetas de servicio */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.svc-card {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.15rem 1.2rem; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.svc-card.featured { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-soft), #fff 60%); }
.svc-top { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.svc-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.svc-badge { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-brand); background: var(--brand); padding: .25rem .55rem; border-radius: 999px; flex: none; }
.svc-desc { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-meta { display: flex; align-items: center; gap: .9rem; color: var(--muted); font-size: .88rem; }
.svc-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: .25rem; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--line); }
.svc-price { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--dark); }
.svc-price small { font-weight: 500; color: var(--muted); font-size: .78rem; margin-left: .2rem; }
.svc-pros { display: flex; }
.svc-pros img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; object-fit: cover; background: #ddd; }
.svc-pros img:first-child { margin-left: 0; }

/* Profesionales */
.pros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.pro-card { padding: 1.5rem 1.25rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pro-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pro-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-soft); box-shadow: 0 0 0 2px var(--brand); background: #eee; }
.pro-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.pro-role { color: color-mix(in srgb, var(--dark) 70%, var(--brand)); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.pro-bio { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pro-card .btn { margin-top: .5rem; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .75rem; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #e9e9e9; position: relative; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(n+6) { display: none; } /* escritorio: 1 grande + 4 = mosaico cerrado */
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* Reseñas */
.carousel { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; scrollbar-width: none; margin-bottom: 2rem; }
.carousel::-webkit-scrollbar { display: none; }
.rev-card { flex: 0 0 min(360px, 85vw); scroll-snap-align: start; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.rev-head { display: flex; align-items: center; gap: .75rem; }
.rev-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--dark); color: var(--on-dark); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); flex: none; }
.rev-name { font-weight: 700; }
.rev-date { color: var(--muted); font-size: .82rem; }
.rev-text { color: #333a47; font-size: .95rem; }
.rev-text::before { content: "“"; color: var(--brand); font-size: 1.6rem; font-family: Georgia, serif; line-height: 0; margin-right: .1rem; vertical-align: -.3rem; }
.carousel-nav { display: flex; gap: .5rem; }
.review-form-wrap { max-width: 720px; }
.review-form { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
#bkForm { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; }
.field input, .field textarea, .field select {
  padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; font-weight: 400;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--dark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 40%, transparent); }
.field .hint { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field.invalid input { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; font-weight: 500; }
.star-input { display: flex; gap: .2rem; }
.star-input button { background: none; border: 0; padding: .15rem; color: #d7d9de; transition: transform .12s, color .12s; }
.star-input button svg { width: 28px; height: 28px; }
.star-input button.on { color: #F5B301; }
.star-input button:hover { transform: scale(1.15); }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-msg { font-size: .9rem; color: var(--muted); }
.form-msg.ok { color: var(--ok); font-weight: 600; }
.form-msg.error { color: var(--danger); font-weight: 600; }

/* Ubicación */
.location-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; }
.map-card { overflow: hidden; display: flex; flex-direction: column; }
.map-card iframe { width: 100%; height: 340px; border: 0; display: block; background: #e8eef5; flex: 1; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; flex-wrap: wrap; }
.loc-address { font-weight: 500; }
.hours-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.hours-list li.today { font-weight: 700; color: var(--dark); }
.today-tag { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--brand); color: var(--on-brand); padding: .1rem .45rem; border-radius: 999px; margin-left: .4rem; vertical-align: 1px; }
.hours-list li.closed span:last-child { color: var(--muted); }
.contact-list { display: flex; flex-direction: column; gap: .5rem; font-size: .93rem; }
.contact-list a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--dark); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.contact-list svg { width: 17px; height: 17px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--dark); color: color-mix(in srgb, var(--on-dark) 85%, transparent); padding: 2.5rem 0 1.5rem; margin-top: 1rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 1.25rem; }
.footer-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--on-dark); }
.footer-policy { font-size: .85rem; max-width: 52ch; margin-top: .4rem; opacity: .8; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }
.footer-links a, .footer-links button { color: inherit; text-decoration: none; text-align: left; }
.footer-links a:hover, .footer-links button:hover { color: var(--brand); }
.footer-made { font-size: .85rem; opacity: .75; }
.footer-made a { color: var(--brand); text-decoration: none; }

/* Barra móvil */
.mobile-bar { display: none; position: fixed; inset: auto 0 0 0; z-index: 40; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); gap: .6rem; }
.mobile-bar .btn { flex: 1; padding: .85rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 16, 28, .55); backdrop-filter: blur(3px); animation: fadeIn .2s both; }
.modal-panel {
  position: relative; width: min(680px, 100%); max-height: min(92vh, 860px); background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: popIn .28s var(--ease) both;
}
.modal-sm .modal-panel { width: min(480px, 100%); }
.modal-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.modal-title-wrap { flex: 1; min-width: 0; }
.modal-head h2 { font-size: 1.2rem; }
.modal-sub { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-body { padding: 1.25rem 1.1rem 1.5rem; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.stepper { display: flex; gap: .25rem; padding: .75rem 1.1rem 0; margin: 0; counter-reset: s; }
.stepper li { flex: 1; display: flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; color: var(--muted); padding-bottom: .6rem; border-bottom: 3px solid var(--line); transition: color .2s, border-color .2s; }
.stepper li span { width: 20px; height: 20px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-size: .7rem; flex: none; transition: background .2s, color .2s; }
.stepper li.active { color: var(--dark); border-color: var(--brand); }
.stepper li.active span { background: var(--brand); color: var(--on-brand); }
.stepper li.done { color: var(--dark); border-color: var(--dark); }
.stepper li.done span { background: var(--dark); color: var(--on-dark); }
.stepper.hidden { display: none; }

.step { animation: slideIn .25s var(--ease) both; }
.step h3 { margin-bottom: .9rem; }
.option-list { display: flex; flex-direction: column; gap: .6rem; }
.option {
  display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; padding: .9rem 1rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, background .15s, transform .15s;
}
.option:hover { border-color: var(--dark); transform: translateX(2px); }
.option.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.option-main { flex: 1; min-width: 0; }
.option-title { font-weight: 700; font-family: var(--font-head); }
.option-sub { color: var(--muted); font-size: .85rem; }
.option-price { font-weight: 800; font-family: var(--font-head); color: var(--dark); }
.option img, .option .rev-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.option .any-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; color: var(--dark); flex: none; }
.step-cat { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 1rem 0 .5rem; }
.step-cat:first-child { margin-top: 0; }
.modal-search { margin-bottom: 1rem; }

/* Calendario */
.datetime { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cal { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-head strong { font-family: var(--font-head); text-transform: capitalize; }
.cal-head .icon-btn { width: 34px; height: 34px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: .25rem 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%; font-size: .9rem; font-weight: 500; position: relative; color: var(--text); transition: background .12s, transform .12s; }
.cal-day.pad { visibility: hidden; }
.cal-day:disabled { color: #c2c6cf; cursor: default; text-decoration: line-through; text-decoration-color: #d8dbe0; }
.cal-day.has::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); }
.cal-day.has { font-weight: 700; }
.cal-day.has:hover { background: var(--brand-soft); transform: scale(1.06); }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-day.selected { background: var(--dark); color: var(--on-dark); }
.cal-day.selected::after { background: var(--brand); }
.cal-loading { opacity: .5; pointer-events: none; }
.slots-wrap h4 { font-size: .9rem; margin-bottom: .6rem; color: var(--muted); font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-height: 330px; overflow-y: auto; padding-right: .2rem; }
.slot { padding: .6rem .4rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; font-size: .92rem; transition: all .12s; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--dark); }
.slot.selected { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.slots-empty { color: var(--muted); font-size: .9rem; padding: 1.5rem .5rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.slots-group-label { grid-column: 1 / -1; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .4rem; }

/* Resumen y confirmación */
.summary { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); padding: .9rem 1rem; display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .92rem; margin-bottom: 1.1rem; }
.summary dt { color: var(--muted); font-weight: 500; }
.summary dd { margin: 0; font-weight: 600; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.form-error { color: var(--danger); font-weight: 600; font-size: .9rem; }
.policy-note { font-size: .8rem; color: var(--muted); margin-top: .75rem; }
.confirm { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.confirm-icon { width: 76px; height: 76px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, white); color: var(--ok); display: grid; place-items: center; animation: popIn .4s var(--ease) both; }
.confirm-icon svg { width: 38px; height: 38px; }
.confirm h3 { font-size: 1.5rem; }
.confirm .summary { text-align: left; width: 100%; }
.confirm-actions { display: flex; flex-direction: column; gap: .6rem; width: 100%; }
.confirm-actions .btn { width: 100%; }
.confirm-id { font-size: .8rem; color: var(--muted); }
.confirm-id code { background: #f1f2f5; padding: .1rem .4rem; border-radius: 6px; }
.status-pill { display: inline-block; padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.status-confirmed, .status-pending { background: color-mix(in srgb, var(--ok) 14%, white); color: var(--ok); }
.status-cancelled { background: #fde8e8; color: var(--danger); }
.status-completed { background: #e8edf5; color: var(--dark); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--dark); border-radius: 50%; animation: spin .8s linear infinite; margin: 2rem auto; }
.skeleton { background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 50%, #eef0f3 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); min-height: 120px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--dark); color: var(--on-dark); padding: .75rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 120; font-size: .92rem; max-width: min(92vw, 420px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); color: #fff; }

/* ---------- Animaciones ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-cover { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header-nav { display: none; }
  .location-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
  .gallery figure:nth-child(n+6) { display: block; }
  .gallery figure:nth-child(n+7) { display: none; } /* tablet: 1 grande(2x2) + 4 + ... usa 3 cols */
}
@media (max-width: 640px) {
  :root { --header-h: 60px; }
  body { padding-bottom: 84px; }
  .container { width: min(1180px, 100% - 1.5rem); }
  .header-actions .btn-brand { display: none; }
  .header-phone span { display: none; }
  .hero { min-height: 520px; }
  .hero-content { padding: 2rem 0 2rem; }
  .hero-logo { width: 56px; height: 56px; border-radius: 14px; }
  .hero-ctas .btn { flex: 1; }
  .section-head { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery figure:nth-child(n+6) { display: block; }
  .gallery figure:nth-child(n+8) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { max-height: 94vh; border-radius: 20px 20px 0 0; width: 100%; animation-name: slideUp; }
  .datetime { grid-template-columns: 1fr; }
  .slots { max-height: none; grid-template-columns: repeat(3, 1fr); }
  .stepper li { font-size: 0; gap: 0; }
  .stepper li span { font-size: .7rem; }
  .map-card iframe { height: 260px; }
  .site-footer { padding-bottom: 1rem; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
