/* The Bakery Side · Temporada navideña. Todo cuelga de html.xmas (lo pone temporada.js);
   fuera de temporada este archivo no cambia nada. Marca intacta: crema, tinta y tostado,
   más dos acentos de temporada: frambuesa y verde pino. */
:root {
  --frambuesa: #B3262E;
  --frambuesa-2: #C9333B;
  --pino: #2F4A3A;
  --pino-2: #4E7A5E;
}

/* ---------- logo con gorro de Santa sobre la S ---------- */
html.xmas .brand.logo { position: relative; }
html.xmas .xmas-sprig { position: absolute; top: -10px; left: 44px; width: 34px; height: 29px; transform: rotate(12deg); pointer-events: none; }
html.xmas .xmas-sprig svg { width: 100%; height: 100%; display: block; }

/* ---------- guirnalda de luces bajo la barra de arriba ---------- */
html.xmas .topbar { border-bottom-color: transparent; }
.xmas-garland { position: absolute; left: 0; right: 0; top: calc(100% - 4px); height: 20px; pointer-events: none; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20'%3E%3Cpath d='M0 2Q24 12 48 2T96 2' fill='none' stroke='%23554741' stroke-width='1.2'/%3E%3Cg%3E%3Crect x='10.6' y='4.3' width='2.8' height='2.6' rx='.6' fill='%23554741'/%3E%3Cellipse cx='12' cy='10.8' rx='3' ry='4.2' fill='%23B3262E'/%3E%3Crect x='34.6' y='4.3' width='2.8' height='2.6' rx='.6' fill='%23554741'/%3E%3Cellipse cx='36' cy='10.8' rx='3' ry='4.2' fill='%23D9A06A'/%3E%3Crect x='58.6' y='4.3' width='2.8' height='2.6' rx='.6' fill='%23554741'/%3E%3Cellipse cx='60' cy='10.8' rx='3' ry='4.2' fill='%234E7A5E'/%3E%3Crect x='82.6' y='4.3' width='2.8' height='2.6' rx='.6' fill='%23554741'/%3E%3Cellipse cx='84' cy='10.8' rx='3' ry='4.2' fill='%23E9D58A'/%3E%3C/g%3E%3Cg fill='%23fff' opacity='.55'%3E%3Cellipse cx='11' cy='9.4' rx='.9' ry='1.4'/%3E%3Cellipse cx='35' cy='9.4' rx='.9' ry='1.4'/%3E%3Cellipse cx='59' cy='9.4' rx='.9' ry='1.4'/%3E%3Cellipse cx='83' cy='9.4' rx='.9' ry='1.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px 20px repeat-x; }
/* brillo: dos grupos de focos que se turnan, muy despacio */
.xmas-garland::before, .xmas-garland::after { content: ""; position: absolute; inset: 0; background-size: 96px 20px; background-repeat: repeat-x; opacity: 0; animation: xmas-glow 3.6s ease-in-out infinite; }
.xmas-garland::before { background-image: radial-gradient(circle at 12px 11px, rgb(201 51 59 / .55), transparent 7px), radial-gradient(circle at 60px 11px, rgb(78 154 110 / .5), transparent 7px); }
.xmas-garland::after { background-image: radial-gradient(circle at 36px 11px, rgb(232 170 100 / .6), transparent 7px), radial-gradient(circle at 84px 11px, rgb(240 214 120 / .65), transparent 7px); animation-delay: 1.8s; }
@keyframes xmas-glow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ---------- barra de primer envío gratis: azúcar glas cayendo sobre la tinta ---------- */
html.xmas .welcome-bar, html.xmas .demand-bar { position: relative; overflow: hidden; }
html.xmas .welcome-bar::before { content: ""; position: absolute; inset: -60px 0 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, #F6F7DE 1.1px, transparent 1.6px), radial-gradient(circle, #F6F7DE .8px, transparent 1.3px);
  background-size: 46px 30px, 31px 23px; background-position: 0 0, 15px 9px; animation: xmas-sugar 9s linear infinite; }
