:root {
  --bg: #f6f8f7; --card: #fff; --ink: #0f1f1c; --muted: #5b6b67; --line: #e3ebe8;
  --brand: #0f766e; --brand-2: #14b8a6; --soft: #e6f4f1;
  --ok: #16a34a; --few: #f59e0b; --full: #dc2626; --off: #a78bfa; --closed: #cbd5d1;
  --r: 18px; --shadow: 0 1px 2px rgba(15,31,28,.04), 0 8px 30px rgba(15,31,28,.06);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); margin-top: .8rem; }

.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; padding: .8rem clamp(1rem, 4vw, 3rem);
  background: rgba(246,248,247,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav nav { display: flex; gap: 1.3rem; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: #0b5f58; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15,118,110,.25); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; box-shadow: none; }
.btn-soft { background: var(--soft); color: var(--brand); }
.btn-soft:hover { background: #d3ece7; box-shadow: none; }
.btn-tg { background: #229ed9; } .btn-tg:hover { background: #1b87bb; }
.btn-danger-ghost { background: transparent; color: var(--full); border: 1.5px solid #f3c7c7; }
.btn-danger-ghost:hover { background: #fdf0f0; box-shadow: none; }
.link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 1rem; }
.pill { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: .82rem; font-weight: 600; margin-bottom: 1rem; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 6vw, 5rem) 3rem; max-width: 1240px; margin: auto; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts span { color: var(--muted); font-size: .9rem; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 28px; aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 60px rgba(15,31,28,.18); }
.hero-photo::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border-radius: 32px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); opacity: .18; z-index: -1; }
.float-card { position: absolute; left: -1.5rem; bottom: 1.5rem; display: flex; gap: .7rem; align-items: center; background: #fff; padding: .8rem 1.1rem; border-radius: 16px; box-shadow: var(--shadow); max-width: 80%; }
.float-card small { display: block; color: var(--muted); font-size: .78rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px #dcfce7; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-photo { max-width: 420px; margin: auto; } .float-card { left: .8rem; } }

.section { padding: 4rem clamp(1rem, 6vw, 5rem); max-width: 1240px; margin: auto; }
.sub { color: var(--muted); margin-top: -.2rem; margin-bottom: 2rem; max-width: 40rem; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.service { padding: 1.6rem; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.service::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.svc-dot { width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--c) 15%, white); margin-bottom: 1rem; position: relative; }
.svc-dot::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--c); }
.service h3 { margin-bottom: .1rem; }
.service .sched { font-size: .9rem; background: var(--bg); border-radius: 12px; padding: .7rem .9rem; margin-top: auto; margin-bottom: 1rem; }
.service .btn { align-self: flex-start; }

.booking { --c: var(--brand); }
.steps { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.tab { display: flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.tab i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.tab small { color: var(--muted); font-weight: 500; }
.tab.active { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent); }
.book-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.cal-card, .slots-card { padding: 1.4rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-head h3 { margin: 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 1.3rem; cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid.loading { opacity: .5; }
.cal-dow span { text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); padding-bottom: 4px; }
.day { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid transparent; font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: transform .1s; padding: 0; }
.day b { font-size: 1rem; }
.day small { font-size: .62rem; opacity: .85; line-height: 1.1; }
.day.disponible { background: #dcfce7; color: #14532d; }
.day.pocos { background: #fef3c7; color: #78350f; }
.day.completo { background: #fee2e2; color: #991b1b; text-decoration: line-through; }
.day.vacaciones, .day.cancelado { background: #ede9fe; color: #5b21b6; }
.day.cerrado, .day.past { background: #f1f4f3; color: #a8b4b0; }
.day:not([disabled]):hover { transform: scale(1.06); }
.day[disabled] { cursor: default; }
.day.today { border-color: var(--ink); }
.day.sel { background: var(--c); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent); }
@media (max-width: 480px) { .day small { display: none; } .cal-grid { gap: 4px; } }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; font-size: .82rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: .35rem; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg.disponible { background: #bbf7d0; } .lg.pocos { background: #fde68a; } .lg.completo { background: #fecaca; } .lg.vacaciones { background: #ddd6fe; } .lg.cerrado { background: #e5eae8; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-ico { font-size: 2.5rem; margin-bottom: .5rem; }
.slots-card h3 { margin-bottom: .1rem; }
.slot-group h4 { margin: 1.2rem 0 .5rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.slot-group > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .5rem; }
.slot { padding: .65rem 0; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--c) 35%, white); background: color-mix(in srgb, var(--c) 6%, white); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.slot:hover:not([disabled]) { background: var(--c); color: #fff; border-color: var(--c); }
.slot[disabled] { background: #f1f4f3; border-color: transparent; color: #b5c0bc; text-decoration: line-through; cursor: default; }

form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .9rem; }
input, textarea, select { display: block; width: 100%; margin-top: .35rem; padding: .75rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.hp { position: absolute; left: -9999px; }
.summary { display: flex; gap: .8rem; align-items: center; background: var(--bg); border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1.2rem; }
.summary i { width: 12px; align-self: stretch; border-radius: 6px; }
.summary span { display: block; color: var(--muted); font-size: .92rem; }
.error { color: var(--full); background: #fef2f2; padding: .7rem .9rem; border-radius: 12px; font-weight: 500; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-photo img { border-radius: 28px; box-shadow: var(--shadow); }
.about .role { color: var(--brand); font-weight: 600; margin-top: -.4rem; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: .8rem; display: grid; place-items: center; font-weight: 700; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.contact-card { display: flex; gap: .9rem; align-items: center; padding: 1.2rem; text-decoration: none; color: var(--ink); transition: transform .15s; }
.contact-card:hover { transform: translateY(-2px); }
.contact-card > span { font-size: 1.5rem; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.contact-card small { display: block; color: var(--muted); }

.ticket-wrap { max-width: 640px; }
.ticket { overflow: hidden; }
.ticket-top { text-align: center; padding: 2.2rem 1.5rem 1.4rem; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, white), #fff); }
.ticket-top.cancel { background: #fef2f2; }
.big-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2rem; color: #fff; background: var(--ok); }
.cancel .big-ico { background: var(--full); }
.ticket-body { margin: 0; padding: 1rem 1.6rem; border-top: 2px dashed var(--line); }
.ticket-body div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.ticket-body dt { color: var(--muted); }
.ticket-body dd { margin: 0; font-weight: 600; text-align: right; display: flex; align-items: center; gap: .4rem; }
.ticket-body dd i { width: 10px; height: 10px; border-radius: 50%; }
.tg-box { margin: 1rem 1.6rem; padding: 1rem; border-radius: 14px; background: #e8f5fc; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.tg-box small { display: block; color: var(--muted); }
.tg-box.done { justify-content: center; font-weight: 600; color: #0c6b98; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0 1.6rem; }
.ticket .fine { padding: 0 1.6rem 1.6rem; word-break: break-all; }

footer { text-align: center; padding: 2.5rem 1rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); margin-top: 2rem; }
footer a { color: var(--muted); }
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; z-index: 50; box-shadow: var(--shadow); }
