/* Esterillos Chill · propuesta privada (lote 15) · Kódika Studio
   Dirección: "un día entero en la calcomanía". Sale de su logo: un óvalo con el sol amarillo, el cielo celeste que se
   aclara hacia abajo, la palmera verde con tronco naranja, el mar azul rey y la cinta roja «Esterillos Chill · Restaurante»
   con letra redonda y gruesa. La portada enmarca su foto del local al atardecer (cielo rosado, luces) dentro de ese óvalo,
   y la página recorre el día de la cocina: mañana (sol), mediodía (cielo) y noche (azul del mar), como su horario 7–9.
   Letras: Baloo 2 (redonda y gruesa como la del logo) + Albert Sans.
   Paleta (muestreada del logo): rojo #E2231A, sol #FFD100, naranja #F7941D, cielo #8ED8F8, mar #1B3C8C, palma #3AAA35. */
:root {
  --rojo: #e2231a;
  --rojo-2: #b5160f;
  --sol: #ffd100;
  --naranja: #f7941d;
  --cielo: #8ed8f8;
  --cielo-2: #d8f2fc;
  --mar: #1b3c8c;
  --noche: #101a45;
  --palma: #3aaa35;
  --arena: #fff6dc;
  --papel: #fffdf6;
  --tinta: #14203f;
  --gris: #4f5a74;
  --linea: #d9e3ef;
  --f: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-t: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --nav-h: 66px;
  /* módulo Menú + Pedidos */
  --m-oscuro: var(--mar); --m-acento: var(--rojo); --m-acento-2: var(--sol); --m-fondo: var(--cielo-2); --m-fondo-panel: var(--papel);
  --m-tarjeta: #fff; --m-texto: var(--tinta); --m-suave: var(--gris); --m-linea: var(--linea); --m-f: var(--f); --m-f-t: var(--f-t);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 1.05rem/1.6 var(--f); color: var(--tinta); background: var(--arena); padding-bottom: 64px; overflow-x: hidden; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rojo-2); }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; }
h2 { font: 800 clamp(2.1rem, 8.5vw, 3.6rem)/1 var(--f-t); color: var(--mar); letter-spacing: -.01em; }
h2 em { font-style: normal; color: var(--rojo); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
html.lang-en [data-lang="es"], html.lang-es [data-lang="en"] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--rojo); color: #fff; padding: .6rem 1rem; z-index: 100; font-weight: 800; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.eyebrow { display: inline-block; font: 800 .78rem/1.2 var(--f); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--rojo); padding: .4rem .75rem .35rem; border-radius: 6px; margin: 0 0 1rem; box-shadow: 0 3px 0 var(--sol); }
.lede { font-size: 1.1rem; color: var(--gris); max-width: 56ch; margin: 1rem 0 0; }
.note { font-size: .9rem; color: var(--gris); margin-top: .8rem; }
.two { display: grid; gap: 2.2rem; }
.two > * { min-width: 0; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; } }

