/*! =========================================
   ALFA CAR AUDIO - HAUTE COUTURE LUXE
   ========================================= */

html {
    scroll-behavior: smooth;
}

:root {
    --bg-darker: #050505;
    /* Noir profond */
    --bg-card: rgba(10, 10, 10, 0.4);
    /* Glassmorphism base */
    --bg-card-hover: rgba(20, 20, 20, 0.8);

    --red-sport: #D90429;
    /* Rouge sport */
    --red-hover: #ef233c;

    --text-primary: #ffffff;
    /* Blanc pur */
    --text-secondary: #aaaaaa;

    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-hover: rgba(217, 4, 41, 0.3);

    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   SHOOTING STARS ANIMATION
   ========================================= */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    width: 150px;
    height: 2px;
    background: linear-gradient(to right, rgba(217, 4, 41, 0), var(--red-sport));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px var(--red-sport));
}

.shooting-star::before,
.shooting-star::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), var(--red-sport), rgba(0, 0, 255, 0));
    border-radius: 100%;
    animation: shining 2500ms ease-in-out infinite;
}

.shooting-star::before {
    transform: translateX(50%) rotateZ(45deg);
}

.shooting-star::after {
    transform: translateX(50%) rotateZ(-45deg);
}

@keyframes tail {
    0% {
        width: 0;
    }

    30% {
        width: 150px;
    }

    100% {
        width: 0;
    }
}

@keyframes shining {
    0% {
        width: 0;
    }

    50% {
        width: 15px;
    }

    100% {
        width: 0;
    }
}

