/* ==========================================================================
   1. CONFIGURACIÓN Y VARIABLES
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* --- VARIABLES MODO CLARO (DEFAULT) --- */
:root {
    --verde-esmeralda: #0A381E;
    --verde-suave: #4A7C59;
    --crema-fondo: #FAF9F6;
    --blanco-puro: #FFFFFF;
    --texto-oro: #D4C4A8;
    --texto-oscuro: #444444;
    --acento-dorado: #C5A059;
    --rojo-alerta: #B94A48;
    --sombra-suave: 0 10px 30px -10px rgba(0,0,0,0.06);

    /* Variables Dinámicas */
    --nav-bg: rgba(250, 249, 246, 0.95);
    --border-color: rgba(0,0,0,0.03);
    --input-bg: #FAFAFA;
}

/* --- VARIABLES MODO OSCURO (ACTIVADO POR JS) --- */
body.dark-mode {
    --verde-esmeralda: #2E8B57;
    --verde-suave: #8FBC8F;
    --crema-fondo: #05140e;
    --blanco-puro: #0b241a;
    --texto-oro: #E8DCCA;
    --texto-oscuro: #E0E0E0;
    --acento-dorado: #D4AF37;
    --sombra-suave: 0 10px 30px -10px rgba(0,0,0,0.5);

    /* Dinámicas Dark */
    --nav-bg: rgba(0, 0, 0, 0.85);
    --border-color: rgba(255,255,255,0.1);
    --input-bg: #0f2e22;
}

/* ==========================================================================
   2. ESTILOS BASE GLOBAL
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--crema-fondo);
    color: var(--texto-oscuro);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 { margin: 0; }

/* ==========================================================================
   3. NAVEGACIÓN Y HEADER
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.logo-img { height: 95px; width: auto; display: block; }

.nav-menu { display: flex; gap: 35px; }

.nav-menu a {
    text-decoration: none;
    color: var(--verde-esmeralda);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
}
.nav-menu a:hover { color: var(--acento-dorado); }

/* Efecto línea en menú */
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--acento-dorado);
    transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--verde-esmeralda);
    cursor: pointer;
    padding: 10px; /* Increased touch target */
    touch-action: manipulation; /* Improve touch response */
    -webkit-tap-highlight-color: transparent;
}

.nav-tagline {
    font-family: 'Montserrat', sans-serif;
    color: var(--verde-suave);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Botón Toggle Tema (Sol/Luna) */
.theme-btn {
    background: transparent; border: 1px solid var(--verde-suave);
    border-radius: 50%; width: 35px; height: 35px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; color: var(--verde-esmeralda);
    transition: all 0.3s ease; padding: 0; margin-left: 15px;
}
.theme-btn:hover { background-color: var(--verde-esmeralda); color: var(--blanco-puro); transform: rotate(15deg); }

.sun-icon { display: none; }
.moon-icon { display: block; }

/* Responsive Nav */
@media (max-width: 968px) {
    .logo-img { height: 60px; }
    .nav-tagline { display: none; }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 80px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 25px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 99;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu a {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    /* Adjust nav padding to accommodate button */
    nav {
        padding: 10px 5%;
    }
}

/* ==========================================================================
   4. SECCIONES PRINCIPALES (HERO & LAYOUT)
   ========================================================================== */
.hero {
    position: relative; height: 70vh;
    display: flex; justify-content: center; align-items: center;
    text-align: center; color: white;
    background-image: url('../img/hero-aceite-dorado.webp');
    background-size: cover; background-position: center 60%;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.hero h1 {
    font-family: 'Jura', sans-serif; font-weight: 700; font-style: italic;
    color: #FFF; font-size: 4.5rem; margin-bottom: 10px;
    font-weight: 400; text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    line-height: 1.1; text-transform: none; letter-spacing: 0px;
    position: relative; z-index: 2;
}

.hero p {
    font-family: 'Montserrat', sans-serif; color: #FFF;
    font-size: 1.2rem; font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    position: relative; z-index: 2;
}

@media (max-width: 768px) {
    .hero { height: 60vh; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1rem; }
}

.section-divider { text-align: center; padding: 70px 20px 30px; }

.section-divider h2 {
    font-family: 'Jura', sans-serif; font-weight: 700; font-size: 2.5rem;
    margin-bottom: 10px; color: var(--verde-esmeralda);
    letter-spacing: 1px; font-style: italic;
}

@media (max-width: 768px) {
    .section-divider { padding: 50px 20px 20px; }
    .section-divider h2 { font-size: 2rem; }
}

/* Títulos de Colecciones */
.collection-section { padding: 20px 8% 60px; }

@media (max-width: 768px) {
    .collection-section { padding: 20px 4% 40px; }
}

.collection-section > h3 {
    font-family: 'Jura', sans-serif; font-weight: 700; font-size: 2rem;
    color: var(--verde-esmeralda); margin-bottom: 40px;
    font-weight: 400; font-style: italic; text-transform: none;
    letter-spacing: 1px; position: relative; display: inline-block;
    padding-bottom: 15px;
}
.collection-section > h3::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 60px; height: 3px;
    background-color: var(--acento-dorado);
}

/* Grid de Productos */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; max-width: 1300px; margin: 0 auto;
    justify-content: center;
}
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px; /* Reduced gap for mobile */
    }
}

