/* ==========================================================================
   Buffet Casa Jardín — hoja de estilos
   Concepto: "las estaciones del buffet". Colores del logo (añil + naranja) sobre crema cálido,
   etiquetas de bandeja como rótulos, estaciones numeradas, pizarra de precios y ticket de horario.
   Detalle en CLAUDE.md → Diseño. Se mantienen las clases que usan las plantillas PHP y main.js.
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-400-800.woff2") format("woff2"); font-weight: 400 800; font-stretch: 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-400-700-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --anil: #31286b;       /* añil del logo: titulares, pizarra, pie */
  --anil-2: #1f1946;     /* añil profundo (pie) */
  --naranja: #f76d22;    /* naranja del logo: acentos y botones (con texto añil) */
  --naranja-txt: #b0440b;/* naranja oscurecido para texto pequeño sobre crema (≥ 4.5:1) */
  --crema: #fbf5ec;      /* fondo general */

  --ink: #231d45;        /* texto */
  --paper: #fbf5ec;      /* fondo */
  --paper-2: #f3e9da;    /* fondo alternativo */
  --white: #ffffff;
  --line: #e2d6c3;       /* filetes y bordes */
  --muted: #5a5470;      /* texto secundario (≥ 4.5:1 sobre crema) */
  --accent: #f76d22;
  --accent-ink: #231d45; /* texto sobre naranja */
  --ok: #1c6b2d;
  --error: #b3261e;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-mono: ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--f-display); font-weight: 750; line-height: 1.05; letter-spacing: -.02em; color: var(--anil); font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .9em 1.4em; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #ff8440; }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: var(--anil); color: var(--white); box-shadow: inset 0 0 0 2px var(--anil); }
.btn--anil { background: var(--anil); color: var(--white); }
.btn--anil:hover { background: #423693; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- barra superior (horario y teléfono) ---------- */
.topbar { background: var(--anil); color: #e9e5ff; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 4px 20px; min-height: 38px; flex-wrap: wrap; }
.topbar p { margin: 0; }
.topbar strong { color: var(--white); font-weight: 700; }
.topbar a { text-decoration: none; }
.topbar a strong { color: var(--naranja); letter-spacing: .02em; }
.topbar-horas { margin-left: .5em; }
@media (max-width: 560px) { .topbar .wrap { justify-content: center; padding-block: 6px; } .topbar p:first-child { display: none; } }

/* ---------- cabecera y menú (móvil incluido) ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--crema); transition: box-shadow .25s; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; }
.site-head .brand img { height: 92px; width: auto; margin: 6px 0 -28px; position: relative; z-index: 2; filter: drop-shadow(0 4px 8px rgba(49, 40, 107, .18)); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { padding: .55em .85em; text-decoration: none; font-weight: 600; border-radius: 999px; color: var(--anil); }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="page"] { background: var(--paper-2); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 6px 6px 0 0; }
.nav a:last-child { background: var(--anil); color: var(--white); margin-left: 10px; padding-inline: 1.15em; border-radius: 999px; box-shadow: none; }
.nav a:last-child:hover, .nav a:last-child[aria-current="page"] { background: var(--naranja); color: var(--accent-ink); }
.nav-toggle { display: none; background: var(--anil); border: 0; color: var(--white); font: 700 .95rem var(--f-body); padding: .65em 1.1em; border-radius: 999px; cursor: pointer; }
@media (max-width: 900px) {
  .site-head .wrap { min-height: 64px; }
  .site-head .brand img { height: 72px; margin: 4px 0 -20px; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--crema); padding: 28px var(--gutter) 20px; border-bottom: 3px solid var(--naranja); box-shadow: 0 16px 30px rgba(31, 25, 70, .15); }
  .nav.is-open { display: flex; }
  .nav a { padding: .9em .2em; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav a[aria-current="page"] { background: none; box-shadow: inset 4px 0 0 var(--accent); padding-left: .8em; border-radius: 0; }
  .nav a:last-child { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- secciones ---------- */
.page-head { padding: clamp(56px, 7vw, 100px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); max-width: 16ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40em; }
.sec { padding: clamp(56px, 8vw, 110px) 0; }
.sec--blanco { background: var(--white); }
.sec--crema2 { background: var(--paper-2); }

/* Etiqueta de bandeja: el rótulo que identifica cada bandeja del buffet. Se usa como antetítulo. */
.kicker, .etiqueta { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.1em; padding: .42em .9em .42em .75em; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--naranja); border-radius: 3px; font: 700 .78rem/1.1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--anil); box-shadow: 0 2px 0 var(--line); }
.etiqueta b { color: var(--naranja-txt); font-variant-numeric: tabular-nums; }