@keyframes shoot-tl-br {
    0% {
        transform: translate(-100px, -100px) rotate(-45deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(120vw, 120vh) rotate(-45deg);
        opacity: 0.5;
    }
}

@keyframes shoot-tr-bl {
    0% {
        transform: translate(100px, -100px) rotate(-135deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(-120vw, 120vh) rotate(-135deg);
        opacity: 0.5;
    }
}

@keyframes shoot-bl-tr {
    0% {
        transform: translate(-100px, 100px) rotate(45deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(120vw, -120vh) rotate(45deg);
        opacity: 0.5;
    }
}

@keyframes shoot-br-tl {
    0% {
        transform: translate(100px, 100px) rotate(135deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(-120vw, -120vh) rotate(135deg);
        opacity: 0.5;
    }
}

@keyframes shoot-l-r {
    0% {
        transform: translate(-100px, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(120vw, 0) rotate(0deg);
        opacity: 0.5;
    }
}

@keyframes shoot-r-l {
    0% {
        transform: translate(100px, 0) rotate(180deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(-120vw, 0) rotate(180deg);
        opacity: 0.5;
    }
}

@keyframes shoot-t-b {
    0% {
        transform: translate(0, -100px) rotate(90deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translate(0, 120vh) rotate(90deg);
        opacity: 0.5;
    }
}

/* 15 stars with varied delays and positions */
.star-1 {
    top: 10%;
    left: 10%;
    animation: tail 3s ease-in infinite, shoot-tl-br 3s ease-in infinite;
    animation-delay: 0s;
}

.star-2 {
    top: 70%;
    left: 80%;
    animation: tail 2.5s ease-in infinite, shoot-br-tl 2.5s ease-in infinite;
    animation-delay: 1.2s;
}

.star-3 {
    top: 20%;
    left: 90%;
    animation: tail 4s ease-in infinite, shoot-tr-bl 4s ease-in infinite;
    animation-delay: 0.5s;
}

.star-4 {
    top: 80%;
    left: 10%;
    animation: tail 3.2s ease-in infinite, shoot-bl-tr 3.2s ease-in infinite;
    animation-delay: 2.1s;
}

.star-5 {
    top: 50%;
    left: 0%;
    animation: tail 2.8s ease-in infinite, shoot-l-r 2.8s ease-in infinite;
    animation-delay: 1.5s;
}

.star-6 {
    top: 40%;
    left: 100%;
    animation: tail 3.5s ease-in infinite, shoot-r-l 3.5s ease-in infinite;
    animation-delay: 0.8s;
}

.star-7 {
    top: 0%;
    left: 50%;
    animation: tail 3s ease-in infinite, shoot-t-b 3s ease-in infinite;
    animation-delay: 1.9s;
}

.star-8 {
    top: 30%;
    left: 30%;
    animation: tail 4.5s ease-in infinite, shoot-tl-br 4.5s ease-in infinite;
    animation-delay: 2.5s;
}

.star-9 {
    top: 90%;
    left: 60%;
    animation: tail 2.2s ease-in infinite, shoot-br-tl 2.2s ease-in infinite;
    animation-delay: 0.3s;
}

.star-10 {
    top: 15%;
    left: 40%;
    animation: tail 3.8s ease-in infinite, shoot-tr-bl 3.8s ease-in infinite;
    animation-delay: 1.1s;
}

.star-11 {
    top: 60%;
    left: 20%;
    animation: tail 3.1s ease-in infinite, shoot-bl-tr 3.1s ease-in infinite;
    animation-delay: 1.7s;
}

.star-12 {
    top: 45%;
    left: 85%;
    animation: tail 2.9s ease-in infinite, shoot-r-l 2.9s ease-in infinite;
    animation-delay: 0.6s;
}

.star-13 {
    top: 5%;
    left: 75%;
    animation: tail 4.2s ease-in infinite, shoot-t-b 4.2s ease-in infinite;
    animation-delay: 1.3s;
}

.star-14 {
    top: 65%;
    left: 35%;
    animation: tail 3.4s ease-in infinite, shoot-tl-br 3.4s ease-in infinite;
    animation-delay: 2.8s;
}

.star-15 {
    top: 25%;
    left: 55%;
    animation: tail 2.6s ease-in infinite, shoot-l-r 2.6s ease-in infinite;
    animation-delay: 0.9s;
}



/* Content wrapper above stars */
.page-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 0; /* Handled by main-content or sections */
}

/* =========================================
   Typography & Utils
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.title-underline {
    height: 2px;
    width: 50px;
    background: var(--red-sport);
    margin: 10px auto 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

/* =========================================
   Navbar (Grid Layout)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.nav-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: screen;
}

.logo span {
    color: var(--red-sport);
    font-weight: 400;
}

/* Mega Menu & Dropdowns */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-left: 0;
}

.nav-item {
    position: relative;
    padding: 10px 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
    /* Ensure links and their chevrons sit above the absolute dropdown */
}

.nav-chevron {
    font-size: 0.7rem;
    margin-left: 8px;
    color: var(--text-secondary);
    transition: transform var(--transition-fast), color var(--transition-fast);
    padding: 15px;
    /* Increase tap area for mobile */
    margin-top: -15px;
    margin-bottom: -15px;
    margin-right: -15px;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--red-sport);
}

.nav-item.active .nav-chevron {
    transform: rotate(180deg);
    color: var(--red-sport);
}

@media (min-width: 769px) {
    .nav-item:hover .nav-link {
        color: var(--red-sport);
    }

    .nav-item:hover .nav-chevron {
        transform: rotate(180deg);
        color: var(--red-sport);
    }
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: 250px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

@media (min-width: 769px) {
    .nav-item:hover .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
}

.nav-item.force-close .nav-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.nav-item.force-close .nav-chevron {
    transform: rotate(0deg) !important;
    color: var(--text-secondary) !important;
}

#drop-audio,
#drop-iluminacion {
    max-height: 60vh;
    overflow-y: auto;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.dropdown-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

/* Smart Search Bar (Header) */
.header-search {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    background: rgba(20, 20, 20, 0.6);
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--red-sport);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.2);
    background: rgba(10, 10, 10, 0.9);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.1rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--red-sport);
    cursor: pointer;
}

/* =========================================
   Buttons
   ========================================= */
.mobile-only-item {
    display: none !important;
}

.btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--red-sport);
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: 2px;
    border: 1px solid var(--red-sport);
    border-radius: 2px;
}

.btn-red:hover {
    background: transparent;
    color: var(--red-sport);
    box-shadow: 0 0 20px rgba(217, 4, 41, 0.2);
}

.btn-outline-red {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    box-shadow: none !important;
    text-shadow: none !important;
}

.btn-outline-red:hover {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: none !important;
}

.btn-secret-lock {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secret-lock:hover {
    color: var(--red-sport);
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--red-sport);
    transform: scale(1.1);
}

/* Desktop Only Padlock */
@media (max-width: 768px) {
    #btn-cuenta {
        display: none !important;
    }
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding-top: var(--header-height, 100px);
    /* Transparent background, stars will show through */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    width: 100%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
}

