:root {
    --primary: #d4a5a5;   /* Rosa empolvado elegante */
    --primary-dark: #b38b8b;
    --gold: #c5a878;       /* Dorado premium */
    --gold-dark: #a88f66;
    --bg-light: #fcfaf8;   /* Crema muy claro */
    --text-dark: #2c2c2c;  /* Gris oscuro elegante, no negro puro */
    --text-light: #666666;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(212, 165, 165, 0.2);
    --radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
}

h1, h2, h3, .serif-font, .logo {
    font-family: 'Playfair Display', serif;
}

.hidden { display: none !important; }
.full-width { width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* === NAVBAR PREMIUM === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-icons { display: flex; gap: 20px; align-items: center; }
.icon-item {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.icon-item:hover { color: var(--gold); }
.cart-container { position: relative; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid var(--white);
}

/* === HERO === */
.hero {
    background: linear-gradient(rgba(44, 44, 44, 0.3), rgba(44, 44, 44, 0.3)), url('https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; font-weight: 300; }

/* === PRODUCTOS === */
.section-title { text-align: center; font-size: 2rem; margin-bottom: 40px; color: var(--text-dark); position: relative; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--gold); margin: 15px auto 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-dark);
}
.card-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .card-image-container img { transform: scale(1.05); }
.card-info { padding: 20px; text-align: center; }
.card-info h3 { font-size: 1.1rem; margin: 10px 0; color: var(--text-dark); }
.price-box { margin-bottom: 15px; }
.price-current { color: var(--gold-dark); font-weight: 700; font-size: 1.2rem; }
.price-old { text-decoration: line-through; color: #999; font-size: 0.9rem; margin-right: 8px; }
.stock-label { display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 15px; }

/* === BOTONES === */
.btn-gold {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px; /* Bordes redondeados elegantes */
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(197, 168, 120, 0.3);
}
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
}
.btn-outline:hover { background: var(--primary); color: white; }

.action-buttons-premium {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* === MODALES PREMIUM === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 44, 44, 0.7); /* Fondo oscuro elegante */
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
}
.modal-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    width: 90%; max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    animation: slideUp 0.4s ease;
}
@keyframes slideUp { from {opacity:0; transform: translateY(20px);} to {opacity:1; transform: translateY(0);} }

.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.8rem; cursor: pointer; color: #999; transition: 0.3s; }
.close-btn:hover { color: var(--gold); }
.modal-icon { font-size: 3rem; color: var(--gold); margin-bottom: 20px; }

/* Inputs Login */
.input-group {
    position: relative; margin-bottom: 15px;
}
.input-group i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--primary);
}
.input-group input {
    width: 100%; padding: 12px 15px 12px 45px; /* Espacio para icono */
    border: 1px solid #eee; border-radius: var(--radius);
    background: #fafafa; outline: none; transition: 0.3s; font-family: 'Poppins', sans-serif;
    box-sizing: border-box; /* IMPORTANTE */
}
.input-group input:focus { border-color: var(--gold); background: white; }
.switch-text { margin-top: 20px; font-size: 0.9rem; color: var(--text-light); cursor: pointer; }
.switch-text span { color: var(--gold-dark); font-weight: 600; text-decoration: underline; }

