/**
 * Tema «Taberna» (Web Pro): bar de tapas, taberna de toda la vida.
 *
 * Tercera versión. La primera (letra de tiza de cómic, madera
 * dibujada, todo torcido) era infantil; la segunda, demasiado formal, quedó
 * como tema «Bodega». Esta busca lo hecho a mano sin caer en lo infantil:
 *
 * - Texturas de verdad en las zonas oscuras, generadas con feTurbulence en
 *   SVG `data:` (sin imágenes): grano y borrones de tiza, solo en las
 *   secciones pares y en las pizarras (cartel de la portada, carta, horario);
 *   el resto, liso. Sin madera ni marcos de listón (la veta quedaba
 *   falsa y los marcos biselados, «de Paint»), sin sombras exageradas.
 * - Letra de letrero con textura de tiza (máscara de grano sobre el texto),
 *   trazos de tiza bajo los títulos y un círculo a mano alrededor del precio.
 *   La letra manuscrita (`--tb-mano`) solo en detalles: subtítulo, precios de
 *   la carta, fechas y cargos.
 * - Bordes que no son rectos: radios irregulares y marcos de tiza temblones
 *   (border-image con un rectángulo dibujado a mano y desplazado).
 *
 * Colores del dueño: `c1` (mostaza por defecto) es la tiza de color: botones,
 * precios, trazos; `c2` tiñe el negro de la cabecera, el pie y el fondo de
 * la portada (`--tb-tinta`); `c3` (vino) es la pared pintada de la banda de llamada a la
 * acción y las etiquetas de fecha.
 *
 * Fichero generado desde una plantilla (las texturas SVG se insertan al
 * generar): no editarlo a mano, retocar la plantilla y volver a generar.
 *
 * Movimiento: el cartel de la portada baja y se asienta al cargar, los trazos
 * de tiza se dibujan al entrar, las fotos se acercan al pasar y las tarjetas
 * se levantan un poco.
 */
