/* ==========================================================
   SICK - THEME (capa de diseño moderno)
   Se carga DESPUÉS de style/animations/responsive en todas las
   páginas. Para volver al diseño anterior basta con quitar el
   <link> de theme.css y el <script> de effects.js.
========================================================== */

:root {
    --bg: #07060b;
    --surface: #0e0c15;
    --surface-2: #151220;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(168, 85, 247, 0.4);
    --text: #f4f2fa;
    --muted: #9a97ab;
    --accent: #a855f7;
    --accent-2: #e11d9b;
    --grad: linear-gradient(135deg, #a855f7 0%, #e11d9b 100%);
    --cut: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection { background: rgba(168, 85, 247, 0.45); color: #fff; }
body { background: var(--bg); color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #c084fc; outline-offset: 3px; }

.background-glow {
    background:
        radial-gradient(circle at 12% 20%, rgba(225, 29, 155, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 88% 78%, rgba(168, 85, 247, 0.2) 0%, transparent 50%),
        #07060b;
}

/* ---------- MENÚ ---------- */
nav {
    top: 16px;
    height: 64px;
    padding: 0 28px;
    background: rgba(10, 8, 16, 0.6);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
nav.scrolled {
    padding: 0 28px;
    background: rgba(8, 6, 12, 0.9);
    border-color: var(--line-strong);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.12);
}
.logo a {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 6px;
}
nav ul { list-style: none; display: flex; align-items: center; gap: 30px; }
nav ul li a {
    position: relative;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #cfcbe0;
    padding: 8px 0;
    text-decoration: none;
    text-shadow: none;
}
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}
nav ul li a:hover, nav ul li a.active { color: #fff; }
nav ul li a:hover::after, nav ul li a.active::after { transform: scaleX(1); }

/* ---------- BOTONES (esquinas cortadas, como el logo) ---------- */
.listen, .buy {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--grad);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    transition: transform 0.35s var(--ease), filter 0.35s;
}
.listen::after, .buy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease);
    pointer-events: none;
}
.listen:hover, .buy:hover {
    background: var(--grad);
    border: 0;
    box-shadow: none;
    transform: translateY(-3px);
    filter: brightness(1.12);
}
.listen:hover::after, .buy:hover::after { transform: translateX(120%); }
.listen:active { transform: translateY(0); }
.hero-buttons .listen + .listen { background: var(--surface-2); color: #e9d5ff; }
.hero-buttons .listen + .listen:hover { background: var(--grad); color: #fff; }

/* ---------- HERO ---------- */
header { padding-top: 0; }
.hero {
    min-height: 600px;
    min-height: min(94vh, 840px);
    padding: 150px 20px 90px;
    justify-content: center;
    overflow: hidden;
}
/* suelo de rejilla animado */
.hero::before {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 170%; height: 55%;
    transform: translateX(-50%) perspective(500px) rotateX(62deg);
    transform-origin: bottom;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.3) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    animation: gridMove 4s linear infinite;
    opacity: 0.55;
    z-index: -1;
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 64px; } }
.hero > .hero-content {
    transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px), 0);
    transition: transform 0.4s ease-out;
}
.hero-sick-img {
    width: min(560px, 80vw);
    height: auto;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.55));
    animation: logoFloat 7s ease-in-out infinite;
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero .hero-content p.hero-tagline {
    margin: 6px auto 34px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    text-shadow: none;
}
.hero-buttons { gap: 16px; flex-wrap: wrap; }

/* ---------- ÚLTIMO LANZAMIENTO ---------- */
.latest { margin: 30px auto 110px; gap: 70px; }
.latest-text span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    font-size: 11px;
    letter-spacing: 0.22em;
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--line-strong);
    border-radius: 99px;
}
.latest-text span::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 10px var(--accent-2);
    animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.latest-text h2 { margin-top: 20px; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; }
.latest-text p { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 8px; }
.latest-text .listen { margin-top: 22px; }
.latest-image img {
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(168, 85, 247, 0.25);
    transition: transform 0.6s var(--ease);
}
.latest-image img:hover { transform: translateY(-8px) scale(1.02) rotate(-1deg); }

/* ---------- CARACTERÍSTICAS (franja) ---------- */
.features-container { padding: 20px 20px 40px; margin-top: 0; }
.features-grid {
    gap: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}
