/* Mobile first: estilos base para teléfono; los bloques @media agregan tablet (600px) y escritorio (900px). */
:root {
  --bg: #faf7f1;
  --surface: #ffffff;
  --tint: #f1f6f1;
  --ink: #1c2b24;
  --muted: #55645c;
  --line: #e3dfd4;
  --green: #2c6e49;
  --green-d: #1d4d33;
  --green-l: #e2efe5;
  --blue: #4a67c8;
  --blue-l: #e9eefb;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .06), 0 10px 28px rgba(20, 40, 30, .08);
  --font-h: 'Fraunces', Georgia, serif;
  --font-b: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font-b); padding-bottom: 84px; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--font-h); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 8.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 6.2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; scroll-margin-top: 64px; }
.tint { background: var(--tint); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: .75rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.section-head { margin-bottom: 28px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: 0 1.4rem; border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: #fff; font: 600 1rem var(--font-b); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-l); color: var(--green-d); }
.btn-light { background: #fff; border-color: #fff; color: var(--green-d); }
.btn-light:hover { background: var(--green-l); border-color: var(--green-l); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 241, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand b { font-family: var(--font-h); font-size: 1.15rem; font-weight: 600; }
.brand small { font-size: .78rem; color: var(--muted); }
.nav { display: none; }

/* Portada */
.hero { padding: 36px 0 48px; }
.hero-grid { display: grid; gap: 44px; }
.ctas { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 0; }
.portrait { position: relative; isolation: isolate; justify-self: center; width: min(280px, 78%); margin: 0 0 0 14px; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 28px 28px; box-shadow: var(--shadow); }
.portrait::before { content: ""; position: absolute; inset: 16px 16px -16px -16px; border-radius: 999px 999px 28px 28px; background: var(--green-l); z-index: -1; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 0; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: .88rem; line-height: 1.35; color: var(--muted); }
.facts b { display: block; font-family: var(--font-h); font-size: 1.1rem; color: var(--green-d); margin-bottom: 2px; }

/* Tarjetas */
.grid { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); padding: 22px; }
.card-blue { border-top-color: var(--blue); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--muted); }

/* Sobre mí */
.about-grid { display: grid; gap: 32px; }
.about-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.about-side h3 + .cred { margin-bottom: 24px; }
.about-side .cred:last-child { margin-bottom: 0; }
.cred { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cred li { position: relative; padding-left: 1.3rem; line-height: 1.4; }
.cred li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.cred small { display: block; color: var(--muted); font-size: .85rem; }

/* Agenda */
.booking { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.step { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.step legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.step legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: flex; align-items: center; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover > span { border-color: var(--green); }
.opt input:checked + span { border-color: var(--green); background: var(--green-l); color: var(--green-d); box-shadow: inset 0 0 0 1px var(--green); }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; border-color: var(--line); }
.opt small { color: var(--muted); font-size: .8rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg span { flex-direction: column; align-items: flex-start; padding: 12px 14px; line-height: 1.3; }
.days { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: thin; }
.days .opt { flex: 0 0 auto; scroll-snap-align: start; }
.days span { flex-direction: column; justify-content: center; min-width: 82px; padding: 10px 12px; line-height: 1.25; text-align: center; }
.days b { font-family: var(--font-h); font-size: 1.35rem; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.times span { justify-content: center; padding: 12px 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input { min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-l); }
.summary { background: var(--tint); border-left: 4px solid var(--green); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 4px 0 18px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { min-height: 1.5em; margin: 12px 0 0; color: #b3261e; font-weight: 600; }
.done { text-align: center; padding: 32px 20px; }
.done:focus { outline: none; }
.done .ctas { align-items: center; margin-bottom: 0; }

/* Preguntas */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.crisis { margin: 32px 0 0; background: var(--blue-l); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; }

/* Pie */
.foot { background: var(--green-d); color: #d5e8db; padding: 48px 0 32px; }
.foot h2 { color: #fff; font-size: 1.6rem; }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 20px; }
.contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.copy { margin: 0; font-size: .85rem; opacity: .75; }

/* Barra fija inferior (solo teléfono) */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .25s; }
.mbar .btn { flex: 1; }
.mbar .wa { flex: 0 0 54px; padding: 0; }
.mbar.off { transform: translateY(110%); }

/* Panel de reservas */
.admin { padding-bottom: 0; }
.admin main { padding: 32px 16px 64px; }
.admin-list { display: grid; gap: 12px; }
.admin-list .card p { color: var(--ink); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

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

@media (min-width: 600px) {
  .ctas { flex-direction: row; flex-wrap: wrap; }
  .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .times { grid-template-columns: repeat(4, 1fr); }
  .admin-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .mbar { display: none; }
  .nav { display: flex; gap: 28px; }
  .nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
  .nav a:hover { color: var(--green); }
  section { padding: 96px 0; }
  .section-head { max-width: 640px; margin-bottom: 40px; }
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
  .portrait { width: min(340px, 100%); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid { gap: 18px; }
  .about-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
  .booking { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 36px; }
  .booking.done { display: block; max-width: 640px; margin: 0 auto; }
  .days { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0; }
  .foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .copy { grid-column: 1 / -1; }
}