.hero-title span {
    color: var(--red-sport);
    display: block;
}

.hero-btn {
    font-size: 1.2rem;
    padding: 18px 45px;
    letter-spacing: 3px;
}

/* =========================================
   Massive Categories Section (Home Page)
   ========================================= */
.massive-categories-section {
    padding: 20px 20px 80px;
    position: relative;
    z-index: 10;
}

.massive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.massive-card {
    position: relative;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
    cursor: pointer;
}

.massive-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    border-color: var(--red-sport);
}

.mc-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transition: filter var(--transition-slow), opacity var(--transition-slow);
    z-index: 1;
    opacity: 0.3;
    filter: grayscale(100%);
    /* Transform happens in JS for parallax scale etc. */
}

.massive-card:hover .mc-bg {
    filter: grayscale(0%);
    opacity: 0.6;
}

.mc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 5, 1) 5%, rgba(5, 5, 5, 0) 80%);
    z-index: 2;
    transition: background var(--transition-slow);
}

.massive-card:hover .mc-overlay {
    background: linear-gradient(to top, rgba(217, 4, 41, 0.9) 0%, rgba(5, 5, 5, 0.1) 80%);
}

.mc-content {
    position: relative;
    z-index: 3;
    transition: transform var(--transition-slow);
    text-align: center;
}

.massive-card:hover .mc-content {
    transform: translateY(-10px);
}

.mc-title {
    font-size: 3rem;
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.mc-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    transition: color var(--transition-fast);
}

.massive-card:hover .mc-desc {
    color: #fff;
}

/* Fallbacks for bg */
.bg-iluminacion {
    background: radial-gradient(circle at top, #333, #000);
}

.bg-audio {
    background: radial-gradient(circle at top, #222, #000);
}

.bg-seguridad {
    background: radial-gradient(circle at top, #111, #000);
}

/* =========================================
   Brand Universes Section (3 Circles)
   ========================================= */
.universes-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
    background: var(--bg-darker);
}

.universes-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.universe-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-slow);
}

.universe-item:hover {
    transform: translateY(-10px);
}

.universe-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    background: radial-gradient(circle at center, rgba(30, 30, 30, 0.4) 0%, rgba(5, 5, 5, 0.9) 100%);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.universe-item:hover .universe-circle {
    border-color: rgba(217, 4, 41, 0.6);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9), 0 15px 40px rgba(217, 4, 41, 0.2);
}

.universe-item.clickable-universe {
    cursor: pointer;
}

.universe-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

.universe-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: 4px;
    transition: color var(--transition-fast);
}

.universe-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 10px;
    letter-spacing: 1px;
}

.universe-item:hover .universe-title {
    color: var(--red-sport);
}

@media (max-width: 992px) {
    .universes-grid {
        gap: 40px;
    }

    .universe-circle {
        width: 200px;
        height: 200px;
    }

    .universe-title {
        font-size: 1.5rem;
    }
}


/* =========================================
   Catalog Grid (Glassmorphism Cards)
   ========================================= */
.catalog-section {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 10;
    background: var(--bg-darker);
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    color: var(--text-primary);
}

/* Destacados layout allows larger cards */
.catalog-grid.destacados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 250px;
    /* Force minimum height for Safari */
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    background: var(--bg-card-hover);
}

.product-image-container {
    width: 100%;
    background: #050505;
    border-bottom: 1px solid var(--glass-border);
    display: block;
}

.product-img {
    width: 100%;
    height: auto;
    min-height: 150px;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red-sport);
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.product-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.product-category {
    color: var(--red-sport);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0.5px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    font-family: var(--font-body);
    margin-bottom: 0px;
}


/* =========================================
   Producto.html Layout
   ========================================= */
.product-page {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 10;
    min-height: 80vh;
    background: var(--bg-darker);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: 40px;
    transition: var(--transition-fast);
}

.btn-back:hover {
    color: var(--red-sport);
}

.single-product-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.sp-image-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 40px;
    border-radius: 4px;
}

.sp-image-col img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.8));
}

