/* Página de celebraciones: misma paleta y tipografías que styles.css */
:root {
  --cream: #F6F4EF;
  --cream-2: #EDE9E0;
  --espresso: #1A0C04;
  --amber: #3D5A3E;
  --amber-pale: #D6E4D4;
  --wood: #8B6340;
  --f-display: 'Gloock', Georgia, serif;
  --f-body: 'Onest', system-ui, -apple-system, sans-serif;
  --laser: #ff5a1f;
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --max-w: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--espresso); font: 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; }
em { font-style: italic; color: var(--amber); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.btn--sm { padding: .6rem 1.2rem; font-size: .82rem; }
.btn--oscuro { background: var(--espresso); color: var(--cream); }
.btn--oscuro:hover { background: var(--amber); }
.btn--linea { border: 1.5px solid var(--espresso); }
.btn--wa { background: #25D366; color: #fff; width: 100%; }
.btn--claro { background: var(--cream); color: var(--espresso); }
.etiqueta { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }

.cab { position: sticky; top: 0; z-index: 20; background: rgba(246,244,239,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--cream-2); }
.cab__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cab__logo { font-family: var(--f-display); font-size: 1.4rem; text-decoration: none; }
.cab__nav { display: none; gap: 1.6rem; font-size: .9rem; }
.cab__nav a { text-decoration: none; opacity: .7; }
.cab__nav a:hover { opacity: 1; }

.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Portada: escaparate con fotos reales en mosaico */
.escaparate { max-width: 1440px; margin: 0 auto; padding: 2.5rem var(--pad-x) 1.5rem; }
.escaparate__cab { display: grid; gap: 1.5rem 3rem; align-items: end; margin-bottom: 2rem; }
.escaparate__titulo { font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.01em; margin-top: .8rem; max-width: 15em; }
.escaparate__lado p { font-size: 1.02rem; opacity: .8; max-width: 30em; }
.escaparate__acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.mosaico { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: .6rem; }
.pieza { position: relative; overflow: hidden; border-radius: 18px; background: var(--cream-2); text-decoration: none; }
.pieza img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.pieza span { position: absolute; left: .7rem; bottom: .7rem; padding: .35rem .75rem; border-radius: 999px; background: rgba(246,244,239,.92); font-size: .8rem; font-weight: 600; transition: background .3s, color .3s; }
.pieza:hover img { transform: scale(1.07); }
.pieza:hover span { background: var(--laser); color: #fff; }
.pieza--a { grid-column: span 2; grid-row: span 2; }

/* Carrusel con todos los modelos */
.tira { overflow: hidden; padding: 1.2rem 0 2.5rem; }
.tira__pista { display: flex; gap: 1rem; width: max-content; animation: cinta 90s linear infinite; }
.tira:hover .tira__pista { animation-play-state: paused; }
.tira figure { position: relative; flex: none; }
.tira figure:nth-child(odd) { transform: rotate(-1.5deg); }
.tira figure:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }
.tira img { width: 190px; height: 190px; object-fit: cover; border-radius: 16px; box-shadow: 0 14px 30px -18px rgba(26,12,4,.5); }
.tira figcaption { margin-top: .45rem; text-align: center; font-size: .8rem; opacity: .65; }

.ocasion { max-width: var(--max-w); margin: 0 auto; padding: 4rem var(--pad-x); scroll-margin-top: 68px; }
.ocasion--destacada { background: var(--cream-2); max-width: none; }
.ocasion--destacada > * { max-width: calc(var(--max-w) - 2 * var(--pad-x)); margin-left: auto; margin-right: auto; }
.ocasion__cab { margin-bottom: 2rem; max-width: 40em; }
.ocasion__cab h2 { font-size: clamp(2rem, 5vw, 3rem); margin: .4rem 0 .6rem; }
.ocasion__cab p:last-child { opacity: .8; }
.ocasion--destacada .ocasion__cab { margin-left: auto; margin-right: auto; margin-bottom: 2rem; }

.rejilla { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.producto { background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(26,12,4,.05), 0 18px 40px -26px rgba(26,12,4,.35); }
.producto img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.producto__texto { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.producto__texto h3 { font-size: 1.35rem; }
.producto__texto p { font-size: .93rem; opacity: .8; }
.producto__precio { font-weight: 600; opacity: 1 !important; color: var(--wood); margin-top: auto; }

.empresas { background: var(--espresso); color: var(--cream); padding: 4.5rem var(--pad-x); scroll-margin-top: 68px; }
.empresas__inner { max-width: 760px; margin: 0 auto; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.empresas h2 { font-size: clamp(2rem, 5vw, 3rem); }
.empresas em { color: var(--amber-pale); }
.empresas p { opacity: .8; }
.empresas .etiqueta { color: var(--amber-pale); }

.como { max-width: 760px; margin: 0 auto; padding: 4rem var(--pad-x); }
.como h2 { font-size: 2.2rem; margin-bottom: 1.2rem; }
.como ol { padding-left: 1.3rem; display: grid; gap: .7rem; }

.pie { border-top: 1px solid var(--cream-2); }
.pie__inner { max-width: var(--max-w); margin: 0 auto; padding: 2rem var(--pad-x) 6rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; font-size: .85rem; }
.pie nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; opacity: .7; }

.wa-flotante { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.4); }

/* ---------- Animaciones ---------- */

/* Títulos grabados con láser: el texto aparece detrás de un rayo que lo recorre */
.laser { position: relative; }
.laser__texto { display: block; }
.js .laser__texto { clip-path: inset(-10% 100% -10% 0); }
.js .laser.grabado .laser__texto { animation: grabar 1.25s cubic-bezier(.65,0,.35,1) forwards; }
.laser .rayo { position: absolute; top: -8%; bottom: -8%; left: 0; width: 3px; border-radius: 3px; background: var(--laser); box-shadow: 0 0 6px 2px var(--laser), 0 0 22px 6px rgba(255,90,31,.55); opacity: 0; pointer-events: none; }
.laser.grabado .rayo { animation: rayo 1.25s cubic-bezier(.65,0,.35,1) forwards; }
.laser .rayo::after { content: ""; position: absolute; top: 50%; left: -7px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: radial-gradient(circle, #fff 0 18%, var(--laser) 40%, transparent 70%); animation: chispa .12s steps(2) infinite; }
@keyframes grabar { to { clip-path: inset(-10% -2% -10% 0); } }
@keyframes rayo { 0% { left: 0; opacity: 1; } 92% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes chispa { 50% { transform: scale(1.5); opacity: .6; } }

/* Tarjetas que aparecen al bajar, una detrás de otra */
.js [data-revela] { opacity: 0; transform: translateY(40px) rotate(-1.2deg) scale(.97); transition: opacity .8s ease, transform .9s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-revela].visto { opacity: 1; transform: none; }
.producto { transition: box-shadow .35s ease, transform .35s ease; }
.producto img { transition: transform .9s cubic-bezier(.22,1,.36,1); }
.producto:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(26,12,4,.55); }
.producto:hover img { transform: scale(1.06); }

/* Portada: el titular sube palabra a palabra y el mosaico se descubre pieza a pieza */
.palabra { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.palabra > span { display: inline-block; }
.js [data-palabras] .palabra > span { transform: translateY(110%); }
.js [data-palabras].sube .palabra > span { transform: none; transition: transform .9s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--i) * 55ms); }
.js .mosaico .pieza { clip-path: inset(100% 0 0 0 round 18px); }
.js .mosaico.montado .pieza { clip-path: inset(0 0 0 0 round 18px); transition: clip-path 1.1s cubic-bezier(.77,0,.18,1); transition-delay: calc(.35s + var(--i) * 90ms); }
.js .mosaico .pieza img { transform: scale(1.25); }
.js .mosaico.montado .pieza img { transform: scale(1); transition: transform 1.6s cubic-bezier(.22,1,.36,1) calc(.35s + var(--i) * 90ms); }
.js .mosaico.montado .pieza:hover img { transform: scale(1.07); transition-delay: 0s; }


/* Cinta con las ocasiones */
.cinta { background: var(--espresso); color: var(--cream); overflow: hidden; padding: .9rem 0; }
.cinta__pista { display: flex; width: max-content; gap: 2.5rem; animation: cinta 32s linear infinite; font-family: var(--f-display); font-size: 1.35rem; }
.cinta__pista span::after { content: "✦"; margin-left: 2.5rem; color: var(--laser); font-size: .9rem; vertical-align: middle; }
.cinta:hover .cinta__pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Botón de WhatsApp con pulso suave */
.wa-flotante::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: pulso 2.4s ease-out infinite; z-index: -1; }
@keyframes pulso { from { transform: scale(1); opacity: .5; } to { transform: scale(1.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .js .laser__texto { clip-path: none; animation: none; }
  .laser .rayo { display: none; }
  .js [data-revela] { opacity: 1; transform: none; transition: none; }
  .tira__pista, .cinta__pista, .wa-flotante::before { animation: none; }
  .js [data-palabras] .palabra > span { transform: none; }
  .js .mosaico .pieza { clip-path: none; }
  .js .mosaico .pieza img { transform: none; }
}

@media (min-width: 900px) {
  .cab__nav { display: flex; }
  .escaparate__cab { grid-template-columns: 1.4fr 1fr; }
  .mosaico { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 15vw; max-height: none; }
  .pieza--a { grid-column: span 2; grid-row: span 2; }
  .pieza--c { grid-row: span 2; }
  .pieza--g { grid-column: span 2; }
  .pie__inner { padding-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
