/* Base común de las webs de demostración. Cada demo define su tema en :root. */
@font-face { font-family: "Inter"; src: url("../assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .6em; font-family: var(--display); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; }
svg { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.section { padding: 4rem 0; }
.muted { color: var(--ink-2); }

/* Franja de aviso: es una demo */
.demo-bar { margin: 0; background: #12100E; color: #EDE6DA; font: 500 .85rem/1.45 "Inter", sans-serif; padding: .6rem 16px; text-align: center; }
.demo-bar a { color: #E0AE78; font-weight: 600; }

.btn { display: inline-block; padding: .8rem 1.35rem; border-radius: var(--radius-btn, 999px); background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); font: 600 1rem/1.2 "Inter", sans-serif; text-decoration: none; cursor: pointer; text-align: center; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Abierto ahora */
.open { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .85rem; border-radius: 999px; font: 600 .85rem/1.4 "Inter", sans-serif; background: #DDEBD9; color: #1F5429; }
.open::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.open.is-closed { background: #F4DCD5; color: #8A2E1E; }

/* Horario */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hours td + td { text-align: right; }
.hours .today td { font-weight: 700; }

/* Formularios de demo */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.form input, .form select, .form textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius-in, 10px); background: var(--field, #fff); color: var(--ink); font: inherit; }
.form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form .btn { justify-self: start; }
.demo-msg { margin: 0; padding: .8rem 1rem; border-radius: 10px; background: #DDEBD9; color: #1F5429; font-weight: 500; }

/* Mapa ilustrado */
.map { border-radius: var(--radius-card, 14px); overflow: hidden; border: 1px solid var(--line); }

.footer { padding: 2rem 0 2.5rem; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer a { font-weight: 600; }