.sp-info-col {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sp-category {
    color: var(--red-sport);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.sp-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: none;
}

.sp-reviews {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.sp-reviews i {
    color: #fff;
}

.sp-sku {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.sp-price {
    font-size: 3.5rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    font-weight: 300;
    margin-bottom: 40px;
}

.sp-price span {
    font-size: 1.5rem;
    color: var(--red-sport);
    vertical-align: middle;
    margin-right: 5px;
}

.sp-divider {
    height: 1px;
    background: var(--glass-border);
    margin-bottom: 40px;
}

.sp-desc {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-desc h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.sp-desc p {
    font-family: 'Montserrat', sans-serif;
    color: #ccc;
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-line;
}

.sp-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sp-secure {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
}

.sp-secure i {
    color: var(--text-secondary);
}

/* =========================================
   Utility classes
   ========================================= */
.spinner-container {
    text-align: center;
    padding: 50px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    border-top-color: var(--red-sport);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 80px 0;
}

.empty-state i {
    color: var(--glass-border);
    margin-bottom: 20px;
    font-size: 4rem;
}

/* Filters for Tienda */
.filters-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 10px 25px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: var(--transition-fast);
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--red-sport);
    color: #fff;
    border-color: var(--red-sport);
}


/* Footer / Form overrides for luxe feel */
.footer {
    background: #020202;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.footer-brand span {
    color: var(--red-sport);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--text-primary);
    color: #000;
    transform: translateY(-3px);
    border-color: var(--text-primary);
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    color: #555;
    font-size: 0.9rem;
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: var(--transition-fast);
    border: 1px solid var(--glass-border);
}

.floating-wa:hover {
    transform: scale(1.1);
    background: var(--red-sport);
    color: #fff;
    border-color: var(--red-sport);
}

/* Remove old modal related */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.input-dark {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: inherit;
    margin-bottom: 15px;
}

.input-dark:focus {
    outline: none;
    border-color: var(--red-sport);
}

/* =========================================
   Mobile Sticky CTA
   ========================================= */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 15px 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8);
}

.msc-price {
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 300;
}

.msc-price span {
    color: var(--red-sport);
    font-size: 1rem;
    margin-right: 3px;
}

.msc-btn {
    padding: 12px 25px;
    font-size: 1rem;
}

/* =========================================
   Cinematic Splash Screen
   ========================================= */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0;
    animation: splashFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards, pulseLogo 2s infinite alternate 1s;
    mix-blend-mode: screen;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.splash-loader {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: splashFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.splash-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--red-sport);
    border-radius: 2px;
    animation: splashLoad 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes splashFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashLoad {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-content {
        grid-template-columns: auto 1fr auto;
    }

    .nav-left {
        order: 2;
    }

    .nav-center {
        order: 1;
        align-items: flex-start;
    }

    .nav-right {
        order: 3;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .nav-left {
        display: block;
        width: 100%;
        margin: 10px 0 0 0;
        order: 3;
        grid-column: span 3;
    }

    .nav-center {
        width: auto;
        order: 1;
        margin: 0;
        flex-direction: row;
    }

    .logo-img {
        max-height: 40px;
    }

    .nav-right {
        order: 2;
        position: static;
        margin: 0;
    }

    /* Combined Mobile Menu */
    .nav-links {
        display: none !important; /* Hide all nav-links by default */
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column !important;
        padding: 80px 30px 40px;
        gap: 0 !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        overflow-y: auto;
    }

    .nav-links.categories-center.active {
        display: flex !important;
        right: 0;
    }

    .nav-links.meta-right {
        display: none !important;
    }

    .mobile-only-item {
        display: block !important;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 15px 0;
        position: relative;
    }

    .nav-link {
        font-size: 1.1rem;
        justify-content: space-between;
        width: 100%;
    }

    .nav-dropdown {
        position: static !important;
        width: 100%;
        background: rgba(20, 20, 20, 0.5);
        transform: none !important;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 10px 0 10px 20px;
        border: none;
        box-shadow: none;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item.active .nav-dropdown {
        display: block !important;
    }

    .nav-item.active .nav-dropdown {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0);
    }

    .nav-container {
        flex-wrap: wrap; /* Allow categories to drop below logo */
        position: relative; /* Anchor for absolute objects */
    }

    .nav-center {
        width: 100%;
        order: 2; /* Force below logo/hamburger row */
        margin-top: 10px;
    }

    .nav-right {
        position: absolute;
        top: 20px;
        right: 15px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex !important; /* Global show for active menus */
    }

    .nav-right .nav-links,
    .nav-center .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 15px;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 20px;
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        min-width: 200px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 1);
        z-index: 1200;
        gap: 15px;
    }

    .mobile-menu-btn {
        display: block !important;
        /* Hamburger lives! */
    }

    .hero-section {
        min-height: 80vh;
        padding-top: calc(var(--header-height, 100px) + 20px);
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }

    .btn-secret-lock {
        display: none !important;
    }

    /* Consejos Section - 3 columns on mobile */
    .consejos-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    #seo-iluminacion {
        grid-column: 1 !important;
    }

    .seo-block {
        padding: 10px !important;
        display: flex;
        flex-direction: column;
    }

    .seo-block h3 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    .seo-excerpt-wrapper {
        max-height: 80px !important;
    }

    .seo-excerpt-wrapper p {
        font-size: 0.65rem !important;
        line-height: 1.4 !important;
        margin-bottom: 5px !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .seo-actions {
        gap: 5px !important;
        margin-top: auto;
    }

    .btn-excerpt-toggle, .btn-ver-mas-details {
        font-size: 0.55rem !important;
        letter-spacing: 0;
    }

    .blog-container {
        padding: 0 15px;
        margin-top: 20px !important;
    }

    .blog-content {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }

    .glass-card {
        padding: 25px 15px !important;
    }

    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Space for sticky CTA */
    .single-product-layout {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .sp-price {
        font-size: 2.5rem;
    }

    .mobile-sticky-cta {
        display: flex;
    }

    .floating-wa {
        bottom: 85px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-section {
    padding: 100px 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--glass-border-hover);
    background: var(--bg-card-hover);
}

.faq-question {
    padding: 20px 25px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
}

.faq-item.active .faq-question {
    color: var(--red-sport);
}

.faq-question i {
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    padding: 0 25px 25px 25px;
    max-height: 300px;
    /* Adjusted for safety */
}

/* =========================================
   Reviews Section
   ========================================= */
.reviews-section {
    padding: 100px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-slow);
}

.review-card:hover {
    transform: translateY(-10px);
    border-color: var(--glass-border-hover);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.8;
}

.review-author {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 1.1rem;
    color: #fff;
}

/* =========================================
   Newsletter Section
   ========================================= */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.4), rgba(5, 5, 5, 0.6));
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text h2 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.newsletter-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.newsletter-form-container {
    flex: 1;
    max-width: 700px;
    background: transparent;
}

