/* =========================================================
   Escena navideña: logo, fondo verde, luces, nieve y árbol
   ========================================================= */
:root { --pino: #1d5a3c; --pino-hondo: #0f3a26; --rojo: #c8202f; }

/* ---------- Logo ---------- */
.logo { gap: .45rem; }
.logo-tree { width: 30px; height: 36px; flex: none; }
.logo-word {
  font-family: "Mountains of Christmas", var(--f); font-weight: 700;
  font-size: 1.85rem; line-height: 1; letter-spacing: .01em;
}
.logo-mark { display: none; }

/* ---------- Fondo de la escena ---------- */
.escena {
  position: relative; overflow: hidden; color: var(--papel);
  background:
    radial-gradient(ellipse 70% 60% at 70% 45%, #2b7a51 0%, transparent 70%),
    linear-gradient(180deg, var(--pino) 0%, var(--pino-hondo) 100%);
  padding-top: 26px;
}
.escena::after {            /* suelo nevado */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -40px; height: 90px;
  background: #f4f7f5; border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 0;
}
#nieve { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.escena .nav, .hero-text { position: relative; z-index: 3; }
.escena .btn-ghost { color: var(--papel); border-color: rgba(255,251,243,.7); }
.escena .hero { position: relative; padding-bottom: 4.5rem; }
.escena .hero p.lead { color: #d9ecdf; }
.escena .hero-meta { color: #cfe5d8; }
.escena .hero-meta span::before { color: var(--maiz); }
.escena .phone-note { color: var(--papel); }

/* ---------- Guirnalda de luces ---------- */
.luces { position: absolute; top: 0; left: 0; width: 100%; height: 60px; z-index: 4; pointer-events: none; overflow: visible; }
.luces .cable { fill: none; stroke: #0b2418; stroke-width: 2; }
.bulb { animation: titilar 1.8s ease-in-out infinite; transform-box: fill-box; }
.bulb .halo { opacity: .45; }
@keyframes titilar { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Árbol ---------- */
.hero-visual { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; }
.hero-visual .phone-wrap { width: 380px; flex: none; }
.hero-visual .phone { z-index: 3; }
.arbol {
  position: absolute; left: -40px; bottom: 0; z-index: 1;
  width: 340px; height: auto; overflow: visible;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.3));
}
.tree-lights circle { animation: titilar 1.4s ease-in-out infinite; }
.tree-lights circle:nth-child(3n) { animation-delay: .45s; }
.tree-lights circle:nth-child(3n+1) { animation-delay: .9s; }
.tree-lights circle:nth-child(4n) { animation-duration: 2.1s; }
.estrella { transform-origin: 160px 34px; animation: estrella 3s ease-in-out infinite; }
@keyframes estrella { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08) rotate(4deg); } }

/* Movimiento reducido: luces quietas y encendidas */
/* Luces, lucecitas del árbol y estrella: se animan siempre, también con movimiento reducido */

@media (max-width: 1100px) {
  .arbol { left: -90px; width: 300px; }
}
@media (max-width: 900px) {
  .hero-visual { justify-content: center; }
  .arbol { left: calc(50% - 300px); width: 260px; }
}
@media (max-width: 560px) {
  .hero-visual .phone-wrap { width: 100%; }
  .arbol { left: -30px; width: 170px; bottom: 30px; }
  .logo-word { font-size: 1.6rem; }
}

/* Ajustes: árbol grande apoyado en la nieve */
.arbol { left: -230px; width: 430px; bottom: -36px; }
.escena .phone-note { z-index: 3; background: rgba(15,58,38,.8); padding: .3rem .9rem; border-radius: 999px; }
@media (max-width: 1100px) { .arbol { left: -190px; width: 380px; } }
@media (max-width: 900px)  { .arbol { left: calc(50% - 330px); width: 300px; bottom: -30px; } }
@media (max-width: 560px)  { .arbol { left: -40px; width: 190px; bottom: -20px; } }

/* ---------- Precio en el mismo azul que la sección de distancias ---------- */
.precio { background: var(--anil); color: var(--papel); }
.precio li { border-bottom-color: rgba(255,251,243,.2); }
.precio li::before { color: var(--maiz); }
.precio .monto { color: var(--maiz); }
.precio .pagos span { background: rgba(255,251,243,.12); color: var(--papel); }

/* ---------- S/ 24 en oro metálico, más grande ---------- */
.precio .monto {
  font-size: clamp(6.5rem, 19vw, 12.5rem);
  line-height: .85;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255,255,255,.85) 50%, transparent 60%) -200% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #fff6cf 0%, #f7d774 22%, #d9a21b 45%, #a8700a 55%, #e9b93a 70%, #fff0b3 88%, #c48a12 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #7a5208) drop-shadow(0 10px 18px rgba(0,0,0,.35));
  animation: brillo-oro 4.5s ease-in-out 1s infinite;
}
.precio .monto small { -webkit-text-fill-color: transparent; }
@keyframes brillo-oro { 0%, 55% { background-position: -200% 0, 0 0; } 100% { background-position: 200% 0, 0 0; } }
.calm .precio .monto { animation: none; }