/* ==========================================================================
   5. TARJETAS DE PRODUCTO Y BOTONES
   ========================================================================== */
.card {
    background: var(--blanco-puro); border-radius: 12px;
    overflow: hidden; box-shadow: var(--sombra-suave);
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex; flex-direction: column;
    border: 1px solid var(--border-color);
}
@media (hover: hover) {
    .card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
}

.img-container {
    width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
    background-color: var(--input-bg); position: relative;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
@media (hover: hover) {
    .card:hover .card-img { transform: scale(1.05); }
}

.card-info {
    padding: 25px; text-align: center; flex-grow: 1;
    display: flex; flex-direction: column; justify-content: space-between;
}

.card-info h3 {
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
    margin-bottom: 8px; font-weight: 600; letter-spacing: 1px;
    color: var(--texto-oscuro); text-transform: uppercase; font-style: normal;
}

.price {
    color: var(--verde-esmeralda); font-weight: 700; font-size: 1.2rem;
    margin-top: 5px; font-family: 'Montserrat', sans-serif;
}

/* Botón de Compra Principal */
.btn-buy {
    display: inline-block; margin-top: 15px; padding: 12px 20px;
    background-color: var(--verde-esmeralda); color: white;
    border: 1px solid var(--verde-esmeralda); border-radius: 50px;
    font-size: 0.85rem; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; width: 100%; font-family: 'Montserrat', sans-serif;
    font-weight: 600; box-shadow: 0 4px 10px rgba(10, 56, 30, 0.2);
}
.btn-buy:hover {
    background-color: white; color: var(--verde-esmeralda);
    border-color: var(--verde-esmeralda); transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 56, 30, 0.15);
}

/* Botón YouTube */
.btn-youtube {
    background-color: #CC0000 !important; color: white !important;
    border: 1px solid #CC0000 !important; width: auto !important;
    padding: 10px 25px !important; border-radius: 50px;
    font-family: 'Montserrat', sans-serif; font-weight: 600;
    text-decoration: none; display: inline-block; margin-top: 15px;
    font-size: 0.8rem; box-shadow: none !important;
}
.btn-youtube:hover {
    background-color: white !important; color: #CC0000 !important;
    transform: translateY(-2px); box-shadow: 0 5px 15px rgba(204, 0, 0, 0.2) !important;
}

/* Botón Ver Más Reseñas (Outline) */
.btn-outline-zen {
    display: inline-block; margin-top: 40px; padding: 12px 45px;
    border: 2px solid var(--verde-esmeralda); color: var(--verde-esmeralda);
    background-color: transparent; border-radius: 50px; text-decoration: none;
    font-family: 'Montserrat', sans-serif; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; font-size: 0.85rem; transition: all 0.3s ease;
}
.btn-outline-zen:hover {
    background-color: var(--verde-esmeralda); color: white; transform: translateY(-3px);
}

/* ==========================================================================
   6. ELEMENTOS FLOTANTES (Redes, Carrito, Volver Arriba)
   ========================================================================== */
.social-bubbles {
    position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
    z-index: 950; display: flex; flex-direction: column; gap: 10px;
}

@media (max-width: 768px) {
    .social-bubbles {
        flex-direction: column;
        top: auto;
        bottom: 90px;
        left: auto;
        right: 20px;
        transform: none;
        width: auto;
        gap: 12px;
        align-items: flex-end;
    }
    .social-bubble {
        width: 40px; height: 40px;
    }
    .social-bubble svg {
        width: 20px; height: 20px;
    }
}

.social-bubble {
    width: 50px; height: 50px; border-radius: 50%;
    background-color: var(--verde-esmeralda);
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transition: all 0.3s ease;
    text-decoration: none; border: none;
}

.social-bubble svg { width: 30px; height: 30px; fill: white; transition: transform 0.2s ease; }