/* ---------- contacto y formulario ---------- */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); }
.contact .direct { list-style: none; padding: 0; margin: 24px 0 0; border-top: 2px solid var(--ink); }
.contact .direct li { border-bottom: 1px solid var(--line); }
.contact .direct a { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 14px 0; text-decoration: none; align-items: baseline; }
.contact .direct .label { font-size: .8rem; text-transform: uppercase; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
.horario { margin-top: 24px; }
.horario h3 { font-size: 1rem; margin-bottom: .3em; }
.horario p { margin: 0; }
.form { background: var(--white); border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); padding: .75em .9em; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-block; padding: .5em 1em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.choices input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.consent { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; }
.consent input { margin-top: .3em; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.consent > span:not(.field-err) { flex: 1; min-width: 0; }
.legal-small { font-size: .78rem; line-height: 1.5; color: var(--muted); margin: 8px 0 20px; }
.field-err { display: block; flex-basis: 100%; font-size: .8rem; color: var(--error); }
.form-msg { margin-top: 14px; font-size: .9rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--error); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- textos legales ---------- */
.legal { max-width: 46em; padding-bottom: clamp(56px, 8vw, 100px); }
.legal h2 { font-size: 1.5rem; margin: 2em 0 .6em; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.legal nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal ul { padding-left: 1.2em; }
.legal .box { background: var(--paper-2); padding: 18px 20px; border-left: 3px solid var(--accent); margin: 1.4em 0; line-height: 1.8; }

/* ---------- pie ---------- */
.site-foot { background: var(--anil-2); color: #ddd9f2; padding: 64px 0 24px; font-size: .95rem; border-top: 6px solid var(--naranja); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--white); }
.site-foot .brand img { height: 104px; width: auto; margin-bottom: 16px; }
.site-foot h2 { font: 700 .78rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .12em; color: var(--naranja); margin-bottom: 14px; }
.site-foot p { margin: 0 0 .8em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.foot-tel { font: 750 1.5rem/1.1 var(--f-display); color: var(--white) !important; letter-spacing: -.01em; }
.foot-link { font-weight: 700; color: var(--white) !important; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; font-size: .84rem; opacity: .85; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: .5em; padding: .7em 1em .7em .8em; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.12); font-weight: 600; font-size: .92rem; }
.wa svg { width: 22px; height: 22px; color: #1fa855; }
@media (max-width: 520px) { .wa span { display: none; } .wa { padding: .75em; } }

/* ---------- aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- contenido editable (listados y fichas de inc/colecciones.php) ----------
   Estilo base neutro: adaptarlo al concepto de diseño de cada web. */
.fichas-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.fichas-lista a { text-decoration: none; }
.fichas-lista img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; }
.fichas-lista h2 { font-size: 1.3rem; margin: 0 0 .3em; }
.fichas-lista p { margin: 0; color: var(--muted); }
.blog-lista { list-style: none; margin: 0; padding: 0; }
.blog-lista li { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.blog-lista li:not(:has(.blog-lista-foto)) { grid-template-columns: 1fr; }
.blog-lista img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.blog-lista time { font-size: .85rem; color: var(--muted); }
.blog-lista h2 { font-size: 1.5rem; margin: .2em 0 .4em; }
.blog-lista h2 a { text-decoration: none; }
@media (max-width: 680px) { .blog-lista li { grid-template-columns: 1fr; } }
.paginacion { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.paginacion a { min-width: 42px; padding: .5em .8em; text-align: center; border: 1px solid var(--line); text-decoration: none; }
.paginacion a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.migas { font-size: .9rem; color: var(--muted); }
.ficha { max-width: 860px; }
.ficha-portada { margin: 0 0 28px; }
.ficha-portada img { width: 100%; }
.ficha-dato { margin: 0 0 .5em; }
.texto { max-width: 42em; margin-bottom: 28px; }
.texto h2 { font-size: 1.5rem; margin: 1.4em 0 .5em; }
.texto h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
.texto ul, .texto ol { padding-left: 1.3em; margin: 0 0 1em; }
.galeria { list-style: none; margin: 0 0 32px; padding: 0; columns: 3 240px; column-gap: 12px; }
.galeria li { break-inside: avoid; margin-bottom: 12px; }
.galeria a { display: block; }
.galeria img { width: 100%; }
.visor { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.visor::backdrop { background: rgba(10, 10, 10, .92); }
.visor figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 70px 20px; }
.visor img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.visor figcaption { color: #eee; margin-top: 12px; font-size: .92rem; text-align: center; }
.visor button { position: absolute; background: var(--paper); color: var(--ink); border: 0; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; border-radius: var(--radius); }
.visor-cerrar { top: 10px; right: 10px; }
.visor-ant { left: 10px; top: 50%; transform: translateY(-50%); }
.visor-sig { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .visor figure { padding: 60px 10px 70px; } .visor-ant, .visor-sig { top: auto; bottom: 12px; transform: none; } .visor-ant { left: calc(50% - 56px); } .visor-sig { right: calc(50% - 56px); } }

/* ---------- aviso de cookies (inc/cookies.config.php; solo aparece si el módulo está activo) ----------
   Rechazar, Configurar y Aceptar con el mismo estilo (pauta de la AEPD). Adaptar colores al diseño de cada web. */
.cookies-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--paper); color: var(--ink); border-top: 3px solid var(--ink); box-shadow: 0 -6px 24px rgba(0,0,0,.12); padding: 18px 0; }
.cookies-banner[hidden] { display: none; }
.cookies-banner-grid { display: flex; align-items: center; gap: 14px 32px; flex-wrap: wrap; }
.cookies-banner p { margin: 0; flex: 1 1 420px; font-size: .95rem; }
.cookies-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.cookies-btn { font: 600 .95rem/1 var(--f-body); padding: .8em 1.3em; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: var(--radius); cursor: pointer; }
.cookies-btn:hover { background: var(--ink); color: var(--paper); }
.cookies-panel { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius); padding: 0; color: var(--ink); }
.cookies-panel::backdrop { background: rgba(0, 0, 0, .55); }
.cookies-panel form { padding: 26px; }
.cookies-panel h2 { font-size: 1.5rem; }
.cookies-cat { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.cookies-cat label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.cookies-cat input { width: 20px; height: 20px; accent-color: var(--accent); }
.cookies-cat p { margin: 6px 0 8px 30px; font-size: .9rem; color: var(--muted); }
.cookies-panel .cookies-acciones { margin-top: 18px; }
.cookies-enlace { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.cookies-enlace:hover { text-decoration: underline; }
.embed-consent { display: flex; flex-direction: column; justify-content: center; min-height: var(--alto, 360px); padding: 24px; background: var(--paper-2); border: 1px solid var(--line); }
.embed-consent--video { aspect-ratio: 16 / 9; min-height: 0; }
.embed-consent p { margin: 0 0 12px; max-width: 34em; }
.embed-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.embed-consent.is-cargado { padding: 0; border: 0; background: none; }
.embed-consent iframe { width: 100%; height: 100%; min-height: var(--alto, 360px); border: 0; display: block; }
.embed-consent--video iframe { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
.tabla-cookies { overflow-x: auto; margin: 0 0 1.4em; }
.tabla-cookies table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla-cookies th, .tabla-cookies td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.tabla-cookies th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 600px) { .cookies-acciones { width: 100%; } .cookies-btn { flex: 1; padding: .8em .6em; } }

/* ---------- reseñas de Google (inc/resenas.php; solo aparece si el módulo está activo) ----------
   Estructura neutra: adaptar colores, tipografía y fondo de .resenas al concepto de cada web. */
.resenas { padding: clamp(48px, 7vw, 96px) 0; }
.resenas-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 28px; }
.resenas-cab h2 { margin: 0; }
.resenas-nota { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.resenas-valoracion { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.resenas-media { display: flex; align-items: center; gap: 10px; }
.resenas-media b { font: 700 2.2rem/1 var(--f-display); }
.resenas-total, .resena-fuente { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.g-logo { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.estrellas { position: relative; display: inline-block; width: max-content; align-self: flex-start; font: 1.15rem/1 Arial, sans-serif; letter-spacing: .08em; color: var(--line); white-space: nowrap; }
.estrellas::before { content: "★★★★★"; }
.estrellas::after { content: "★★★★★"; position: absolute; left: 0; top: 0; overflow: hidden; color: #e7a614; width: 0; }
.estrellas--5::after { width: 10%; } .estrellas--10::after { width: 20%; } .estrellas--15::after { width: 30%; }
.estrellas--20::after { width: 40%; } .estrellas--25::after { width: 50%; } .estrellas--30::after { width: 60%; }
.estrellas--35::after { width: 70%; } .estrellas--40::after { width: 80%; } .estrellas--45::after { width: 90%; }
.estrellas--50::after { width: 100%; }
.resenas-carrusel { position: relative; }
.resenas-pista { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, calc((100% - 2 * 20px) / 3)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.resena { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.resena-autor { display: flex; align-items: center; gap: 12px; }
.resena-autor > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.resena-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; background: #5a6b7a; }
.resena-avatar--1 { background: #7a5a6b; } .resena-avatar--2 { background: #5a7a62; } .resena-avatar--3 { background: #8a6a3e; } .resena-avatar--4 { background: #4e5f8a; }
.resena-nombre { font-weight: 700; color: inherit; text-decoration: none; }
a.resena-nombre:hover { text-decoration: underline; }
.resena-fecha { font-size: .85rem; color: var(--muted); }
.resena-texto { margin: 0; flex: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.resena-texto.is-abierto { display: block; }
.resena-mas { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; cursor: pointer; }
.resena-fuente { margin: 0; font-size: .82rem; }
.resenas-flechas { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.resenas-flechas[hidden] { display: none; }
.resenas-flechas button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.resenas-flechas button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.resenas-flechas button:disabled { opacity: .35; cursor: default; }
.resenas-pie { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin: 22px 0 0; }
.resenas-pie small { flex-basis: 100%; color: var(--muted); }
@media (max-width: 900px) { .resenas-pista { grid-auto-columns: minmax(260px, 82%); } .resenas-flechas { justify-content: flex-start; } } /* a la izquierda: no chocan con el globo de WhatsApp */

/* ==========================================================================
   COMPONENTES PROPIOS DE CASA JARDÍN
   ========================================================================== */

/* ---------- portada: cabecera ---------- */
.hero { padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: .98; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--naranja); }
.hero .lead { color: var(--muted); margin-bottom: 1.6em; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-foto { position: relative; margin: 0; z-index: 0; }
.hero-foto::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; background: var(--naranja); border-radius: 18px; z-index: -1; }
.hero-foto img { width: 100%; border-radius: 18px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%; }
.hero-foto figcaption { position: absolute; left: -18px; bottom: 26px; background: var(--anil); color: var(--white); padding: 12px 18px; border-radius: 10px; font-size: .9rem; line-height: 1.35; box-shadow: 0 10px 24px rgba(31, 25, 70, .25); }
.hero-foto figcaption strong { display: block; font: 750 1.05rem/1.2 var(--f-display); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-foto { margin-right: 22px; }
  .hero-foto figcaption { left: 12px; bottom: 12px; }
}

/* ---------- datos destacados ---------- */
.cifras { background: var(--white); border-block: 1px solid var(--line); }
.cifras ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.cifras li { padding: 28px 22px; border-left: 1px solid var(--line); }
.cifras li:first-child { border-left: 0; padding-left: 0; }
.cifras b { display: block; font: 800 clamp(2rem, 3.6vw, 2.8rem)/1 var(--f-display); color: var(--anil); letter-spacing: -.03em; margin-bottom: 6px; }
.cifras b small { font-size: .5em; letter-spacing: 0; }
.cifras span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) {
  .cifras ul { grid-template-columns: 1fr 1fr; }
  .cifras li { padding: 22px 0 22px 18px; }
  .cifras li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .cifras li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- estaciones del buffet (lista numerada) ---------- */
.estaciones-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.estaciones-intro { position: sticky; top: 110px; }
.mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; aspect-ratio: 1; }
.mosaico img:first-child { grid-column: span 2; aspect-ratio: 2.2 / 1; }
.estaciones { list-style: none; margin: 0; padding: 0; counter-reset: est; border-top: 3px solid var(--anil); }
.estaciones li { counter-increment: est; border-bottom: 1px solid var(--line); }
.estaciones a, .estaciones .est { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 4px 16px; padding: 22px 4px; text-decoration: none; align-items: baseline; }
.estaciones a::before, .estaciones .est::before { content: counter(est, decimal-leading-zero); grid-row: span 2; font: 800 1.5rem/1 var(--f-display); color: var(--naranja); font-variant-numeric: tabular-nums; }
.estaciones h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.estaciones p { grid-column: 2; margin: 0; color: var(--muted); }
.estaciones .ir { grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); color: var(--anil); font-weight: 700; transition: background .2s, border-color .2s, color .2s; }
.estaciones a:hover .ir { background: var(--naranja); border-color: var(--naranja); color: var(--accent-ink); }
.estaciones a:hover h3 { color: #4a3ca0; }
@media (max-width: 860px) { .estaciones-grid { grid-template-columns: 1fr; } .estaciones-intro { position: static; } }

/* ---------- bloque a sangre (parque infantil) ---------- */
.sangre { display: grid; grid-template-columns: 1fr 1fr; background: var(--anil); color: #e4e0fa; }
.sangre-foto { position: relative; min-height: 420px; }
.sangre-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sangre-texto { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px) clamp(32px, 6vw, 80px); max-width: 640px; }
.sangre h2 { color: var(--white); }
.sangre .etiqueta { background: var(--naranja); border-color: var(--naranja); border-left-color: var(--white); color: var(--accent-ink); box-shadow: none; }
.sangre ul { padding-left: 1.1em; margin: 0 0 1.6em; }
.sangre li::marker { color: var(--naranja); }
.gratis { display: block; font: 800 clamp(3rem, 7vw, 5.4rem)/.9 var(--f-display); color: var(--naranja); letter-spacing: -.04em; margin-bottom: .1em; }
@media (max-width: 860px) { .sangre { grid-template-columns: 1fr; } .sangre-foto { min-height: 0; aspect-ratio: 16 / 9; } .sangre-texto { padding-left: var(--gutter); } }

/* ---------- pizarra de precios ---------- */
.pizarra { background: var(--anil); color: #e4e0fa; border-radius: 18px; padding: clamp(26px, 4vw, 48px); position: relative; box-shadow: inset 0 0 0 8px var(--anil-2); }
.pizarra h2, .pizarra h3 { color: var(--white); }
.pizarra-titulo { font: 700 .82rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--naranja); margin: 0 0 18px; }
.precios { list-style: none; margin: 0; padding: 0; }
.precios li { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 18px 0; border-bottom: 1px dashed rgba(255, 255, 255, .25); align-items: end; }
.precios li:last-child { border-bottom: 0; }
.precios h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.45rem); display: flex; align-items: baseline; gap: 10px; }
.precios h3::after { content: ""; flex: 1; border-bottom: 2px dotted rgba(255, 255, 255, .35); transform: translateY(-4px); min-width: 20px; }
.precios .precio { font: 800 clamp(1.8rem, 3.6vw, 2.6rem)/1 var(--f-display); color: var(--naranja); letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.precios .precio small { font-size: .5em; }
.precios p { grid-column: 1 / -1; margin: 4px 0 0; font-size: .95rem; color: #c9c3ec; }
.pizarra-nota { margin: 18px 0 0; font-size: .88rem; color: #c9c3ec; }

/* ---------- dos columnas genéricas ---------- */
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.dos-col--arriba { align-items: start; }
@media (max-width: 860px) { .dos-col { grid-template-columns: 1fr; } }

/* ---------- ticket de horario ---------- */
.ticket { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; position: relative; margin-bottom: 24px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); transform: translateY(-50%); }
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.sec--blanco .ticket::before, .sec--blanco .ticket::after { background: var(--white); }
.ticket h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--f-body); font-weight: 800; color: var(--naranja-txt); margin: 0 0 12px; }
.ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: baseline; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font: 750 1.25rem/1.3 var(--f-display); color: var(--anil); font-variant-numeric: tabular-nums; }
.ticket p { margin: 14px 0 0; padding-top: 12px; border-top: 2px dashed var(--line); font-weight: 700; color: var(--anil); }

/* ---------- visita: mapa estático + datos ---------- */
.visita { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.mapa { margin: 0; }
.mapa-enlace { display: block; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.mapa img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .4s; }
.mapa-enlace:hover img { transform: scale(1.02); }
.mapa-enlace span { position: absolute; left: 14px; bottom: 14px; background: var(--anil); color: var(--white); padding: .55em 1em; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.mapa figcaption { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.direccion { font-size: 1.1rem; margin-bottom: 1.4em; }
.direccion strong { display: block; font: 750 1.4rem/1.2 var(--f-display); color: var(--anil); margin-bottom: 4px; }
.tel-grande { display: inline-block; font: 800 clamp(2rem, 4.5vw, 3rem)/1 var(--f-display); color: var(--anil); text-decoration: none; letter-spacing: -.02em; border-bottom: 4px solid var(--naranja); margin-bottom: 18px; white-space: nowrap; }
.tel-grande:hover { color: #4a3ca0; }
@media (max-width: 860px) { .visita { grid-template-columns: 1fr; } .mapa img { aspect-ratio: 4 / 3; } }

/* ---------- banda final de reserva ---------- */
.banda { background: var(--naranja); color: var(--accent-ink); padding: clamp(40px, 6vw, 72px) 0; }
.banda .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.banda h2 { color: var(--accent-ink); margin: 0; max-width: 18ch; }
.banda p { margin: 6px 0 0; font-weight: 600; }
.banda .tel-grande { color: var(--accent-ink); border-color: var(--anil); margin: 0; }
.banda .acciones { gap: 16px 24px; }

/* ---------- cabecera de página interior ---------- */
.page-head--foto .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: end; }
.page-head--foto img { border-radius: 16px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.page-head .lead { color: var(--muted); }
.migas { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.migas a { color: var(--naranja-txt); font-weight: 600; }
@media (max-width: 860px) { .page-head--foto .wrap { grid-template-columns: 1fr; } }

/* ---------- filas de cocina (alternadas) ---------- */
.cocinas { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.cocina { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.cocina:nth-child(even) .cocina-foto { order: 2; }
.cocina-foto img { width: 100%; border-radius: 14px; aspect-ratio: 11 / 5; object-fit: cover; }
.cocina h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cocina p { color: var(--muted); font-size: 1.08rem; }
.cocina .platos { margin-top: 14px; }
@media (max-width: 760px) { .cocina { grid-template-columns: 1fr; } .cocina:nth-child(even) .cocina-foto { order: 0; } }

/* Chips de platos (rótulos pequeños) */
.platos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platos li { padding: .38em .85em; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--anil); }

/* ---------- plato destacado (marisco, brasa) ---------- */
.destacado { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.destacado-foto { position: relative; margin: 0; z-index: 0; }
.destacado-foto::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 3px solid var(--naranja); border-radius: 18px; z-index: -1; }
.destacado-foto img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; }
.destacado .lead { color: var(--ink); }
.destacado h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.4em; }
@media (max-width: 760px) { .destacado { grid-template-columns: 1fr; } .destacado-foto { margin: 18px 0 0 18px; } }

/* ---------- tarjetas de los tipos de comida ---------- */
.tipos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.tipos a { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.tipos a:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(31, 25, 70, .12); }
.tipos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tipos li:first-child img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.tipos div { padding: 20px 22px 24px; }
.tipos h2 { font-size: 1.5rem; margin-bottom: .3em; }
.tipos p { margin: 0; color: var(--muted); }
.tipos .mas { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--naranja-txt); }
@media (max-width: 900px) { .tipos { grid-template-columns: 1fr 1fr; } .tipos li:first-child { grid-column: span 2; } }
@media (max-width: 560px) { .tipos { grid-template-columns: 1fr; } .tipos li:first-child { grid-column: auto; } .tipos li:first-child img { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- menús: bebidas ---------- */
.bebidas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bebidas > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.bebidas > div:first-child { border-top: 5px solid var(--naranja); }
.bebidas > div:last-child { border-top: 5px solid var(--anil); }
.bebidas h3 { font-size: 1.25rem; }
.bebidas ul { margin: 0; padding-left: 1.1em; }
.bebidas li { margin-bottom: 6px; }
.bebidas li::marker { color: var(--naranja); }
@media (max-width: 680px) { .bebidas { grid-template-columns: 1fr; } }

/* ---------- parque infantil: galería ---------- */
.galeria-parque { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.galeria-parque img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.galeria-parque img:first-child { grid-row: span 2; }
.galeria-parque img:not(:first-child) { aspect-ratio: 16 / 8; }
@media (max-width: 680px) { .galeria-parque { grid-template-columns: 1fr; } .galeria-parque img:first-child { grid-row: auto; aspect-ratio: 16 / 9; } }
.lista-check { list-style: none; padding: 0; margin: 0 0 1.4em; }
.lista-check li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--anil); }
.lista-check li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 3px solid var(--naranja); border-bottom: 3px solid var(--naranja); transform: rotate(-45deg); }

/* ---------- contacto / reservas ---------- */
.contact .direct { border-top-color: var(--anil); }
.contact .direct strong { color: var(--anil); font-family: var(--f-display); font-size: 1.2rem; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.choices input:checked + span { background: var(--anil); border-color: var(--anil); color: var(--white); }
.choices span { border-radius: 999px; }
.legal .box { border-left-color: var(--naranja); background: var(--white); }
.sec--pegada { padding-top: 0; }
.mas-arriba { margin-top: 28px; }
@media (min-width: 861px) { .contact { grid-template-columns: 1fr 1.15fr; } }
.contact > * { min-width: 0; }
.contact .mapa { margin-top: 8px; }
.form--reserva h2 { font-size: 1.6rem; margin-bottom: .8em; }
.dos-col--menus { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 860px) { .dos-col--menus { grid-template-columns: 1fr; } }
/* Al hacer scroll, el sello del logo se recoge dentro de la cabecera (clase que pone main.js) */
.site-head .brand img { transition: height .25s, margin .25s; }
.site-head.is-scrolled { box-shadow: 0 6px 18px rgba(31, 25, 70, .08); }
.site-head.is-scrolled .brand img { height: 60px; margin: 0; }
@media (max-width: 900px) { .site-head.is-scrolled .brand img { height: 52px; } }

/* ---------- aviso de cookies: estilo Casa Jardín (los tres botones con el mismo peso) ---------- */
.cookies-banner { background: var(--anil-2); color: #e4e0fa; border-top: 5px solid var(--naranja); box-shadow: 0 -10px 30px rgba(31, 25, 70, .25); }
.cookies-banner a { color: var(--white); font-weight: 700; }
.cookies-btn { border: 2px solid var(--naranja); background: transparent; color: var(--white); border-radius: 999px; font-family: var(--f-body); font-weight: 700; }
.cookies-btn:hover { background: var(--naranja); color: var(--accent-ink); }
.cookies-panel { border-radius: 16px; background: var(--crema); border-top: 6px solid var(--naranja); }
.cookies-panel .cookies-btn { border-color: var(--anil); color: var(--anil); }
.cookies-panel .cookies-btn:hover { background: var(--anil); color: var(--white); }
.cookies-cat input { accent-color: var(--anil); }
