/* ============================================================
   Sazón y Leña · estilos propios
   Rotulismo popular: esmalte pintado a mano sobre madera.
   Sobre daisyUI 5 + Tailwind 4.
   ============================================================ */

:root {
  --syl-sombra: #231C13;         /* sombra dura sobre claro */
  --syl-sombra-b: #0F271F;       /* sombra dura sobre tablero oscuro */
  --syl-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.10'/%3E%3C/svg%3E");
}

body {
  font-family: var(--syl-font-body);
  color: var(--syl-tinta);
  background-color: var(--syl-crema);
  background-image: var(--syl-grano);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.syl-display {
  font-family: var(--syl-font-display);
  font-weight: 400;
  line-height: 1.04;
}

/* Pintura dura: sombra de letrero sobre claro / sobre tablero */
.syl-pintado {
  text-shadow: 2px 2px 0 var(--syl-sombra);
}
.syl-pintado-b {
  text-shadow: 2px 2px 0 var(--syl-sombra-b);
}

/* Filete: marco doble pintado */
.syl-filete {
  position: relative;
  border: 3px solid var(--syl-tinta);
}
.syl-filete::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1.5px solid currentColor;
  border-radius: inherit;
  pointer-events: none;
}

/* Rúbrica: raya pintada bajo un titular */
.syl-rubrica {
  width: 4.25rem;
  height: 0.45rem;
  background: var(--syl-rojo);
  box-shadow: 2px 2px 0 var(--syl-sombra);
}
.syl-rubrica-b {
  background: var(--syl-mostaza);
  box-shadow: 2px 2px 0 var(--syl-sombra-b);
}

/* Plaque pintado: botón de letrero con contorno y sombra dura */
.syl-plaque {
  border: 2px solid var(--syl-tinta);
  box-shadow: 4px 4px 0 var(--syl-sombra);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.syl-plaque:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--syl-sombra);
}
.syl-plaque:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--syl-sombra);
}

/* ---------- superficies del navegador ---------- */
::selection {
  background: var(--syl-rojo);
  color: var(--syl-crema);
}

:focus-visible {
  outline: 3px solid var(--syl-azul);
  outline-offset: 2px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--syl-mostaza) transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: var(--syl-mostaza);
  border-radius: 999px;
  border: 2px solid var(--syl-crema);
}
*::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- marca ---------- */
.syl-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.5rem;
  background: var(--syl-rojo);
  color: var(--syl-crema);
  font-family: var(--syl-font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--syl-tinta);
  box-shadow: 3px 3px 0 var(--syl-sombra);
}
.syl-brand-name {
  font-family: var(--syl-font-display);
  font-weight: 400;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--syl-tinta);
}
.syl-brand-sub {
  margin-top: 0.3rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--syl-rojo);
}

/* ---------- navegación ---------- */
.syl-nav {
  background: var(--syl-crema);
  border-bottom: 3px solid var(--syl-tinta);
  transition: box-shadow 0.2s ease;
}
.syl-nav.is-scrolled {
  box-shadow: 0 4px 0 var(--syl-sombra);
}
.syl-nav-link {
  position: relative;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--syl-tinta);
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.syl-nav-link:hover {
  color: var(--syl-rojo);
  background: var(--syl-crema-2);
}
.syl-nav-link.is-active {
  color: var(--syl-rojo);
  font-weight: 700;
}
.syl-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.18rem;
  height: 3px;
  border-radius: 999px;
  background: var(--syl-rojo);
  box-shadow: 1px 1px 0 var(--syl-sombra);
}

.syl-lang-active {
  background: var(--syl-crema-2) !important;
  color: var(--syl-rojo) !important;
}

/* ---------- botones de marca ---------- */
.syl-btn-primary {
  background: var(--syl-rojo);
  color: var(--syl-crema);
  border: 2px solid var(--syl-tinta);
  box-shadow: 4px 4px 0 var(--syl-rojo-b);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.syl-btn-primary:hover {
  background: var(--syl-rojo-b);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--syl-sombra);
}
.syl-btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--syl-sombra);
}
.syl-btn-dark {
  background: var(--syl-tablero);
  color: var(--syl-crema);
  border: 2px solid var(--syl-tinta);
  box-shadow: 4px 4px 0 var(--syl-tablero-deep);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.syl-btn-dark:hover {
  background: var(--syl-tablero-soft);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--syl-sombra);
}

/* ---------- chips ---------- */
.syl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--syl-mostaza);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2B1E0F;
}

/* ---------- foto del hero ---------- */
.syl-photo-card {
  border: 2px solid var(--syl-tinta);
  box-shadow: 5px 5px 0 var(--syl-sombra);
}

