/* Rest. y Heladería El Deleite · propuesta privada (lote 12) · Kódika Studio
   Dirección: "rótulos pintados del Paseo". Sale del propio local: la pared amarilla con MARISCOS · CEVICHES ·
   CHURCHILL pintado en letras rojas con filo, las columnas de terracota, el techo de zinc de la terraza y el mar
   de Puntarenas al frente. Letra: Shrikhand (rótulo de heladería) + Archivo Black (las letras de molde de la
   pared) + Archivo. Paleta: amarillo pared, rojo rótulo, terracota, azul golfo y crema. */
:root {
  --amarillo: #f2c230;
  --amarillo-2: #f7d968;
  --rojo: #c8302c;
  --rojo-2: #9f211e;
  --terracota: #b3472c;
  --golfo: #17607d;
  --golfo-2: #0f4359;
  --crema: #fff7e3;
  --crema-2: #f6e9c8;
  --tinta: #2b1d14;
  --gris: #6b5a4c;
  --linea: #e6d3a6;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-molde: "Archivo Black", "Arial Black", sans-serif;
  --f-rotulo: "Shrikhand", Georgia, serif;
}
*, *::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(--crema); 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; }
h2 { font: 400 clamp(2rem, 7vw, 3.3rem)/1.02 var(--f-molde); color: var(--tinta); letter-spacing: -.01em; text-transform: uppercase; }
h1 em, h2 em { display: block; font: 400 .82em/1.15 var(--f-rotulo); font-style: normal; text-transform: none; color: var(--rojo); margin-top: .2em; letter-spacing: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico.copa { color: var(--terracota); }
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(--amarillo); color: var(--tinta); padding: .6rem 1rem; z-index: 100; font-weight: 800; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--golfo); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.eyebrow { display: flex; align-items: center; gap: .5rem; font: 800 .8rem/1.2 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--terracota); margin: 0 0 .9rem; }
.lede { font-size: 1.1rem; color: var(--gris); max-width: 54ch; margin: 1rem 0 0; }
.note { font-size: .9rem; color: var(--gris); margin-top: 1rem; }

.demo-strip { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: center; padding: .5rem 16px; background: var(--golfo-2); color: #e7f1f5; font-size: .8rem; text-align: center; }
.demo-strip a { color: var(--amarillo-2); 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(--rojo-2); }
.btn-main:hover { background: #d93a35; }
.btn-line { border-color: var(--tinta); color: var(--tinta); }
.btn-line:hover { background: var(--tinta); color: #fff; }
.btn-dark { background: var(--golfo-2); color: #fff; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }

.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: .8rem; padding: .5rem 16px; background: var(--amarillo); border-bottom: 3px solid var(--terracota); transition: box-shadow .2s ease; }
.nav.is-solid { box-shadow: 0 6px 18px rgba(43, 29, 20, .22); }
.brand { display: flex; align-items: center; gap: .45rem; text-decoration: none; min-width: 0; }
.brand .copa { width: 1.9rem; height: 1.9rem; }
.brand-name { font: 400 1.5rem/1 var(--f-rotulo); color: var(--rojo); text-shadow: 1px 1px 0 var(--crema); white-space: nowrap; }
.brand-sub { display: none; font: 800 .66rem/1.2 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); }
.nav-links { display: none; gap: 1.6rem; margin-left: auto; }
.nav-links a { color: var(--tinta); font: 800 .95rem/1 var(--f); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.nav-links a:hover { color: var(--rojo); }
.lang { margin-left: auto; display: flex; border: 2px solid var(--tinta); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { font: 800 .85rem/1 var(--f); padding: .5rem .7rem; min-width: 44px; min-height: 40px; border: 0; background: transparent; color: var(--tinta); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--tinta); color: var(--amarillo); }
@media (min-width: 560px) { .brand-sub { display: block; } }
@media (min-width: 900px) { .nav { padding: .6rem 32px; } .brand-name { font-size: 1.85rem; } .nav-links { display: flex; } .lang { margin-left: 1.5rem; } }

/* Portada: la terraza mirando al mar, y abajo una tarjeta amarilla como la pared */
.hero { position: relative; padding: 0 0 2.5rem; background: linear-gradient(180deg, var(--golfo) 0 40%, var(--crema) 40%); }
.hero-img img { width: 100%; height: 42svh; min-height: 230px; max-height: 560px; object-fit: cover; object-position: 50% 55%; }
.hero-grid { position: relative; margin-top: -3.5rem; display: grid; gap: 1rem; }
.hero-card { background: var(--amarillo); border: 3px solid var(--tinta); border-radius: 22px; padding: 1.5rem 1.2rem 1.6rem; box-shadow: 8px 8px 0 var(--terracota); }
.kicker { font: 800 .78rem/1.3 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); margin: 0 0 .7rem; }
h1 { font: 400 clamp(2.3rem, 9.5vw, 4.4rem)/.98 var(--f-molde); text-transform: uppercase; color: var(--tinta); letter-spacing: -.015em; }
h1 em { color: var(--rojo); text-shadow: 2px 2px 0 var(--crema); }
.sub { font-size: 1.08rem; margin: 1rem 0 0; max-width: 46ch; }
.status { display: inline-flex; align-items: center; gap: .5rem; margin: 1rem 0 0; font-weight: 800; font-size: .95rem; }
.status .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--gris); flex: none; }
.status.is-open .dot { background: #1f9d55; box-shadow: 0 0 0 4px rgba(31, 157, 85, .2); }
.status.is-closed .dot { background: var(--rojo); }
.score { justify-self: start; display: inline-flex; align-items: center; gap: .6rem; background: var(--crema); border: 2px solid var(--tinta); border-radius: 999px; padding: .5rem 1rem; color: var(--tinta); text-decoration: none; font-size: .92rem; }
.score b { font: 400 1.25rem/1 var(--f-molde); color: var(--rojo); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 640px) auto; align-items: end; margin-top: -9rem; }
  .hero-card { padding: 2.2rem 2.2rem 2.3rem; }
  .score { align-self: end; }
}

