/* ==========================================================================
   CSS COMPLETO Y UNIFICADO PARA LANDING PAGE
   ========================================================================== */

/* --- RESET BÁSICO Y VARIABLES --- */
:root {
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-light-bg: #f0f0f0;
    --color-light-text: #121212;
    --color-primary-text: #f0f0f0;
    --color-secondary-text: #a0a0a0;
    --color-accent: #f5c518;
    /* Amarillo */
    --font-family: 'Montserrat', sans-serif;
    --color-black:#000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-primary-text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- HEADER --- */
#main-header {
    background-color: #ffde54;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#main-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .header-container h1 {
    color: #6d00da;
    font-size: 2.5rem;
}

#main-header .logo {
    width: 100px;
}

/* --- HERO MODULE --- */
.hero-module {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content .slogan {
    font-size: 1.5rem;
    margin: 10px 0 30px;
    color: var(--color-secondary-text);
}

/* Efecto de Vaciado para el Botón Hero */
.btn.btn-hero {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: #000;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-out;
}

.btn.btn-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    z-index: -1;
    transition: height 0.4s ease-out;
}

.btn.btn-hero:hover {
    color: var(--color-accent);
}

.btn.btn-hero:hover::before {
    height: 0;
}

/* --- MÓDULO DE DETALLES (FONDO CLARO) --- */
.details-module {
    padding: 100px 20px;
    background-color: var(--color-light-bg);
    color: var(--color-light-text);
}

.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.product-specs h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-specs p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-specs ul {
    list-style: none;
}

.product-specs li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.product-specs li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Galería de Producto y Selector de Colores */
#main-product-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.color-selector-container {
    text-align: center;
}

.color-selector-container p {
    font-weight: 700;
    margin-bottom: 10px;
}

.color-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

.color-btn[style*="#FFFFFF"] {
    border-color: #ddd;
}

.color-btn[style*="#FFFFFF"].active {
    border-color: var(--color-accent);
}

/* Estilo para Selector de Tallas */
.size-selector {
    margin: 30px 0;
    max-width: 300px;
}

.size-selector label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.size-selector select {
    width: 100%;
    padding: 12px;
    background-color: var(--color-background);
    color: var(--color-primary-text);
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.size-selector select:focus {
    outline: none;
    border-color: var(--color-accent);
}

#availability-status {
    margin-top: 10px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    height: 1.2rem;
}

.status-available {
    color: #0d8f0d;
}

.status-unavailable {
    color: #c51d1d;
}

.size-guide-btn {
    background: none;
    border: none;
    color: var(--color-light-text);
    text-decoration: underline;
    font-family: var(--font-family);
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 10px;
    padding: 5px;
}

.size-guide-btn i {
    margin-right: 5px;
}

/* --- MÓDULO DE CITA --- */
.quote-module {
    padding: 100px 20px;
    text-align: center;
}

.quote-module blockquote {
    font-size: 2.5rem;
    font-weight: 700;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-primary-text);
}

/* --- MÓDULO CTA FINAL, FORMULARIO Y FOOTER --- */
.cta-module {
    background-color: var(--color-surface);
    padding: 100px 20px;
    text-align: center;
}

.cta-module h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-module .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 40px;
}

/* Contenedor de Botones de Pago */
.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.button-group .btn {
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 5px;
    text-decoration: none;
    border: 2px solid var(--color-accent);
    min-width: 250px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.button-group .btn-cod {
    background-color: var(--color-accent);
    color: #000;
}

.button-group .btn-mercadopago {
    background-color: transparent;
    color: var(--color-accent);
}

.button-group .btn-cod:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.button-group .btn-mercadopago:hover {
    background-color: var(--color-accent);
    color: #000;
    transform: translateY(-2px);
}

/* Formulario de Envío Oculto */

.form-group-dep select { 
            width: 100%;
            padding: 12px;
            background-color: var(--color-background);
            color: var(--color-primary-text);
            border: 1px solid #555;
            border-radius: 5px;
            font-size: 1rem;
            font-family: var(--font-family);
            transition: border-color 0.3s ease;
            margin-bottom: 10px;
}


.shipping-form {
    max-width: 600px;
    margin: 40px auto 80px auto;
    padding: 30px;
    border-radius: 10px;
    display: none;
    animation: fadeIn 0.5s ease-out;
    border: 2px solid var(--color-accent);
    background-color: var(--color-surface);
    position: relative;
}

.shipping-form h3 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--color-primary-text);
}

.shipping-form label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--color-primary-text);
}

.shipping-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background-color: var(--color-background);
    color: var(--color-primary-text);
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease;
}

.shipping-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.shipping-form button[type="submit"] {
    background-color: var(--color-accent);
    color: #000;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
    width: 100%;
    padding: 15px 25px;
    font-weight: 700;
    border-radius: 5px;
    margin-top: 10px;
    font-family: var(--font-family);
}