:root {
    color-scheme: dark;
    --w-fondo: #1a1e1d;
    --w-fondo-2: #222827;
    --w-fondo-tarjeta: #2a302e;
    --w-texto: #f0ece2;
    --w-tenue: #b4afa3;
    --w-linea: #3f4644;
    --w-radio: 6px;
    --w-radio-btn: 6px;
    --w-radio-foto: 4px;
    --w-fuente: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --w-fuente-titulo: Rockwell, "Rockwell Nova", "Bookman Old Style", "Roboto Slab", Georgia, serif;
    --w-peso-titulo: 400;
    --w-tracking-titulo: .01em;
    --w-c1-texto: var(--w-c1-clara);
    --w-c1-fondo: var(--w-c1-suave-oscura);
    --w-sombra: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 36px rgba(0, 0, 0, .4);
    --w-cab: 72px;
    --w-anim-dur: .75s;
    --w-anim-dist: 16px;
    --w-anim-extra: ".w-plato";
    /* letra a mano, solo para detalles */
    --tb-mano: "Ink Free", "Bradley Hand", "Noteworthy", "Comic Neue", cursive;
    --tb-tiza: #f2ede3;
    --tb-tiza-50: rgba(242, 237, 227, .5);
    --tb-tiza-30: rgba(242, 237, 227, .3);
    --tb-pizarra: #1a1f1e;
    /* tinta: el negro liso de la cabecera, el pie y las secciones sin textura,
       teñido con el segundo color del dueño (fuera los fondos marrones) */
    --tb-tinta: color-mix(in srgb, var(--w-c2) 28%, #151918);
    /* bordes «a mano»: ninguna esquina igual */
    --tb-r: 5px 11px 6px 12px / 11px 5px 12px 6px;
    --tb-r-sm: 3px 7px 4px 8px / 7px 3px 8px 4px;
    /* texturas (SVG feTurbulence en data:) */
    --tb-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 3.2 0 0 0 -1.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.075'/%3E%3C/svg%3E");
    --tb-borron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035 .005' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 2.6 0 0 0 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.06'/%3E%3C/svg%3E");
    --tb-tiza-marco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f' x='-5%25' y='-5%25' width='110%25' height='110%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06' numOctaves='2' seed='3' result='t'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='t' scale='3.2' xChannelSelector='R' yChannelSelector='G' result='d'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='9' result='g'/%3E%3CfeColorMatrix in='g' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 0 0 0 2.05' result='m'/%3E%3CfeComposite in='d' in2='m' operator='in'/%3E%3C/filter%3E%3Cpath d='M7.5 8.2C40 6.6 80 7.4 112.6 7.1M112.2 6.4c.9 35 .3 72 .8 107M113.4 112.6C80 113.8 40 112.5 6.9 113.2M7.6 113.8C6.8 80 7.5 40 6.6 6.2' fill='none' stroke='%23f2ede3' stroke-opacity='.62' stroke-width='2' stroke-linecap='round' filter='url(%23f)'/%3E%3C/svg%3E");
    --tb-trazo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='16' viewBox='0 0 220 16'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='4' result='g'/%3E%3CfeColorMatrix in='g' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 0 0 0 2.1' result='m'/%3E%3CfeComposite in='SourceGraphic' in2='m' operator='in'/%3E%3C/filter%3E%3Cpath d='M3 11.5C40 6 92 3.6 140 4.8c28 .7 52 2 75 .6l1.8 5.6c-30 2.2-52 .8-78 .6-46-.3-96 1.8-135 4.6z' filter='url(%23f)'/%3E%3C/svg%3E");
    --tb-circulo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='6' result='g'/%3E%3CfeColorMatrix in='g' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 0 0 0 2.15' result='m'/%3E%3CfeComposite in='SourceGraphic' in2='m' operator='in'/%3E%3C/filter%3E%3Cpath d='M24 17C46 3 98 4 112 28c9 17-16 42-56 44C21 74 2 58 9 36 13 24 30 12 58 9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' filter='url(%23f)'/%3E%3C/svg%3E");
    --tb-tiza-texto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 0 0 0 2.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
body { background: var(--w-fondo); }
a { color: var(--w-c1-clara); }
::selection { background: color-mix(in srgb, var(--w-c1) 45%, transparent); }

/* secciones alternas (no todas con la misma textura): las impares lisas,
   las pares de pizarra con grano y borrones. La carta y el horario, siempre lisas: su pizarra
   es la del panel. */
main > .w-sec:nth-of-type(even):not(.w-portada):not(.w-cta) { background-image: var(--tb-grano), var(--tb-borron); background-repeat: repeat, no-repeat; background-size: auto, cover; }
main > .w-sec.w-carta:not(.w-portada):not(.w-cta), main > .w-sec.w-horario:not(.w-portada):not(.w-cta) { background-image: none; background-color: var(--w-fondo); }

/* letras de tiza: la textura se recorta sobre el texto (y sobre su trazo) */
.w-sec-tit, .w-pag-tit, .w-portada-tit, .w-cta-tit, .w-carta-grupo-tit, .w-pie-nombre {
    -webkit-mask-image: var(--tb-tiza-texto); mask-image: var(--tb-tiza-texto);
    -webkit-mask-size: 240px 240px; mask-size: 240px 240px;
}

/* ---- cabecera: tinta lisa; el menú subrayado a tiza ---- */
.w-cab { background: var(--tb-tinta); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid rgba(242, 237, 227, .1); }
.w-cab.es-pegada { border-color: rgba(242, 237, 227, .1); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.w-marca { color: var(--tb-tiza); font-size: 1.375rem; }
.w-marca-logo { height: 44px; padding: 4px 8px; background: var(--tb-tiza); border-radius: var(--tb-r-sm); }
.w-menu-btn { color: var(--tb-tiza); }
.w-nav a { position: relative; padding: 0 13px; border-radius: 0; color: var(--tb-tiza); font-family: var(--w-fuente-titulo); font-weight: 400; font-size: 1rem; }
.w-nav a::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 8px; background: var(--w-c1-clara); -webkit-mask: var(--tb-trazo) left center / 100% 100% no-repeat; mask: var(--tb-trazo) left center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path .4s var(--w-anim-curva); }
.w-nav a:hover { background: none; color: var(--tb-tiza); }
.w-nav a:hover::after, .w-nav a.es-activo::after, .w-nav a[aria-current="page"]::after { clip-path: inset(0 0 0 0); }
.w-nav a.es-activo, .w-nav a[aria-current="page"] { background: none; color: var(--w-c1-clara); }
@media (max-width: 879.98px) {
    .w-nav { background: var(--tb-grano), var(--tb-pizarra); border-bottom: 2px solid rgba(0, 0, 0, .5); }
    .w-nav li + li a { border-top: 1px solid var(--w-linea); }
    .w-nav a { padding: 0 4px; font-size: 1.25rem; text-shadow: none; }
    .w-nav a::after { left: 4px; right: auto; width: 110px; bottom: 6px; }
}
.w-cab.es-compacta .w-nav { background: var(--tb-grano), var(--tb-pizarra); }
.w-cab.es-compacta .w-nav a { text-shadow: none; }

/* ---- botones: pintados (con su grano) y con las esquinas irregulares ---- */
.w-btn { border-radius: var(--tb-r-sm); background-image: var(--tb-grano); font-family: var(--w-fuente-titulo); font-weight: 400; font-size: 1.0625rem; letter-spacing: .01em; box-shadow: 0 2px 0 rgba(0, 0, 0, .25); transition: transform .25s var(--w-anim-curva), box-shadow .25s, filter .25s; }
.w-btn:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 3px 0 rgba(0, 0, 0, .22), 0 8px 16px rgba(0, 0, 0, .2); }
.w-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.w-btn--grande { font-size: 1.1875rem; }
.w-btn--sec { background: none; color: var(--tb-tiza); box-shadow: none; border: 2px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px / 0 round; }
.w-btn--sec:hover { background: rgba(242, 237, 227, .06); color: var(--w-c1-clara); box-shadow: none; filter: none; }
.w-cab-cta { font-size: .9375rem; }

/* ---- portada: la foto a sangre y, encima, un cartel de pizarra con su marco de tiza ---- */
.w-portada { min-height: min(90vh, 840px); min-height: min(90svh, 840px); align-items: center; background: var(--tb-tinta); }
.w-portada-velo { background: rgba(10, 12, 12, .42); }
.w-portada.sin-foto .w-portada-velo { background: none; }
.w-portada-int { position: relative; width: min(calc(100% - 2 * var(--w-lado)), 640px); margin: clamp(56px, 9vw, 104px) auto clamp(56px, 9vw, 104px) max(var(--w-lado), calc((100% - var(--w-ancho)) / 2 + var(--w-lado))); padding: clamp(40px, 5.4vw, 64px) clamp(32px, 4.8vw, 60px); gap: 14px; background: var(--tb-grano), var(--tb-borron) center / cover no-repeat, var(--tb-pizarra); border-radius: var(--tb-r); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.w-portada-int::before { content: ""; position: absolute; inset: 10px; border: 14px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px round; opacity: .55; pointer-events: none; }
.w-portada-tit { max-width: 15ch; font-size: clamp(2.25rem, 4.2vw + 1rem, 4rem); line-height: 1.06; color: var(--tb-tiza); text-shadow: none; padding-bottom: 20px; position: relative; }
.w-portada-tit::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(100%, 220px); height: 14px; background: var(--w-c1-clara); -webkit-mask: var(--tb-trazo) left center / 100% 100% no-repeat; mask: var(--tb-trazo) left center / 100% 100% no-repeat; }
.w-portada-sub { font-family: var(--tb-mano); font-size: clamp(1.1875rem, .7vw + 1rem, 1.5rem); line-height: 1.35; color: var(--w-c1-clara); opacity: 1; text-shadow: none; }
.w-portada-acciones { margin-top: 10px; }
@keyframes taberna-cuelga { 0% { opacity: 0; transform: translateY(-26px) rotate(-2deg); } 60% { opacity: 1; transform: translateY(3px) rotate(.6deg); } 100% { opacity: 1; transform: none; } }
@keyframes taberna-traza { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes taberna-acerca { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
    .w-portada-foto { animation: taberna-acerca 18s ease-out both; }
    .w-portada-int { animation: taberna-cuelga 1.3s cubic-bezier(.3, .7, .3, 1) both; transform-origin: 50% 0; }
    .w-portada-tit::after { animation: taberna-traza .9s 1s var(--w-anim-curva) both; }
}

/* ---- páginas interiores: el título escrito en una pizarra ---- */
.w-pag-cab { background: var(--tb-grano), var(--tb-borron) center / cover no-repeat, var(--w-fondo-2); color: var(--tb-tiza); border-bottom: 1px solid rgba(242, 237, 227, .08); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(30px, 4.4vw, 50px); }
.w-pag-miga { color: rgba(242, 237, 227, .72); font-family: var(--tb-mano); font-size: 1.0625rem; }
.w-pag-tit { position: relative; padding-bottom: 20px; }
.w-pag-tit::after { content: ""; position: absolute; left: 0; bottom: 0; width: 200px; height: 13px; background: var(--w-c1-clara); -webkit-mask: var(--tb-trazo) left center / 100% 100% no-repeat; mask: var(--tb-trazo) left center / 100% 100% no-repeat; }

/* ---- títulos de sección: a tiza, con el trazo de color que se dibuja al entrar ---- */
.w-sec-tit { position: relative; font-size: clamp(1.75rem, 2.1vw + 1.05rem, 2.625rem); line-height: 1.15; margin-bottom: 28px; padding-bottom: 22px; }
.w-sec-tit::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(100%, 190px); height: 13px; background: var(--w-c1-clara); -webkit-mask: var(--tb-trazo) left center / 100% 100% no-repeat; mask: var(--tb-trazo) left center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--w-anim-curva) .2s; }
.w-sec-tit.es-visible::after, html:not(.js-anim) .w-sec-tit::after { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .w-sec-tit::after { clip-path: none; } }
.w-prosa { color: #dcd8cd; font-size: 1.0625rem; line-height: 1.75; }
.w-nota { background: rgba(0, 0, 0, .14); border: 2px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px / 0 round; border-radius: 0; color: var(--w-texto); }

/* ---- sobre nosotros: la foto rodeada por un marco de tiza ---- */
.w-texto-foto { position: relative; isolation: isolate; }
.w-texto-foto::before { content: ""; position: absolute; z-index: -1; inset: -12px; border: 14px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px round; }
.w-texto-foto img { border-radius: var(--tb-r); }
@media (max-width: 639.98px) { .w-texto-foto { margin: 0 10px; } }

/* ---- galería: fotos de papel pegadas en la pizarra; se levantan al pasar ---- */
.w-galeria { gap: 14px; }
.w-galeria-item { padding: 6px; border-radius: var(--tb-r-sm); background: #ece6d8; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 18px rgba(0, 0, 0, .22); transition: transform .45s var(--w-anim-curva), box-shadow .45s; }
.w-galeria-item img { border-radius: 2px; }
.w-galeria-item:hover, .js-anim .w-galeria-item[data-anim].es-visible:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 14px 26px rgba(0, 0, 0, .26); transition-delay: 0s; }
@media (min-width: 640px) { .w-galeria { gap: 20px; } }

/* ---- platos destacados: enmarcados a tiza, con el precio rodeado a mano ---- */
.w-dest-lista { gap: 22px 16px; }
.w-dest { position: relative; overflow: visible; background: none; box-shadow: none; border-radius: 0; padding: 10px; transition: transform .45s var(--w-anim-curva); }
.w-dest::before { content: ""; position: absolute; inset: 0; border: 14px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px round; pointer-events: none; transition: opacity .3s; opacity: .8; }
.w-dest:hover { transform: translateY(-4px); }
.w-dest:hover::before { opacity: 1; }
.w-dest-foto { border-radius: var(--tb-r-sm); }
.w-dest-foto img { aspect-ratio: 1; }
.w-dest-txt { grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 14px 4px 6px; }
.w-dest-nombre { grid-column: 1; font-size: 1.1875rem; line-height: 1.25; }
.w-dest-extra { grid-column: 1; }
.w-dest-precio { position: relative; white-space: nowrap; grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; gap: 2px; min-width: 64px; height: 48px; margin: 0; padding: 0 10px; color: var(--w-c1-clara); font-family: var(--tb-mano); font-weight: 700; font-size: 1.25rem; }
.w-dest-precio::before { content: ""; position: absolute; inset: -4px -6px; background: var(--w-c1-clara); -webkit-mask: var(--tb-circulo) center / 100% 100% no-repeat; mask: var(--tb-circulo) center / 100% 100% no-repeat; opacity: .85; }
@media (min-width: 720px) { .w-dest-lista { gap: 30px 26px; } }
.w-dest, .w-dest-nombre { min-width: 0; }
@media (max-width: 639.98px) {
    .w-dest-txt { grid-template-columns: 1fr; }
    .w-dest-precio { grid-column: 1; grid-row: auto; justify-self: start; margin: 6px 0 0 4px; }
}

/* ---- la carta: una pizarra con marco de tiza; los precios, a mano ---- */
.w-carta.con-carta .w-sec-int { max-width: 1040px; }
.w-carta-tabs { gap: 6px 14px; }
.w-carta-tab { position: relative; border: 0; border-radius: 0; background: none; color: var(--w-tenue); font-family: var(--w-fuente-titulo); font-weight: 400; font-size: 1.0625rem; padding: 0 8px; transition: color .25s; }
.w-carta-tab::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 9px; background: var(--w-c1-clara); -webkit-mask: var(--tb-trazo) left center / 100% 100% no-repeat; mask: var(--tb-trazo) left center / 100% 100% no-repeat; clip-path: inset(0 100% 0 0); transition: clip-path .4s var(--w-anim-curva); }
.w-carta-tab:hover { color: var(--w-texto); }
.w-carta-tab[aria-selected="true"] { background: none; color: var(--w-c1-clara); }
.w-carta-tab[aria-selected="true"]::after { clip-path: inset(0 0 0 0); }
.w-carta-menu { padding: clamp(26px, 5vw, 56px) clamp(16px, 4.6vw, 54px) clamp(18px, 3.6vw, 40px); background: var(--tb-grano), var(--tb-borron) center / cover no-repeat, var(--tb-pizarra); border: 14px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px round; border-radius: 0; box-shadow: none; }
.w-carta-menu-cab { background: none; border: 0; border-radius: 0; padding: 0 0 22px; text-align: center; position: relative; }
.w-carta-menu-cab::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 180px; height: 10px; margin-left: -90px; background: var(--tb-tiza-50); -webkit-mask: var(--tb-trazo) center / 100% 100% no-repeat; mask: var(--tb-trazo) center / 100% 100% no-repeat; }
.w-carta-menu-precio { justify-content: center; font-size: 1.5rem; }
.w-carta-menu-precio strong { color: var(--w-c1-clara); font-family: var(--tb-mano); font-size: 2rem; }
.w-carta-grupo-tit { position: relative; display: inline-block; margin-bottom: 22px; padding-bottom: 14px; font-size: 1.5rem; color: var(--w-c1-clara); }
.w-carta-grupo-tit::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; min-width: 90px; height: 9px; background: currentColor; -webkit-mask: var(--tb-trazo) left center / 100% 100% no-repeat; mask: var(--tb-trazo) left center / 100% 100% no-repeat; opacity: .7; }
.w-plato-foto { border-radius: var(--tb-r-sm); }
.w-plato-nombre { font-family: var(--w-fuente-titulo); font-weight: 400; font-size: 1.0625rem; }
.w-plato-nombre small { font-family: var(--w-fuente); }
.w-plato-puntos { border-bottom: 2px dotted var(--tb-tiza-30); opacity: 1; }
.w-plato-precio, .w-plato-formatos strong { font-family: var(--tb-mano); font-weight: 700; font-size: 1.1875rem; color: var(--w-c1-clara); }
.w-plato-desc { color: var(--w-tenue); }
.w-carta-pie { margin-top: 30px; }
.w-carta-caja { background: rgba(0, 0, 0, .14); border: 2px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px / 0 round; border-radius: 0; box-shadow: none; }