.alfa-custom-form {
    width: 100%;
}

.alfa-form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.pas-input {
    flex: 1;
}

.pas-email {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.pas-email:focus {
    outline: none;
    border-bottom-color: var(--red-sport);
}

.pas-email::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.pas-optin {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.pas-optin input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.pas-optin input[type="checkbox"]:checked {
    background: var(--red-sport);
    border-color: var(--red-sport);
}

.pas-optin input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.optin-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-alfa-submit {
    padding: 12px 25px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
}

iframe[src*="mailjet"] {
    background: transparent !important;
}

@media (max-width: 992px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        overflow-x: hidden;
    }

    .newsletter-form-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
    }

    .alfa-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .pas-submit {
        width: 100%;
    }

    .btn-alfa-submit {
        width: 100%;
    }

    .pas-optin {
        justify-content: center;
        white-space: normal;
        text-align: left;
    }

    .mailjet-wrapper {
        width: 100% !important;
        max-width: 100%;
        overflow-x: hidden;
    }

    .mailjet-wrapper iframe {
        width: 100% !important;
    }
}

/* =========================================
   Location Section
   ========================================= */
.location-section {
    padding: 100px 0;
}

.map-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* =========================================
   Footer Update
   ========================================= */
.footer {
    padding: 100px 0 40px;
    background: #020202;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: block;
    /* Overriding previous flex-column */
    text-align: left;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h4,
.footer-hours h4 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.footer-info p,
.footer-hours p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-info i {
    color: #fff;
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    border-color: var(--red-sport);
    color: var(--red-sport);
    transform: translateY(-3px);
}

.footer-bottom {
    width: 100%;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: #444;
    font-size: 0.9rem;
}

.btn-back-spa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
    transition: var(--transition-fast);
}

.btn-back-spa:hover {
    border-color: var(--red-sport);
    color: var(--text-primary);
    transform: translateX(-5px);
}

/* SEARCH SUGGESTIONS DROPDOWN */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    padding: 10px 0;
}

