:root {
    --rojo: #E10600;
    --blanco: #ffffff;
    --gris-claro: #f4f4f4;
    --negro-suave: #1a1a1a;
}

/* Reset General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--gris-claro);
    color: #333;
    transition: background 0.3s, color 0.3s;
}

/* 🌙 MODO LUNA — NEÓN ROJO + FIBRA DE CARBONO */
body.dark {
    background:
        radial-gradient(circle at top, rgba(255,0,0,0.15), transparent 60%),
        linear-gradient(135deg, #0b0b0b, #000);
    color: #ededed;
    position: relative;
    overflow-x: hidden;
}

/* Textura fibra de carbono + líneas deportivas */
body.dark::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 6px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(0,0,0,0.6),
            rgba(0,0,0,0.6) 2px,
            transparent 2px,
            transparent 8px
        );
    pointer-events: none;
    z-index: -1;
}

/* Glow rojo neón sutil */
body.dark::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,0,0,0.08), transparent 70%);
    animation: neonPulse 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Animación neón */
@keyframes neonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}


body.dark::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,0,0,0.08),
            rgba(255,0,0,0.08) 2px,
            transparent 2px,
            transparent 12px
        );
    pointer-events: none;
    z-index: -1;
}





/* ☀️ FONDO DEPORTIVO MODO SOL */
body {
    background: linear-gradient(135deg, #f5f5f5, #eaeaea);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(0,0,0,0.04),
            rgba(0,0,0,0.04) 2px,
            transparent 2px,
            transparent 8px
        );
    pointer-events: none;
    z-index: -1;
}








body.dark header { background-color: #1a1a1a; }
body.dark .section-content { background-color: #1a1a1a; color: #eee; }
body.dark .card { background-color: #2a2a2a; color: #eee; }
body.dark .nav-links li a { color: #eee; }

/* --- NAVEGACIÓN --- */
header {
    background-color: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* --- EL LOGO CON REBOTE Y SOMBRA --- */
.logo-bounce {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    background: black;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 15px rgba(255,0,0,0.4),
        0 10px 25px rgba(0,0,0,0.6);
}
@media screen and (max-width: 768px) {
    .logo-bounce {
        width: 80px;
        height: 80px;
    }
}





.logo-bounce:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--rojo);
}

/* --- BOTÓN LUNA/SOL --- */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 20px;
}

/* --- SECCIONES Y TARJETAS --- */
.section-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    text-align: center;
}

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover { transform: translateY(-10px); }

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* --- BOTÓN COMPRAR WHATSAPP --- */
.btn-buy {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-buy:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

/* --- FOOTER Y REDES --- */
footer {
    background: #111;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.social {
    margin-bottom: 20px;
}

.social a {
    color: white;
    font-size: 1.8rem;
    margin: 0 15px;
    transition: 0.3s;
}

.social a:hover {
    color: var(--rojo);
    transform: translateY(-5px);
    display: inline-block;
}

/* --- RESPONSIVE --- */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background: #333; margin: 5px; }

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        right: 0;
        top: 80px;
        background: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    .nav-links.nav-active { display: flex; }
    .burger { display: block; }
}



/* DISEÑO DEL BOTÓN DE AYUDA FLOTANTE */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5000; /* Para que siempre esté encima de todo */
}

.whatsapp-help-text {
    background: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: fadeInOut 2s ease infinite alternate;
}

.whatsapp-btn {
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 35px;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: pulse-green 2s infinite;
}

/* Animaciones */
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fadeInOut {
    from { opacity: 0.7; transform: translateX(5px); }
    to { opacity: 1; transform: translateX(0); }
}





/* 1. Esto hace que cuando des clic en 'Contacto', baje suavemente */
html {
    scroll-behavior: smooth;
}

/* 2. Centrar el Hero y poner fondo gris al texto */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    /* Tu imagen de fondo se mantiene igual */
}

.hero-content {
    background-color: rgba(50, 50, 50, 0.7); /* Fondo gris con transparencia */
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* Asegurar que la sección contacto tenga espacio suficiente para bajar */
#contacto {
    margin-top: 50px;
    padding-bottom: 100px; /* Espacio extra al final */
}




/* 1. Scroll suave para que el botón navegue */
html {
    scroll-behavior: smooth;
}

/* 2. Estilo para la sección de contacto al final */
.section-contact-final {
    padding: 80px 20px;
    background-color: #f9f9f9; /* Un gris muy clarito para diferenciar */
    text-align: center;
    min-height: 400px; /* Le damos altura para que el scroll llegue bien */
}

/* 3. Estilo cuando el modo oscuro está activo */
body.dark .section-contact-final {
    background-color: #1a1a1a;
    color: white;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark .contact-container {
    background: #2a2a2a;
}

.contact-info {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--rojo);
    font-weight: bold;
}


.product-icon {
    color: var(--rojo);
    margin-right: 8px;
    font-size: 1.1rem;
}

/* En modo oscuro */
body.dark .product-icon {
    color: #ff3b3b;
}



.product-icon {
    font-size: 1.6rem;
    margin-right: 10px;
    background: linear-gradient(45deg, #ff0000, #ff6a00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Efecto glow */
.glow {
    filter: drop-shadow(0 0 6px rgba(255, 60, 0, 0.9));
}

/* Rebote suave infinito */
.bounce {
    display: inline-block;
    animation: bounceIcon 1.8s infinite ease-in-out;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Al pasar el mouse = más poder */
.card:hover .product-icon {
    transform: scale(1.25) rotate(-8deg);
    filter: drop-shadow(0 0 12px rgba(255, 80, 0, 1));
}






body.dark .card {
    box-shadow:
        0 0 15px rgba(255,0,0,0.15),
        0 0 30px rgba(255,0,0,0.08);
}

body.dark header {
    box-shadow: 0 0 25px rgba(255,0,0,0.15);
}

body.dark .btn-buy {
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.6);
}





/* ☀️ HERO MODO SOL */
.hero {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f3f3f3);
    padding: 40px 20px;
}

.hero-content {
    background: rgba(255,255,255,0.9);
    padding: 50px;
    border-radius: 20px;
    max-width: 850px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 30px;
}

/* Botón */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background: #e10600;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(225,6,0,0.4);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 35px rgba(225,6,0,0.6);
}



/* 🌙 HERO MODO LUNA */
body.dark .hero {
    background: radial-gradient(circle at top, #111, #000);
}

body.dark .hero-content {
    background: rgba(0,0,0,0.75);
    box-shadow: 0 0 40px rgba(255,0,0,0.2);
}

body.dark .hero h1 {
    color: #fff;
    text-shadow:
        0 0 10px rgba(255,0,0,0.6),
        0 0 30px rgba(255,0,0,0.4);
}

body.dark .hero p {
    color: #ccc;
}

body.dark .btn {
    background: transparent;
    border: 2px solid #ff0000;
    color: #ff0000;
    box-shadow:
        0 0 10px rgba(255,0,0,0.6),
        inset 0 0 10px rgba(255,0,0,0.4);
}

body.dark .btn:hover {
    background: #ff0000;
    color: black;
    box-shadow: 0 0 25px rgba(255,0,0,0.9);
}







