/* Tema LANDDER · Landder Burger (@landderburger): el amarillo mostaza y el negro de su logo (#fcb036 sobre #1f1f1f).
   Hamburguesería "American Style" con un avioncito en el logo y burgers con nombres de ciudades de EE. UU.
   Títulos en Rubik extra negrita (redondeada, como "landder" del logo) y notas a mano en Caveat Brush
   (como las flechitas escritas en las fotos de su carta). Va con la plantilla app. */

@font-face { font-family: "Rubik"; src: url("../../assets/fonts/rubik-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../../assets/fonts/rubik-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("../../assets/fonts/rubik-500.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("../../assets/fonts/caveat-brush.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --fondo: #1f1f1f;        /* el negro del logo */
  --fondo-hondo: #151515;
  --superficie: #2a2a28;
  --acento: #fcb036;       /* el amarillo mostaza del logo */
  --acento-claro: #ffc75f;
  --brillo: #ffd98f;
  --claro: #f7f3ea;
  --claro-suave: #bdb8ad;
  --segundo: #34332f;
  --tinta: #1f1f1f;
  --tinta-suave: #5b5a55;
  --precio: #fcb036;
  --mano: "Caveat Brush", "Comic Sans MS", cursive;

  --display: "Rubik", system-ui, sans-serif;
  --display-peso: 800;
  --display-mayus: uppercase;
  --display-espacio: -.01em;
  --texto: "Rubik", system-ui, sans-serif;
  --radio: 14px;
}

/* Notas a mano en amarillo, como en las fotos de su carta (con "html" para ganarle a css/app.css, que carga después) */
html .volanta, html .hoy-dia, html .capitulo-intro { font-family: var(--mano); font-size: 19px; letter-spacing: 0; text-transform: none; color: var(--acento); }
html .capitulo-intro { font-size: 18px; }
html .titulo-app, html .cartel-eslogan, html .antojo-texto b, html .invitacion-texto b, html .capitulo-cabeza h3, html .etapa-titulo, html .hoja-carta .titulo, html .visitanos .titulo { letter-spacing: -.015em; }
html .cartel-eslogan { line-height: .95; }
html .cartel-eslogan em { font-style: normal; color: var(--acento); }
html .renglon-nombre { font-weight: 700; }
/* Logo: solo arriba en la barra, al lado del sello (en la portada no va; el redondo no le gustó al usuario) */
html .cabecera-logo { height: 26px; width: auto; }

/* ---------- Movimiento (solo transform, opacity y blur; ease-out-quint; nada con movimiento reducido) ----------
   Portada: la foto se acerca, el logo de la barra aparece y un avioncito (el del logo) cruza la foto.
   Inicio: las tarjetas de "¿Qué se te antoja?" entran de a una; La casa y los servicios aparecen al bajar.
   Carta y Pedir: los platos entran de a uno al cambiar de sección; al sumar, la foto del plato salta y la cuenta late. */
html .cartel::before {
  content: ""; position: absolute; z-index: 1; top: calc(var(--cab) + env(safe-area-inset-top) + 34px); left: 0;
  width: 34px; height: 34px; background: var(--acento); opacity: 0; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  /* Portada */
  html .fondo-portada img { animation: ld-acerca 2.4s var(--ease) both; }
  html .cabecera-logo { animation: ld-logo .9s var(--ease) .15s both; }
  html .cartel::before { animation: ld-vuelo 2.6s cubic-bezier(.45, .05, .35, 1) .9s both; }
  html.js .cartel-eslogan { animation: ld-sube .9s var(--ease) .3s both; }
  html.js .hoy { animation: ld-sube .9s var(--ease) .45s both; }
  html.js .portada-botones { animation: ld-sube .9s var(--ease) .55s both; }

  /* ¿Qué se te antoja?: entran desde el costado, de a una */
  html.js .antojo { animation: ld-costado .8s var(--ease) both; }
  html.js .antojo:nth-child(2) { animation-delay: .07s; }
  html.js .antojo:nth-child(3) { animation-delay: .14s; }
  html.js .antojo:nth-child(4) { animation-delay: .21s; }
  html.js .antojo:nth-child(n+5) { animation-delay: .28s; }
  html .antojo:active { transform: scale(.97); transition: transform .2s var(--ease); }

  /* La casa y servicios: aparecen al bajar (la plantilla app los deja quietos; acá vuelven a aparecer) */
  html.js .servicio.aparece { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
  html.js .servicio.aparece.visto { opacity: 1; transform: none; filter: none; }
  html.js .servicio:nth-child(2) { transition-delay: .08s; }
  html.js .servicio:nth-child(3) { transition-delay: .16s; }
  html.js .servicio:nth-child(4) { transition-delay: .24s; }

  /* Carta y Pedir: los platos entran de a uno cada vez que se abre una sección */
  html .capitulo:not([hidden]) .capitulo-cabeza, html .capitulo:not([hidden]) .capitulo-intro { animation: ld-sube .6s var(--ease) both; }
  html .capitulo:not([hidden]) .plato { animation: ld-sube .6s var(--ease) both; }
  html .capitulo:not([hidden]) .plato:nth-child(1) { animation-delay: .06s; }
  html .capitulo:not([hidden]) .plato:nth-child(2) { animation-delay: .1s; }
  html .capitulo:not([hidden]) .plato:nth-child(3) { animation-delay: .14s; }
  html .capitulo:not([hidden]) .plato:nth-child(4) { animation-delay: .18s; }
  html .capitulo:not([hidden]) .plato:nth-child(5) { animation-delay: .22s; }
  html .capitulo:not([hidden]) .plato:nth-child(n+6) { animation-delay: .26s; }

  /* Al sumar un plato: la foto salta, el número de la sección y la cuenta laten */
  html .plato-foto { transition: transform .35s var(--ease); }
  html .plato:has(.elegido) .plato-foto { transform: rotate(-3deg) scale(1.03); }
  html .plato-foto.agrega { animation: ld-salta .5s var(--ease); }
  html #p-siguiente.agrega { animation: ld-late .45s var(--ease); }
  html .cats-cant:not([hidden]), html .dock-cant:not([hidden]) { animation: ld-pop .4s var(--ease) both; }
  html .boton:active, html .siguiente-seccion:active { transform: scale(.97); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* La foto de La casa se acerca mientras se baja (solo en navegadores que lo soportan) */
    html .casa-foto img { animation: ld-alejar linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
@keyframes ld-acerca { from { transform: scale(1.14); } }
@keyframes ld-logo { from { opacity: 0; transform: translateX(-12px) scale(.9); } }
@keyframes ld-sube { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }
@keyframes ld-costado { from { opacity: 0; transform: translateX(46px); } }
@keyframes ld-vuelo {
  0% { opacity: 0; transform: translate(-40px, 70px) rotate(62deg) scale(.7); }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(100vw + 20px), -30px) rotate(78deg) scale(1.1); }
}
@keyframes ld-salta { 35% { transform: translateY(-6px) rotate(-6deg) scale(1.1); } 70% { transform: rotate(-2deg) scale(1.02); } }
@keyframes ld-late { 40% { transform: scale(1.05); } }
@keyframes ld-pop { from { transform: scale(.3); opacity: 0; } }
@keyframes ld-alejar { from { transform: scale(1.18); } to { transform: scale(1); } }
