/* nova.css — Renovación visual 01/12/2026: portada con aurora y piso 3D, vitrina viva, tarjetas con profundidad.
   Solo colores de la marca (rojo DC, grafito, blanco). Todo se apaga con «reducir movimiento». */

/* ---------- Portada ---------- */
.hero-dc { isolation: isolate; }
.hero-dc::before {
    content: ''; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(38% 42% at 22% 30%, rgb(224 52 69 / .34), transparent 70%),
        radial-gradient(34% 40% at 78% 24%, rgb(255 42 95 / .24), transparent 70%),
        radial-gradient(46% 40% at 60% 84%, rgb(120 10 30 / .42), transparent 72%);
    filter: blur(8px); animation: nova-aurora 16s ease-in-out infinite alternate;
}
.hero-dc::after {
    content: ''; position: absolute; left: -20%; right: -20%; bottom: 0; height: 46%; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgb(255 90 110 / .2) 1px, transparent 1px), linear-gradient(90deg, rgb(255 90 110 / .2) 1px, transparent 1px);
    background-size: 54px 54px; transform: perspective(420px) rotateX(62deg); transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 90%); mask-image: linear-gradient(to top, #000 5%, transparent 90%);
    animation: nova-piso 5s linear infinite;
}
@keyframes nova-aurora { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12) rotate(4deg); } }
@keyframes nova-piso { to { background-position: 0 54px, 0 0; } }

.hero-dc__titulo span { background: linear-gradient(100deg, #FF6B7C 0%, #FFD3D9 30%, #FF2A5F 60%, #FF6B7C 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: nova-tinta 7s linear infinite; }
@keyframes nova-tinta { to { background-position: -220% 0; } }

/* ---------- Vitrina viva ---------- */
#nova-vitrina { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 16px 18px; margin-top: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 80rem; margin-inline: auto; }
#nova-vitrina::-webkit-scrollbar { display: none; }
.nova-pieza {
    position: relative; flex: 0 0 148px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 10px; text-align: left; min-height: 44px;
    border-radius: 20px; color: #fff; background: linear-gradient(160deg, rgb(255 255 255 / .13), rgb(255 255 255 / .04)); border: 1px solid rgb(255 255 255 / .16);
    box-shadow: 0 24px 44px -26px #000; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s;
    animation: nova-entra .7s cubic-bezier(.2, .9, .25, 1.1) both; animation-delay: calc(var(--i) * 90ms + .15s);
}
.nova-pieza:hover, .nova-pieza:focus-visible { border-color: #FF5C72; box-shadow: 0 26px 50px -22px rgb(255 42 95 / .6); }
.nova-pieza:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nova-pieza__foto { display: grid; place-items: center; aspect-ratio: 1.12; border-radius: 14px; background: radial-gradient(120% 90% at 50% 0%, #fff, #EEF0F4 60%, #D8DDE5); overflow: hidden; }
.nova-pieza__foto img { width: 84%; height: 84%; object-fit: contain; transition: transform .35s; }
.nova-pieza:hover img { transform: scale(1.08) rotate(-2deg); }
.nova-pieza__nombre { font: 700 12px/1.25 Inter, system-ui, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 30px; }
.nova-pieza__precio { font: 900 16px/1 Outfit, Inter, sans-serif; color: #fff; }
.nova-pieza__quedan { position: absolute; top: 16px; left: 16px; padding: 4px 8px; border-radius: 999px; background: #C8102E; color: #fff; font: 800 10px/1 Inter, sans-serif; font-style: normal; }
@keyframes nova-entra { from { opacity: 0; transform: translateY(26px) scale(.92) rotateX(14deg); } }

@media (max-width: 899px) { .hero-dc__texto #nova-vitrina { margin: 16px -16px 6px; max-width: none; width: calc(100% + 32px); } .hero-dc__texto { min-width: 0; } }
@media (min-width: 900px) {
    #nova-vitrina { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; overflow: visible; padding: 4px 16px 30px; }
    .nova-pieza { flex: none; padding: 12px; }
    .nova-pieza__nombre { font-size: 13px; }
    .nova-pieza__precio { font-size: 18px; }
}

/* ---------- Tarjetas con profundidad (solo mouse) ---------- */
@media (hover: hover) and (pointer: fine) {
    .nova-activa { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px) !important; transition: transform .12s ease-out, box-shadow .25s, border-color .25s; will-change: transform; }
    #product-grid article, .nav-regalo { position: relative; }
    .nova-activa::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; background: radial-gradient(240px circle at var(--nx, 50%) var(--ny, 50%), rgb(255 255 255 / .22), transparent 65%); }
    html:not(.dark) #product-grid .nova-activa::after { background: radial-gradient(260px circle at var(--nx, 50%) var(--ny, 50%), rgb(224 52 69 / .1), transparent 65%); }
}

/* ---------- Botones principales: destello ---------- */
.hero-dc__btn--p, .btn-p { position: relative; overflow: hidden; }
.hero-dc__btn--p::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent); animation: nova-destello 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes nova-destello { 0%, 62% { left: -60%; } 88%, 100% { left: 130%; } }

/* ---------- Cambio de módulo: entra con profundidad ---------- */
html.con-modulos [data-vista] { animation: nova-modulo .45s cubic-bezier(.2, .85, .3, 1) both; }
@keyframes nova-modulo { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .hero-dc::before, .hero-dc::after, .hero-dc__titulo span, .nova-pieza, .hero-dc__btn--p::after, html.con-modulos [data-vista] { animation: none !important; }
    .nova-activa { transform: none !important; }
}