/* ---------- tarjetas del menú / variedad ---------- */
.syl-menu-card,
.syl-variedad-card {
  background: var(--syl-crema);
  border-radius: 0.75rem;
  border: 2px solid var(--syl-tinta);
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--syl-crema-3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.syl-menu-card:hover,
.syl-variedad-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--syl-mostaza);
}
.syl-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--syl-crema-2);
  border-bottom: 2px solid var(--syl-tinta);
}
.syl-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.syl-menu-card:hover .syl-card-photo img,
.syl-variedad-card:hover .syl-card-photo img {
  transform: scale(1.04);
}
.syl-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}
.syl-menu-card-body {
  padding: 1.4rem 1.4rem 1.5rem;
}

.syl-option-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.38rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--syl-rojo);
  color: var(--syl-crema);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid var(--syl-tinta);
  box-shadow: 2px 2px 0 var(--syl-sombra);
}

.syl-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--syl-verde);
}
.syl-avail-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--syl-verde);
  box-shadow: 0 0 0 2px var(--syl-crema);
}

/* ---------- sopas (compacto) ---------- */
.syl-sopa-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem;
  border-radius: 0.5rem;
  background: var(--syl-crema);
  border: 2px solid var(--syl-tinta);
  box-shadow: 3px 3px 0 var(--syl-crema-3);
}
.syl-sopa-photo {
  width: 3.4rem;
  height: 3.4rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--syl-crema-2);
  border: 2px solid var(--syl-tinta);
}
.syl-sopa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- estado vacío ---------- */
.syl-empty {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  text-align: center;
  border-radius: 0.75rem;
  border: 3px dashed var(--syl-tinta);
  background: var(--syl-crema-2);
}
.syl-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--syl-mostaza);
  color: #2B1E0F;
  border: 2px solid var(--syl-tinta);
  box-shadow: 3px 3px 0 var(--syl-sombra);
}

/* ---------- footer ---------- */
.syl-footer {
  background-color: var(--syl-tablero-deep);
  background-image: var(--syl-grano);
  color: var(--syl-crema);
  border-top: 3px solid var(--syl-tinta);
}
.syl-footer .syl-brand-name {
  color: var(--syl-crema);
}
.syl-footer .syl-brand-sub {
  color: var(--syl-mostaza-soft);
}
.syl-footer-title {
  font-family: var(--syl-font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--syl-mostaza);
  text-shadow: 1px 1px 0 var(--syl-sombra-b);
}
.syl-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.5rem;
  border: 2px solid var(--syl-crema);
  color: var(--syl-crema);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.syl-social:hover {
  background: var(--syl-mostaza);
  color: #2B1E0F;
  border-color: var(--syl-tinta);
}

/* ---------- FABs ---------- */
.syl-fab {
  position: fixed;
  right: 1.1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 2px solid var(--syl-tinta);
  box-shadow: 3px 3px 0 var(--syl-sombra);
  transition: transform 0.18s ease, opacity 0.2s ease;
}
.syl-fab-top {
  bottom: 1.1rem;
  width: 2.9rem;
  height: 2.9rem;
  background: var(--syl-tablero);
  color: var(--syl-crema);
  opacity: 0;
  pointer-events: none;
}
.syl-fab-top.show {
  opacity: 1;
  pointer-events: auto;
}
.syl-fab-top:hover {
  background: var(--syl-tablero-soft);
}

/* ---------- toast ---------- */
.syl-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 100;
  transform: translateX(-50%) translateY(120%);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--syl-tablero);
  color: var(--syl-crema);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--syl-tinta);
  box-shadow: 4px 4px 0 var(--syl-sombra);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.syl-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- pasos (wizard de orden de servicio) ---------- */
.syl-pasos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.syl-paso {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.syl-paso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid var(--syl-tinta);
  background: var(--syl-crema-2);
  color: var(--syl-tinta);
  font-family: var(--syl-font-display);
  font-size: 0.8rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.syl-paso-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--syl-tinta-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.syl-paso-line {
  flex: 1;
  min-width: 1rem;
  height: 3px;
  border-radius: 999px;
  background: var(--syl-crema-3);
}
.syl-paso.activo .syl-paso-num {
  background: var(--syl-rojo);
  border-color: var(--syl-rojo-b);
  color: var(--syl-crema);
}
.syl-paso.activo .syl-paso-label {
  color: var(--syl-tinta);
}
.syl-paso.completado .syl-paso-num {
  background: var(--syl-verde);
  border-color: var(--syl-verde);
  color: var(--syl-crema);
}
.syl-paso.completado .syl-paso-label {
  color: var(--syl-tinta);
}

/* ---------- reveal (motion) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}
html.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pintada: el letrero se pinta de izquierda a derecha (momento firma) */
html.js [data-pintada] {
  clip-path: inset(0 100% 0 0);
}
html.js [data-pintada].pintado {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js [data-pintada] {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}
