:root {
    --thistle: #CABAC8;
    --red: #FF101F;
    --rose-pompadour: #D9778B;
    --uranian-blue: #B2DDF7;
    --non-photo-blue: #9ADAED;
    --verdigris: #4CB5AE;
    --blue-header: #0044cc; /* Azul fuerte tipo Martí */
    --dark: #111111;
    --light: #ffffff;
    --gray-bg: #f8f9fa;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--gray-bg);
    color: var(--dark);
    padding-top: 0;
}

h1, h2, h3, h4, .btn, .nav-link { font-family: 'Poppins', sans-serif; }

/* LOADER */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 999999; /* Muy alto para tapar todo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #FF101F; /* Rojo de tu marca */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* TICKER ANIMADO */
.top-ticker {
    background-color: var(--blue-header); color: white;
    height: 40px; overflow: hidden; display: flex; align-items: center;
}
.ticker-track {
    display: flex; animation: scroll 25s linear infinite; white-space: nowrap;
}
.ticker-item {
    padding: 0 3rem; font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* NAVBAR */
.main-header { background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.brand-logo { font-size: 2rem; font-weight: 900; color: var(--blue-header); text-decoration: none; }
.nav-categories a { color: var(--dark); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; margin: 0 10px; text-decoration: none; }
.nav-categories a:hover { color: var(--red); }

/* PRODUCT CARDS */
.product-card {
    border: none; border-radius: 12px; background: white;
    transition: transform 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    height: 100%;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.card-img-top { height: 220px; object-fit: contain; padding: 20px; }
.price { color: var(--red); font-weight: 800; font-size: 1.2rem; }

/* MARCAS (Círculos) */
.brand-circle {
    width: 100px; height: 100px; border-radius: 50%;
    background: white; border: 1px solid #eee;
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s; cursor: pointer; overflow: hidden;
}
.brand-circle:hover { border-color: var(--red); transform: scale(1.05); }
.brand-circle img { max-width: 70%; max-height: 70%; filter: grayscale(100%); transition: 0.3s; }
.brand-circle:hover img { filter: grayscale(0%); }

/* HERO BANNER */
.hero-marti {
    background: linear-gradient(90deg, var(--blue-header) 0%, #6a82fb 100%);
    color: white; border-radius: 10px; padding: 3rem; position: relative; overflow: hidden;
}

/* BOTONES */
.btn-custom { background: var(--red); color: white; border-radius: 50px; font-weight: 600; }
.btn-custom:hover { background: #d60015; color: white; }