/* =============================================================================
   TuNegocioMejor · «Almanaque de comercio», versión «Petróleo y coral»
   La hoja de calendario de la tienda del barrio, con una paleta serena y cálida:
   verde petróleo (confianza) para la estructura, coral terracota para actuar,
   suelos levemente tintados, esquinas suaves y la fecha elegida rodeada a bolígrafo.
   Fuentes autoalojadas (OFL): Bricolage Grotesque (títulos) y Archivo (texto y números).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.de2f1fe81758.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.ada540c0e24a.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-italic.c60fff53d942.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}

:root {
  /* Paleta «Petróleo y coral»: base serena que da confianza + acento cálido que invita a actuar */
  --paper: #ffffff;
  --paper-2: #f1f6f5;      /* suelo con un leve tinte verde: profundidad sin crema */
  --paper-3: #e4eeec;
  --ground: #f6f9f8;       /* fondo general de las páginas */
  --ink: #1b2a28;          /* tinta verde muy oscura, más amable que el negro puro */
  --ink-2: #3d4e4b;
  --muted: #5f6f6c;
  --placeholder: #5f6f6c;
  --line: #dfe7e5;
  --line-strong: #bccac7;
  --brand: #0e5a55;        /* verde petróleo: confianza y crecimiento */
  --brand-deep: #0a3f3b;
  --brand-soft: #e2efec;
  --red: #c4502e;          /* coral terracota (el nombre se mantiene: es el acento de toda la app) */
  --red-ink: #a8432a;
  --red-soft: #fbe7df;
  --sand: #fbf1e8;         /* zona cálida puntual */
  --ok: #1d7347;
  --ok-soft: #e3f2e9;
  --warn: #875800;
  --warn-soft: #fbefd2;
  --danger: #a8432a;
  --danger-soft: #fbe7df;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sheet: 0 1px 2px rgba(14, 60, 56, .06), 0 12px 32px -16px rgba(14, 60, 56, .28);
  --shadow-soft: 0 1px 2px rgba(14, 60, 56, .05), 0 6px 18px -10px rgba(14, 60, 56, .22);
  --shadow-float: 0 24px 60px -24px rgba(14, 60, 56, .4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; caret-color: var(--red); scrollbar-color: var(--line-strong) transparent; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper);
  font-stretch: 100%; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 2px; }