/* ---- el restaurante: el número escrito a mano y la foto con su marco de tiza ---- */
.w-rest-foto { position: relative; isolation: isolate; }
.w-rest-foto::before { content: ""; position: absolute; z-index: -1; inset: -12px; border: 14px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px round; }
.w-rest-foto a { border-radius: var(--tb-r); }
.w-rest-foto img { transition: transform 1.1s var(--w-anim-curva); }
.w-rest-foto a:hover img { transform: scale(1.04); }
.w-rest-num { display: block; margin-bottom: 6px; font-family: var(--tb-mano); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--w-c1-clara); }
.w-rest-tit { font-size: clamp(1.5rem, 1.4vw + 1.05rem, 2rem); }
@media (max-width: 879.98px) { .w-rest-foto { margin: 0 10px; } }

/* ---- eventos: enmarcados a tiza; la fecha, una etiqueta pintada del tercer color ---- */
.w-eventos-lista { gap: 26px; }
.w-evento { overflow: visible; background: none; border-radius: 0; box-shadow: none; padding: 8px; transition: transform .45s var(--w-anim-curva); }
.w-evento::before { content: ""; position: absolute; inset: 0; border: 14px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px round; pointer-events: none; opacity: .8; }
.w-evento:hover { transform: translateY(-4px); }
.w-evento-foto { border-radius: var(--tb-r-sm); overflow: hidden; }
.w-evento-foto img { border-radius: 0; transition: transform 1s var(--w-anim-curva); }
.w-evento:hover .w-evento-foto img { transform: scale(1.04); }
.w-evento-fecha { border-radius: var(--tb-r-sm); background: var(--tb-grano), var(--w-c3); color: var(--w-sobre-c3); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); transform: rotate(-2deg); }
.w-evento.con-foto .w-evento-fecha { position: absolute; top: 2px; left: 18px; margin: 0; }
.w-evento.con-foto .w-evento-cuerpo { grid-column: 1 / -1; padding-left: 12px; }
.w-evento.sin-fecha .w-evento-cuerpo { padding-left: 12px; }
.w-evento-dia { font-weight: 400; }
.w-evento-cuando { font-family: var(--tb-mano); font-weight: 700; font-size: 1.0625rem; text-transform: none; letter-spacing: 0; color: var(--w-c1-clara); }
.w-evento-tit { font-size: 1.3125rem; line-height: 1.25; }