.search-suggestions.active {
    display: block;
    animation: fadeInScale 0.2s ease-out;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: rgba(217, 4, 41, 0.1);
    padding-left: 25px;
}

.suggestion-item.selected {
    border-left: 3px solid var(--red-sport);
}

.suggestion-item.search-all {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.suggestion-item.search-all i {
    color: var(--gold-primary, #D4AF37);
    font-size: 1.1rem;
}

.suggestion-item.search-all:hover {
    background: rgba(212, 175, 55, 0.2);
    padding-left: 25px;
}

.suggestion-item.no-results {
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
    cursor: default;
}

.suggestion-item.no-results:hover {
    background: transparent;
    padding-left: 20px;
}

.suggestion-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #222;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
}

.suggestion-meta {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* PERFECT MATCH HIGHLIGHT */
.perfect-match-card {
    background: linear-gradient(135deg, rgba(217, 4, 41, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
    border: 2px solid var(--red-sport);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.perfect-match-card::before {
    content: "EQUIPO IDEAL";
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--red-sport);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.pm-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(217, 4, 41, 0.3));
}

.pm-content {
    flex: 1;
}

.pm-category {
    color: var(--red-sport);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pm-name {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pm-price {
    font-size: 2rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: 25px;
}

.pm-price span {
    font-size: 1.2rem;
    vertical-align: super;
    margin-right: 5px;
}

/* UPSELL CAROUSEL */
.upsell-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: 4px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.upsell-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--red-sport), transparent);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.upsell-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.upsell-carousel::-webkit-scrollbar {
    display: none;
}

.upsell-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    transform: scale(0.98);
    transition: var(--transition-fast);
}

.upsell-item:hover {
    transform: scale(1);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(217, 4, 41, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: var(--red-sport);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 992px) {
    .perfect-match-card {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .pm-image {
        width: 100%;
        height: 200px;
    }

    .pm-name {
        font-size: 1.8rem;
    }

    .carousel-nav {
        display: none;
    }

    .upsell-item {
        flex: 0 0 240px;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-info p,
    .footer-hours p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-content {
        text-align: center;
    }

}

@media (max-width: 768px) {

    /* 1. LA GRILLE DE PRODUITS */
    .catalog-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .product-card {
        padding: 5px;
        background: var(--bg-card);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        min-height: 250px;
        margin-bottom: 0;
    }

    .product-img {
        width: 100% !important;
        height: 100% !important;
        /* OBLIGATOIRE POUR SAFARI MOBILE */
        object-fit: contain;
        /* ou cover */
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .product-name {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }

    .product-category {
        font-size: 0.65rem;
    }

    .product-price {
        font-size: 1rem;
    }

    /* 2. LES 3 COLONNES VIDÉOS */
    .universes-grid {
        flex-direction: column;
        gap: 40px;
        padding: 40px 20px;
    }

    .universe-item {
        width: 100%;
        max-width: 300px;
    }

    .universe-circle {
        width: 180px;
        height: 180px;
    }

    .universe-title {
        font-size: 1.5rem;
    }
}
/* Performance Optimizations */
#btn-load-more { display: block; margin: 40px auto; border-radius: 50px; padding: 15px 40px; font-weight: 600; cursor: pointer; transition: 0.3s; }
#btn-load-more:hover { transform: scale(1.05); background: var(--red-hover); }

/* SEO Excerpt Truncation & Interactive expansion */
.seo-excerpt-wrapper {
    position: relative;
    max-height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: max-height 0.8s ease-in-out;
}

.seo-block.expanded .seo-excerpt-wrapper {
    max-height: 2000px; /* Grande valeur pour permettre l'expansion complète */
}

.seo-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(10,10,10,0.95));
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.seo-block.expanded .seo-fade {
    opacity: 0;
}

.btn-excerpt-toggle, .btn-ver-mas-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red-sport);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-base);
    border-bottom: 1px solid transparent;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.btn-excerpt-toggle:hover, .btn-ver-mas-details:hover {
    border-bottom-color: var(--red-sport);
    padding-left: 5px;
}

.seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Visibilité des boutons selon l'état */
.seo-block .btn-ver-menos,
.seo-block .btn-ver-mas-details {
    display: none;
}

.seo-block.expanded .btn-ver-mas-toggle {
    display: none;
}

.seo-block.expanded .btn-ver-menos,
.seo-block.expanded .btn-ver-mas-details {
    display: inline-flex;
}

.see-also-tag {
    color: var(--red-sport);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.see-also-desc {
    color: var(--text-secondary);
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
    line-height: 1.4;
}

.seo-see-also {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.seo-see-also h3 {
    font-size: 1.2rem !important;
    color: #fff !important;
    transition: var(--transition-fast);
}

.seo-see-also:hover h3 {
    color: var(--red-sport) !important;
}

.seo-see-also:hover {
    border-color: var(--red-sport);
    transform: translateY(-5px);
}
/* ==========================================
   LUXE BLOG & HEADER REFINEMENTS
   ========================================== */

/* Navbar Adjustments */
.nav-links.categories-center {
    display: flex;
    gap: 30px;
    margin-top: 5px;
}

.nav-links.meta-right {
    display: flex;
    gap: 20px;
}

.nav-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Blog Page Styles */
.blog-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px; /* Offset for fixed navbar */
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blog-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9));
    z-index: 0;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.blog-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.blog-hero-meta {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--red-sport);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.seo-text-section .container {
    max-width: 1000px;
}

.consejos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.consejos-grid h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 20px !important;
}

.see-also-desc {
    color: var(--text-secondary);
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
    line-height: 1.4;
}

.blog-container {
    max-width: 1100px;
    margin: -100px auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.blog-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    text-align: justify;
}

.blog-content h2, .blog-content h3 {
    color: #fff;
    font-family: var(--font-heading);
    margin: 60px 0 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.blog-content p {
    margin-bottom: 25px;
}

.blog-content strong {
    color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--red-sport);
}

.feature-card i {
    font-size: 2rem;
    color: var(--red-sport);
    margin-bottom: 20px;
}

.feature-card h4 {
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.blog-quote {
    border-left: 5px solid var(--red-sport);
    padding: 30px 40px;
    background: rgba(231, 15, 25, 0.05);
    margin: 50px 0;
    font-style: italic;
    font-size: 1.3rem;
    color: #fff;
}

.blog-cta-box {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border);
}

.blog-cta-box h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 30px 20px;
    }
    
    .blog-hero {
        height: 50vh;
    }
    
    /* Hide the standalone category row which was causing extra height */
    .nav-links.categories-center:not(.active),
    .categories-center.mobile-only:not(.active) {
        display: none !important;
    }

    .nav-links.meta-right {
        display: none !important;
    }

    .navbar .container {
        flex-wrap: wrap;
    }
}