/* Estilos Carrito/Checkout */
.cart-list-premium {
    max-height: 250px; overflow-y: auto; text-align: left; margin-bottom: 20px;
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.cart-item-premium {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid #fafafa;
}
.item-info h4 { margin: 0; font-size: 1rem; color: var(--text-dark); }
.item-info small { color: var(--text-light); }
.item-price { font-weight: 700; color: var(--gold-dark); }

.coupon-premium { display: flex; gap: 10px; margin-bottom: 20px; }
.coupon-premium input { flex: 1; padding: 10px; border: 1px solid #eee; border-radius: var(--radius); outline: none; }
.coupon-premium button { background: var(--text-dark); color: white; border: none; padding: 0 20px; border-radius: var(--radius); cursor: pointer; }

.total-row { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 20px; }
.final-total { font-weight: 700; color: var(--text-dark); font-size: 1.3rem; }

/* Paso 2 QR */
.qr-frame {
    border: 3px solid var(--gold); padding: 10px; border-radius: var(--radius);
    display: inline-block; margin: 20px 0; background: white;
}
.qr-img { width: 180px; height: 180px; }
.order-ref-box { background: var(--bg-light); padding: 10px; border-radius: 8px; margin-bottom: 20px; }
.order-ref-box strong { color: var(--gold-dark); font-size: 1.2rem; display: block; }
.btn-wpp-gold {
    display: block;
    background: linear-gradient(45deg, #25D366, #128C7E); /* Gradiente WhatsApp */
    color: white; text-decoration: none; padding: 12px; border-radius: 30px;
    margin-bottom: 10px; font-weight: 600; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
}
.btn-wpp-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); }
.btn-link { background: none; border: none; color: var(--text-light); cursor: pointer; text-decoration: underline; font-family: 'Poppins'; }
.back-link { position: absolute; top: 20px; left: 20px; text-decoration: none; display: flex; align-items: center; gap: 5px;}

/* Responsive */
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .hero h1 { font-size: 2rem; }
    .modal-box { width: 95%; padding: 30px 20px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
    .action-buttons-premium { flex-direction: column; gap: 5px; }
    .btn-outline { width: 100%; border-radius: 30px; height: auto; padding: 8px; }
}



/* --- LÍNEA DE TIEMPO ANIMADA envios segumiento --- */
.timeline {
    position: relative;
    padding: 20px 0 20px 20px;
    border-left: 3px solid #333; /* Línea base oscura */
    margin-left: 15px;
}

.timeline-step {
    position: relative;
    margin-bottom: 35px;
    padding-left: 30px;
}

/* El punto del paso (Círculo) */
.timeline-step .dot {
    position: absolute;
    left: -28px; /* Ajuste para centrar en la línea */
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #111;
    border: 3px solid #555;
    z-index: 2;
    transition: all 0.4s ease;
}

/* ESTADO: PASADO (Ya completado) */
.timeline-step.completed .dot {
    background: #d4af37; /* Dorado */
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.timeline-step.completed h4 { color: #d4af37; }

/* ESTADO: ACTUAL (Animación de latido) */
.timeline-step.current .dot {
    background: #d4af37;
    border-color: #fff;
    animation: pulse-gold 2s infinite;
}
.timeline-step.current h4 { 
    color: #fff; 
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}

/* ESTADO: FUTURO (Gris apagado) */
.timeline-step.future .dot {
    background: #000;
    border-color: #222;
}
.timeline-step.future h4 { color: #444; }
.timeline-step.future p { color: #333; }

/* Animación de Latido */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); transform: scale(1.1); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); transform: scale(1); }
}

/* Textos */
.timeline-step h4 { margin: 0 0 5px 0; font-size: 1.1rem; }
.timeline-step p { margin: 0; font-size: 0.9rem; color: #999; }




/* =========================================
   CORRECCIÓN FINAL: ESTILO BOUTIQUE (DEFINIDO Y LIMPIO)
   ========================================= */

@media (max-width: 768px) {
    
    /* 1. Rejilla: Espaciado equilibrado */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px; 
        padding: 10px;
    }

    .product-card {
        padding: 0 !important;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: white;
        overflow: hidden;
        /* CAMBIO: Sombra más marcada y borde sutil para definir la tarjeta */
        box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
        border: 1px solid #eaeaea; 
    }

    /* 2. IMAGEN: Fondo gris suave (evita huecos blancos si falta foto) */
    .card-image-container {
        width: 100%;
        height: 170px; /* Altura perfecta */
        margin: 0;
        background-color: #f4f4f4; /* GRIS SUAVE: Si no hay foto, se ve este cuadro elegante */
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .card-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Efecto de mezcla para que se integre mejor */
        mix-blend-mode: multiply; 
    }

    /* 3. INFO: Mejor jerarquía visual */
    .card-info {
        padding: 10px; 
        text-align: left;
    }

    .card-info h3 {
        font-size: 0.85rem;
        margin: 0 0 4px 0;
        line-height: 1.3;
        height: 2.6em; /* Altura fija para alineación perfecta */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        color: #222; /* Negro más intenso */
        font-weight: 600;
    }

    .price-box {
        margin: 4px 0;
    }
    
    .price-current {
        font-size: 1.1rem;
        color: #c5a878; 
        font-weight: 800; /* Precio más grueso */
    }

    .stock-label {
        font-size: 0.65rem;
        margin-bottom: 8px;
        color: #28a745;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    /* 4. BOTONES: Más contraste y nitidez */
    .action-buttons-premium {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px;
        padding: 0 10px 12px 10px; /* Espacio alrededor */
        width: 100%;
        box-sizing: border-box;
        margin-top: auto;
    }

    /* Botón Comprar */
    .btn-gold {
        flex: 1;
        padding: 0; /* Quitamos padding vertical, usamos height y flex */
        height: 38px; /* Altura fija igual al otro botón */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase; /* Letras mayúsculas se ven más PRO */
        border-radius: 6px;
        margin: 0 !important;
        width: auto !important;
        background: #c5a878; /* Color sólido para mejor lectura */
        box-shadow: none; /* Quitamos sombra para que se vea plano y limpio */
    }

    /* Botón Carrito */
    .btn-outline {
        width: 38px !important; /* Mismo tamaño que la altura del botón comprar */
        height: 38px !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px !important;
        margin: 0 !important;
        background: #fff;
        border: 1px solid #c5a878;
        color: #c5a878;
    }
    
    /* Ajustes generales */
    .hide-mobile { display: none; }
    .hero h1 { font-size: 1.8rem; }
    .hero-slider.neon-mode { height: 350px; }
}



/* =========================================
   ARREGLO BOTÓN CERRAR SESIÓN
   ========================================= */

.btn-logout {
    width: 100% !important;        /* Ocupar todo el ancho */
    height: auto !important;       /* Altura automática (no cuadrada) */
    padding: 12px !important;      /* Relleno cómodo */
    background: transparent;
    border: 1px solid #ff4d4d;     /* Borde Rojo */
    color: #ff4d4d;                /* Texto Rojo */
    border-radius: 8px !important; /* Bordes suaves */
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;                     /* Espacio entre icono y texto */
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #ff4d4d;
    color: white;
}









/* =========================================
   FOOTER (PIE DE PÁGINA)
   ========================================= */
.site-footer {
    background-color: #0a0a0a; /* Fondo casi negro */
    color: #888;
    padding: 30px 20px 80px 20px; /* Padding extra abajo para móviles */
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 50px;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4af37; /* Dorado al pasar mouse */
    text-decoration: underline;
}

.separator { color: #444; }

/* Botón de Contacto (Círculo o Píldora) */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: #d4af37;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid #333;
    font-size: 0.9rem;
    transition: 0.3s;
    margin-top: 10px;
}

.contact-btn:hover {
    border-color: #d4af37;
    background: #d4af37;
    color: #000;
}
