/* --- Variables y Reset --- */
:root {
    --brand-yellow: #f4c30e; 
    --brand-red: #f4231e;    
    --brand-blue: #0155ae;
    /* Variables nuevas añadidas para corregir errores de renderizado */
    --brand-pink: #ff7b89; 
    --brand-pink-hover: #ff5c6d;
    --text-dark: #111111;    
    --text-muted: #555555;
    --text-light: #888888;   
    --bg-white: #ffffff;
    --bg-warm: #fffdf8;
    --wa-green: #25D366;
    --bg-gray: #F8F9FA;
    --border-light: #eeeeee;
    --border-color: #dddddd;
    --primary: #1950B5;
    --white: #FFFFFF;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; 
}

.container {
    width: 90%;
    padding: 0 20px;
    margin: 0 auto;
}

/* Tablets y Laptops pequeñas */
@media (min-width: 768px) {
    .container {
        width: 90%;
        padding: 0;
    }
}

/* Monitores grandes (La regla estilo Sally Beauty) */
@media (min-width: 1366px) {
    .container {
        width: 80%;
        max-width: 1800px; 
    }
}

/* --- Cintillo y Header Sticky --- */
.top-promo {
    background-color: #000;
    color: var(--bg-white);
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.header-sticky {
    top: 0;
    background-color: var(--bg-white);
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

header, .header-sticky {
    position: relative;
    background-color: var(--bg-white);
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* --- Estilos para la imagen del Logo --- */
.logo-img {
    height: 100px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo h1 { 
    font-weight: 800; 
    font-size: 1.8rem; 
    letter-spacing: -1px; 
}

.search-box {
    display: flex;
    flex: 0 1 500px;
    border: 1px solid var(--text-dark);
    border-radius: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-family: 'Open Sans', sans-serif;
}

.search-box button {
    background-color: var(--bg-white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.1rem;
}

.header-icons { 
    display: flex; 
    gap: 20px; 
    font-size: 1.4rem; 
}

.header-icons a { 
    color: var(--text-dark); 
    text-decoration: none; 
}

.nav-menu {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 0;
}

.nav-menu .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; 
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700; 
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* OFERTAS resalta en rojo */
.nav-menu .container > a:nth-child(4) {
    color: var(--brand-red);
}

/* Efecto Hover (La línea animada) */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -2px;
    left: 0;
    background-color: var(--brand-yellow); 
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--brand-blue);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* --- Submenú para Computadora (Flotante y animado) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    visibility: hidden;
    opacity: 0; 
    position: absolute;
    background-color: var(--bg-white);
    min-width: 230px;
    box-shadow: 0px 10px 25px rgba(0,0,0,0.1); 
    border-radius: 8px;
    border: 1px solid var(--border-light);
    z-index: 100; 
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    overflow: hidden;
    transition: all 0.3s ease-out;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-warm);
    color: var(--brand-blue);
}

.dropdown .dropbtn::after {
    display: none; 
}

/* Botón Hamburguesa oculto en PC */
.btn-hamburguesa {
    display: none;
    background: none;
    border: none;
    font-size: 2rem; 
    color: var(--brand-blue);
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    text-align: left;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

/* =========================================
   2. ESTILOS SOLO PARA CELULARES
========================================== */
@media (max-width: 768px) {
    .btn-hamburguesa {
        display: block; 
    }

   .nav-menu {
        display: none; 
        width: 100%;
        background-color: var(--bg-white);
        border-bottom: 2px solid var(--brand-yellow); 
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 999;
        box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    }

    .nav-menu.activo {
        display: block; 
    }

    .nav-menu .container {
        display: flex;
        flex-direction: column;
        align-items: stretch; 
        gap: 0; 
        padding: 0;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-light);
        font-size: 1rem;
        display: block;
    }

    /* --- Submenú para Celular (Modo Acordeón Estático) --- */
    .dropdown-content {
        position: static; 
        transform: none !important;  
        left: 0 !important;
        width: 100%;
        box-sizing: border-box; 
        box-shadow: none;
        border: none;
        border-radius: 0;
        background-color: var(--bg-warm);
        display: none !important; 
        visibility: visible !important;
        opacity: 1 !important;
        transition: none; 
    }

    .dropdown:hover .dropdown-content {
        display: none !important; 
    }

    .dropdown .dropdown-content.abierto,
    .dropdown:hover .dropdown-content.abierto {
        display: block !important;
    }
}

/* --- Sección Productos Top --- */
.productos-top { 
    padding: 60px 0; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
}

.section-title h2 {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 800;
    border-bottom: 3px solid var(--brand-pink);
    padding-bottom: 5px;
}

/* --- Carrusel Estilos --- */
.carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 10px;
    z-index: 10;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 25%;
    padding: 0 15px;
    display: flex;
}

/* --- Tarjetas de Producto --- */
.product-card {
    position: relative;
    text-align: center;
    background: var(--bg-white);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.product-card:hover { 
    transform: translateY(-5px); 
}

.fav-btn {
    position: absolute;
    top: 10px; 
    right: 10px;
    background: none; 
    border: none;
    font-size: 1.2rem; 
    color: var(--brand-red);
    cursor: pointer;
}

.badge-viral { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: #FF9900; 
    color: white; 
    padding: 3px 8px; 
    font-weight: bold; 
    font-size: 0.7rem; 
    border-radius: 3px; 
}

.badge-seller { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: #E91E63; 
    color: white; 
    padding: 3px 8px; 
    font-weight: bold; 
    font-size: 0.7rem; 
    border-radius: 3px; 
    clip-path: polygon(0% 15%, 15% 15%, 15% 0%, 85% 0%, 85% 15%, 100% 15%, 100% 85%, 85% 85%, 85% 100%, 15% 100%, 15% 85%, 0% 85%);
}

.product-card img { 
    width: 100%; 
    height: 250px; 
    object-fit: contain; 
    margin-bottom: 15px; 
    flex-shrink: 0;
}

.product-title { 
    font-family: 'Open Sans', sans-serif; 
    font-size: 0.95rem; 
    font-weight: 600; 
    margin-bottom: 5px; 
    height: 40px; 
    overflow: hidden; 
    color: var(--text-dark);
}

.product-brand { 
    font-size: 0.85rem; 
    color: var(--text-light); 
    margin-bottom: 5px; 
}

.rating { 
    color: var(--text-dark); 
    font-size: 0.8rem; 
    margin-bottom: 10px; 
}

.product-price { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin-bottom: 10px;
    min-height: 45px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--brand-blue);
}

.msi { 
    display: block; 
    font-size: 0.75rem; 
    color: var(--text-light); 
    font-weight: 400; 
}

.shipping-info { 
    font-size: 0.8rem; 
    color: var(--text-light); 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 5px;
    margin-top: auto;
}

.btn-add {
    width: 100%;
    background-color: var(--brand-red);
    color: var(--bg-white);
    border: none;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-add:hover { 
    background-color: #d81c17;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 35, 30, 0.3);
}

.badge-oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--brand-yellow);
    color: var(--text-dark);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Footer --- */
.site-footer { 
    background-color: var(--bg-gray); 
    padding: 50px 0 20px; 
    margin-top: 60px; 
    border-top: 1px solid var(--border-color); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    margin-bottom: 40px; 
}

.footer-col h4 { 
    font-size: 1rem; 
    margin-bottom: 20px; 
    font-weight: 800; 
}

.footer-col ul { 
    list-style: none; 
}

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

.footer-col ul a { 
    color: var(--text-light); 
    text-decoration: none; 
    font-size: 0.9rem; 
}

.footer-col ul a:hover { 
    color: var(--brand-pink); 
    text-decoration: underline; 
}

.payment-icons { 
    font-size: 2rem; 
    color: var(--text-light); 
    display: flex; 
    gap: 10px; 
}

.social-icons a {
    display: inline-flex; 
    justify-content: center; 
    align-items: center;
    width: 40px; 
    height: 40px; 
    border-radius: 50%;
    background-color: var(--text-dark); 
    color: var(--bg-white);
    text-decoration: none; 
    font-size: 1.2rem; 
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover { 
    background-color: var(--brand-pink); 
}

.footer-bottom { 
    text-align: center; 
    border-top: 1px solid var(--border-color); 
    padding-top: 20px; 
    color: var(--text-light); 
    font-size: 0.85rem; 
}

/* --- WhatsApp Flotante --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--wa-green);
    color: var(--bg-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float:hover { 
    transform: scale(1.1); 
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .header-main { 
        flex-wrap: wrap; 
        gap: 15px; 
    }
    .search-box { 
        order: 3; 
        flex: 1 1 100%; 
    }
    .nav-menu .container { 
        overflow-x: auto; 
        justify-content: flex-start; 
    }
    .carousel-slide { 
        min-width: 50%; 
    }
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .carousel-slide { 
        min-width: 100%; 
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    .social-icons a { 
        margin: 0 5px; 
    }
    .payment-icons { 
        justify-content: center; 
    }
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #cbd7e4 100%);
    color: var(--bg-white);
    padding: 80px 20px 100px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 50px 50px; 
    margin-bottom: 50px;
    box-shadow: 0 15px 30px rgba(1, 85, 174, 0.2);
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 700px;
    padding-left: 5%;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-text h2 { 
    font-size: 1.2rem; 
    margin-bottom: 10px; 
    letter-spacing: 2px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #e0f0ff; 
    line-height: 1.6;
}

.hero-image { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    position: relative;
}

/* --- Botón del Hero --- */
.btn-hero {
    background-color: var(--brand-yellow);
    color: var(--text-dark); 
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    border-radius: 50px; 
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    background-color: #ffd833; 
    box-shadow: 0 10px 25px rgba(244, 195, 14, 0.4); 
}

/* Imagen de la Bolsita */
.bolsita-vibra { 
    width: 280px;
    max-width: 90%;
    height: auto;
    object-fit: contain;
    animation: vibrarOcasional 6s linear infinite; 
    background: transparent;
    border: none;
    box-shadow: none;
}

/* --- Ajuste Responsivo para Celulares --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px 60px 20px;
        border-radius: 0 0 30px 30px;
    }
    
    .hero-text {
        padding-left: 0;
        margin-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .bolsita-vibra {
        width: 220px; 
    }
}

@media (max-width: 440px) {
    .hero-image {
        position: absolute;
        top: 25px;
        max-width: 40%;
        left: 25%;
    }
    .hero-text {
        padding-top: 200px;
    }
    .bolsita-vibra {
        max-width: none;
        width: 180px;
    }
}

/* --- Animaciones de la Bolsita Hero --- */
.bolsita-flotante { 
    animation: flotar 3s ease-in-out infinite; 
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes vibrarOcasional {
    0%, 85%, 100% { transform: translate(0, 0) rotate(0deg); }
    86% { transform: translate(-3px, 2px) rotate(-4deg); }
    88% { transform: translate(3px, -2px) rotate(4deg); }
    90% { transform: translate(-3px, -2px) rotate(-4deg); }
    92% { transform: translate(3px, 2px) rotate(4deg); }
    94% { transform: translate(-2px, 1px) rotate(-2deg); }
}

/* --- Botones Genéricos --- */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(25, 80, 181, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 80, 181, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
    flex: 1;
}

/* --- Beneficios --- */
.benefits { 
    padding: 30px 0; 
    background-color: var(--white); 
    margin-bottom: 40px; 
}

.benefits-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.benefit-item i { 
    font-size: 2rem; 
    color: var(--primary); 
}

.benefit-item h4 { 
    font-size: 1rem; 
}

.benefit-item p { 
    font-size: 0.85rem; 
    color: var(--text-light); 
}

@media (max-width: 768px) {
    .header-container { 
        flex-direction: column; 
        height: auto; 
        padding: 15px; 
        gap: 15px; 
    }
    .nav-links { 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .benefits-grid { 
        flex-direction: column; 
    }
    .product-detail { 
        grid-template-columns: 1fr; 
    }
}

/* ==========================================
   CATEGORÍAS CIRCULARES (Rediseño 190px)
========================================== */
.categorias-circulares {
    padding: 60px 20px 20px 20px;
}

.categorias-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.categorias-track-wrapper {
    overflow: hidden; 
    width: 100%;
    min-width: 0; 
    padding: 10px 0;
}

.categorias-track {
    display: flex;
    gap: 15px; 
    transition: transform 0.4s ease-in-out;
    /* CAMBIO CLAVE: Cambiamos max-content por 100% para que las matemáticas del calc() funcionen de forma exacta */
    width: 100%; 
}

/* Unificación de la tarjeta (Slide) */
.cat-item {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    
    /* Con flex-shrink: 0 obligamos a los círculos a mantener su tamaño y desbordarse hacia la derecha correctamente */
    flex: 0 0 calc((100% - (4 * 15px)) / 5);
    width: calc((100% - (4 * 15px)) / 5);
    transition: transform 0.3s ease;
}

/* El círculo: Se mantiene impecable en un tope de 190px */
.cat-img-wrapper {
    width: 100%;         
    max-width: 190px;    
    aspect-ratio: 1 / 1; 
    height: auto;        
    
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    background-color: var(--bg-gray);
    margin: 0 auto;
}

.cat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

/* Efectos Hover */
.cat-item:hover {
    transform: translateY(-5px); 
}

.cat-item:hover .cat-img-wrapper {
    border-color: var(--brand-pink); 
    box-shadow: 0 8px 20px rgba(255, 123, 137, 0.3); 
}

.cat-item:hover .cat-img-wrapper img {
    transform: scale(1.15); 
}

.cat-item span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem; /* Aumenté un poquito la letra para balancear los 190px */
    text-align: center;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.cat-item:hover span {
    color: var(--brand-pink);
}

/* Tablets (menos de 992px): Caben 4 */
@media (max-width: 992px) {
    .cat-item {
        flex: 0 0 calc((100% - (3 * 15px)) / 4);
        width: calc((100% - (3 * 15px)) / 4);
    }
}

/* Celulares (menos de 768px): Caben 2 */
@media (max-width: 768px) {
    .cat-item {
        flex: 0 0 calc((100% - (1 * 15px)) / 2);
        width: calc((100% - (1 * 15px)) / 2);
    }
    .cat-nav-btn {
        display: none !important;
    }
}
/* --- BOTONES DE NAVEGACIÓN --- */
.cat-nav-btn {
    position: absolute;
    top: 35%; /* Subido un poco para que quede al centro exacto del nuevo círculo */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.cat-nav-btn:hover {
    background: var(--brand-blue); /* Puedes cambiarlo a --brand-pink si prefieres */
    color: white;
    border-color: var(--brand-blue);
}

.cat-prev { left: -15px; }
.cat-next { right: -15px; }

/* --- Responsive para Categorías (Celulares) --- */
@media (max-width: 768px) {
    .categorias-grid {
        justify-content: flex-start;
        flex-wrap: nowrap; 
        overflow-x: auto; 
        padding-bottom: 20px;
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch;
    }
    
    .categorias-grid::-webkit-scrollbar {
        display: none; 
    }
    
    .cat-item {
        scroll-snap-align: start;
        flex: 0 0 auto;
        width: 110px; 
    }
    
    .cat-img-wrapper {
        width: 110px;
        height: 110px;
    }
}

/* --- Sección Regalo de Bienvenida --- */
.newsletter-gift {
    margin: 60px auto;
}

.gift-banner {
    display: flex;
    background: linear-gradient(135deg, #b8bfff 0%, #e1f3ff 100%); 
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 123, 137, 0.15); 
}

.gift-content {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gift-tag {
    display: inline-block;
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    width: max-content;
    letter-spacing: 1px;
}

.gift-tag i {
    margin-right: 5px;
    color: var(--brand-pink);
}

.gift-content h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.gift-content p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 25px;
    max-width: 90%;
    line-height: 1.6;
}

.gift-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; 
}

.gift-form .form-group {
    flex: 1;
    min-width: 180px; 
}

.gift-form input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.gift-form input:focus {
    border-color: var(--brand-pink);
    box-shadow: 0 0 0 3px rgba(255, 123, 137, 0.1); 
}

.btn-gift {
    background-color: var(--primary);
    color: var(--bg-white);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap; 
}

.btn-gift:hover {
    background-color: var(--brand-pink-hover);
    transform: translateY(-2px); 
}

.terms-text {
    font-size: 0.75rem !important;
    margin-top: 15px;
    margin-bottom: 0 !important;
    color: #999 !important;
}

.gift-image {
    flex: 1;
    min-width: 300px;
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* --- Responsive para la sección de Regalo --- */
@media (max-width: 900px) {
    .gift-banner {
        flex-direction: column-reverse; 
    }
    .gift-image {
        height: 250px;
    }
    .gift-content {
        padding: 40px 30px;
    }
}

@media (max-width: 600px) {
    .gift-form {
        flex-direction: column; 
    }
    .btn-gift {
        width: 100%; 
    }
    .gift-content h2 {
        font-size: 1.8rem;
    }
}
/* =========================================
   ESTILOS DE LA PÁGINA DE PRODUCTO
========================================== */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb a { color: var(--brand-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

.producto-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Columna izquierda más grande */
    gap: 40px;
    margin-bottom: 50px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* --- Galería Izquierda --- */
.producto-media { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    min-width: 0; /* Asegura que el flexbox respete el límite de la columna */
    max-width: 100%;
}
@media (max-width: 900px) {
    .producto-grid { 
        /* En celulares, 1 sola columna que tampoco se deje estirar por el contenido */
        grid-template-columns: minmax(0, 1fr); 
        padding: 20px; 
    }
    .main-media-container { height: 400px; }
    .producto-descripcion { padding: 20px; }
    .lightbox-content { height: 50vh; }
}
.main-media-container {
    width: 100%;
    height: 500px;
    background-color: var(--bg-gray);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-media-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.main-media-container:hover img { transform: scale(1.03); }
.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.8);
    padding: 10px;
    border-radius: 50%;
    color: var(--text-dark);
}

.thumbnail-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
    /* Evita que los elementos se encojan bajo ninguna circunstancia */
    flex-wrap: nowrap; 
    width: max-content; 
}
.thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s;
    position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--brand-blue); opacity: 1; }
.video-thumb i {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 8px 12px;
    border-radius: 50%;
    z-index: 2;
}

/* --- Info Derecha --- */
.producto-estado { font-size: 0.85rem; color: var(--text-light); }
.producto-titulo { font-size: 1.8rem; font-weight: 700; margin: 10px 0; line-height: 1.2; }
.producto-rating { display: flex; gap: 5px; color: var(--brand-yellow); align-items: center; font-size: 0.9rem; margin-bottom: 20px;}
.producto-rating span { color: var(--text-light); margin-left: 5px; }

.producto-precio-box { display: flex; align-items: baseline; gap: 15px; margin-bottom: 5px; }
.precio-original { text-decoration: line-through; color: var(--text-light); font-size: 1.2rem; }
.precio-actual { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); }
.descuento-badge { color: #00a650; font-weight: 700; font-size: 1.2rem; }
.msi-info { color: #00a650; margin-bottom: 25px; font-size: 1rem; }

.producto-variantes { margin-bottom: 25px; }
.variantes-opciones { display: flex; gap: 10px; margin-top: 10px; }
.var-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.var-btn.activo { border: 2px solid var(--brand-blue); outline: 2px solid white; outline-offset: -4px;}

.stock-info { font-size: 1rem; margin-bottom: 15px; }
.cantidad-selector { margin-bottom: 20px; font-weight: 600; }
.cantidad-selector select { padding: 8px; border-radius: 4px; margin-left: 10px; border: 1px solid var(--border-color); font-family: inherit;}

.producto-acciones { display: flex; flex-direction: column; gap: 10px; margin-bottom: 30px; }
.btn-comprar-ahora { background: var(--brand-blue); color: white; padding: 18px; font-size: 1.1rem; }
.btn-comprar-ahora:hover { background: #12408c; }
.btn-add-carrito { background: rgba(1, 85, 174, 0.1); color: var(--brand-blue); padding: 18px; font-size: 1.1rem; }
.btn-add-carrito:hover { background: rgba(1, 85, 174, 0.2); }

/* --- Garantías --- */
.producto-garantias { display: flex; flex-direction: column; gap: 15px; padding-top: 25px; border-top: 1px solid var(--border-light); }
.garantia-item { display: flex; gap: 15px; align-items: flex-start; }
.garantia-item i { font-size: 1.2rem; color: var(--text-muted); margin-top: 3px; }
.garantia-item p { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.garantia-item a { color: var(--brand-blue); text-decoration: none; font-weight: 600; }
.garantia-item a:hover { text-decoration: underline; }

/* --- Descripción --- */
.producto-descripcion { background: var(--bg-white); padding: 40px; border-radius: 12px; margin-bottom: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); font-family: 'Open Sans', sans-serif;}
.producto-descripcion h2 { border-bottom: 2px solid var(--border-light); padding-bottom: 15px; margin-bottom: 20px; font-size: 1.5rem; }
.producto-descripcion p { line-height: 1.8; margin-bottom: 15px; color: var(--text-muted); font-family: 'Open Sans', sans-serif !important}
.producto-descripcion ul { margin-left: 20px; color: var(--text-muted); line-height: 1.8; }

/* --- Lightbox (Modal de Fotos) --- */
.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 9999;
    display: none; flex-direction: column; justify-content: center; align-items: center;
}
.lightbox.activo { display: flex; }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }
.lightbox-content { display: flex; align-items: center; gap: 30px; max-width: 90%; height: 70vh; }
.lightbox-btn { background: none; border: none; color: white; font-size: 3rem; cursor: pointer; opacity: 0.7; transition: 0.3s; }
.lightbox-btn:hover { opacity: 1; }
.lightbox-media-container { height: 100%; display: flex; justify-content: center; align-items: center; }
.lightbox-media-container img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox-thumbnails { display: flex; gap: 10px; margin-top: 20px; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .producto-grid { grid-template-columns: 1fr; padding: 20px; }
    .main-media-container { height: 400px; }
    .producto-descripcion { padding: 20px; }
    .lightbox-content { height: 50vh; }
}
@media (max-width: 600px) {
    .producto-titulo { font-size: 1.4rem; }
    .precio-actual { font-size: 2rem; }
    .main-media-container { height: 300px; }
    .lightbox-btn { font-size: 2rem; }
}
/* --- Mini Carrusel de Miniaturas --- */
.thumbnail-carousel-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    max-width: 100%; /* Muy importante para que no se salga de la cuadrícula */
}

.thumbnail-track-wrapper {
    overflow: hidden; 
    flex: 1; 
    width: 100%;
    min-width: 0; /* ¡ESTA ES LA MAGIA QUE OCULTA LAS FOTOS EXTRA! */
}

.thumbnail-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
}

.thumb {
    flex: 0 0 80px; /* ¡ESTO EVITA QUE SE APACHURREN LAS 12 FOTOS! */
    height: 80px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s;
}

.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { border-color: var(--brand-blue); opacity: 1; }

.thumb-nav-btn {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}
.thumb-nav-btn:hover { background: var(--brand-blue); color: white; border-color: var(--brand-blue); }
/* ==========================================
   FLECHAS DE LA IMAGEN PRINCIPAL Y ZOOM
========================================== */
.main-media-container {
    position: relative; 
    overflow: hidden; /* Crucial para que el zoom no se salga de la caja */
}

/* Efecto Lupa (Zoom) */
.main-media-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease; /* Transición súper suave */
}