/* ---------- S/ 24 estilo cartoon: dos tonos, contorno grueso y sombra dura ---------- */
.precio .monto {
  position: relative; display: inline-block;
  background: linear-gradient(180deg, #ffe066 0 46%, #f6b81f 46% 100%);
  -webkit-background-clip: text; background-clip: text;
  filter:
    drop-shadow(3px 0 0 #5c3a00) drop-shadow(-3px 0 0 #5c3a00)
    drop-shadow(0 3px 0 #5c3a00) drop-shadow(0 -3px 0 #5c3a00)
    drop-shadow(7px 9px 0 #111a4f);
  animation: none;
}
.precio .monto::after {      /* destellos */
  content: "✦"; position: absolute; top: .02em; right: -.28em;
  font-size: .26em; line-height: 1;
  color: #fff; -webkit-text-fill-color: #fff;
  animation: destello 2.2s ease-in-out infinite;
}
.precio .monto::before {
  content: "✦"; position: absolute; bottom: .12em; left: .9em;
  font-size: .14em; line-height: 1; z-index: 1;
  color: #fff; -webkit-text-fill-color: #fff;
  animation: destello 2.2s ease-in-out 1.1s infinite;
}
@keyframes destello { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.5) rotate(45deg); opacity: .5; } }
.calm .precio .monto::after, .calm .precio .monto::before { animation: none; }

/* ---------- Variantes del dorado del precio (añadir la clase a .monto) ---------- */
/* Oro miel: más cálido y anaranjado */
.precio .monto.v-miel {
  background: linear-gradient(180deg, #ffd88a 0 46%, #e8930c 46% 100%);
  -webkit-background-clip: text; background-clip: text;
  filter:
    drop-shadow(3px 0 0 #5a2600) drop-shadow(-3px 0 0 #5a2600)
    drop-shadow(0 3px 0 #5a2600) drop-shadow(0 -3px 0 #5a2600)
    drop-shadow(7px 9px 0 #8c1622);
}
/* Oro caramelo: brillo de golosina arriba */
.precio .monto.v-caramelo {
  background:
    linear-gradient(180deg, transparent 8%, rgba(255,255,255,.85) 8% 20%, transparent 20%),
    linear-gradient(180deg, #ffe680 0%, #ffc531 50%, #f09a00 100%);
  -webkit-background-clip: text; background-clip: text;
  filter:
    drop-shadow(4px 0 0 #6b3a00) drop-shadow(-4px 0 0 #6b3a00)
    drop-shadow(0 4px 0 #6b3a00) drop-shadow(0 -4px 0 #6b3a00)
    drop-shadow(6px 8px 0 #0d1442);
}
/* Oro champán: más pálido y elegante */
.precio .monto.v-champan {
  background: linear-gradient(180deg, #fbf1cf 0 46%, #d9b968 46% 100%);
  -webkit-background-clip: text; background-clip: text;
  filter:
    drop-shadow(3px 0 0 #4a3816) drop-shadow(-3px 0 0 #4a3816)
    drop-shadow(0 3px 0 #4a3816) drop-shadow(0 -3px 0 #4a3816)
    drop-shadow(7px 9px 0 #111a4f);
}
/* Moneda 3D: relieve escalonado, como letras de videojuego */
.precio .monto.v-moneda {
  background: linear-gradient(180deg, #fff2a8 0%, #ffd23f 40%, #f5ae12 100%);
  -webkit-background-clip: text; background-clip: text;
  filter:
    drop-shadow(0 0 0 #000)
    drop-shadow(3px 0 0 #5c3a00) drop-shadow(-3px 0 0 #5c3a00)
    drop-shadow(0 -3px 0 #5c3a00)
    drop-shadow(0 4px 0 #c78a0e) drop-shadow(0 4px 0 #a86f06) drop-shadow(0 4px 0 #5c3a00)
    drop-shadow(0 12px 10px rgba(0,0,0,.35));
}
.precio .monto.v-miel::before, .precio .monto.v-miel::after { color: #fff4d6; -webkit-text-fill-color: #fff4d6; }

/* ---------- Precio final: oro miel, sin destellos, el 24 da un rebote leve ---------- */
.precio .monto.v-miel { background: none; }
.precio .monto.v-miel small,
.precio .monto.v-miel .n {
  background: linear-gradient(180deg, #ffd88a 0 46%, #e8930c 46% 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.precio .monto.v-miel::before, .precio .monto.v-miel::after { content: none; animation: none; }
.precio .monto.v-miel .n {
  display: inline-block; transform-origin: 50% 100%;
  animation: rebote-24 3.2s ease-in-out 1s infinite;
}
@keyframes rebote-24 {
  0%, 62%, 100% { transform: none; filter: none; }
  72% { transform: translateY(-12px) scale(1.05); filter: brightness(1.15); }
  82% { transform: translateY(0) scale(1.04, .96); filter: brightness(1.08); }
  90% { transform: translateY(-3px) scale(1.01); filter: none; }
}
.calm .precio .monto.v-miel .n { animation: none; }

/* ---------- Cada puertita envuelta con su listón y lazo ---------- */
.door { --cinta: var(--maiz); --w: 7px; --y: 50%; --lazo-w: 24px; --lazo-h: 15px; }
.door[data-tone="maiz"], .door[data-tone="papel"], .big24 { --cinta: var(--fucsia); }
.door .door-face {
  background:
    linear-gradient(90deg, transparent calc(50% - var(--w) / 2), var(--cinta) 0 calc(50% + var(--w) / 2), transparent 0),
    linear-gradient(180deg, transparent calc(var(--y) - var(--w) / 2), var(--cinta) 0 calc(var(--y) + var(--w) / 2), transparent 0),
    linear-gradient(160deg, rgba(255,255,255,.18), transparent 45%),
    var(--c);
}
.door .door-face::before {          /* lazo en el cruce del listón */
  content: ""; position: absolute; left: 50%; top: var(--y);
  width: var(--lazo-w); height: var(--lazo-h); translate: -50% -60%;
  background: var(--cinta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 15'%3E%3Cpath d='M12 8C8 1 1 0 1 5.5S8 10 12 8ZM12 8c4-7 11-8 11-2.5S16 10 12 8Z'/%3E%3Cpath d='M11 8 7.5 15 10 14l1 1 1-7ZM13 8l3.5 7-2.5-1-1 1-1-7Z'/%3E%3Ccircle cx='12' cy='7.6' r='2.6'/%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 15'%3E%3Cpath d='M12 8C8 1 1 0 1 5.5S8 10 12 8ZM12 8c4-7 11-8 11-2.5S16 10 12 8Z'/%3E%3Cpath d='M11 8 7.5 15 10 14l1 1 1-7ZM13 8l3.5 7-2.5-1-1 1-1-7Z'/%3E%3Ccircle cx='12' cy='7.6' r='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.25));
  pointer-events: none;
}
.door .door-face { text-shadow: 0 1px 0 rgba(0,0,0,.18); }

/* Puerta grande del 24: el lazo arriba y el número debajo */
.door.big { --y: 30%; --w: 12px; --lazo-w: 46px; --lazo-h: 29px; }
.door.big .door-face { align-items: flex-end; justify-content: center; padding-bottom: 10%; }
.big24 { --y: 32%; --w: 14px; --lazo-w: 52px; --lazo-h: 33px; }
.big24 .door-face { align-items: flex-end; justify-content: center; padding-bottom: 12%; }

/* Tamaños dentro del celular */
.phone-grid .door { --w: 5px; --lazo-w: 18px; --lazo-h: 11px; }
.phone-grid .door.big { --w: 9px; --lazo-w: 34px; --lazo-h: 21px; }
@media (max-width: 560px) {
  .retablo-grid .door { --w: 5px; --lazo-w: 18px; --lazo-h: 11px; }
  .retablo-grid .door.big { --w: 9px; --lazo-w: 34px; --lazo-h: 21px; }
}
/* El número va sobre una plaquita del color de la puerta para que el listón no lo tape */
.door .dn { position: relative; z-index: 1; font: inherit; background: var(--c); border-radius: 5px; padding: .05em .22em; margin: 0 0 -.05em -.15em; }
.door.big .dn, .big24 .dn { padding: 0 .12em; border-radius: 8px; }

/* Puertitas cerradas: candado y un tono más apagado, para distinguirlas de las que ya se pueden abrir */
.door.locked .door-face { filter: saturate(.55) brightness(.82); }
.door.locked .door-face::after {
  content: "🔒"; width: auto; height: auto; background: none; box-shadow: none;
  font-size: .7rem; line-height: 1; top: .3rem; right: .3rem; filter: grayscale(1) brightness(1.6);
}
.phone-grid .door.locked .door-face::after { font-size: .55rem; top: .2rem; right: .2rem; }

/* ---------- Entrada suave del mensaje al abrir un regalo ---------- */
dialog.sheet[open] { animation: mensaje-entra .45s cubic-bezier(.2,.9,.3,1.15) both; }
dialog.sheet[open]::backdrop { animation: fondo-entra .3s ease both; }
dialog.sheet[open] .sheet-body > * { animation: subir .45s cubic-bezier(.2,.9,.25,1) both; }
dialog.sheet[open] .sheet-body > *:nth-child(1) { animation-delay: .12s; }
dialog.sheet[open] .sheet-body > *:nth-child(2) { animation-delay: .2s; }
dialog.sheet[open] .sheet-body > *:nth-child(3) { animation-delay: .28s; }
dialog.sheet[open] .sheet-body > *:nth-child(n+4) { animation-delay: .34s; }
@keyframes mensaje-entra { from { opacity: 0; transform: translateY(28px) scale(.92); } }
@keyframes fondo-entra { from { opacity: 0; } }

/* ---------- Al pasar el cursor, se levanta un poco la tapa de ese regalo ---------- */
@media (hover: hover) and (pointer: fine) {
  .door:not(.open):hover .door-face,
  .door:not(.open):focus-visible .door-face {
    animation: none;
    transform: rotateY(-16deg);
    transition: transform .3s cubic-bezier(.3,1.4,.5,1);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.25), 8px 6px 14px rgba(0,0,0,.35);
  }
  .door.locked:not(.open):hover .door-face { transform: rotateY(-7deg); }   /* las cerradas apenas se asoman */
}

/* ---------- Precio: moneda de un sol ---------- */
.precio-sol { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.moneda { width: clamp(150px, 18vw, 210px); flex: none; filter: drop-shadow(7px 9px 0 #111a4f); animation: moneda 5s ease-in-out 1s infinite; }
.moneda svg { display: block; width: 100%; height: auto; }
@keyframes moneda {
  0%, 55%, 100% { transform: translateY(0) rotateY(0); }
  65% { transform: translateY(-14px) rotateY(180deg); }
  75% { transform: translateY(0) rotateY(360deg); }
  82% { transform: translateY(-4px) rotateY(360deg); }
  88% { transform: translateY(0) rotateY(360deg); }
}
.calm .moneda { animation: none; }
.sol-titulo { margin: 0; font-size: var(--step-3); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; color: var(--maiz); max-width: 12ch; }
.sol-total { margin: .7rem 0 0; font-size: var(--step-1); font-weight: 700; }
.sol-total b { color: var(--maiz); }
.moneda img { display: block; width: 100%; height: auto; }
.moneda { filter: drop-shadow(0 0 0 #2f3640) drop-shadow(6px 8px 0 #111a4f); }

/* ---------- Aviso de cookies ---------- */
.aviso-cookies {
  position: fixed; left: 50%; bottom: 1rem; translate: -50% 0; z-index: 60;
  width: min(560px, 100% - 1.5rem); display: flex; align-items: center; gap: 1rem;
  background: var(--papel); color: var(--tinta); border-radius: 18px; padding: .9rem 1rem;
  box-shadow: 0 18px 50px rgba(15,58,38,.35); animation: subir .45s cubic-bezier(.2,.9,.25,1) both;
}
.aviso-cookies p { margin: 0; font-size: .9rem; line-height: 1.4; flex: 1; }
.aviso-cookies a { color: var(--anil); font-weight: 700; }
.aviso-cookies div { display: flex; gap: .5rem; flex: none; }
.aviso-cookies .btn { padding: .6rem 1rem; font-size: .9rem; }
.btn-soft-c { background: #efe6d6; color: var(--tinta); }
@media (max-width: 560px) {
  .aviso-cookies { flex-direction: column; align-items: stretch; bottom: 5.4rem; }
  .aviso-cookies div .btn { flex: 1; }
}

/* ---------- Preguntas rápidas centradas ---------- */
.faq .sec-title { text-align: center; margin-inline: auto; }
.faq details { margin-inline: auto; }

/* ---------- Recuperar calendario (portada) ---------- */
.recuperar {
  margin-top: 1.4rem; display: flex; align-items: center; gap: .8rem; text-align: left; cursor: pointer;
  background: rgba(15,58,38,.55); border: 1.5px solid rgba(255,251,243,.25); color: var(--papel);
  border-radius: 16px; padding: .75rem 1rem; font: inherit; max-width: 420px; width: 100%;
}
.recuperar:hover { background: rgba(15,58,38,.75); }
.recuperar > span:first-child { font-size: 1.4rem; }
.recuperar b { display: block; font-size: .95rem; }
.recuperar small { color: var(--maiz); font-weight: 700; font-size: .85rem; }
#rc-pedir[hidden], #rc-listo[hidden] { display: none; }

/* ---------- Pie de página común ---------- */
.pie { background: var(--pino-hondo); color: #d9ecdf; padding: 2.5rem 0 1.25rem; margin-top: 0; }
.pie a { color: #d9ecdf; text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie-cols { width: min(1120px, 100% - 2.5rem); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.pie-cols b { display: block; color: #fff; margin-bottom: .6rem; }
.pie-cols nav, .pie-contacto { display: flex; flex-direction: column; gap: .45rem; font-size: .92rem; }
.pie-marca .logo-word { font-size: 1.8rem; color: #fff; }
.pie-marca p { font-size: .9rem; line-height: 1.55; margin: .5rem 0 0; max-width: 34ch; }
.pie-legal { width: min(1120px, 100% - 2.5rem); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.pie-libro { display: inline-flex; align-items: center; gap: .5rem; background: #fffbf3; color: var(--anil) !important; font-weight: 800; padding: .45rem .9rem .45rem .6rem; border-radius: 10px; }
.pie-libro svg { width: 24px; height: 24px; }
@media (max-width: 800px) { .pie-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pie-cols { grid-template-columns: 1fr; } }

/* ---------- Catálogo de calendarios ---------- */
.catalogo { background: #f7f0e3; }
.prods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.prod { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 14px 30px -22px rgba(26,21,48,.5); }
.prod-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.25), transparent 55%), linear-gradient(160deg, var(--c1), var(--c2)); }
.prod-grid { width: 58%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 8px; border-radius: 40% 40% 8px 8px / 30% 30% 8px 8px; background: rgba(0,0,0,.18); border: 4px solid var(--madera); }
.prod-grid i { border-radius: 4px; background: #fffbf3; position: relative; }
.prod-grid i:nth-child(odd) { background: var(--maiz); }
.prod-grid i::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; translate: -50% 0; background: rgba(198,40,53,.8); }
.prod-emoji { position: absolute; right: 10%; bottom: 10%; font-size: clamp(1.6rem, 3vw, 2.4rem); filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
.prod-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.2; color: var(--anil); }
.prod-body p { margin: 0 0 .9rem; font-size: .86rem; color: #4b4566; line-height: 1.45; flex: 1; }
.prod-pie { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.prod-precio { font-weight: 800; font-size: 1.15rem; color: var(--tinta); }
.prod .btn-sm { padding: .55rem 1rem; font-size: .9rem; }
@media (max-width: 1050px) { .prods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .prods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .prods { grid-template-columns: 1fr; } }