@media (hover: hover) {
    .social-bubble:hover { transform: scale(1.15); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }

    /* Colores Hover Redes */
    .social-bubble.fb:hover { background-color: #1877F2; }
    .social-bubble.yt:hover { background-color: #FF0000; }
    .social-bubble.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
    .social-bubble.tt:hover { background-color: #000000; }
    .social-bubble.wa:hover { background-color: #25D366; }
}

/* Carrito Flotante */
.cart-float {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--verde-esmeralda); width: 65px; height: 65px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    box-shadow: 0 5px 20px rgba(10, 56, 30, 0.3); cursor: pointer;
    z-index: 900; transition: transform 0.3s;
}
@media (max-width: 768px) {
    .cart-float { bottom: 20px; right: 20px; width: 55px; height: 55px; }
}
.cart-float:hover { transform: scale(1.1); background-color: #0d4a28; }
.cart-icon-img { width: 55%; height: 55%; filter: brightness(0) invert(1); }
.cart-count {
    position: absolute; top: -2px; right: -2px;
    background-color: var(--acento-dorado); color: var(--verde-esmeralda);
    font-size: 0.8rem; width: 24px; height: 24px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 700; border: 2px solid white;
}
.flying-img { position: fixed; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; z-index: 9999; pointer-events: none; transition: all 0.8s; }

/* Volver Arriba */
.back-to-top {
    position: fixed; bottom: 30px; left: 30px; width: 45px; height: 45px;
    background-color: var(--verde-esmeralda); color: white; border-radius: 50%;
    text-align: center; line-height: 45px; font-size: 1.5rem; text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 900; opacity: 0;
    visibility: hidden; transition: all 0.3s ease;
}
.back-to-top.show { opacity: 0.8; visibility: visible; }
.back-to-top:hover { background-color: var(--acento-dorado); transform: translateY(-3px); opacity: 1; }

/* ==========================================================================
   7. MODAL (CARRITO) Y FORMULARIOS
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9); z-index: 1000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--blanco-puro); color: var(--texto-oscuro);
    width: 90%; max-width: 550px; max-height: 90vh;
    overflow-y: auto; padding: 40px; border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15); border-radius: 20px;
    position: relative;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 25px;
        max-height: 85vh;
    }
    .modal-content h2 { font-size: 1.5rem; }
    .close-btn { top: 10px; right: 15px; }
}

.modal-content h2 { color: var(--verde-esmeralda); font-family: 'Jura', sans-serif; font-weight: 700; font-size: 2rem; margin-bottom: 30px; font-style: italic; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 2.5rem; cursor: pointer; color: #999; z-index: 10; line-height: 1; }
.close-btn:hover { color: var(--rojo-alerta) !important; }

/* Items Carrito */
.cart-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding: 15px 0; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; margin-right: 15px; }
.cart-mini-price { color: var(--verde-suave); font-size: 0.9rem; font-weight: 600; margin-top: 2px; font-family: 'Montserrat', sans-serif; }
.btn-remove { 
    color: var(--rojo-alerta); cursor: pointer; background: none; border: 1px solid #ccc; 
    width: 25px; height: 25px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-weight: bold; font-size: 1.2rem; padding: 0; line-height: 0; transition: all 0.2s ease;
}
.btn-remove:hover { background-color: #eee; }
.cart-summary { margin-top: 20px; border-top: 2px solid #eee; padding-top: 15px; }
.discount-row { color: var(--descuento-azul); font-weight: bold; }
.total-row { font-size: 1.3rem; font-weight: bold; border-top: 1px solid #ccc; padding-top: 10px; margin-top: 10px; color: var(--verde-esmeralda); }

/* Formulario */
.form-control {
    width: 100%; padding: 14px 18px; border: 1px solid #E0E0E0;
    background: var(--input-bg); border-radius: 12px; box-sizing: border-box;
    font-family: 'Lato', sans-serif; font-size: 0.95rem; color: var(--texto-oscuro);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
.form-control:focus { outline: none; border-color: var(--verde-esmeralda); background: var(--blanco-puro); box-shadow: 0 0 0 4px rgba(10, 56, 30, 0.05); }
.form-group label { font-family: 'Montserrat', sans-serif; color: var(--verde-esmeralda); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block; }

/* Teléfono + Botón */
.phone-wrapper { display: flex; gap: 10px; align-items: stretch; margin-bottom: 10px; width: 100%; }
.phone-wrapper .form-control { flex-grow: 1; width: auto !important; margin: 0; }
.add-phone-btn {
    background-color: transparent !important; color: var(--verde-esmeralda) !important;
    border: 2px solid var(--verde-esmeralda) !important; width: 50px !important;
    border-radius: 12px !important; cursor: pointer; font-size: 1.8rem !important;
    line-height: 0; display: flex; justify-content: center; align-items: center;
    padding: 0 !important; margin: 0 !important; transition: all 0.3s ease;
}
.add-phone-btn:hover { background-color: var(--verde-esmeralda) !important; color: white !important; }

/* Caja de Pago */
.form-group[style*="background: #f9f9f9"] {
    background: #FFFFFF !important; border: 1px solid #EAEAEA !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); border-radius: 8px;
}
input[type="radio"] { accent-color: var(--verde-esmeralda); transform: scale(1.2); margin-right: 5px; }

/* Botones del Formulario */
.btn-buy[onclick*="showCart"] { background: #eee !important; color: #555 !important; border: none !important; }
#btnEnviar { background-color: var(--verde-esmeralda) !important; color: white !important; border: none !important; font-weight: 700; }
#btnEnviar:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(10, 56, 30, 0.3); }

/* Disclaimer & Otros */
.disclaimer-box { background-color: #fffef8; color: #8a6d3b; border: 1px solid #faebcc; padding: 15px; margin: 20px 0; font-size: 0.9rem; border-radius: 8px; }
.terms-check { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.9rem; color: var(--texto-oscuro); }
.canton-modal {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: var(--blanco-puro); padding: 40px; border: 1px solid var(--verde-esmeralda);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); width: 85%; max-width: 450px;
    z-index: 2000; display: none; border-radius: 20px; text-align: center;
}
.canton-modal h4 {
    font-family: 'Jura', sans-serif; font-weight: 700; font-size: 1.8rem;
    color: var(--verde-esmeralda); margin-bottom: 20px; font-style: italic;
}
.canton-modal p {
    font-family: 'Lato', sans-serif; color: var(--texto-oscuro);
    margin-bottom: 20px; font-size: 1rem; line-height: 1.6;
}
.canton-modal ul {
    text-align: left; margin: 0 auto 25px auto; padding-left: 20px;
    list-style-type: none; display: inline-block;
}
.canton-modal ul li {
    margin-bottom: 10px; position: relative; padding-left: 25px;
    font-family: 'Montserrat', sans-serif; font-weight: 500; color: var(--texto-oscuro);
}
.canton-modal ul li::before {
    content: '🌿'; position: absolute; left: 0; top: 2px; font-size: 0.9rem;
}

/* ==========================================================================
   8. EXTRAS (Testimonios, Videos, Footer)
   ========================================================================== */

/* Testimonios Home */
#home-reviews-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 40px !important; max-width: 1100px !important; margin: 0 auto;
}
@media (min-width: 1024px) { #home-reviews-container { grid-template-columns: repeat(3, 1fr) !important; } }
#home-reviews-container .card { text-align: left !important; display: block !important; }
.home-review-text { font-family: 'Lato', sans-serif; font-style: italic; color: #555; margin-bottom: 15px; font-size: 0.95rem; line-height: 1.6; }
.home-review-author { font-size: 0.9rem; color: var(--verde-esmeralda); font-weight: 700; font-family: 'Montserrat', sans-serif; margin-bottom: 0; }
.home-review-city { color: #999; font-family: 'Lato', sans-serif; font-size: 0.8rem; }

/* Video */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; margin-bottom: 15px; border-radius: 12px 12px 0 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Footer */
footer {
    background-color: var(--verde-esmeralda);
    color: #f0f0f0;
    padding: 60px 5% 20px;
    font-size: 0.9rem;
}

.main-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-family: 'Jura', sans-serif; font-weight: 700;
    font-size: 1.5rem;
    color: var(--acento-dorado);
    margin-bottom: 20px;
}

.footer-column p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--acento-dorado);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: 'Lato', sans-serif;
}

/* Ajustes de footer para modo oscuro */
body.dark-mode footer {
    background-color: #0b241a;
    border-top: 1px solid rgba(255,255,255,0.05);
}

#successView { text-align: center; padding: 20px 0; }
.whatsapp-btn { display: inline-block; background-color: #25D366; color: white; padding: 10px 20px; border-radius: 50px; font-weight: bold; margin-top: 15px; text-decoration: none; }
.hidden { display: none; }
.loader { border: 3px solid #f3f3f3; border-top: 3px solid var(--verde-esmeralda); border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 15px auto; display: none; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ==========================================================================
   9. OVERRIDES MODO OSCURO (LÓGICA CENTRALIZADA)
   ========================================================================== */
body.dark-mode .sun-icon { display: block; }
body.dark-mode .moon-icon { display: none; }
body.dark-mode .theme-btn { color: #e0e0e0; border-color: #e0e0e0; }
body.dark-mode .mobile-menu-btn { color: #e0e0e0; }

/* Menú */
body.dark-mode .nav-menu a { color: #E0E0E0; }
body.dark-mode .nav-menu a:hover { color: var(--acento-dorado); }
body.dark-mode .nav-tagline { color: #888; }

/* Tarjetas */
body.dark-mode .card { background-color: var(--blanco-puro); border-color: rgba(255, 255, 255, 0.05); }
body.dark-mode .card-img { filter: brightness(0.85); }
body.dark-mode h2, body.dark-mode h3, body.dark-mode .card-info h3 { color: #E8DCCA !important; }
body.dark-mode .price { color: #FFD700 !important; text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); font-weight: 700; }

/* Secciones Blancas a Oscuro */
body.dark-mode .collection-section[style*="background-color: white"],
body.dark-mode .section-divider[style*="background-color: white"],
body.dark-mode .collection-section[style*="background-color: #f4f4f4"] {
    background-color: var(--crema-fondo) !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Botones */
body.dark-mode .btn-buy {
    border-color: var(--verde-esmeralda); background-color: var(--verde-esmeralda);
    color: white !important; font-weight: 700;
}
body.dark-mode .btn-buy:hover {
    background-color: transparent; color: var(--verde-esmeralda) !important;
    border-color: var(--verde-esmeralda);
}
body.dark-mode .add-phone-btn { color: var(--acento-dorado) !important; border-color: var(--acento-dorado) !important; }
body.dark-mode .add-phone-btn:hover { background-color: var(--acento-dorado) !important; color: #000 !important; }

/* Modal & Formulario */
body.dark-mode .modal-overlay { background: rgba(0, 0, 0, 0.85) !important; backdrop-filter: blur(8px); }
body.dark-mode .modal-content {
    background-color: #0b241a !important; border: 1px solid rgba(255, 255, 255, 0.1); color: #E0E0E0;
}
body.dark-mode .modal-content h2 { color: var(--acento-dorado) !important; }
body.dark-mode .close-btn { color: rgba(255, 255, 255, 0.7) !important; }
body.dark-mode .close-btn:hover { color: var(--rojo-alerta) !important; }
body.dark-mode .form-group label { color: #a5d6a7 !important; }
body.dark-mode .form-group[style*="background: #f9f9f9"] { background-color: #0f2e22 !important; border-color: #2e8b57 !important; }
body.dark-mode #msgPago { color: #ccc !important; }
body.dark-mode .disclaimer-box { background-color: rgba(184, 134, 11, 0.15) !important; border: 1px solid #B8860B !important; color: #E8DCCA !important; }
body.dark-mode .btn-buy[onclick*="showCart"] { background: transparent !important; border: 1px solid #666 !important; color: #aaa !important; }
body.dark-mode .btn-buy[onclick*="showCart"]:hover { border-color: #E0E0E0 !important; color: #E0E0E0 !important; }
body.dark-mode #btnEnviar { background-color: var(--verde-esmeralda) !important; color: white !important; box-shadow: 0 0 15px rgba(46, 139, 87, 0.4); }
body.dark-mode #btnEnviar:hover { background-color: #2E8B57 !important; }

/* Carrito Mini */
body.dark-mode .cart-mini-price { color: #FFD700 !important; text-shadow: 0 0 5px rgba(255, 215, 0, 0.2); }
body.dark-mode .cart-item div[style*="font-weight:bold"] { color: #E0E0E0 !important; }
body.dark-mode .btn-remove { color: var(--rojo-alerta); border-color: rgba(255,255,255,0.2); }
body.dark-mode .btn-remove:hover { background-color: rgba(255,255,255,0.1); }

/* Reseñas Home */
body.dark-mode .home-review-text { color: #E0E0E0 !important; }
body.dark-mode .home-review-author { color: var(--acento-dorado) !important; }
body.dark-mode .home-review-city { color: #AAAAAA !important; }

/* Mensaje Envío */
.shipping-msg-alert {
    background-color: #fff3cd; color: #856404; padding: 12px; border-radius: 8px;
    border: 1px solid #ffeeba; font-size: 0.9rem; text-align: center; margin-bottom: 15px;
}
.shipping-msg-success {
    background-color: #d4edda; color: #155724; padding: 12px; border-radius: 8px;
    border: 1px solid #c3e6cb; font-size: 0.9rem; text-align: center; margin-bottom: 15px;
}
body.dark-mode .shipping-msg-alert { background-color: #2c2505; color: #ffecb5; border-color: #443a0a; }
body.dark-mode .shipping-msg-success { background-color: #0e2b16; color: #d4edda; border-color: #143d20; }

/* ==========================================================================
   PRODUCT MODAL STYLES
   ========================================================================== */
.product-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 1100;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease;
}

.product-modal-overlay.active {
    opacity: 1;
}

.product-modal-content {
    background-color: var(--blanco-puro); width: 90%; max-width: 900px;
    border-radius: 20px; overflow: hidden; display: flex;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative; transform: translateY(20px); transition: transform 0.3s ease;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .product-modal-overlay {
        align-items: flex-end !important; /* Bottom Sheet */
    }
    .product-modal-content {
        flex-direction: column;
        overflow: hidden; /* Parent hidden, children scroll */
        max-height: 90vh;
        width: 100% !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 0;
        background-color: #FFFFFF;
        position: relative;
    }

    /* Ensure Dark Mode background is solid and correct on mobile */
    body.dark-mode .product-modal-content {
        background-color: var(--crema-fondo) !important;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .pm-image-container, .pm-details {
        width: 100% !important;
        max-width: 100% !important;
        flex: none;
        box-sizing: border-box; /* Fix overflow caused by padding */
    }
    .pm-image-container {
        height: 220px; /* More vertical space */
        min-height: 220px;
        flex-basis: 220px;
        flex-shrink: 0;
        background-color: transparent; /* Avoid boxy look with contain */
    }

    /* Ensure image is not cut off */
    .pm-image {
        object-fit: contain !important;
    }

    .pm-details {
        padding: 30px 20px 120px 20px; /* Restored padding, margin on title handles overlap */
        justify-content: flex-start;
        gap: 10px;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
    }

    .pm-title { font-size: 1.4rem; margin-bottom: 5px; margin-top: 150px; display: block; width: 100%; }
    .pm-price { font-size: 1.3rem; margin-bottom: 15px; }
    .pm-options-label { margin-bottom: 5px; font-size: 0.8rem; }
    .pm-size-selector { margin-bottom: 20px; }
    .pm-quantity-container { margin-bottom: 20px; }

    /* Sticky Add to Cart Button on Mobile */
    .pm-btn-add {
        position: sticky;
        bottom: 10px; /* Float slightly above bottom */
        z-index: 90;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
        margin-top: 10px;
        width: 100%;
        box-sizing: border-box; /* Prevent overflow */
    }

    /* "Ver mas detalles" button adjustments */
    .pm-btn-details {
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .pm-close {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255,255,255,0.9);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0; /* Reset margins */
        z-index: 20;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    body.dark-mode .pm-close { background: rgba(0,0,0,0.6); color: white !important; }
}

.product-modal-overlay.active .product-modal-content {
    transform: translateY(0);
}

.pm-image-container {
    width: 50%; background-color: #f4f4f4; position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; /* Essential for zoom */
}

.pm-image {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.1s ease-out; /* Smooth zoom follow */
    transform-origin: center center;
}

.pm-details {
    width: 50%; padding: 40px; display: flex; flex-direction: column;
    justify-content: center; overflow-y: auto;
}

.pm-title {
    font-family: 'Jura', sans-serif; font-weight: 700; font-size: 2rem;
    color: var(--verde-esmeralda); margin-bottom: 10px; font-style: italic;
}

.pm-price {
    font-family: 'Montserrat', sans-serif; font-size: 1.8rem;
    color: #B8860B; font-weight: 700; margin-bottom: 20px;
}

.pm-options-label {
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem;
    text-transform: uppercase; color: #888; margin-bottom: 10px; letter-spacing: 1px;
}

.pm-size-selector {
    display: flex; gap: 10px; margin-bottom: 30px;
}

.size-btn {
    padding: 10px 20px; border: 2px solid #eee; background: transparent;
    border-radius: 8px; cursor: pointer; font-family: 'Montserrat', sans-serif;
    font-weight: 600; color: var(--texto-oscuro); transition: all 0.2s ease;
}

.size-btn:hover { border-color: var(--verde-esmeralda); }

.size-btn.active {
    background-color: var(--verde-esmeralda); color: white;
    border-color: var(--verde-esmeralda);
}

.pm-btn-details {
    display: block;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 12px 20px;
    background-color: rgba(10, 56, 30, 0.05);
    border: 1px solid var(--verde-esmeralda);
    color: var(--verde-esmeralda);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.pm-btn-details:hover {
    background-color: var(--verde-esmeralda);
    color: white;
    transform: translateY(-2px);
}

.pm-btn-add {
    background-color: var(--verde-esmeralda); color: white;
    border: none; padding: 15px; border-radius: 50px;
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
    transition: all 0.3s ease; width: 100%; font-size: 1rem;
    box-shadow: 0 5px 15px rgba(10, 56, 30, 0.2);
}

.pm-btn-add:hover {
    background-color: #0d4a28; transform: translateY(-2px);
}

/* Quantity Selector */
.pm-quantity-container { margin-bottom: 30px; }
.qty-selector {
    display: flex; align-items: center; gap: 10px;
}
.qty-btn {
    width: 35px; height: 35px; border-radius: 50%; border: 1px solid #ccc;
    background: transparent; cursor: pointer; font-size: 1.2rem;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.3s ease; color: var(--verde-esmeralda);
}
.qty-btn:hover { background-color: var(--verde-esmeralda); color: white; border-color: var(--verde-esmeralda); }
#pmQuantity {
    width: 50px; text-align: center; font-size: 1.1rem; border: none;
    background: transparent; font-family: 'Montserrat', sans-serif; font-weight: 700;
    color: var(--texto-oscuro);
    -moz-appearance: textfield;
}
#pdQuantity {
    -moz-appearance: textfield;
}
/* Hide spin buttons */
#pmQuantity::-webkit-outer-spin-button,
#pmQuantity::-webkit-inner-spin-button,
#pdQuantity::-webkit-outer-spin-button,
#pdQuantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
body.dark-mode .qty-btn { border-color: rgba(255,255,255,0.2); color: #E0E0E0; }
body.dark-mode .qty-btn:hover { background-color: var(--acento-dorado); color: #000; border-color: var(--acento-dorado); }
body.dark-mode #pmQuantity { color: #E0E0E0; }

.pm-close {
    position: absolute; top: 15px; right: 20px; font-size: 2rem;
    color: #999; cursor: pointer; z-index: 10; line-height: 1;
}

.pm-close:hover { color: var(--rojo-alerta); }

/* Responsive */
@media (max-width: 768px) {
    .pm-title { font-size: 1.5rem; }
    .pm-price { font-size: 1.5rem; }
}

/* Dark Mode Overrides */
body.dark-mode .pm-btn-details {
    border-color: var(--acento-dorado);
    color: var(--acento-dorado);
}
body.dark-mode .pm-btn-details:hover {
    background-color: var(--acento-dorado);
    color: var(--verde-esmeralda);
}

body.dark-mode .product-modal-content {
    background-color: var(--crema-fondo); border: 1px solid rgba(255,255,255,0.1);
}
body.dark-mode .pm-image-container {
    background-color: #0b241a;
}
body.dark-mode .pm-title {
    color: var(--texto-oro);
}
body.dark-mode .pm-options-label {
    color: #aaa;
}
body.dark-mode .size-btn {
    border-color: rgba(255,255,255,0.1); color: #E0E0E0;
}
body.dark-mode .size-btn:hover {
    border-color: var(--acento-dorado); color: var(--acento-dorado);
}
body.dark-mode .size-btn.active {
    background-color: var(--verde-esmeralda); border-color: var(--verde-esmeralda);
    color: white;
}

/* ==========================================================================
   10. PÁGINA INDIVIDUAL DE PRODUCTO (STANDALONE)
   ========================================================================== */
.pd-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Columna Izquierda: Imagen */
.pd-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Para el zoom */
}

.pd-main-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    border-radius: 10px;
    transform-origin: center center;
    transition: transform 0.1s ease-out; /* Zoom suave */
}

/* Columna Derecha: Detalles */
.pd-info-col {
    display: flex;
    flex-direction: column;
}

.pd-title {
    font-family: 'Jura', sans-serif; font-weight: 700;
    font-size: 2.8rem;
    color: var(--verde-esmeralda);
    margin-bottom: 10px;
    line-height: 1.1;
    font-style: italic;
}

.pd-category {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.pd-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--verde-esmeralda);
    font-weight: 700;
    margin-bottom: 25px;
}

.pd-description {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--texto-oscuro);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Caja de Compra (Buy Box) */
.pd-buy-box {
    background-color: var(--blanco-puro);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.pd-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--texto-oscuro);
    margin-bottom: 10px;
    display: block;
}

.pd-size-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.pd-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

/* Extras: Beneficios y Specs */
.pd-extras-section {
    margin-top: 20px;
}

.pd-extra-block {
    margin-bottom: 30px;
}

.pd-extra-title {
    font-family: 'Jura', sans-serif; font-weight: 700;
    font-size: 1.5rem;
    color: var(--verde-esmeralda);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--acento-dorado);
    display: inline-block;
    padding-bottom: 5px;
}

.pd-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pd-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
    color: var(--texto-oscuro);
}

.pd-list li::before {
    content: '🌿';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .pd-container {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
    .pd-image-col {
        position: static;
        margin-bottom: 30px;
    }
    .pd-title {
        font-size: 2.2rem;
    }
}

/* Dark Mode Overrides para Producto */
body.dark-mode .pd-title {
    color: var(--verde-suave);
}

body.dark-mode .pd-price {
    color: var(--acento-dorado);
}

body.dark-mode .pd-category {
    color: #aaa;
}

body.dark-mode .pd-buy-box {
    background-color: #0f2e22;
    border-color: rgba(255,255,255,0.1);
}

body.dark-mode .pd-label {
    color: #E0E0E0;
}

body.dark-mode .pd-extra-title {
    color: var(--texto-oro);
}

body.dark-mode .pd-list li {
    color: #ccc;
}
/* New Styles for Product Description Update */

/* Style for the 'Guía de Uso' link */
.pd-description a {
    color: var(--verde-esmeralda);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--acento-dorado);
    transition: all 0.3s ease;
}

.pd-description a:hover {
    color: var(--acento-dorado);
    border-color: var(--verde-esmeralda);
    background-color: rgba(10, 56, 30, 0.05);
    padding: 0 4px;
    border-radius: 4px;
}

/* Inline SVGs in description */
.inline-icon {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
    margin-right: 5px;
    fill: currentColor;
    color: var(--verde-esmeralda); /* Default color */
}

/* Specific colors for specific icons if needed */
.icon-fresh {
    color: var(--verde-suave);
}

.icon-info {
    color: var(--acento-dorado);
}

/* Dark mode adjustments */
body.dark-mode .pd-description a {
    color: var(--verde-suave);
    border-color: var(--acento-dorado);
}

body.dark-mode .pd-description a:hover {
    color: var(--acento-dorado);
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .inline-icon {
    color: var(--verde-suave);
}
body.dark-mode .icon-info {
    color: var(--acento-dorado);
}

/* Product Note (Styled like Free Shipping Notice) */
.product-note {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    font-size: 0.95rem; /* Slightly larger for readability */
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
    font-family: 'Lato', sans-serif;
}

.product-note strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

body.dark-mode .product-note {
    background-color: #0e2b16;
    color: #d4edda;
    border-color: #143d20;
}

/* ==========================================================================
   TRUST BADGE / BANNER
   ========================================================================== */
.trust-banner {
    background-color: var(--crema-fondo);
    color: var(--verde-esmeralda);
    text-align: center;
    padding: 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.trust-banner svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    fill: var(--verde-suave);
}

.pd-trust-badge {
    background-color: #f0f7f4; /* Light green background */
    color: var(--verde-esmeralda);
    border: 1px solid rgba(74, 124, 89, 0.2); /* Soft green border */
    padding: 12px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pd-trust-badge svg {
    width: 20px;
    height: 20px;
    min-width: 20px; /* Prevent shrinking */
    fill: var(--verde-suave);
}

/* Dark Mode Overrides */
body.dark-mode .trust-banner {
    background-color: #0b241a;
    color: #E8DCCA;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

body.dark-mode .pd-trust-badge {
    background-color: rgba(46, 139, 87, 0.1);
    color: #E8DCCA;
    border-color: rgba(46, 139, 87, 0.3);
}

/* ==========================================================================
   11. CHECKOUT STEPPER & MODERN FORM (NUEVO)
   ========================================================================== */

/* Barra de Pasos */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.stepper-wrapper::before {
    content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 2px;
    background: #eee; z-index: 1;
}

.stepper-item {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
    flex: 1;
}

.step-counter {
    width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #ccc;
    display: flex; justify-content: center; align-items: center; font-weight: bold;
    color: #ccc; margin-bottom: 5px; transition: all 0.3s ease;
}

.step-name {
    font-size: 0.8rem; font-weight: 600; color: #ccc; text-transform: uppercase; letter-spacing: 1px;
}

/* Estado Activo */
.stepper-item.active .step-counter {
    background: var(--verde-esmeralda); border-color: var(--verde-esmeralda); color: white;
}
.stepper-item.active .step-name { color: var(--verde-esmeralda); }

/* Layout Compacto (Grid) */
.grid-compact {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}
@media (max-width: 500px) { .grid-compact { grid-template-columns: 1fr; gap: 0; } }

/* Botones de Navegación */
.step-buttons {
    display: flex; gap: 15px; margin-top: 25px;
}

.btn-outline {
    flex: 1; padding: 12px; border: 1px solid #ccc; background: transparent;
    color: #555; border-radius: 50px; cursor: pointer; font-weight: 600; transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
}
.btn-outline:hover { border-color: #999; color: #333; }

/* Botón GPS Estilizado */
.btn-gps {
    background: #e8f5e9; color: var(--verde-esmeralda); border: none;
    padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold;
    cursor: pointer; transition: background 0.2s;
}
.btn-gps:hover { background: #c8e6c9; }

/* Caja de Pago Mejorada */
.payment-box {
    background: #fafafa; border: 1px solid #eee; border-radius: 12px; padding: 20px;
    margin-bottom: 20px;
}
.payment-title {
    display: block; font-weight: bold; color: var(--verde-esmeralda); margin-bottom: 15px;
}
.payment-options {
    display: flex; flex-direction: column; gap: 10px;
}
.payment-option {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    padding: 10px; border: 1px solid transparent; border-radius: 8px; transition: all 0.2s;
}
.payment-option:hover { background: white; border-color: #ddd; }
.payment-msg {
    margin-top: 15px; font-size: 0.9rem; color: #666; font-style: italic; border-top: 1px solid #eee; padding-top: 10px;
}

/* Modo Oscuro Ajustes */
body.dark-mode .step-counter { background: #222; border-color: #444; color: #666; }
body.dark-mode .stepper-item.active .step-counter { background: var(--verde-esmeralda); color: white; border-color: var(--verde-esmeralda); }
body.dark-mode .payment-box { background: #0f2e22; border-color: #2e8b57; }
body.dark-mode .payment-option:hover { background: #143d2d; }
body.dark-mode .btn-outline { border-color: #555; color: #ccc; }
body.dark-mode .btn-outline:hover { border-color: #fff; color: #fff; }
body.dark-mode .stepper-wrapper::before { background: #333; }

/* ==========================================================================
   12. PULIDO FINAL (THE PREMIUM TOUCH)
   ========================================================================== */

/* --- 1. Inputs Estilo "Glass" (Más elegante en Dark Mode) --- */
.form-control {
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .form-control {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-mode .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--acento-dorado); /* Borde dorado al escribir */
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

/* --- 2. Radio Buttons Personalizados (Adiós círculos feos) --- */
.payment-option {
    position: relative;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Ocultar el radio nativo */
.payment-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 10px;
    display: grid;
    place-content: center;
    transition: 0.2s all; 
    cursor: pointer;
}

/* El punto central cuando está seleccionado */
.payment-option input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.2s transform ease-in-out;
    background-color: var(--verde-esmeralda); /* Color del punto */
}

.payment-option input[type="radio"]:checked {
    border-color: var(--verde-esmeralda);
}

.payment-option input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Efecto de borde brillante en la caja seleccionada */
.payment-option:has(input:checked) {
    background-color: rgba(10, 56, 30, 0.05);
    border-color: var(--verde-esmeralda);
    box-shadow: 0 4px 12px rgba(10, 56, 30, 0.1);
}

/* Ajustes Dark Mode para los Radios */
body.dark-mode .payment-option input[type="radio"] { border-color: #666; }
body.dark-mode .payment-option input[type="radio"]::before { background-color: var(--acento-dorado); }
body.dark-mode .payment-option input[type="radio"]:checked { border-color: var(--acento-dorado); }
body.dark-mode .payment-option:has(input:checked) {
    background-color: rgba(197, 160, 89, 0.1);
    border-color: var(--acento-dorado);
}

/* --- 3. Mejorar Botón Eliminar (Carrito) --- */
.btn-remove {
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    transition: color 0.3s !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-remove:hover {
    color: var(--rojo-alerta) !important;
    background: transparent !important;
    transform: scale(1.1);
}

/* ==========================================================================
   13. FIX DEPURACIÓN (Selects en Modo Oscuro)
   ========================================================================== */

/* Forzar fondo oscuro en las opciones desplegables */
body.dark-mode select.form-control option {
    background-color: #0b241a; /* Mismo fondo oscuro que el modal */
    color: #E0E0E0; /* Texto claro legible */
    padding: 10px;
}

/* Opcional: Para asegurar que el select cerrado también se vea sólido */
body.dark-mode select.form-control {
    background-color: rgba(11, 36, 26, 0.8); /* Un poco más sólido que los inputs normales */
    color: #fff;
}
/* ==========================================================================
   14. NEW YEAR BANNER (TEMPORAL)
   ========================================================================== */
@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.new-year-banner {
    background: linear-gradient(120deg, var(--verde-esmeralda) 30%, #156335 50%, var(--verde-esmeralda) 70%);
    background-size: 200% 100%;
    animation: shimmer 8s infinite linear;
    color: var(--acento-dorado);
    text-align: center;
    padding: 12px 40px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    z-index: 110; /* Above nav */
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.new-year-banner strong {
    font-family: 'Jura', sans-serif; font-weight: 700;
    font-style: italic;
    font-size: 1.1rem;
    color: #fff; /* White for contrast on the title part */
    margin-right: 5px;
}

.new-year-banner .close-banner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s;
}

.new-year-banner .close-banner:hover {
    color: var(--acento-dorado);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .new-year-banner {
        padding: 15px 35px 15px 20px;
        font-size: 0.85rem;
        text-align: left;
    }
}

/* Slogan Exception */
.slogan-text {
    font-family: 'Playfair Display', serif !important;
}