/* Hide mobile injected elements on desktop */
@media (min-width: 769px) {
    .categories-center.mobile-only {
        display: none !important;
    }
    .mobile-home-icon {
        display: none !important;
    }
}

/* Mobile Secondary Categories Ribbon */
.mobile-category-ribbon {
    display: none;
}
@media (max-width: 768px) {
    .mobile-category-ribbon {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        background: var(--bg-dark);
        border-top: 1px solid rgba(255,255,255,0.05);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding: 0 10px;
    }
    .mobile-category-ribbon::-webkit-scrollbar {
        display: none;
    }
    
    .ribbon-item {
        position: relative;
        padding: 0;
    }
    .ribbon-item > span {
        display: block;
        padding: 12px 15px;
        color: var(--text-secondary);
        font-family: var(--font-heading);
        font-size: 0.85rem;
        white-space: nowrap;
        cursor: pointer;
    }
    .ribbon-item.active {
        color: var(--primary-color);
        /* border-bottom is simulated to ensure tight fit */
        box-shadow: inset 0 -2px 0 var(--primary-color);
    }
    
    .ribbon-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0a0a0a;
        width: 220px;
        z-index: 9999;
        box-shadow: 0 10px 25px rgba(0,0,0,0.8);
        border: 1px solid rgba(255,255,255,0.1);
        border-top: none;
        border-radius: 0 0 5px 5px;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ribbon-item.active .ribbon-dropdown {
        display: block;
    }
    .ribbon-dropdown a {
        display: block;
        padding: 14px 20px;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 0.85rem;
        font-family: var(--font-body);
    }
    .ribbon-dropdown a:last-child {
        border-bottom: none;
    }
}

/* Global content offset to clear fixed header - Tightened */
.main-content {
    padding-top: var(--header-height, 90px);
}

.main-content > .container:first-child,
.main-content > section:first-child,
.main-content > .blog-container:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.section-title-wrapper:first-child {
    margin-top: 0 !important;
}