.shipping-form button[type="submit"]:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.footer-info {
    border-top: 1px solid #333;
    padding-top: 30px;
    color: var(--color-secondary-text);
}

.footer-info a {
    color: var(--color-secondary-text);
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--color-accent);
}

.footer-link {
    text-decoration: underline;
    cursor: pointer;
}

.contact-link {
    display: inline-block;
    margin: 15px 0;
    padding: 10px 20px;
    background-color: #25D366;
    color: #000000 !important;
    border-radius: 25px;
    font-weight: 700;
    transition: transform 0.2s ease;
    
}

.contact-link:hover {
    transform: scale(1.05);
}

.contact-link i {
    margin-right: 8px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 1.2rem;
}

/* --- VENTANAS MODALES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    color: #000;
    margin: auto;
    padding: 20px 30px;
    border-radius: 10px;
    position: relative;
    max-width: 90%;
    width: 500px;
    animation: fadeIn 0.4s;
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content img {
    width: 100%;
    display: block;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

.modal-text {
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    padding-right: 15px;
    line-height: 1.6;
}

.modal-text p {
    margin-bottom: 15px;
}

/* --- ANIMACIONES Y CLASES DE UTILIDAD --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.shipping-form.visible {
    display: block;
}

.hidden {
    display: none !important;
}

.benefits-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columnas en escritorio */
    gap: 20px;
    margin: 60px auto;
    max-width: 900px;
}

.benefit-item {
    text-align: center;
}

.benefit-item i {
    font-size: 2.5rem;
    /* Tamaño del ícono */
    color: var(--color-accent);
    /* Color amarillo */
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.1rem;
    color: var(--color-accent);
    /* Color amarillo */
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--color-secondary-text);
    /* Color gris para el texto */
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.product-price-container {
    text-align: center;
    /* Centra el contenido */
    margin-bottom: 40px;
    /* Espacio antes de la galería de producto */
    display: flex;
    justify-content: center;
    align-items: baseline;
    /* Alinea los precios por su base */
    gap: 20px;
}

.original-price-main {
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: line-through;
    color: #888;
}

.current-price-main {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-accent);
}

.free-shipping-badge {
    background-color: var(--color-accent);
    color: var(--color-black);
    padding: 6px 12px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 10px;
}

.free-shipping-badge i {
    margin-right: 5px;
}


.product-price-container {
    align-items: center;
}


/* ==========================================================================
   ESTILOS PARA DISPOSITIVOS MÓVILES (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 768px) {

    /* --- 1. AJUSTES GENERALES Y HEADER --- */
    .container {
        padding: 15px;
        /* Menos padding en los lados */
    }

    #main-header .header-container h1 {
        font-size: 1rem;
        /* Título del header más pequeño */
    }

    #main-header .logo {
        width: 80px;
        /* Logo más pequeño */
    }

        /* Dentro de @media (max-width: 768px) */
    
        .product-price-container {
            flex-direction: column;
            /* Apila los precios y la etiqueta verticalmente */
            gap: 10px;
            /* Ajusta el espacio entre ellos */
            align-items: center;
            /* Centra todo */
        }
    
        .free-shipping-badge {
            margin-left: 0;
            /* Resetea el margen que tenía en la vista de escritorio */
            margin-top: 10px;
            /* Añade un pequeño espacio arriba */
        }

    /* --- 2. AJUSTES DEL HERO --- */
    .hero-content h1 {
        font-size: 2.5rem;
        /* Título principal más pequeño */
    }

    .hero-content .slogan {
        font-size: 1.2rem;
        /* Slogan más pequeño */
    }


    /* --- 3. MÓDULO DE DETALLES A UNA COLUMNA --- */
    .details-container {
        grid-template-columns: 1fr;
        /* Cambiamos a una sola columna */
        gap: 30px;
    }

    .product-specs h2 {
        font-size: 2rem;
        /* Título del producto más pequeño */
    }


    /* --- 4. MÓDULO DE PAGO A UNA COLUMNA --- */
    .button-group {
        flex-direction: column;
        /* Apilamos los botones verticalmente */
        gap: 15px;
        align-items: center;
        /* Centramos los botones apilados */
    }

    .button-group .btn {
        min-width: 100%;
        /* Hacemos que los botones ocupen todo el ancho */
        max-width: 400px;
    }

    .cta-module .price {
        font-size: 2.5rem;
        /* Precio un poco más pequeño */
    }

    .shipping-form {
        padding: 20px;
        /* Menos padding en el formulario */
    }


    /* --- AJUSTE EXTRA: MÓDULO DE CITA --- */
    .quote-module blockquote {
        font-size: 1.8rem;
        /* Cita más pequeña y legible */
    }
}

@media (max-width: 768px) {
    .benefits-section {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en celular */
        gap: 30px;
    }
}