@keyframes xmas-sugar { to { transform: translateY(60px); } }
html.xmas .welcome-bar .wb-in { position: relative; }
html.xmas .demand-bar { background: var(--frambuesa); color: #fff; }

/* ---------- portada ---------- */
html.xmas .shop { position: relative; }
.xmas-snow { position: absolute; left: 0; top: 0; width: 100%; height: 0; pointer-events: none; z-index: 0; }
/* solo la portada: .layout NO, porque ahí vive el carrito fijo del celular y quedaría debajo del fondo oscuro */
html.xmas .shop > .intro, html.xmas .shop > .steps, html.xmas .shop > .ship-strip, html.xmas .shop > .xmas-deadline { position: relative; z-index: 1; }
html.xmas .hero-b .eyebrow { color: var(--frambuesa); }
html.xmas .hero-b .eyebrow::before { content: "★ "; color: var(--tostado); }
.xmas-frame { position: relative; display: block; }
.xmas-frame > .hb-media { display: block; }
.xmas-bow { position: absolute; top: -14px; left: 50%; width: 58px; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 3px 4px rgb(28 23 20 / .2)); pointer-events: none; }
.xmas-bow svg { display: block; width: 100%; height: auto; }
.xmas-tag { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; background: var(--frambuesa); color: #fff; font: 400 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 6px 6px 5px; border-radius: 8px; box-shadow: 0 4px 10px rgb(179 38 46 / .3); }
@media (max-width: 420px) { .xmas-tag { font-size: 12px; left: 6px; right: 6px; bottom: 6px; } .xmas-bow { width: 46px; top: -11px; } }

/* pasos: estrellitas en la franja crema y números en frambuesa */
html.xmas section.steps { background-color: var(--crema);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='70'%3E%3Cg fill='%23C68A4E' opacity='.22'%3E%3Cpath d='M14 8l1.2 2.6 2.8.3-2.1 1.9.6 2.8-2.5-1.4-2.5 1.4.6-2.8-2.1-1.9 2.8-.3z'/%3E%3Cpath d='M62 40l.9 1.9 2 .2-1.5 1.4.4 2-1.8-1-1.8 1 .4-2-1.5-1.4 2-.2z'/%3E%3Ccircle cx='44' cy='14' r='1.2'/%3E%3Ccircle cx='24' cy='52' r='1.1'/%3E%3Ccircle cx='80' cy='22' r='1'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 1.5px rgb(198 138 78 / .25); }
html.xmas .st-ic i { background: var(--frambuesa); }
html.xmas .st-ic { box-shadow: 0 0 0 1.5px #E7C9A6; }
html.xmas section.steps small { color: var(--pino); }
html.xmas section.steps ol::before { border-top-color: #CBA27B; }

/* fecha límite para pedir */
.xmas-deadline { max-width: 760px; margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; text-align: center; font-size: 13.5px; line-height: 1.4; color: var(--pino); background: #EEF3EC; border: 1px dashed #B9CDB9; }
.xmas-deadline b { font-weight: 700; }

/* categorías y títulos del menú */
html.xmas .cat-title::after { content: " ★"; color: var(--tostado); font-size: .6em; vertical-align: .35em; }

/* carrito */
.xmas-empty { justify-items: center !important; text-align: center; padding: 10px 0 4px !important; }
.xmas-empty .xe-ic { font-size: 30px; line-height: 1; margin-bottom: 4px; display: inline-block; animation: xmas-sway 2.8s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes xmas-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
html.xmas .cartfab { background: var(--frambuesa); color: #fff; }
html.xmas .cartfab .cf-n { background: #fff; color: var(--frambuesa); }
html.xmas .ship-hint.ok { color: var(--pino); }

/* pie de página */
.xmas-foot { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 400 22px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--frambuesa); }
.xmas-foot span:first-child { color: var(--tinta); }

/* seguimiento del pedido */
html.xmas ol.steps li.done .dot { background: var(--frambuesa); border-color: var(--frambuesa); }
html.xmas ol.steps li.done::before { background: var(--frambuesa); }
html.xmas ol.steps li.now .dot { border-color: var(--frambuesa); box-shadow: 0 0 0 5px rgb(179 38 46 / .16); }

@media (prefers-reduced-motion: reduce) {
  .xmas-garland::before, .xmas-garland::after, html.xmas .welcome-bar::before, .xmas-empty .xe-ic { animation: none !important; }
  .xmas-garland::before, .xmas-garland::after { opacity: .6; }
}