.main-media-container img:hover {
    transform: scale(1.3); 
    cursor: zoom-in;
}

/* Diseño de las nuevas flechas */
.main-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-nav-btn:hover {
    background: var(--brand-blue);
    color: var(--bg-white);
}

.main-prev { left: 15px; }
.main-next { right: 15px; }
/* ==========================================
   MINIATURAS DENTRO DEL LIGHTBOX (MODAL)
========================================== */
.lightbox-thumbnails-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    width: 90%;
    max-width: 600px; /* Limita el ancho para que no se estire de más en monitores grandes */
    z-index: 10001; /* Asegura que esté por encima del fondo oscuro */
}

.lightbox-thumbnails-wrapper {
    overflow: hidden;
    flex: 1;
    width: 100%;
    min-width: 0; /* Previene que Flexbox rompa el límite */
}

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
    flex-wrap: nowrap;
    width: max-content; /* Se adapta a la suma de todas las fotos */
}

/* Evita que los clics en los botones de miniaturas cierren el modal por accidente */
.lb-thumb-prev, .lb-thumb-next {
    position: relative;
    z-index: 10002;
}
/* ==========================================
   BREADCRUMBS (Migas de Pan)
========================================== */
.breadcrumb-container {
    padding: 30px 15px 20px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    margin-top: 20px;
    margin-bottom: 40px;
}