table, .slot, .t-time, .menu-price, .hours, .sheet, .taco-num { font-variant-numeric: tabular-nums lining-nums; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
a:hover { color: var(--red-ink); text-decoration-color: currentColor; }

h1, h2 { font-weight: 800; font-stretch: 75%; letter-spacing: -0.01em; line-height: 1.02; margin: 0 0 .6rem; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 1.75rem 0 .6rem; }
p { margin: 0 0 1rem; }
p, li, dd, .lead { text-wrap: pretty; }
code { font-family: var(--mono); font-size: .86em; background: var(--paper-2); padding: .1em .35em; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
abbr[title] { text-decoration: none; }

.muted { color: var(--muted); }
.small { font-size: .88rem; }
.pre { white-space: pre-line; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.is-hidden, .hp { display: none !important; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r); text-decoration: none; }
.skip-link:focus { top: 1rem; color: #fff; }
.skip-link:hover { color: #fff; }

/* --- Barra de la plataforma -------------------------------------------------- */
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 2rem; border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 900; font-stretch: 70%; font-size: 1.45rem; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 18px; height: 22px; border-radius: 2px; background: linear-gradient(var(--red) 0 7px, var(--paper) 7px); border: 1.5px solid var(--ink); }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; font-size: .95rem; }
.topnav a { color: var(--ink-2); text-decoration: none; }
.topnav a:hover { color: var(--red-ink); }
.topnav a.btn, .topnav a.btn:hover { color: #fff; }
.topnav .linklike { color: var(--ink-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--r); padding: .4rem .85rem; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 2.75rem 1.5rem 5rem; flex: 1; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; padding: 1.25rem 2rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.made-with a { color: var(--ink-2); }

/* --- Botones -------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: var(--r);
  padding: .65rem 1.2rem; font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--red-ink); border-color: var(--red-ink); color: #fff; } }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { padding: .4rem .8rem; font-size: .86rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; margin-top: .75rem; }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); } }
.btn-ghost:disabled { color: var(--muted); }
.btn-danger { background: var(--paper); color: var(--danger); border-color: #f0b8b3; }
@media (hover: hover) and (pointer: fine) { .btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; } }
.arrow::after { content: "→"; display: inline-block; transition: transform .15s var(--ease); }
.btn:hover .arrow::after, a:hover .arrow::after { transform: translateX(3px); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--red-ink); }
.linklike.danger { color: var(--danger); }
form.inline { display: inline; }
.inline-form { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 170px; min-width: 0; }

/* --- Formularios ---------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem; }
.field-check label { flex: 1 1 0; font-weight: 400; font-size: .92rem; margin: 0; color: var(--ink-2); }
.field-check .error, .field-check .help { flex-basis: 100%; margin-top: 0; }
.field-check input { margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=time],
input[type=datetime-local], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r);
  font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(14, 90, 85, .18); }
input[type=checkbox], input[type=radio] { accent-color: var(--red); width: 1.05rem; height: 1.05rem; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.field ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.field ul label { font-weight: 400; display: inline-flex; gap: .45rem; align-items: center; font-size: .94rem; }
.help { display: block; color: var(--muted); font-size: .84rem; margin-top: .3rem; }
.error { display: block; color: var(--danger); font-size: .86rem; margin-top: .3rem; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.req { color: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.form-grid > .alert, .form-grid > div:last-child { grid-column: 1 / -1; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.5rem; }
.filters input, .filters select { width: auto; flex: 1 1 170px; max-width: 320px; min-width: 0; }
.check { display: inline-flex; gap: .45rem; align-items: center; font-size: .92rem; color: var(--ink-2); white-space: nowrap; }

/* --- Avisos e insignias ------------------------------------------------------- */
.messages { margin-bottom: 1.5rem; }
.alert { padding: .85rem 1.1rem; border-radius: var(--r); margin-bottom: .75rem; background: var(--paper-2); border: 1px solid var(--line); font-size: .95rem; }
.alert-success { background: var(--ok-soft); border-color: #bfe0cc; color: #14532f; }
.alert-error { background: var(--danger-soft); border-color: #f3c3be; color: #7d100b; }
.alert-warning { background: var(--warn-soft); border-color: #eed49a; color: #5c3c00; }
.alert-info { background: var(--paper-2); border-color: var(--line-strong); color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .12rem .55rem; border-radius: 3px; font-size: .78rem; font-weight: 700; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; letter-spacing: .01em; }
.badge-confirmed, .badge-completed, .badge-closed { background: var(--ok-soft); color: var(--ok); }
.badge-pending, .badge-open { background: var(--warn-soft); color: var(--warn); }
.badge-cancelled, .badge-no_show { background: var(--danger-soft); color: var(--danger); }

/* --- Bloques, tablas y listas ------------------------------------------------------ */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; margin-bottom: 1.5rem; min-width: 0; }
.card > h2:first-child { margin-bottom: .9rem; }
.card-inner { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem .3rem; margin-bottom: .9rem; background: var(--paper-2); }
.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.narrow-wide { max-width: 780px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + * { margin-top: 1.5rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.page-head h1 { margin: 0; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.prose { max-width: 680px; }
.table-wrap { overflow-x: auto; position: relative; padding-inline: 2px; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding-top: 0; }
tbody tr:hover { background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td a { text-decoration: none; font-weight: 600; }
td a:hover { text-decoration: underline; }
.row-muted td { opacity: .55; }
table.formset td { vertical-align: middle; }
table.formset td:last-child { padding-right: .75rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { font-weight: 600; text-decoration: none; }
.list a:hover { text-decoration: underline; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.pagination { display: flex; gap: 1.25rem; justify-content: center; align-items: center; margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.tabs { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: .6rem 0; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--red); }
details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
details p { margin: .6rem 0 0; color: var(--ink-2); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--red); transition: transform .2s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
.danger-zone { border-color: #f3c3be; background: #fffafa; }
.copy { cursor: pointer; display: inline-block; padding: .5rem .7rem; overflow-wrap: anywhere; background: var(--paper-2); border: 1px dashed var(--line-strong); }
.copy.copied::after { content: "  · copiado"; color: var(--ok); font-family: var(--font); }

/* =============================================================================
   El almanaque: hoja de mes, círculo rojo y banda del comercio
   ========================================================================== */
.sheet { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; }
.sheet-caption { caption-side: top; text-align: left; padding: 0 0 .6rem; }
.sheet-month { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 2.1rem; line-height: 1; letter-spacing: .01em; }
.sheet-year { font-weight: 300; font-stretch: 75%; font-size: 1.4rem; color: var(--muted); }
.sheet th { text-align: center; padding: .4rem 0; font-size: .78rem; font-weight: 800; color: var(--ink-2); letter-spacing: .04em; border-bottom: 2px solid var(--ink); }
.sheet th.is-sun { color: var(--red); }
.sheet td { padding: 0; border-bottom: 1px solid var(--line); text-align: center; height: 3.1rem; position: relative; vertical-align: middle; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet td > a, .sheet td > span { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 2.9rem; text-decoration: none; color: inherit; }
.sheet .n { font-weight: 800; font-stretch: 62%; font-size: 1.6rem; line-height: 1; position: relative; z-index: 1; }
.sheet .is-sun .n { color: var(--red); }
.sheet .is-past .n, .sheet .is-lleno .n, .sheet .is-cerrado .n { color: var(--muted); font-weight: 500; }
.sheet .is-cerrado .n { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: currentColor; }
.sheet .is-libre a, .sheet .is-abierto a { color: var(--ink); }
/* Punto rojo = se puede ir ese día (días con horas libres al reservar, días que abre en la página del negocio) */
.sheet .is-libre > a::after, .sheet .is-libre > span::after,
.sheet .is-abierto > span::after, .sheet .is-abierto > a::after { content: ""; position: absolute; left: 50%; bottom: .32rem; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red); }
@media (hover: hover) and (pointer: fine) { .sheet .is-libre a:hover, .sheet .is-abierto a:hover { background: var(--red-soft); } }
.sheet .is-sun .n, .sheet .is-sun.is-cerrado .n, .sheet .is-sun.is-past .n { color: var(--red); }
.sheet .is-selected .santo { position: absolute; left: 0; right: 0; bottom: .2rem; font-size: .7rem; font-style: italic; font-weight: 600; line-height: 1; color: var(--red-ink); }
.sheet tr:has(.is-selected .santo) td { height: 3.9rem; }
.sheet .is-selected:has(.santo) .n { transform: translateY(-.5rem); text-decoration: none; }
.sheet .is-selected:has(.santo) .ring { width: 2.5rem; height: 2.5rem; margin: -1.75rem 0 0 -1.25rem; }
.alm-body .sheet tr:has(.is-selected .santo) td { height: 3.3rem; }
.alm-body .sheet .is-selected:has(.santo) .ring { width: 2.1rem; height: 2.1rem; margin: -1.55rem 0 0 -1.05rem; }
/* Hoy con punto: el número sube un poco para que el subrayado de «hoy» no pise el punto */
.sheet .is-today:is(.is-libre, .is-abierto) .n { transform: translateY(-.3rem); }
.sheet .is-today .n { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ring { position: absolute; left: 50%; top: 50%; width: 3.1rem; height: 3.1rem; margin: -1.55rem 0 0 -1.55rem; pointer-events: none; overflow: visible; }
.ring path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 190; stroke-dashoffset: 0; animation: ring-draw .55s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes ring-draw { from { stroke-dashoffset: 190; } to { stroke-dashoffset: 0; } }
.sheet-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.15rem 1.15rem .7rem; box-shadow: var(--shadow-sheet); position: relative; }
.sheet-nav { position: absolute; right: 1rem; top: 1rem; display: flex; gap: .35rem; z-index: 2; }
.sheet-nav a, .sheet-nav span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line-strong); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 700; }
.sheet-nav span { border-color: transparent; }
.sheet-nav a:hover { border-color: var(--ink); color: var(--ink); }
.sheet-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .82rem; color: var(--muted); margin: .7rem 0 0; }
.lg::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; vertical-align: .05em; background: var(--red); }
/* La leyenda dibuja cada marca igual que en la hoja: punto rojo, número tachado o número en gris */
.lg-closed::before, .lg-full::before { content: "8"; width: auto; height: auto; border-radius: 0; background: none; vertical-align: baseline;
  font-weight: 500; font-stretch: 62%; font-size: 1.05rem; line-height: 1; color: var(--muted); }
.lg-closed::before { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: currentColor; }
/* Registro de la plataforma */
.reg-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.reg-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; display: grid; }
.reg-num { font-weight: 900; font-stretch: 62%; font-size: 2rem; line-height: 1; color: var(--brand-deep); }
.reg-name { font-weight: 700; margin-top: .2rem; }
.reg-sub { font-size: .8rem; color: var(--muted); }
.chip.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }
.reg-table td, .reg-table th { white-space: nowrap; font-size: .86rem; }

/* Festivos (Horario y cierres) */
.holiday-region { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin: .9rem 0 1.1rem; }
.holiday-region label { font-weight: 700; }
.holiday-region select { width: auto; min-width: 14rem; }
.holiday-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.holiday-list li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto auto; gap: .4rem 1rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.holiday-date { font-weight: 700; text-transform: capitalize; }
.holiday-state { font-size: .82rem; font-weight: 700; color: var(--danger); }
.holiday-list li.is-open .holiday-state { color: var(--ok); }
.holiday-list li.is-open .holiday-name { color: var(--muted); }
@media (max-width: 640px) {
  .holiday-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .holiday-date { grid-area: 1 / 1; } .holiday-name { grid-area: 2 / 1; } .holiday-state { grid-area: 1 / 2; text-align: right; }
  .holiday-list form { grid-area: 2 / 2; }
}

/* Foto del negocio: en Ajustes y como portada de su página */
.photo-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.photo-preview { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-empty { display: grid; place-items: center; height: 100%; font-weight: 900; font-size: 3rem; color: var(--brand); }
.card .photo-title { margin: 0 0 .3rem; font-size: 1.25rem; }
.photo-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .9rem 0 .4rem; }
.photo-form input[type=file] { max-width: 100%; font-size: .9rem; }
.photo-remove { display: inline-block; margin-bottom: .2rem; }
@media (max-width: 640px) { .photo-card { grid-template-columns: minmax(0, 1fr); } }
.biz-cover { margin: 0 0 1.4rem; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 8; background: var(--paper-2); box-shadow: var(--shadow-soft); }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .biz-cover { aspect-ratio: 16 / 10; margin-bottom: 1.1rem; } }

/* Estados extra del calendario de la página del negocio */
.sheet .is-futuro a, .sheet .is-cita a { color: var(--ink); }
.sheet .is-futuro > a::after { content: ""; position: absolute; left: 50%; bottom: .32rem; width: 5px; height: 5px; margin-left: -3.5px; border-radius: 50%; border: 1.5px solid var(--muted); }
.sheet .is-cita .n { color: var(--brand); }
.sheet .is-cita > a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 2.3rem; height: 2.3rem; margin: -1.15rem 0 0 -1.15rem; border-radius: 50%; background: var(--brand-soft); border: 2px solid var(--brand); }
.sheet .is-cita.is-past .n { color: var(--brand); font-weight: 800; }
@media (hover: hover) and (pointer: fine) { .sheet .is-futuro a:hover, .sheet .is-cita a:hover { background: var(--paper-2); } }
.lg-mine::before { width: 10px; height: 10px; background: var(--brand-soft); border: 2px solid var(--brand); }
.lg-later::before { background: none; border: 1.5px solid var(--muted); }
.sheet-feasts { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .55rem 0 0; font-size: .8rem; color: var(--muted); }
.sheet-feasts strong { color: var(--ink-2); }
.sheet-note { margin: .7rem 0 .1rem; padding: .6rem .75rem; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: .84rem; line-height: 1.45; }
.day-pick-mine { list-style: none; margin: .6rem 0 .3rem; padding: 0; }
.day-pick-mine li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--line); }
.day-pick:focus { outline: none; }
.sheet-card.is-loading .sheet { opacity: .55; transition: opacity .15s; }

/* Día elegido en la página del negocio: qué servicios tienen horas libres ese día */
.day-pick { margin: .9rem -.15rem .35rem; padding: 1rem 1rem .4rem; border-top: 2px solid var(--ink); background: var(--paper-2); border-radius: 0 0 var(--r) var(--r); scroll-margin-top: 5rem; }
.day-pick .day-pick-title { margin: 0 0 .15rem; font-size: 1.25rem; font-weight: 800; text-transform: none; letter-spacing: -.01em; color: var(--ink); }
.day-pick-title::first-letter { text-transform: uppercase; }
.day-pick-list { list-style: none; margin: .6rem 0 .4rem; padding: 0; }
.day-pick-list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem .25rem; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 2.75rem; }
.day-pick-free { color: var(--red-ink); font-weight: 700; font-size: .9rem; white-space: nowrap; text-align: right; }
.day-pick-free small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
@media (hover: hover) and (pointer: fine) { .day-pick-list a:hover { background: var(--paper); } }
.day-pick-hint { margin: .5rem 0 .2rem; }
.lg-today::before { border-radius: 0; height: 3px; width: 12px; vertical-align: .25em; background: var(--red); }

/* Banda del comercio (cabecera de las páginas públicas) */
.pub-band { background: var(--red); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: .9rem 2rem; }
.pub-band a { color: #fff; text-decoration-color: rgba(255, 255, 255, .55); }
.pub-band a:hover { color: #fff; text-decoration-color: #fff; }
.pub-band-inner { min-width: 0; }
.pub-name { display: inline-block; font-weight: 900; font-stretch: 70%; font-size: 1.6rem; line-height: 1.05; text-decoration: none; letter-spacing: .005em; }
.pub-meta { display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; margin: .2rem 0 0; font-size: .9rem; }
.pub-nav a { font-weight: 700; text-decoration: none; padding: .5rem 0; display: inline-block; }
.pub-band.is-large { padding: 2.4rem 2rem 2rem; align-items: flex-end; }
.pub-band.is-large .pub-name { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .95; }
.pub-band.is-large .pub-meta { font-size: 1rem; margin-top: .6rem; }
.biz-tagline { font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; margin: 0 0 2.25rem; }

/* Página pública */
.public-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: .2rem; flex-wrap: wrap; }
.section-title h2 { margin: 0; font-size: 2rem; }
.faq-title { margin-top: 3rem; }
.side-title { font-size: 1.35rem; margin: 2.25rem 0 .4rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ink); }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 1.1rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.menu-row { display: flex; align-items: baseline; gap: .75rem; }
.menu-name { font-weight: 800; font-stretch: 80%; font-size: 1.35rem; line-height: 1.15; }
.menu-dots { flex: 1; border-bottom: 2px dotted var(--line-strong); transform: translateY(-.3rem); min-width: 1.5rem; }
.menu-price { font-weight: 900; font-stretch: 70%; font-size: 1.45rem; white-space: nowrap; }
.menu-sub { display: flex; justify-content: space-between; gap: 1rem; margin-top: .25rem; color: var(--muted); font-size: .92rem; }
.menu-cta { color: var(--red-ink); font-weight: 700; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .menu a:hover { background: var(--paper-2); } .menu a:hover .menu-name { color: var(--red-ink); } }
.hours { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.hours li.closed { color: var(--muted); }

/* Reserva */
.book { max-width: 1000px; }
.book h1 { margin-bottom: .2rem; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-top: 1.5rem; }
.step-title { font-size: 1.15rem; font-weight: 800; font-stretch: 85%; letter-spacing: 0; color: var(--ink); margin: 0 0 .9rem; display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; text-transform: none; }
.step-title .muted { font-weight: 400; font-stretch: 100%; font-size: 1rem; }
.step-n { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9rem; font-stretch: 100%; flex: none; }
#horas { scroll-margin-top: 1rem; }
.slot-group h3 { margin: .2rem 0 .5rem; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.slot { text-align: center; padding: .65rem 0; border: 1px solid var(--line-strong); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 800; font-stretch: 85%; font-size: 1.08rem; background: var(--paper); transition: background-color .12s var(--ease), border-color .12s var(--ease), color .12s var(--ease); }
@media (hover: hover) and (pointer: fine) { .slot:hover { background: var(--red); border-color: var(--red); color: #fff; } }
.slot:active { background: var(--red); border-color: var(--red); color: #fff; }
.summary { border: 2px solid var(--ink); border-radius: var(--r); padding: .85rem 1.1rem; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .1rem; }
.summary .serif { font-weight: 900; font-stretch: 70%; font-size: 1.6rem; line-height: 1.1; }
.done-meta { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; text-align: left; max-width: 380px; margin: 1.5rem auto; }
.done-meta dt { color: var(--muted); }
.done-meta dd { margin: 0; font-weight: 600; }
.done-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.big-mark { font-weight: 900; font-stretch: 62%; font-size: 4.2rem; line-height: .9; color: var(--red); margin: 0 0 .5rem; text-transform: uppercase; }
.first-layer { border-top: 1px solid var(--line); padding: .2rem 0; margin: .5rem 0 1rem; }
.first-layer summary { font-size: .9rem; }
.first-layer .dl { margin: .5rem 0 .75rem; gap: .35rem 1rem; font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 1.25rem; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); background: var(--paper); border-radius: var(--r); padding: .45rem .85rem; font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; text-decoration: none; text-align: left; transition: border-color .12s var(--ease), background-color .12s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Portada · Taste Skill sobre el mundo almanaque ----------------------------------
   Una sección por pantalla, bordes iguales en un solo .wrap, entrada del titular,
   capa de hover del kit (static/taste/motion) y el momento pinned-chapters. */
:root {
  /* alias para el kit de Taste (motion.css, pinned-chapters): leen estos nombres */
  --bg: var(--paper); --surface: var(--paper-2); --card: var(--paper); --accent: var(--red);
  --action: var(--red); --action-ink: #fff; --font-text: var(--font); --t-lead: 1.15rem;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --gutter: 24px; --r-md: var(--r); --r-btn: var(--r); --ground-bg: var(--paper-2);
  --edge: clamp(16px, 6.4vw, 96px); --nav: 68px;
}
.wrap { width: min(100% - 2 * var(--edge), 1248px); margin-inline: auto; }
.page-home .topbar { display: block; padding: 0; height: var(--nav); position: fixed; top: 0; left: 0; right: 0; }
.page-home .nav-bar { display: flex; align-items: center; gap: 1.5rem; height: 100%; position: relative; }
.page-home .topnav a:not(.btn) { padding: .7rem 0; }
.page-home main.home { flex: 1; }
.page-home main > section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav) + clamp(24px, 4svh, 56px)) 0 clamp(24px, 4svh, 56px); }
.page-home main > section.home-steps.is-live { display: block; padding: 0; }
.page-home .btn { min-height: 50px; padding-inline: 1.3rem; }
.hero-note .link-plain { text-decoration: underline; text-decoration-color: var(--ink); }
@media (min-width: 1024px) and (min-height: 640px) {
  .page-home main > section:not(.home-steps) { height: 100svh; }
}
.page-home main > .messages { width: min(100% - 2 * var(--edge), 1248px); margin: 1rem auto 0; }
.page-home h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-stretch: 70%; font-weight: 900; line-height: 1; margin: 0 0 1.5rem; }
.page-home h3 { font-size: 1.3rem; font-stretch: 85%; font-weight: 800; }

.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.home-copy { padding-right: clamp(0px, 3vw, 48px); }
.page-home p a:not([class]) { text-decoration: none; }
.home-copy h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-stretch: 70%; font-weight: 900; line-height: .98; margin-bottom: 1.1rem; text-wrap: balance; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; margin: 0 0 1.75rem; line-height: 1.5; }
.start-form label { display: block; font-weight: 700; margin-bottom: .45rem; }
.start-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.start-row input { flex: 1 1 15rem; font-size: 1.05rem; padding: .7rem .9rem; min-height: 48px; }
.start-row .btn, .topnav .btn { min-height: 48px; padding-inline: 1.3rem; }
.start-url { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.start-url strong { color: var(--red-ink); }
.hero-note { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
.hero-note a { display: inline-block; padding-block: .6rem; }
.home-biz a { font-weight: 800; font-stretch: 80%; font-size: 1.3rem; }
.almanaque { margin: 0; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow-sheet); width: 100%; }
.alm-hang { position: absolute; top: -.55rem; left: 50%; width: 1.1rem; height: 1.1rem; margin-left: -.55rem; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-strong); }
.alm-band { background: var(--red); color: #fff; padding: 1.6rem 1.4rem 1rem; text-align: center; }
.alm-shop { margin: 0; font-weight: 900; font-stretch: 65%; font-size: 2.4rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.alm-meta { margin: .4rem 0 0; font-size: .88rem; }
.alm-body { padding: 1.1rem 1.3rem 1.2rem; }
.alm-body .sheet td { height: 2.45rem; }
.alm-body .sheet .n { font-size: 1.35rem; }
.alm-day { border-top: 2px solid var(--ink); margin-top: .6rem; padding-top: .7rem; }
.alm-day-label { margin: 0 0 .5rem; font-size: .9rem; font-style: italic; color: var(--ink-2); }
.alm-hours { display: flex; flex-wrap: wrap; gap: .4rem; }
.alm-hours span { border: 1px solid var(--line-strong); border-radius: var(--r); padding: .3rem .6rem; font-weight: 800; font-stretch: 85%; font-size: .95rem; }
.alm-hours .is-picked { background: var(--red); border-color: var(--red); color: #fff; }

/* Cómo funciona: los tres pasos (pinned-chapters) con su pantalla de ejemplo */
.page-home .home-steps .mo-pc__step h3 { font-family: var(--font); font-size: 1.35rem; font-stretch: 80%; font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.15; margin: 0; }
.page-home .home-steps:not(.is-live) .mo-pc__step h3, .page-home .home-steps.is-live .mo-pc__step.is-on h3 { color: var(--ink); }
.sample-note { margin: -.75rem 0 1.25rem; font-size: .9rem; font-style: italic; color: var(--muted); }
.home-steps .mo-pc__step p { color: var(--ink-2); }
.home-steps .mo-pc__visual { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: clamp(14px, 3vw, 40px); }
.home-steps:not(.is-live) .mo-pc__visual { aspect-ratio: auto; height: auto; max-height: none; }
@media (max-width: 639px) { .home-steps .mo-pc__visual { padding: 12px; } .page-home main > section.home-steps { padding: calc(var(--nav) + 8px) 0 8px; } .home-steps .mo-pc__steps { gap: 16px; } .home-steps .mo-pc__text { gap: 16px; } .home-steps h2 { margin-bottom: .5rem; } .mock-list li:nth-child(n+4), .mock-times li:nth-child(n+4), .mock-chat-body .bubble:nth-child(n+4) { display: none; } .mock-day { grid-template-columns: minmax(0, 1fr); } .mock-day .taco { display: none; } }
.mock { width: 100%; max-width: 26rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px; box-shadow: var(--shadow-sheet); font-size: .95rem; overflow: hidden; }
.mock-band { background: var(--red); color: #fff; text-align: center; font-weight: 900; font-stretch: 65%; text-transform: uppercase; font-size: 1.5rem; padding: .7rem .8rem; }
.mock-list { list-style: none; margin: 0; padding: .6rem 1rem .2rem; }
.mock-list li { display: flex; align-items: baseline; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.mock-list li:last-child { border-bottom: 0; }
.mock-dots { flex: 1; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-.25rem); }
.mock-list strong { font-stretch: 80%; font-weight: 900; font-size: 1.1rem; }
.mock-btn { display: block; margin: .4rem 1rem 1rem; background: var(--red); color: #fff; text-align: center; font-weight: 700; border-radius: var(--r); padding: .55rem; }
.mock-chat-head { margin: 0; color: var(--ink-2); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 1rem 1rem 0; }
.mock-chat-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; }
.mock-chat-body .bubble { font-size: .9rem; }
.mock-day { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; padding: 1rem; align-items: start; }
.mock-day .taco { width: 5.6rem; box-shadow: none; }
.mock-day .taco-num { font-size: 3.4rem; }
.mock-times { list-style: none; margin: 0; padding: 0; }
.mock-times li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); column-gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.mock-times li:last-child { border-bottom: 0; }
.mock-times .t-time { font-weight: 900; font-stretch: 70%; font-size: 1.25rem; line-height: 1.1; grid-row: span 2; }
.mock-times small { grid-column: 2; font-weight: 400; color: var(--muted); font-size: .84rem; }

/* El panel */
.home-panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: start; }
.home-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1.4rem 2rem; margin: 0; max-width: 40rem; font-size: 1.2rem; line-height: 1.45; }
.home-list dt { font-weight: 800; }
.home-list dd { margin: 0; color: var(--ink-2); }
.mock-card { margin: 0; max-width: none; padding: 0; font-size: 1.05rem; }
.mock-card .mock-card-dl, .mock-card .mock-card-req { padding-block: 1.1rem; }
.mock-card-sub { margin: 0; padding: .9rem 1.2rem .3rem; border-top: 2px solid var(--ink); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.mock-muted { color: var(--muted); font-weight: 400; }
.mock-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 2px solid var(--ink); }
.mock-card-head strong { font-size: 1.5rem; font-stretch: 70%; font-weight: 900; }
.mock-card-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem 1.25rem; margin: 0; padding: 1rem 1.2rem; }
.mock-card-dl dt { color: var(--muted); }
.mock-card-dl dd { margin: 0; font-weight: 700; }
.mock-card-req { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); background: var(--paper-2); font-weight: 700; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

/* Cierre y pie (close-type + footer-dark) en una pantalla */
.footer.closing { display: flex; flex-direction: column; min-height: 100svh; padding: var(--nav) 0 72px; border-top: 0; background: var(--ink); color: #fff; font-size: 1rem; }
.footer.closing > .wrap { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.closing__cta { align-self: center; padding-block: 48px; }
.closing__cta h2 { color: #fff; font-size: clamp(3rem, 8.4vw, 8.6rem); max-width: none; margin-bottom: 2rem; }
.closing__cta p { color: #c9ccd3; font-size: 1.15rem; margin: 0 0 2rem; max-width: 36rem; }
.closing__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.75rem; border-top: 1px solid #3a3e46; }
.closing__links .brand { color: #fff; }
.closing__links .brand-mark { border-color: #fff; background: linear-gradient(var(--red) 0 7px, var(--ink) 7px); }
.closing__links .footer-links { margin-left: auto; }
.footer.closing a { color: #c9ccd3; }
.footer.closing a:hover { color: #fff; }
.footer.closing a.btn, .footer.closing a.btn:hover { color: #fff; }
.closing__copy { color: #9aa0aa; font-size: .9rem; }
.footer.closing :focus-visible { outline-color: #fff; }

/* --- Panel del negocio ------------------------------------------------------------ */
.dash-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); flex: 1; }
.sidebar { border-right: 1px solid var(--line); padding: 1.75rem 1rem; background: var(--paper); }
.sidebar-biz { padding: 0 .75rem 1.25rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
.sidebar-biz strong { display: block; font-weight: 900; font-stretch: 70%; font-size: 1.45rem; line-height: 1.05; overflow-wrap: anywhere; }
.sidebar-biz small { color: var(--muted); font-size: .84rem; }
.sidenav a { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .5rem .75rem; border-radius: var(--r); color: var(--ink-2); font-size: .95rem; text-decoration: none; }
.sidenav a:hover { color: var(--ink); background: var(--paper-2); }
.sidenav a.active { color: var(--red-ink); font-weight: 700; background: var(--red-soft); }
.sidenav-title { margin: 1.5rem .75rem .4rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.sidenav-btn { display: block; width: 100%; text-align: left; padding: .5rem .75rem; text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.sidebar-account { display: none; }
.sidebar-foot { margin: 2rem .75rem 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.sidebar-foot .copy { display: block; margin-top: .4rem; font-size: .78rem; }
.ext::after { content: " ↗"; color: var(--muted); }
.dash-main { padding: 2.25rem 2.75rem 4rem; min-width: 0; max-width: 1180px; }
.dash-date { color: var(--muted); margin: .3rem 0 0; }

/* La hoja de «taco» de hoy (en lugar de métricas tipo hero) */
.dash-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.75rem; align-items: start; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 2px solid var(--ink); }
.taco { width: 7.2rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: var(--shadow-sheet); text-align: center; overflow: hidden; }
.taco-month { display: block; background: var(--red); color: #fff; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .04em; font-size: .78rem; padding: .3rem .5rem; }
.taco-santo { display: block; font-style: italic; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line); padding: .3rem .4rem .4rem; }
.taco-num { display: block; font-weight: 900; font-stretch: 62%; font-size: 4.6rem; line-height: 1; padding-top: .3rem; }
.taco-dow { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); padding: 0 0 .4rem; text-transform: capitalize; }
.taco.is-sun .taco-num, .taco.is-sun .taco-dow { color: var(--red); }
.dash-hello h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .5rem; }
.dash-summary { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 .6rem; }
.waiting { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.waiting a { display: inline-flex; gap: .35rem; align-items: baseline; padding: .4rem .75rem; border: 1px solid #eed49a; background: var(--warn-soft); color: #5c3c00; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: .92rem; }
.waiting a strong { font-size: 1.05rem; }
.waiting a:hover { border-color: var(--warn); color: #3d2800; }
.dash-actions { align-self: start; }
.dash-main .card { border: 0; border-radius: 0; padding: 0; margin-bottom: 2.75rem; background: none; }
.dash-main .card > h2:first-child { border-bottom: 2px solid var(--ink); padding-bottom: .45rem; margin-bottom: .4rem; font-size: 1.5rem; }
.dash-main .grid-2 { gap: 3rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: .85rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto; gap: .1rem 1rem; align-items: baseline; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t-time { font-weight: 900; font-stretch: 70%; font-size: 1.55rem; line-height: 1; grid-row: span 2; }
.timeline a { text-decoration: none; font-weight: 700; }
.timeline small { grid-column: 2; }

/* Agenda */
.agenda-nav { display: flex; gap: .4rem; align-items: center; }
.agenda-day { margin-bottom: 2rem; }
.agenda-day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .45rem; }
.agenda-day-head h2 { margin: 0; display: flex; align-items: flex-end; gap: .6rem; }
.ad-num { font-weight: 900; font-stretch: 62%; font-size: 3rem; line-height: .85; }
.ad-dow { display: flex; flex-direction: column; font-size: 1.15rem; font-stretch: 85%; line-height: 1.05; }
.ad-dow::first-letter { text-transform: uppercase; }
.ad-dow small { font-size: .82rem; font-weight: 500; font-stretch: 100%; color: var(--muted); }
.agenda-day.is-sun .ad-num { color: var(--red); }
.agenda-day.is-today .agenda-day-head { border-bottom-color: var(--red); }
.agenda-day.is-today .ad-num, .agenda-day.is-today .ad-dow { color: var(--red-ink); }
.agenda-count { color: var(--muted); font-size: .9rem; }
.appt-list { list-style: none; margin: 0; padding: 0; }
.appt { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr) auto; gap: .15rem 1.25rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.appt-time { font-weight: 900; font-stretch: 70%; font-size: 1.55rem; line-height: 1; text-decoration: none; color: var(--ink); grid-row: span 2; }
.appt-time small { font-weight: 500; font-stretch: 100%; font-size: .8rem; color: var(--muted); display: block; margin-top: .3rem; }
.appt-who { font-weight: 700; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.appt-what { grid-column: 2; color: var(--muted); font-size: .9rem; }
.appt.is-cancelled { opacity: .55; }
.now-line { display: flex; align-items: center; gap: .6rem; color: var(--red-ink); font-size: .8rem; font-weight: 800; padding: .35rem 0; text-transform: uppercase; letter-spacing: .05em; }
.now-line::after { content: ""; flex: 1; height: 2px; background: var(--red); }
.day-free { display: flex; justify-content: space-between; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.day-free strong { font-weight: 600; color: var(--ink-2); }
.df-num { font-weight: 900; font-stretch: 62%; font-size: 1.5rem; color: var(--ink); margin-right: .3rem; }
.day-free.is-sun .df-num { color: var(--red); }

/* Solicitudes */
.progress { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1.25rem; counter-reset: step; }
.progress li { flex: 1 1 0; padding-top: .6rem; border-top: 4px solid var(--line); color: var(--muted); font-size: .86rem; counter-increment: step; min-width: 0; }
.progress li::before { content: counter(step) ". "; font-weight: 800; }
.progress li.done { border-color: var(--ink); color: var(--ink-2); }
.progress li.current { border-color: var(--red); color: var(--ink); font-weight: 700; }
.events { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--line); }
.event { position: relative; padding: 0 0 1.25rem .4rem; }
.event::before { content: ""; position: absolute; left: -1.62rem; top: .4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); }
.event-comment::before { border-color: var(--red); }
.event-step::before, .event-status::before { border-color: var(--ink); background: var(--ink); }
.event-private { background: var(--warn-soft); border-radius: var(--r); padding: .6rem .8rem; margin-bottom: 1rem; }
.event-private::before { border-color: var(--warn); }
.event-meta { font-size: .8rem; color: var(--muted); margin-bottom: .2rem; }

/* --- 2FA ------------------------------------------------------------------------- */
.qr { display: flex; justify-content: center; margin: 1.25rem 0; }
.qr svg { width: 196px; height: 196px; background: #fff; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); }
.secret { word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 1.25rem 0; }
.codes code { display: block; text-align: center; padding: .55rem; font-size: 1rem; letter-spacing: .04em; }
.steps-list { padding-left: 1.2rem; color: var(--ink-2); }
.err-code { font-weight: 900; font-stretch: 62%; font-size: 7rem; line-height: 1; color: var(--red); margin: 0 0 .5rem; }

/* --- Asistente (chat) ---------------------------------------------------------- */
.chat-launcher { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; display: inline-flex; align-items: center; gap: .55rem; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .85rem 1.25rem; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-float); transition: background-color .15s var(--ease), transform .12s var(--ease); }
@media (hover: hover) and (pointer: fine) { .chat-launcher:hover { background: var(--red); } }
.chat-launcher:active { transform: scale(.97); }
.chat-launcher svg { width: 18px; height: 18px; flex: none; }
.chat-launcher .chat-dot { display: none; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fb36a; box-shadow: 0 0 0 3px rgba(63, 179, 106, .25); flex: none; }
.chat-panel { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; width: 380px; max-width: calc(100vw - 2rem); height: 580px; max-height: calc(100vh - 6rem); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-float); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; animation: chat-in .22s var(--ease); }
.chat-panel.is-closing { animation: chat-out .14s cubic-bezier(.4, 0, 1, 1) forwards; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes chat-out { to { opacity: 0; transform: translateY(6px) scale(.985); } }
.chat-panel.chat-full { position: static; width: 100%; max-width: 640px; height: 72vh; margin: 0 auto; animation: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.1rem; background: var(--red); color: #fff; }
.chat-head strong { font-weight: 900; font-stretch: 70%; font-size: 1.3rem; line-height: 1.05; display: block; }
.chat-head small { display: flex; align-items: center; gap: .45rem; font-size: .8rem; margin-top: .15rem; }
.chat-close { display: grid; place-items: center; width: 40px; height: 40px; margin: -.4rem -.5rem -.4rem 0; background: none; border: 0; border-radius: 50%; color: #fff; cursor: pointer; }
.chat-close svg { width: 18px; height: 18px; }
.chat-close:hover { background: rgba(255, 255, 255, .15); }
.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.bubble { max-width: 84%; padding: .6rem .9rem; border-radius: var(--r-lg); white-space: pre-line; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.45; }
.bubble-bot { background: var(--paper-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 3px; }
.bubble-visitor { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.bubble small { display: block; opacity: .7; font-size: .76rem; margin-top: .25rem; }
.typing { letter-spacing: .2em; color: var(--muted); }
.chat-options { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1.1rem; border-top: 1px solid var(--line); max-height: 180px; overflow-y: auto; }
.chat-options:empty { display: none; }
.chat-options .chip { font-size: .88rem; padding: .4rem .75rem; }
.chat-input { display: flex; gap: .5rem; padding: .7rem 1rem .4rem; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; }
.chat-legal { margin: 0; padding: 0 1rem .6rem; font-size: .76rem; color: var(--muted); }
.chat-legal a { color: var(--muted); }
.transcript { display: flex; flex-direction: column; gap: .5rem; }

/* --- Legal ---------------------------------------------------------------------- */
.legal { max-width: 36rem; }
.legal h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.legal table { font-size: .9rem; }
.legal mark { background: var(--warn-soft); color: var(--warn); padding: 0 .25em; border-radius: 3px; }
.legal-updated { margin-top: 2.5rem; }

/* --- Responsive ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .home-hero-grid, .home-panel-grid, .public-cols, .book-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .almanaque, .mock-card { justify-self: stretch; max-width: none; }
}
@media (max-width: 860px) {
  .grid-2, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 1.25rem; }
  .sidebar.open { display: block; }
  .sidebar-account { display: block; }
  .dash .topbar .nav-toggle { display: inline-block; margin-left: auto; }
  .dash .topbar .topnav { display: none; }
  .dash-main { padding: 1.5rem 1.25rem 3rem; }
  .dash-head { grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; }
  .dash-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .topbar { padding: .8rem 1.25rem; }
  .nav-toggle:not(.sidebar-toggle) { display: inline-block; margin-left: auto; }
  .topnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 1.25rem; border-bottom: 1px solid var(--line); gap: 1rem; }
  .topnav.open { display: flex; }
  .container { padding: 1.75rem 1.1rem 4rem; }
  .pub-band, .pub-band.is-large { padding: 1rem 1.1rem; flex-wrap: wrap; align-items: flex-start; }
  .pub-band.is-large { padding: 1.6rem 1.1rem 1.3rem; }
  .card { padding: 1.2rem; }
  .sheet td { height: 2.7rem; }
  .sheet .n { font-size: 1.4rem; }
  .sheet-month { font-size: 1.8rem; }
  .menu-name { font-size: 1.2rem; }
  .taco { width: 5.4rem; }
  .taco-num { font-size: 3.4rem; }
  .appt { grid-template-columns: 4.6rem minmax(0, 1fr); }
  .appt .badge { grid-column: 2; justify-self: start; }
  .timeline li { grid-template-columns: 3.8rem minmax(0, 1fr); }
  .timeline li .badge { grid-column: 2; justify-self: start; }
  .home-list { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .page-home .topbar { padding: 0; }
  .page-home .topnav { padding: 1.25rem var(--edge); }
  .page-home .topnav a { min-height: 44px; display: inline-flex; align-items: center; }
  .start-row .btn { width: 100%; }
  .closing__links .footer-links { margin-left: 0; }
  .closing__cta .btn { width: 100%; }
  .footer.closing { min-height: 0; padding-bottom: 24px; }
  .closing__cta { padding-block: 64px 48px; }
  .home-list dd { margin-bottom: .6rem; }
  table.formset th, table.formset td { padding: .4rem .2rem; }
  table.formset select, table.formset input[type=time] { width: 100%; min-width: 0; padding: .5rem .35rem; font-size: .92rem; }
  .chat-launcher { padding: 0; width: 52px; height: 52px; justify-content: center; right: 1rem; bottom: 1rem; }
  .chat-launcher .chat-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat-launcher .chat-dot { display: block; position: absolute; top: 9px; right: 9px; }
  .chat-panel { right: .5rem; bottom: .5rem; max-width: calc(100vw - 1rem); }
  .footer { flex-direction: column; align-items: flex-start; padding: 1.25rem 1.1rem; }
  .filters .check { white-space: normal; }
}
@media (pointer: coarse) {
  .btn, .btn-sm, .chip, .nav-toggle, .slot { min-height: 44px; }
  .chat-options .chip { min-height: 40px; }
  summary { min-height: 44px; align-items: center; }
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  .field-check input { margin-top: 0; }
  .footer a, .pub-nav a { display: inline-block; padding: .55rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .btn:active, .chat-launcher:active, .arrow::after, details[open] summary::after { transform: none !important; }
  .ring path { stroke-dashoffset: 0; }
}
@media (max-width: 640px) { .page-book .chat-launcher { display: none; } }
.tap-link { display: inline-block; padding-block: .55rem; }
.lg-today { font-style: italic; }
.sheet .is-selected:has(.santo) > a::after, .sheet .is-selected:has(.santo) > span::after { display: none; }

/* Primeros pasos del dueño en el panel */
.setup { border: 2px solid var(--ink); border-radius: var(--r); padding: 1.1rem 1.3rem; margin: 0 0 2rem; }
.setup h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.setup-list { margin: 0 0 .6rem; padding-left: 1.3rem; display: grid; gap: .35rem; }
.setup-list a { font-weight: 700; color: var(--red-ink); }
.setup-list .is-done span { text-decoration: line-through; text-decoration-color: var(--line-strong); color: var(--muted); }
/* Correo local (solo en desarrollo) */
.mail h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.mail-body { margin-top: .8rem; font-size: .95rem; overflow-wrap: anywhere; }

/* --- Orientación: migas de pan, «← Volver» y pasos ------------------------------ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin: 0 0 1.4rem; font-size: .88rem; }
.crumbs-back { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .25rem .75rem .25rem .6rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 700; }
.crumbs-back:hover { border-color: var(--ink); color: var(--ink); }
.crumbs-trail { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs-trail li + li::before { content: "›"; margin: 0 .4rem 0 .2rem; color: var(--line-strong); }
.crumbs-trail a { color: var(--ink-2); }
.crumbs-trail [aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .crumbs-trail { display: none; }          /* en el móvil basta con «← Volver a …» */
  .crumbs-back { min-height: 44px; }
}
@media (min-width: 641px) { .crumbs-back-to { display: none; } }  /* en escritorio la ruta ya dice a dónde */

.steps { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .9rem; color: var(--muted); }
.steps li { display: inline-flex; align-items: center; gap: .45rem; }
.steps-n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--line-strong);
  font-weight: 800; font-size: .82rem; color: var(--muted); flex: none; }
.steps .is-done .steps-n { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps .is-current .steps-n { background: var(--red); border-color: var(--red); color: #fff; }
.steps .is-current { color: var(--ink); font-weight: 700; }

/* Directorio de negocios */
.dir-search { margin: 0 0 1.8rem; max-width: 40rem; }
.dir-search label { display: block; font-weight: 700; margin-bottom: .45rem; }
.dir-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.dir-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.dir-item h2 { margin: 0 0 .2rem; font-size: 1.5rem; }
.dir-item h2 a { color: var(--ink); text-decoration: none; }
.dir-item h2 a:hover { color: var(--red-ink); }
.dir-item p { margin: .1rem 0; }
.dir-text { min-width: 0; }
.empty-guide { border: 2px solid var(--ink); border-radius: var(--r); padding: 1.1rem 1.3rem; max-width: 40rem; }
.dir-owner { margin-top: 2.5rem; }
@media (max-width: 640px) { .dir-item { flex-direction: column; align-items: stretch; } .dir-item .btn { width: 100%; } }

/* Portada: dos puertas (dueños / clientes) */
.doors { display: grid; gap: 1.4rem; }
.door label { display: block; font-weight: 700; margin-bottom: .45rem; }
.door-client { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.doors .door-client { margin-top: 0; }

/* Portal: guía de primeros pasos y «Mis negocios» */
.guide { border: 2px solid var(--ink); border-radius: var(--r); padding: 1.2rem 1.4rem; margin: 0 0 1.75rem; }
.guide h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.guide .dir-search { margin: 1rem 0 0; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.my-biz { border-top: 0; }
.my-biz-name { margin: 0; font-size: 1.3rem; font-stretch: 75%; font-weight: 800; text-transform: none; letter-spacing: 0; color: var(--ink); }
.my-biz-name a { color: var(--ink); text-decoration: none; }

/* Siguiente paso tras una acción */
.next-steps { text-align: left; max-width: 26rem; margin: 2.2rem auto 0; padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.next-steps h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.next-steps ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.next-links { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }
.narrow.center + .steps, .center .steps { justify-content: center; }

/* =============================================================================
   TEMA «Petróleo y coral»: acabado más cálido y cuidado sobre la misma estructura
   ========================================================================== */
body { background: var(--ground); }
::selection { background: var(--brand); }
:focus-visible { outline-color: var(--brand); }
a:hover, .linklike:hover, .topnav a:hover, .crumbs a:hover { color: var(--brand); }

/* Títulos con Bricolage Grotesque: cercana, con carácter, nada futurista */
h1, h2, .brand, .pub-name, .alm-shop, .sheet-month, .menu-name, .section-title h2, .side-title, .dir-item h2,
.my-biz-name, .closing__cta h2, .dash-hello h1, .sidebar-biz strong, .summary .serif, .mock-band, .mock-card-head strong,
.chat-head strong, .big-mark, .err-code, .page-home h2, .home-copy h1, .page-home .home-steps .mo-pc__step h3 {
  font-family: var(--font-display); font-stretch: 100%;
}
h1, h2 { font-weight: 750; letter-spacing: -0.02em; line-height: 1.08; }
.home-copy h1 { font-weight: 800; font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; }
.page-home h2 { font-weight: 780; letter-spacing: -0.025em; line-height: 1.05; }
.closing__cta h2 { font-weight: 800; letter-spacing: -0.035em; line-height: .98; font-size: clamp(2.8rem, 7vw, 6.8rem); }
.home-copy h1 em, .accent-word { font-style: normal; color: var(--brand); }

/* Barra superior: blanca, ligera, con sombra suave en lugar de línea dura */
.topbar { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(14, 60, 56, .03); }
.brand { font-weight: 800; font-size: 1.32rem; letter-spacing: -0.02em; }
.brand-mark { width: 20px; height: 22px; border-radius: 5px; border: 1.5px solid var(--brand-deep);
  background: linear-gradient(var(--brand) 0 7px, var(--paper) 7px); }
.topnav a { font-weight: 600; }

/* Botones: coral redondeado con una sombra discreta; secundarios en petróleo */
.btn { border-radius: var(--r); box-shadow: 0 1px 2px rgba(168, 67, 42, .18), 0 4px 12px -6px rgba(168, 67, 42, .45); }
.btn-ghost { background: var(--paper); color: var(--brand); border-color: var(--line-strong); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand); } }
.btn-danger { box-shadow: none; }
.crumbs-back, .chip, .sheet-nav a, .slot, .alm-hours span, input, select, textarea { border-radius: var(--r); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 90, 85, .18); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

/* Tarjetas blancas sobre el suelo tintado: la profundidad que antes faltaba */
.card { border-color: var(--line); box-shadow: var(--shadow-soft); }
.alert { border-radius: var(--r); }
.badge { border-radius: 999px; padding: .15rem .65rem; }
.guide, .setup, .empty-guide, .summary { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-soft); }
.guide { border-top: 4px solid var(--brand); }
.setup { border-top: 4px solid var(--red); }
.danger-zone { border-color: #efc9bd; background: #fffaf8; }

/* Líneas: finas y suaves en lugar de las negras de 2 px */
.section-title, .side-title, .dir-list, .next-steps, .alm-day, .agenda-day-head, .mock-card-head, .mock-card-sub, .closing__links { border-color: var(--line-strong); }
.section-title, .side-title { border-bottom-width: 1px; }
.section-title h2 { color: var(--brand-deep); }
.dir-list { border-top-width: 1px; }
.dash-head { border-bottom: 1px solid var(--line); }
.dash-main .card > h2:first-child { border-bottom: 1px solid var(--line-strong); }

/* Pasos y migas con los colores nuevos */
.steps .is-done .steps-n { background: var(--brand); border-color: var(--brand); }
.crumbs-back { color: var(--brand); border-color: var(--line-strong); background: var(--paper); }
.crumbs-back:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-soft); }

/* Hoja de mes: cabecera en petróleo, domingos y círculo en coral */
.sheet-card { border-radius: var(--r-lg); border-color: var(--line); }
.sheet th { border-bottom: 2px solid var(--brand); color: var(--brand-deep); }
.sheet-month { color: var(--brand-deep); }
@media (hover: hover) and (pointer: fine) { .sheet .is-libre a:hover { background: var(--red-soft); border-radius: var(--r-sm); } }

/* Banda del negocio: petróleo con un brillo suave de coral, en lugar del rojo plano */
.pub-band { background: var(--brand); background-image: radial-gradient(120% 140% at 100% 0%, rgba(196, 80, 46, .28), rgba(196, 80, 46, 0) 55%); }
.pub-band.is-large { padding-bottom: 2.3rem; }
.pub-name { font-weight: 800; letter-spacing: -0.02em; }
.biz-tagline { color: var(--ink-2); }
.menu a { border-radius: var(--r); padding-inline: .6rem; }
@media (hover: hover) and (pointer: fine) { .menu a:hover { background: var(--paper); box-shadow: var(--shadow-soft); } .menu a:hover .menu-name { color: var(--brand); } }
.menu-cta { color: var(--red-ink); }
.public-block .menu { background: var(--paper); border-radius: var(--r-lg); padding: .3rem .4rem; box-shadow: var(--shadow-soft); }
.public-block .menu li:last-child a { border-bottom: 0; }

/* Almanaque de ejemplo (portada) y maquetas */
.almanaque { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: visible; }
.alm-band { background: var(--brand); border-radius: var(--r-lg) var(--r-lg) 0 0;
  background-image: radial-gradient(120% 160% at 100% 0%, rgba(196, 80, 46, .32), rgba(196, 80, 46, 0) 60%); }
.alm-shop { text-transform: none; font-weight: 800; font-size: 2.2rem; letter-spacing: -0.02em; }
.alm-hang { border-color: var(--line-strong); }
.mock { border-radius: var(--r-lg); border-color: var(--line); }
.mock-band { background: var(--brand); text-transform: none; font-weight: 800; font-size: 1.3rem; }
.mock-btn { border-radius: var(--r); }
.taco { border-radius: var(--r); border-color: var(--line); }
.taco-month { background: var(--brand); }

/* Portada: secciones con suelos distintos y un fondo cálido detrás del almanaque */
.page-home main > section.home-hero { background:
  radial-gradient(60% 70% at 85% 30%, rgba(14, 90, 85, .10), rgba(14, 90, 85, 0) 70%),
  radial-gradient(40% 50% at 70% 85%, rgba(196, 80, 46, .10), rgba(196, 80, 46, 0) 70%), var(--paper); }
.page-home main > section.home-steps { background: var(--ground); }
.page-home main > section.home-panel { background: var(--sand); }
.doors { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-soft); }
.door-client { border-top-color: var(--line); }
.footer.closing { background: var(--brand-deep); background-image: radial-gradient(70% 90% at 100% 0%, rgba(196, 80, 46, .22), rgba(196, 80, 46, 0) 60%); }
.closing__cta p, .footer.closing a { color: #cfe1de; }
.closing__copy { color: #a9c3bf; }
.closing__links { border-top-color: rgba(255, 255, 255, .16); }
.closing__links .brand-mark { border-color: #fff; background: linear-gradient(var(--red) 0 7px, var(--brand-deep) 7px); }

/* Panel del negocio: barra lateral tintada y elementos activos en petróleo */
.sidebar { background: var(--paper); }
.sidenav a { border-radius: var(--r); }
.sidenav a:hover { background: var(--paper-2); }
.sidenav a.active { color: var(--brand-deep); background: var(--brand-soft); }
.dash-main .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-soft); }
.agenda-day { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.2rem .4rem; box-shadow: var(--shadow-soft); }
.agenda-day.is-today .agenda-day-head { border-bottom-color: var(--red); }
.now-line::after { background: var(--red); }
.progress li.done { border-color: var(--brand); }
.event-step::before, .event-status::before { border-color: var(--brand); background: var(--brand); }
.tabs a.active { border-color: var(--brand); color: var(--brand-deep); }
.waiting a { border-radius: 999px; }

/* Chat: cabecera petróleo, burbujas suaves */
.chat-head { background: var(--brand); }
.chat-launcher { background: var(--brand); }
@media (hover: hover) and (pointer: fine) { .chat-launcher:hover { background: var(--brand-deep); } }
.bubble-visitor { background: var(--brand); }
.bubble { border-radius: 14px; }

/* Directorio y portal */
.dir-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.3rem; margin-bottom: .8rem; box-shadow: var(--shadow-soft); }
.dir-list { border-top: 0; }
.my-biz .dir-item { box-shadow: none; background: var(--paper-2); }

@media (max-width: 640px) {
  .doors { padding: 1rem; }
  .dash-main .card, .agenda-day { padding: 1rem; }
}

/* Los números son la firma del almanaque: siempre en Archivo estrecha, también dentro de títulos */
.ad-num, .df-num, .taco-num, .sheet .n, .t-time, .appt-time, .menu-price, .slot, .alm-hours span, .mock-times .t-time {
  font-family: var(--font); }
.ad-num { font-stretch: 62%; }

/* La marca de la barra es el logo de verdad (el mismo del icono de la pestaña), no una imitación en CSS */
.brand-mark, .closing__links .brand-mark { width: 26px; height: 26px; border: 0; border-radius: 6px; box-shadow: none;
  background: url("../img/favicon.1da1a88de8f0.svg") center / contain no-repeat; }

/* Avisos de mañana para clientes sin email (WhatsApp o llamada) */
.remind { margin-bottom: 1.5rem; border-left: 4px solid var(--red); }
.remind-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.remind-list li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto; gap: .4rem 1rem; align-items: center;
  padding: .75rem 0; border-bottom: 1px solid var(--line); }
.remind-list li:last-child { border-bottom: 0; }
.remind-list .t-time { font-weight: 900; font-stretch: 70%; font-size: 1.4rem; line-height: 1; }
.remind-who { display: grid; }
.remind-who a { font-weight: 700; text-decoration: none; }
.remind-list form { margin: 0; }
@media (max-width: 560px) { .remind-list li { grid-template-columns: 3.6rem minmax(0, 1fr); } .remind-list .actions { grid-column: 2; } }

/* Lo que el cliente escribió al reservar, visible sin abrir la cita */
.appt-note { grid-column: 2 / -1; font-size: .9rem; color: var(--ink-2); background: var(--sand); border-radius: var(--r-sm, 6px);
  padding: .3rem .6rem; margin-top: .3rem; overflow-wrap: anywhere; }

/* Huecos libres del panel: la hora y, debajo, quién la tiene libre */
.free-nav { margin: .75rem 0 1rem; }
.free-day .slot-grid { margin: .6rem 0 .4rem; }
.free-day .slot small { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); font-stretch: 100%; }
.filter-pair { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; max-width: 100%; }
.filter-pair select { min-width: 0; }

/* Nuevas reservas online en el panel */
.fresh { margin-bottom: 1.5rem; }
.fresh h2 small { font-size: .9rem; font-weight: 500; }
.fresh .t-time small { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-stretch: 100%; }

/* Bonos de sesiones */
.packs { margin-bottom: 1.5rem; }
.packs-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pack-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; margin-top: .75rem; }
.pack-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--paper); }
.pack-card:hover { border-color: var(--brand); }
.pack-left { display: grid; justify-items: center; line-height: 1; color: var(--brand); }
.pack-left .num { font-size: 2.4rem; font-weight: 900; font-stretch: 70%; }
.pack-left span:last-child { font-size: .78rem; color: var(--muted); margin-top: .2rem; white-space: nowrap; }
.pack-info { display: grid; gap: .2rem; min-width: 0; }
.pack-info small { color: var(--muted); }
.packs-past { margin-top: .75rem; }
.packs-past summary { cursor: pointer; color: var(--muted); }
.pack-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 1.25rem; align-items: center; margin-bottom: 1.25rem; }
.pack-status .pack-left .num { font-size: 3rem; }
.pack-status p, .pack-sessions { grid-column: 2; margin: 0; }
.pack-sessions { padding-left: 1.2rem; display: grid; gap: .3rem; }
.tag-pack { display: inline-block; font-size: .75rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep); white-space: nowrap; }
.pack-pick { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.pack-pick select { min-width: 0; max-width: 100%; }
@media (max-width: 560px) { .pack-status { grid-template-columns: minmax(0, 1fr); } .pack-status p, .pack-sessions { grid-column: 1; } }

/* Casillas múltiples (días de la semana, servicios de un bono) */
.field-multi { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-multi legend { font-weight: 700; padding: 0; margin-bottom: .4rem; }
.field-multi > div { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.field-multi > div > div { display: flex; }
.field-multi label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
/* Repetir cita y revisión de fechas */
.repeat { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r); padding: .75rem 1rem; background: var(--ground); }
.repeat summary { cursor: pointer; font-weight: 700; }
.repeat[open] summary { margin-bottom: .5rem; }
.repeat-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: .75rem; }
.repeat-fields .field-multi { grid-column: 1 / -1; }
.series-plan { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; }
.series-plan h2 { font-size: 1.15rem; margin-bottom: .6rem; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.plan-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0 .5rem; align-items: baseline; }
.plan-list small { grid-column: 2; color: var(--red-ink); }
.plan-mark { font-weight: 800; }
.plan-list .is-free .plan-mark { color: var(--brand); }
.plan-list .is-clash .plan-mark { color: var(--red); }
.plan-list .is-clash > span:nth-child(2) { text-decoration: line-through; color: var(--muted); }
.form-grid > .actions { grid-column: 1 / -1; }

/* Cambiar día u hora (paciente) */
.manage-actions { margin-bottom: .4rem; }
.manage-actions form { margin: 0; }
.slot.is-current { border-style: dashed; color: var(--muted); }
.slot small { display: block; font-size: .7rem; font-weight: 600; font-stretch: 100%; color: var(--muted); }
.move-confirm { max-width: 34rem; display: grid; gap: .9rem; margin-top: 1rem; }
.move-dl dd { font-weight: 700; }
.move-old { text-decoration: line-through; color: var(--muted); font-weight: 500 !important; }
.move-new { color: var(--brand); font-size: 1.15rem; }

/* Alta de negocio: la dirección completa de la página, debajo del formulario */
.slug-url { margin: .25rem 0 1rem; padding: .6rem .8rem; background: var(--brand-soft); border-radius: var(--r); color: var(--ink-2); overflow-wrap: anywhere; }
.slug-url strong { color: var(--brand-deep); }