/* ---- equipo: retratos de papel pegados en la pizarra; el cargo, a mano ---- */
.w-persona-foto { width: min(100%, 190px); aspect-ratio: 4 / 5; padding: 7px; border-radius: var(--tb-r-sm); background: #ece6d8; color: #3b3a36; box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 18px rgba(0, 0, 0, .22); transition: transform .45s var(--w-anim-curva); }
.w-persona-foto img { border-radius: 2px; }
.w-persona:hover .w-persona-foto { transform: translateY(-4px); }
.w-persona-nombre { font-size: 1.3125rem; margin-top: 6px; }
.w-persona-cargo { font-family: var(--tb-mano); font-weight: 700; font-size: 1.0625rem; text-transform: none; letter-spacing: 0; color: var(--w-c1-clara); }

/* ---- banda de llamada a la acción: la pared pintada del tercer color ---- */
.w-cta { background: var(--tb-grano), var(--tb-borron) center / cover no-repeat, var(--w-c3) !important; color: var(--w-sobre-c3); padding: clamp(68px, 10vw, 120px) 0; }
.w-cta.con-foto { color: #fff; }
.w-cta-velo { background: rgba(12, 12, 12, .66); }
.w-cta-tit { position: relative; font-size: clamp(1.875rem, 3vw + 1rem, 3.125rem); line-height: 1.12; padding-bottom: 20px; }
.w-cta-tit::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 200px; height: 13px; margin-left: -100px; background: var(--w-c1-clara); -webkit-mask: var(--tb-trazo) center / 100% 100% no-repeat; mask: var(--tb-trazo) center / 100% 100% no-repeat; }
.w-cta:not(.con-foto) .w-cta-tit::after { background: currentColor; opacity: .55; }
.w-cta .w-btn, .w-cta.con-foto .w-btn { background-color: var(--w-c1); color: var(--w-sobre-c1); }

/* ---- horario: otra pizarra con marco de tiza; hoy, en tiza de color ---- */
.w-horario .w-sec-int { max-width: 620px; }
.w-horario-tabla { background: var(--tb-grano), var(--tb-borron) center / cover no-repeat, var(--tb-pizarra); border: 14px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px round; border-radius: 0; box-shadow: none; border-collapse: separate; border-spacing: 0; overflow: visible; }
.w-horario-tabla th, .w-horario-tabla td { padding: 13px 18px; border-bottom: 2px dotted rgba(242, 237, 227, .16); }
.w-horario-tabla tr:last-child th, .w-horario-tabla tr:last-child td { border-bottom: 0; }
.w-horario-tabla th { font-family: var(--w-fuente-titulo); font-weight: 400; font-size: 1.0625rem; }
.w-horario-tabla td { text-align: right; color: var(--w-texto); font-variant-numeric: tabular-nums; }
.w-horario-cerrado { color: var(--w-tenue); font-family: var(--tb-mano); font-size: 1.0625rem; }
.w-horario-tabla tr.es-hoy th, .w-horario-tabla tr.es-hoy td { background: none; color: var(--w-c1-clara); }
.w-horario-tabla th small { background: none; padding: 0; margin-left: 8px; color: var(--w-c1-clara); font-family: var(--tb-mano); font-weight: 700; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.w-horario-tabla tr.es-hoy th { position: relative; }
.w-horario-tabla tr.es-hoy th::before { content: ""; position: absolute; left: 4px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--w-c1-clara); }

/* ---- reservas, mapa, contacto ---- */
.w-res-caja { background: rgba(0, 0, 0, .14); border: 2px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px / 0 round; border-radius: 0; box-shadow: none; }
.w-mapa-marco { border: 14px solid transparent; border-image: var(--tb-tiza-marco) 14 / 14px round; border-radius: 0; background: var(--w-fondo-tarjeta); filter: saturate(.85); }
.w-mapa-dir .ic, .w-contacto-lista .ic, .w-red .ic { color: var(--w-c1-clara); }
.w-contacto-lista { gap: 0 30px; }
.w-contacto-lista a { background: none; border: 0; border-bottom: 2px dotted var(--tb-tiza-30); border-radius: 0; padding: 14px 2px; transition: border-color .3s, padding-left .35s var(--w-anim-curva); }
.w-contacto-lista a:hover { border-color: var(--w-c1-clara); padding-left: 8px; }
.w-contacto-lista .ic { flex: none; width: 46px; height: 46px; padding: 11px; border: 2px solid var(--tb-tiza-30); border-radius: 52% 46% 55% 44% / 47% 55% 44% 53%; }
.w-contacto-lbl, .w-contacto-redes-tit { font-family: var(--tb-mano); font-weight: 700; font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--w-c1-clara); }
.w-red { border-radius: var(--tb-r); background: none; border: 2px solid var(--tb-tiza-30); font-family: var(--w-fuente-titulo); font-weight: 400; }
.w-red:hover { border-color: var(--w-c1-clara); }