.breadcrumb-link {
    color: var(--brand-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--brand-blue);
}

.breadcrumb-separator {
    margin: 0 12px;
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 700;
}
/* Ficha de Detalle de Producto - Promociones */
.precio-original-tachado {
    text-decoration: line-through;
    color: #aaa;
    font-size: 1.2rem;
    margin-right: 15px;
}

.precio-actual-descuento {
    color: #d0021b;
    font-weight: bold;
    font-size: 2rem;
}

.badge-descuento-ficha {
    background: #d0021b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 15px;
    vertical-align: middle;
    display: inline-block;
}
/* ==========================================
   FORMULARIOS DE ACCESO (Login / Registro)
========================================== */
.auth-container {
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px;
    border: 1px solid #eee;
}

.auth-card.card-login {
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-title {
    color: var(--brand-blue);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Campos del formulario */
.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group.last-group {
    margin-bottom: 25px;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.auth-grid-2.last-group {
    margin-bottom: 25px;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(1, 85, 174, 0.1);
}

.auth-link {
    color: var(--brand-pink);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Botón de envío */
.btn-auth-submit {
    width: 100%;
    background: var(--brand-blue);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-auth-submit:hover {
    background: #01438a;
}

/* Divisores y Google Button */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.auth-divider-line {
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.auth-divider-text {
    padding: 0 15px;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: bold;
}

.auth-google-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Checkbox términos */
.auth-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.auth-checkbox {
    margin-top: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.auth-checkbox-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1.4;
}

/* Pie de tarjeta */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}
/* ==========================================
   BOTÓN DE FAVORITOS (CORAZÓN)
========================================== */
.fav-btn i {
    transition: color 0.3s ease, transform 0.2s ease;
    color: #ccc; /* Color gris por defecto del corazón apagado */
}

.fav-btn:hover i {
    color: #ff7aa2; /* Un rosita/rojo claro al pasar el mouse */
    transform: scale(1.1);
}

/* Esta es la clase que JS agregará cuando le den clic */
.fav-btn.active i {
    color: #d0021b !important; /* Rojo intenso */
    transform: scale(1.1);
}
/* ==========================================
   PÁGINA DE CONTACTO
========================================== */
.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

/* Columna de información más limpia y clara */
.contacto-info {
    background: #f8f9fc; /* Un fondo gris muy suave y elegante */
    color: var(--text-dark);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #eee;
}

.contacto-info h2 {
    color: var(--brand-blue);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.contacto-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--brand-blue); /* Íconos en azul corporativo */
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

/* Enlaces funcionales en la zona de contacto */
.info-item a, .info-item span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--brand-pink);
}

/* Redes sociales */
.contacto-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: color 0.3s;
    text-decoration: none;
}

.contacto-social a:hover {
    color: var(--brand-pink);
}

/* Asterisco de campo obligatorio */
.campo-obligatorio {
    color: #d0021b;
    font-weight: bold;
    margin-left: 3px;
}

.contacto-form-container {
    padding: 50px 40px;
}

.contacto-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.contacto-textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(1, 85, 174, 0.1);
}

@media (max-width: 768px) {
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }
    .contacto-info {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .contacto-info, .contacto-form-container {
        padding: 30px 20px;
    }
}
/* ==========================================
   INPUTS DE CONTRASEÑA CON OJITO VISUALIZADOR
========================================== */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Forzamos que el input deje espacio a la derecha para que el texto no tape el ícono */
.auth-input-wrapper .auth-input {
    padding-right: 45px;
}

/* Estilo para el botón del ojo */
.btn-toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    padding: 0;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-toggle-password:hover {
    color: var(--brand-blue);
}
/* ==========================================
   MENÚ DESPLEGABLE DE USUARIO (HEADER)
========================================== */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.user-menu-trigger:hover {
    color: var(--brand-blue);
}

.user-menu-trigger i.fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

/* El cuadro flotante del menú (Escritorio y Móvil) */
.user-dropdown {
    position: absolute;
    top: 150%; /* Oculto un poco más abajo para el efecto de entrada */
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Efecto hover (escritorio) y clase active (móvil/clic) para mostrar el menú */
.user-menu-wrapper.active .user-dropdown {
    top: 100%;
    opacity: 1;
    visibility: visible;
}

.user-menu-wrapper.active .user-menu-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}

/* 2. Comportamiento por HOVER (Exclusivo para computadoras con ratón) */
@media (hover: hover) and (pointer: fine) {
    .user-menu-wrapper:hover .user-dropdown {
        top: 100%;
        opacity: 1;
        visibility: visible;
    }
    
    .user-menu-wrapper:hover .user-menu-trigger i.fa-chevron-down {
        transform: rotate(180deg);
    }
}

/* Info del usuario dentro del menú */
.user-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fc;
    border-radius: 8px 8px 0 0;
}

