/* ===== Las recetas de Ña Sabina — estilos ===== */

/* Fuentes incluidas en la app (licencia libre SIL OFL, ver carpeta fuentes) */
@font-face { font-family: "Dancing Script"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fuentes/dancing-script-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fuentes/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fuentes/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fuentes/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fuentes/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --crema: #FBF5E9;
  --crema-2: #F5EAD2;
  --borde: #EADBC0;
  --tinta: #2B2118;
  --tinta-suave: #6B5B4B;
  --aji: #B3261E;
  --maiz: #F2B630;
  --huacatay: #3F6B3A;
  --huacatay-claro: #E9F0E4;
  --radio: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema-2);
  color: var(--tinta);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--maiz); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ===== Animaciones ===== */
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

/* ===== INTRO ===== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--tinta);
  color: var(--crema);
  overflow: hidden;
  animation: aparecer 1.6s ease-in backwards;
  transition: opacity .9s ease-in;
}
.intro.saliendo { animation: none; opacity: 0; pointer-events: none; }
.intro-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.intro-sombra {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(43,33,24,.92), rgba(43,33,24,0));
  pointer-events: none;
}
.intro-logo {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  right: 16px;
  background: var(--aji);
  color: var(--crema);
  border-radius: var(--radio);
  padding: 8px 16px 10px;
  text-align: right;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  font-family: "Dancing Script", cursive;
  font-weight: 700;
}
.intro-logo-1 { display: block; font-size: 26px; line-height: 1; }
.intro-logo-2 { display: block; font-size: 36px; line-height: 1.05; }
.intro-abajo {
  position: absolute; left: 24px; right: 24px;
  bottom: calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.btn-entrar {
  min-height: 56px;
  padding: 0 36px;
  border: 0;
  border-radius: var(--radio);
  background: var(--maiz);
  color: var(--tinta);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== APP ===== */
.app {
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--crema);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px var(--borde);
}
.pantalla {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: aparecer .6s ease-in both;
}

.cabecera { padding: calc(22px + env(safe-area-inset-top)) 22px 18px; }
.cabecera-maiz { background: var(--maiz); color: var(--tinta); }
.cabecera-aji { background: var(--aji); color: var(--crema); }
.cabecera-tierra { background: var(--tinta); color: var(--crema); }
.cabecera-huacatay { background: var(--huacatay); color: var(--crema); }
.cabecera-mini { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.titulo-app { font-family: Fraunces, Georgia, serif; font-size: 30px; line-height: 1.15; margin: 6px 0 0; }
.titulo-seccion { font-family: Fraunces, Georgia, serif; font-size: 28px; line-height: 1.15; margin: 10px 0 0; }
.cabecera-texto { margin: 8px 0 0; font-size: 15px; }
.volver { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 700; }

.contenido { flex: 1; padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 12px; }

.tarjeta-hoy {
  background: var(--aji);
  color: var(--crema);
  border-radius: 18px;
  padding: 20px;
}
.tarjeta-hoy-etiqueta { font-size: 13px; font-weight: 600; }
.tarjeta-hoy-plato { font-family: Fraunces, Georgia, serif; font-size: 24px; font-weight: 700; margin-top: 4px; }
.tarjeta-hoy-texto { margin: 6px 0 0; font-size: 15px; }
.btn-claro {
  display: inline-flex; align-items: center;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--crema);
  color: var(--aji);
  font-weight: 700;
  font-size: 16px;
}

.fila-seccion {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
}
.fila-seccion:active { background: var(--crema-2); }
.fila-titulo { display: block; font-weight: 700; font-size: 17px; }
.fila-sub { display: block; font-size: 14px; color: var(--tinta-suave); margin-top: 2px; }
.fila-accion { color: var(--aji); font-weight: 700; flex-shrink: 0; }

.aviso-pronto {
  background: #fff;
  border: 1px dashed var(--borde);
  border-radius: var(--radio);
  padding: 22px;
  font-size: 17px;
  text-align: center;
}

/* ===== Barra inferior ===== */
.barra {
  position: sticky; bottom: 0;
  display: flex; justify-content: space-around;
  background: var(--crema-2);
  border-top: 1px solid var(--borde);
  padding-bottom: env(safe-area-inset-bottom);
}
.barra a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 64px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tinta);
}
.barra a.activo { color: var(--aji); }

@media (prefers-reduced-motion: reduce) {
  .intro, .pantalla { animation: none; }
  .intro { transition: none; }
}
