/* ==========================================================
   La Heladería del Juguete — estilos base compartidos
   (colores, tipografías, botones, chorreado de chocolate)
   ========================================================== */

:root {
  --choco: #5b3a2e;
  --choco-2: #7a4e3d;
  --choco-dark: #3d261e;
  --pink: #f07f93;
  --pink-strong: #e2557a;
  --pink-soft: #f9c9cf;
  --checker: #f8d6da;
  --cream: #fff6ea;
  --cream-2: #fdecd8;
  --yellow: #ffcd3c;
  --blue: #45aee6;
  --lilac: #a985e6;
  --mint: #5fcf98;
  --orange: #f5964a;
  --ink: #3a2620;
  --ink-soft: #6e5248;
  --menu-blue: #2b4fb5;
  --navy: #1f2340;
  --white: #ffffff;

  --font-display: "Chewy", "Comic Sans MS", system-ui, sans-serif;
  --font-script: "Pacifico", cursive;
  --font-label: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 10px 30px rgba(91, 58, 46, .14);
  --shadow-pop: 6px 6px 0 var(--choco);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;

  /* Chorreado de chocolate (se repite en horizontal sin deformarse) */
  --drip-choco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cg fill='%235b3a2e'%3E%3Crect width='240' height='26'/%3E%3Crect x='16' width='26' height='62' rx='13'/%3E%3Crect x='66' width='18' height='40' rx='9'/%3E%3Crect x='108' width='30' height='76' rx='15'/%3E%3Crect x='162' width='18' height='46' rx='9'/%3E%3Crect x='200' width='24' height='58' rx='12'/%3E%3C/g%3E%3C/svg%3E");
  --drip-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cg fill='%23f9c9cf'%3E%3Crect width='240' height='26'/%3E%3Crect x='16' width='26' height='62' rx='13'/%3E%3Crect x='66' width='18' height='40' rx='9'/%3E%3Crect x='108' width='30' height='76' rx='15'/%3E%3Crect x='162' width='18' height='46' rx='9'/%3E%3Crect x='200' width='24' height='58' rx='12'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--choco); color: var(--cream); padding: 10px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 800;
}
.skip-link:focus { top: 12px; }

/* Fondo cuadriculé como el de la carta */
.checker {
  background-color: var(--cream);
  background-image: conic-gradient(var(--checker) 25%, transparent 0 50%, var(--checker) 0 75%, transparent 0);
  background-size: 64px 64px;
}

/* Bandas de chocolate chorreando */
.drip-bottom { position: relative; }
.drip-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 80px;
  background: var(--drip-choco) repeat-x top left; pointer-events: none; z-index: 2;
}
.drip-top-pink::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80px;
  background: var(--drip-pink) repeat-x top left; pointer-events: none;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border: 3px solid var(--choco); border-radius: 999px;
  font-family: var(--font-body); font-weight: 800; font-size: 1.02rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  box-shadow: 4px 4px 0 var(--choco);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--choco); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--choco); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--pink); color: var(--white); }
.btn-primary:hover { background: var(--pink-strong); }
.btn-light { background: var(--white); color: var(--choco); }
.btn-yellow { background: var(--yellow); color: var(--choco); }
.btn-whatsapp { background: #25d366; color: var(--white); }

/* Cinta café de los títulos de la carta */
.ribbon {
  display: inline-block; position: relative;
  background: var(--choco); color: var(--cream);
  font-family: var(--font-label); letter-spacing: .04em; font-size: 1.6rem; line-height: 1;
  padding: 10px 30px 8px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}

/* Etiquetas sin gluten / vegano / keto */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .02em; line-height: 1.6;
  white-space: nowrap; vertical-align: middle;
}
.tag-gf { background: #fff0c2; color: #8a5a00; }
.tag-vegan { background: #d7f5e4; color: #1d6b43; }
.tag-keto { background: #e7dcfb; color: #5a35a6; }
.tag-new { background: var(--pink); color: var(--white); }