.user-dropdown-name {
    font-weight: bold;
    color: var(--brand-blue);
    font-size: 1rem;
    margin-bottom: 2px;
}

.user-dropdown-email {
    font-size: 0.8rem;
    color: #888;
    word-break: break-all;
}

/* Enlaces del menú */
.user-dropdown-links {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.user-dropdown-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.user-dropdown-links li a:hover {
    background: #f8f9fc;
    color: var(--brand-pink);
}

.user-dropdown-links li a i {
    font-size: 1.1rem;
    color: #ccc;
    transition: color 0.2s;
}

.user-dropdown-links li a:hover i {
    color: var(--brand-pink);
}
/* ==========================================
   MI PERFIL (DISEÑO TARJETAS TIPO ML)
========================================== */
.perfil-wrapper {
    background-color: #ebebeb; /* Fondo gris claro */
    padding: 40px 0 80px 0;
    min-height: 70vh;
}

.perfil-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.perfil-avatar {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.perfil-greeting h1 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.perfil-greeting p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.perfil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.perfil-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    text-decoration: none;
    color: var(--text-dark);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: block;
    border: 1px solid transparent;
}

.perfil-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #eee;
}

.perfil-card-icon {
    font-size: 1.6rem;
    color: var(--brand-blue); /* Tus iconos en azul */
    margin-bottom: 15px;
}