/* ---- botones flotantes: cartelitos de pizarra; reservar, pintado ---- */
.w-flot-btn { border-radius: var(--tb-r-sm); background: var(--tb-grano), var(--tb-pizarra); color: var(--tb-tiza); border: 2px solid var(--tb-tiza-30); font-family: var(--w-fuente-titulo); font-weight: 400; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
.w-flot-btn--reservar { background: var(--tb-grano), var(--w-c1); color: var(--w-sobre-c1); border: 0; box-shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 10px 26px rgba(0, 0, 0, .45); }
.w-flot-btn--whatsapp { color: #5fe08f; border-color: rgba(95, 224, 143, .5); }

/* ---- pie: tinta lisa ---- */
.w-pie { background: var(--tb-tinta); color: var(--tb-tiza); border-top: 1px solid rgba(242, 237, 227, .1); }
.w-pie-nombre { font-size: 1.625rem; }
.w-pie a { color: inherit; }
.w-credito { border-top: 1px solid rgba(242, 237, 227, .22); }
.w-legal-texto th { background: var(--w-fondo-tarjeta); }

/* ---- el formulario de reservas de la carta, sobre pizarra ---- */
.w-reservas { --c1-tinta: var(--w-c1-clara); }
.w-reservas .c-res-form input:not([type="checkbox"]), .w-reservas .c-res-form select, .w-reservas .c-res-form textarea { background: var(--tb-pizarra); color: var(--w-texto); border-color: var(--w-linea); }
.w-reservas .c-res-sello { background: #1d3a24; color: #8fd99f; }
.w-reservas .c-res-sello.es-pendiente { background: #3a2c10; color: #f3c56b; }
.w-reservas .c-res-turno h3 small { background: #3b1613; color: #ffb4ab; }
.w-reservas .c-res-error, .w-reservas .c-form-msg.es-error { color: #ff7a6e; }
.w-reservas .c-res-dia.es-completo { text-decoration-color: rgba(200, 200, 200, .5); }

@media (max-width: 639.98px) {
    .w-portada-int { margin-left: auto; margin-right: auto; padding-left: 22px; padding-right: 22px; }
    .w-carta-menu { padding-left: 14px; padding-right: 14px; }
    .w-horario-tabla th, .w-horario-tabla td { padding: 12px 10px; }
    .w-horario-tabla tr.es-hoy th::before { left: -2px; }
}