.demo-strip { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: center; padding: .5rem 16px; background: var(--noche); color: #dbe6ff; font-size: .8rem; text-align: center; }
.demo-strip a { color: var(--sol); font-weight: 800; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.35rem; border-radius: 999px; font: 800 1rem/1 var(--f); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--rojo); color: #fff; box-shadow: 0 4px 0 var(--sol); }
.btn-main:hover { background: var(--rojo-2); }
.btn-line { border-color: #fff; color: #fff; background: rgba(16, 26, 69, .25); }
.btn-line:hover { background: #fff; color: var(--mar); }
.btn-sol { background: var(--sol); color: var(--noche); box-shadow: 0 4px 0 var(--rojo-2); }
.btn-dark { background: var(--mar); color: #fff; }
.btn-dark:hover { background: var(--noche); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

/* Barra de arriba */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .7rem; min-height: var(--nav-h); padding: .35rem 16px; background: #fff; border-bottom: 4px solid var(--rojo); transition: box-shadow .2s ease; }
.nav.is-solid { box-shadow: 0 6px 18px rgba(16, 26, 69, .14); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; min-width: 0; color: var(--rojo); }
.brand-logo { width: 58px; height: auto; flex: none; }
.brand-name { font: 800 1.35rem/1 var(--f-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: .2rem; }
.brand-name small { display: block; font: 800 .6rem/1.2 var(--f); letter-spacing: .22em; text-transform: uppercase; color: var(--mar); }
.nav-links { display: none; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--mar); font-weight: 800; text-decoration: none; }
.nav-links a:hover { color: var(--rojo); }
.lang { display: flex; margin-left: auto; border: 2px solid var(--mar); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { min-width: 44px; min-height: 38px; border: 0; background: transparent; color: var(--mar); font: 800 .85rem var(--f); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--mar); color: #fff; }
@media (max-width: 359px) { .brand-name { font-size: 1.1rem; } .brand-logo { width: 46px; } .lang button { min-width: 40px; } }
@media (min-width: 900px) { .nav { padding: .4rem 32px; } .nav-links { display: flex; } .lang { margin-left: 1.5rem; } }

/* Portada: el atardecer del local dentro del óvalo del logo */
.hero { position: relative; padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); color: #fff; overflow: hidden;
  background: linear-gradient(180deg, #2a1f5c 0%, #6b2f73 38%, #d4566a 68%, #f7941d 100%); }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 70px; background: var(--mar); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.kicker { margin: 0 0 1rem; font: 800 .8rem/1.3 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--sol); }
.hero h1 { font: 800 clamp(2.5rem, 11vw, 5rem)/.98 var(--f-t); letter-spacing: -.015em; }
.hero h1 em { font-style: normal; color: var(--sol); }
.sub { font-size: 1.12rem; max-width: 42ch; margin: 1.1rem 0 0; color: #fff3ea; }
.status { display: inline-flex; align-items: center; gap: .5rem; margin: 1.1rem 0 0; padding: .35rem .85rem; border-radius: 999px; background: #fff; color: var(--tinta); border: 1px solid var(--linea); font-weight: 600; font-size: .95rem; }
.status .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--gris); flex: none; }
.status.is-open .dot { background: var(--palma); box-shadow: 0 0 0 4px rgba(58, 170, 53, .2); }
.status.is-closed .dot { background: var(--rojo); }
.score { display: inline-flex; align-items: baseline; gap: .5rem; margin-top: 1.3rem; color: #fff; text-decoration: none; font-size: .95rem; }
.score b { font: 800 1.7rem/1 var(--f-t); color: var(--sol); }
.score:hover span { text-decoration: underline; }
.hero-foto { position: relative; justify-self: center; width: min(100%, 470px); padding-bottom: 2.4rem; }
.ovalo { margin: 0; border-radius: 50% / 46%; overflow: hidden; aspect-ratio: 5 / 6; border: 7px solid var(--rojo); box-shadow: 0 0 0 7px var(--sol), 0 24px 50px rgba(10, 10, 40, .45); background: var(--noche); }
.ovalo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.calco { position: absolute; z-index: 2; width: 46%; right: -2%; bottom: 0; transform: rotate(-6deg); filter: drop-shadow(0 10px 18px rgba(10, 10, 40, .45)); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } .calco { right: -10%; } }

/* Cinta roja (la del logo) */
.cinta { background: var(--mar); padding: 0 12px 1.4rem; }
.cinta p { margin: 0 auto; max-width: 920px; padding: .75rem 1rem; background: var(--rojo); color: var(--sol); border: 3px solid #fff; border-radius: 14px; text-align: center; font: 800 1rem/1.35 var(--f-t); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.cinta b { color: #fff; }

/* El día: mañana, mediodía, noche */
.dia { background: linear-gradient(180deg, var(--mar) 0 3rem, var(--arena) 3rem); padding-top: 3rem; }
.dia .wrap { background: var(--arena); border-radius: 22px 22px 0 0; padding-top: 1rem; }
.horas { display: grid; gap: 1rem; margin-top: 2rem; }
.hora { position: relative; border-radius: 22px; padding: 1.3rem 1.2rem 1.4rem; overflow: hidden; }
.hora h3 { font: 800 1.9rem/1 var(--f-t); margin-top: .6rem; }
.hora p { margin: .6rem 0 0; }
.h-reloj { display: inline-block; margin: 0 !important; padding: .25rem .7rem; border-radius: 999px; font: 800 .85rem/1.2 var(--f); letter-spacing: .08em; text-transform: uppercase; }
.h-precio { font: 800 1.2rem/1.2 var(--f-t); display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; }
.h-precio a { font: 800 .95rem/1.2 var(--f); }
.hora figure { margin: 1rem 0 0; border-radius: 16px; overflow: hidden; }
.hora figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.h-manana { background: linear-gradient(180deg, #fff1b0, #ffe066); color: var(--tinta); }
.h-manana .h-reloj { background: var(--naranja); color: #fff; }
.h-sol { width: 120px; color: var(--naranja); margin-top: .6rem; }
.h-manana h3 { color: var(--rojo); }
.h-manana a { color: var(--rojo-2); }
.h-medio { background: linear-gradient(180deg, var(--cielo), var(--cielo-2)); color: var(--tinta); }
.h-medio .h-reloj { background: var(--mar); color: #fff; }
.h-medio h3 { color: var(--mar); }
.h-noche { background: linear-gradient(180deg, #3a2a6e, var(--noche)); color: #e7ecff; }
.h-noche .h-reloj { background: var(--sol); color: var(--noche); }
.h-noche h3 { color: var(--sol); }
.h-noche a { color: var(--sol); }
@media (min-width: 900px) { .horas { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } .h-sol { width: 150px; margin-top: 1.4rem; } }

/* Menú */
.menu h2 { margin-bottom: 0; }
.menu .m-cat h3 { font-weight: 800; }
/* La quesadilla trae tres precios: que no estiren la lista a 320 px */
.menu .m-list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .menu .m-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mi.multi { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "p" "a"; }
.mi.multi.con-foto { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "f t" "p p" "a a"; }
.mi.multi .mi-p { white-space: normal; text-align: left; }

/* Exprés */
.expres { background: var(--rojo); color: #fff; }
.expres .eyebrow { background: var(--sol); color: var(--noche); box-shadow: 0 3px 0 var(--rojo-2); }
.expres h2 { color: #fff; }
.expres h2 em { color: var(--sol); }
.expres .lede { color: #ffe9e3; }
.pasos { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .7rem; }
.pasos li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 600; }
.pasos b { flex: none; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--rojo); font: 800 1.1rem/1 var(--f-t); padding-top: .15rem; }
.caja { position: relative; margin: 0; border-radius: 50% / 44%; overflow: hidden; border: 6px solid #fff; max-width: 460px; justify-self: center; width: 100%; aspect-ratio: 1; }
.caja img { width: 100%; height: 100%; object-fit: cover; }
.caja figcaption { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); padding: .35rem .9rem; border-radius: 999px; background: var(--sol); color: var(--noche); font: 800 .95rem/1.2 var(--f-t); white-space: nowrap; }

/* De su cocina */
.cocina { background: var(--papel); }
.platos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2rem; }
.platos figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--cielo-2); }
.platos img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.platos figcaption { position: absolute; left: .5rem; bottom: .5rem; max-width: calc(100% - 1rem); padding: .3rem .65rem; border-radius: 8px; background: var(--rojo); color: var(--sol); font: 800 .85rem/1.2 var(--f-t); }
@media (min-width: 900px) { .platos { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }

/* El lugar, de noche */
.lugar { background: linear-gradient(180deg, var(--noche), #1d2a66); color: #e7ecff; }
.lugar h2 { color: #fff; }
.lugar h2 em { color: var(--sol); }
.lugar .lede { color: #c7d2f5; }
.noche { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2rem; }
.noche figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.noche img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.n-grande { grid-column: 1 / -1; }
.n-grande img { aspect-ratio: 4 / 3; }
.noche figcaption { position: absolute; left: .6rem; bottom: .6rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(16, 26, 69, .8); color: var(--sol); font: 800 .85rem/1.2 var(--f); }
@media (min-width: 900px) { .noche { grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; } .n-grande { grid-column: auto; } .n-grande img { aspect-ratio: 1; } }
.datos-num { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.datos-num li { display: flex; align-items: baseline; gap: .8rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(231, 236, 255, .2); }
.datos-num b { flex: none; min-width: 4.6rem; font: 800 1.9rem/1 var(--f-t); color: var(--sol); }
@media (min-width: 900px) { .datos-num { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* Horario y mapa */
.llegar { background: var(--arena); }
.dir { margin: 1rem 0 0; font-size: 1.1rem; max-width: 42ch; }
.horario { width: 100%; max-width: 420px; margin-top: 1.2rem; border-collapse: collapse; }
.horario th, .horario td { text-align: left; padding: .5rem 0; border-bottom: 1px solid #ead9a8; font-weight: 600; }
.horario td { text-align: right; }
.horario tr.is-today th, .horario tr.is-today td { color: var(--rojo); font-weight: 800; }
.datos { margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.datos div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .6rem; }
.datos dt { font-weight: 800; color: var(--mar); }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.map iframe { display: block; width: 100%; min-height: 340px; border: 0; border-radius: 50% / 18%; border: 5px solid var(--rojo); background: var(--cielo-2); }

/* Pie */
.footer { padding: 2.5rem 16px 3rem; background: var(--mar); text-align: center; font-size: .88rem; color: #c7d2f5; }
.footer img { width: 140px; margin: 0 auto 1rem; }
.footer p { max-width: 64ch; margin: .4rem auto; }
.footer a { color: var(--sol); }

/* Barra del celular */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--noche); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; border-radius: 999px; background: var(--rojo); color: #fff; font: 800 1rem/1 var(--f); text-decoration: none; }
.mobile-bar .mb-alt { background: var(--sol); color: var(--noche); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* Apariciones suaves (sin JS todo se ve) */
.js-reveal .reveal { opacity: 0; transition: opacity .5s ease; }
.js-reveal .reveal.is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transition: none; } .btn:hover { transform: none; } }
section[id] { scroll-margin-top: var(--nav-h); }