.perfil-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.perfil-card-desc {
    font-size: 0.9rem;
    color: #888;
}
/* ========================================== */
/* CARRITO DE COMPRAS (Estilo Mercado Libre)  */
/* ========================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px; /* Columna izquierda flexible, derecha fija */
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; } /* En celular se apilan */
}

/* Cajas blancas con sombra (estilo ML) */
.cart-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.cart-header-select {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Fila de cada producto */
.cart-item {
    display: grid;
    grid-template-columns: auto 80px 1fr auto; /* Checkbox | Foto | Info | Precio */
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: start;
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }

.cart-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0155ae; /* Tu azul corporativo */
    margin-top: 5px;
}

.cart-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px;
}

.cart-details h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
    font-weight: normal;
}

/* Controles de cantidad y eliminar */
.cart-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.qty-btn {
    background: #fff;
    border: none;
    padding: 5px 12px;
    font-size: 1.2rem;
    color: #0155ae;
    cursor: pointer;
}
.qty-btn:hover { background: #f0f0f0; }
.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 1rem;
    padding: 5px 0;
}
.btn-delete {
    background: none;
    border: none;
    color: #0155ae;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.cart-price {
    font-size: 1.3rem;
    font-weight: 300; /* Letra delgada y grande como en ML */
}

/* Resumen de compra (Ticket derecho) */
.summary-box {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.summary-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}