.feature-card {
    position: relative;
    overflow: hidden;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    padding: 38px 20px;
    cursor: default;
}
.feature-card:last-child { border-right: 0; }
.feature-card:hover { transform: none; background: transparent; border-color: var(--line); box-shadow: none; }
.feature-card h3 {
    font-size: clamp(28px, 3.4vw, 42px);
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}
.feature-card p { color: var(--muted); letter-spacing: 0.22em; font-size: 11px; font-weight: 700; }
.feature-card::before, .product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, 0.22), transparent 60%);
    opacity: 0;
    transform: none;
    transition: opacity 0.4s;
    pointer-events: none;
}
.feature-card:hover::before, .product-card:hover::before { opacity: 1; transform: none; }

/* ---------- TÍTULOS DE SECCIÓN ---------- */
.section-title, .featured-products h2, .shop-page h1 {
    font-size: clamp(30px, 4.5vw, 50px);
    letter-spacing: 0.02em;
    text-align: center;
    margin-bottom: 50px;
}
.section-title::after, .featured-products h2::after {
    content: "";
    display: block;
    width: 64px; height: 3px;
    margin: 18px auto 0;
    background: var(--grad);
}

/* ---------- TARJETAS DE PRODUCTO (inicio y tienda) ---------- */
.products-container .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 28px;
    width: min(1200px, 92%);
    margin: 0 auto;
}
.products-grid { gap: 28px; margin-top: 40px; }
.product-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px 18px 22px;
    gap: 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--line-strong);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(168, 85, 247, 0.12);
}
.product-card img {
    width: 100%; height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.6s var(--ease);
}
.product-card:hover img { transform: scale(1.05); }
.product-card h3 { font-size: 19px; font-weight: 800; letter-spacing: 0.01em; margin-top: 4px; }
.product-card h4, .product-card .price {
    font-size: 22px;
    font-weight: 800;
    color: #fff !important;
    margin-top: 0;
}
.product-card .listen, .product-card .buy { width: 100%; margin: 6px 0 0; }

/* buscador y filtros */
#search {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15); outline: none; }
.filters button {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #cfcbe0;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: 0.3s var(--ease);
}
.filters button:hover { border-color: var(--accent); color: #fff; background: rgba(168, 85, 247, 0.12); transform: translateY(-2px); }

/* ---------- PRODUCTO / CARRITO / PAGO ---------- */
.product-info h1 { letter-spacing: 0.01em; line-height: 1.02; }
.product-features div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.player { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.gallery-thumb { border-radius: 12px; border: 1px solid var(--line); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
#product-image { border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(168, 85, 247, 0.2); }
.checkout {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(24px, 5vw, 56px);
}
.cart-item-anim { background: var(--surface) !important; border: 1px solid var(--line) !important; }

/* ---------- SOBRE LA MARCA ---------- */
#about h2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- PIE DE PÁGINA ---------- */
.minimal-footer {
    position: relative;
    background: linear-gradient(180deg, transparent, #0a0810);
    border-top: 1px solid var(--line);
    padding: 34px 24px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.minimal-footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 50%;
    width: min(420px, 60%); height: 1px;
    transform: translateX(-50%);
    background: var(--grad);
}
.minimal-footer .footer-container { justify-content: space-between; }
.minimal-footer a { color: var(--muted); margin: 0 0 0 26px; transition: color 0.3s; }
.minimal-footer a:hover { color: #fff; }

/* ---------- APARICIÓN AL HACER SCROLL ---------- */
html.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
html.js .rv.in { opacity: 1; transform: none; }

/* ---------- CELULAR / TABLET ---------- */
@media (max-width: 900px) {
    .latest { flex-direction: column; gap: 40px; text-align: center; margin-bottom: 80px; }
    .latest-text p { margin-left: auto; margin-right: auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card:nth-child(2) { border-right: 0; }
    .feature-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
    nav, nav.scrolled { height: auto; padding: 14px 20px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
    .hero { padding: 130px 16px 70px; }
    .hero::before { height: 40%; }
    .minimal-footer .footer-container { justify-content: center; }
    .minimal-footer a { margin: 0 10px; }
}
@media (max-width: 500px) {
    .hero-buttons .listen { width: 100%; }
    .player .listen { width: auto; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero-sick-img, .latest-text span::before { animation: none; }
    html.js .rv { opacity: 1; transform: none; transition: none; }
}