/* Franja de rótulos: las letras rojas pintadas sobre la pared amarilla */
.rotulos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem .9rem; padding: 1.1rem 16px; background: var(--amarillo); border-block: 3px solid var(--terracota); font: 400 clamp(1.2rem, 5vw, 2rem)/1.1 var(--f-molde); text-transform: uppercase; color: var(--rojo); -webkit-text-stroke: 1px var(--rojo-2); text-shadow: 2px 2px 0 var(--crema); }
.rotulos .sep { color: var(--terracota); font-size: .7em; -webkit-text-stroke: 0; }

/* Del mar */
.platos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 2rem; }
.platos figure, .vasos figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--crema-2); border: 3px solid var(--tinta); }
.platos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.platos figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; background: var(--crema); color: var(--tinta); font: 800 .82rem/1.25 var(--f); padding: .45rem .6rem; border-radius: 10px; border: 2px solid var(--tinta); }
.platos .grande { grid-column: span 2; }
.platos .grande img { aspect-ratio: 4 / 3; }
.platos figure:last-child { grid-column: span 2; }
.platos figure:last-child img { aspect-ratio: 16 / 9; }
@media (min-width: 760px) {
  .platos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .platos figure:last-child { grid-column: auto; }
  .platos figure:last-child img { aspect-ratio: 4 / 5; }
  .platos .grande { grid-column: span 2; grid-row: span 2; }
  .platos .grande img { aspect-ratio: auto; height: 100%; }
  .platos figcaption { font-size: .9rem; }
}

/* Heladería */
.frio { background: var(--golfo); color: #fff; }
.frio h2 { color: #fff; }
.frio h2 em { color: var(--amarillo); }
.frio .eyebrow { color: var(--amarillo-2); }
.frio .ico.copa { color: var(--amarillo); }
.frio .lede { color: #d6e8ef; }
.frio-grid { display: grid; gap: 2rem; }
.vasos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vasos figure { border-color: var(--amarillo); }
.vasos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) { .frio-grid { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 3rem; } .vasos { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vasos figure:nth-child(odd) { transform: translateY(18px); } }

/* Datos y reseñas */
.facts { list-style: none; padding: 0; margin: 0 0 2.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts li { background: var(--amarillo); border: 3px solid var(--tinta); border-radius: 16px; padding: .9rem .6rem; text-align: center; display: grid; gap: .2rem; }
.facts b { font: 400 clamp(1rem, 4.4vw, 1.6rem)/1.05 var(--f-molde); color: var(--rojo); text-transform: uppercase; overflow-wrap: anywhere; }
.facts span { font-size: .82rem; font-weight: 600; }
.resenas { display: grid; gap: 14px; }
.resena { margin: 0; background: #fff; border-left: 6px solid var(--terracota); border-radius: 0 16px 16px 0; padding: 1.1rem 1.2rem; }
.resena p { margin: 0; font-size: 1.08rem; }
.resena cite { display: block; margin-top: .5rem; font-style: normal; font-weight: 800; font-size: .88rem; color: var(--gris); }
@media (min-width: 900px) { .resenas { grid-template-columns: repeat(3, 1fr); } }

/* Formulario → WhatsApp */
.pedir { background: var(--crema-2); }
.two { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; align-items: start; gap: 3.5rem; } }
.form { background: #fff; border: 3px solid var(--tinta); border-radius: 22px; padding: 1.3rem; display: grid; gap: .9rem; box-shadow: 8px 8px 0 var(--amarillo); }
.form label { display: grid; gap: .35rem; font-weight: 800; font-size: .9rem; min-width: 0; }
.form input, .form select { width: 100%; min-width: 0; min-height: 48px; padding: .6rem .7rem; font: 400 1rem var(--f); border: 2px solid var(--linea); border-radius: 12px; background: var(--crema); color: var(--tinta); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.small { font-size: .82rem; color: var(--gris); margin: 0; }

/* Horario y mapa */
.horario { border-collapse: collapse; margin-top: 1.2rem; width: 100%; max-width: 420px; }
.horario th, .horario td { text-align: left; padding: .55rem 0; border-bottom: 2px dashed var(--linea); font-size: 1rem; }
.horario td { text-align: right; font-weight: 800; white-space: nowrap; padding-left: .8rem; }
.datos { margin: 1.2rem 0 0; display: grid; gap: .4rem; }
.datos div { display: flex; gap: .8rem; }
.datos dt { font-weight: 800; min-width: 90px; }
.datos dd { margin: 0; }
.map { border: 3px solid var(--tinta); border-radius: 22px; overflow: hidden; min-height: 320px; background: var(--crema-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

.footer { background: var(--tinta); color: #eadfc9; padding: 2.5rem 16px 2rem; text-align: center; font-size: .9rem; }
.footer a { color: var(--amarillo-2); }
.footer-name { font: 400 2rem/1 var(--f-rotulo); color: var(--amarillo); margin: 0 0 1rem; }

.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(--tinta); }
.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-weight: 800; text-decoration: none; }
.mobile-bar .mb-alt { background: var(--amarillo); color: var(--tinta); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }
