/* =========================================
   1. CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-black: #000000;
    --apple-dark: #1d1d1f;
    --brand-orange: #ff5a00;
    --brand-orange-hover: #e04f00;
    --bg-light-gray: #f5f5f7;
    --border-color: #e5e5e7;
    --text-muted: #6e6e73;
    --sale-red: #d9381e;
    --shadow-card: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.1);
}

body {
    background-color: #ffffff;
    color: var(--apple-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. TOP BAR & NAVBAR (Menú)
   ========================================= */
.announcement-bar {
    background-color: var(--primary-black);
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a {
    font-size: 20px;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.country-tag {
    font-size: 11px;
    background-color: var(--bg-light-gray);
    padding: 2px 6px;
    border-radius: 4px;
    color: #555;
}

.desktop-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.desktop-menu a {
    text-decoration: none;
    color: var(--apple-dark);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.desktop-menu a:hover, .desktop-menu a.active {
    color: var(--brand-orange);
}

.nav-icons {
    display: flex;
    gap: 20px;
    font-size: 20px;
}

.nav-icon-item { cursor: pointer; color: var(--apple-dark); transition: color 0.2s; text-decoration: none; }
.nav-icon-item:hover { color: var(--brand-orange); }

.cart-item { position: relative; }
.cart-count {
    position: absolute;
    top: -6px; right: -10px;
    background-color: var(--brand-orange);
    color: #fff;
    font-size: 9px; font-weight: bold;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* =========================================
   3. HERO BANNER PRINCIPAL
   ========================================= */
.hero {
    background-color: var(--bg-light-gray);
    padding: 60px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    text-align: left;
}

.hero .subtitle {
    color: var(--brand-orange);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 450px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    display: block;
    margin: 0 auto;
}

/* =========================================
   4. BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary { background-color: var(--brand-orange); color: #ffffff; }
.btn-primary:hover { background-color: var(--brand-orange-hover); transform: scale(1.02); }

.btn-outline { background-color: transparent; color: var(--primary-black); border: 1px solid var(--primary-black); }
.btn-outline:hover { background-color: var(--primary-black); color: #ffffff; }

.btn-block { display: block; width: 100%; text-align: center; }

/* =========================================
   5. SECCIÓN CATEGORÍAS
   ========================================= */
.categories-section { padding: 60px 0 20px; }

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 35px;
    letter-spacing: -0.5px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    text-decoration: none;
    color: var(--apple-dark);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: var(--shadow-card);
}

.category-card:hover { box-shadow: var(--shadow-card-hover); border-color: #dcdcdc; }
.category-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.category-card p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

#cases-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
#cases-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--brand-orange), var(--shadow-card-hover); border-color: var(--brand-orange); }
#cases-card h4 { margin-bottom: 8px; }
#cases-card p { color: var(--apple-dark); }

/* =========================================
   6. PRODUCTOS (Tarjetas Premium con Efectos)
   ========================================= */
.products-section { padding: 50px 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title-left { font-size: 24px; font-weight: 700; }
.view-all { font-size: 14px; color: var(--brand-orange); text-decoration: none; font-weight: 600; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0; 
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
    border-color: var(--brand-orange);
}

.product-badges {
    position: absolute;
    top: 15px; left: 15px;
    display: flex; flex-direction: column; gap: 5px;
    z-index: 10;
}

.badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.badge.condition { background-color: #eef2ff; color: #4f46e5; }
.badge.save { background-color: #fef2f2; color: var(--sale-red); }

.product-image {
    overflow: hidden;
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-card:hover .product-image img { transform: scale(1.15); }

.product-info { padding: 20px; }
.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s;
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card:hover h3 { color: var(--brand-orange); }

.pricing { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.price-sale { font-size: 19px; font-weight: 700; color: #000; }
.price-regular { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.installments { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; min-height: 18px;}

/* =========================================
   7. SECCIÓN TIKTOK INTEGRATION
   ========================================= */
.tiktok-integration-section { background-color: #000000; color: #ffffff; padding: 60px 0; }

.tiktok-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.badge-tiktok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #25f4ee;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.tiktok-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; letter-spacing: -1px; }
.tiktok-text p { color: #a1a1a6; font-size: 14px; line-height: 1.6; margin-bottom: 25px; }

.tiktok-mockup-container { display: flex; gap: 15px; }
.video-placeholder-card {
    flex: 1; background-color: #1c1c1e; border: 1px solid #2c2c2e; padding: 25px 20px;
    border-radius: 12px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between;
}
.video-header { font-size: 11px; font-weight: 700; color: #25f4ee; letter-spacing: 0.5px; }
.video-placeholder-card p { font-size: 13px; font-weight: 500; color: #fff; line-height: 1.4; }

/* =========================================
   8. FOOTER Y EXTRAS
   ========================================= */
.experience-section { padding: 60px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.experience-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.experience-text h2 { font-size: 26px; font-weight: 700; margin-bottom: 15px; }
.experience-text p { font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 25px; }

.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.benefit-card-small { background-color: var(--bg-light-gray); padding: 20px; border-radius: 12px; text-align: center; }
.benefit-card-small i { font-size: 28px; color: var(--primary-black); margin-bottom: 10px; display: block;}
.benefit-card-small h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px;}
.benefit-card-small p { font-size: 11px; color: var(--text-muted); line-height: 1.4;}

.footer-cta-section { padding: 50px 0; background-color: #ffffff; }
.footer-cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.newsletter-col h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px;}
.newsletter-col p { font-size: 13px; color: var(--text-muted); margin-bottom: 15px;}
.newsletter-form-inline { display: flex; gap: 10px; max-width: 400px; }
.newsletter-form-inline input { flex: 1; padding: 11px 16px; border-radius: 20px; border: 1px solid var(--border-color); font-size: 13px; outline: none; }
.newsletter-form-inline input:focus { border-color: var(--brand-orange); }

.payments-col { text-align: center; }
.payments-title { font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-bottom: 12px;}
.payment-logos-footer { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pay-logo { background-color: #f0f0f2; padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #555; }

footer { background-color: var(--primary-black); color: #f5f5f7; padding: 50px 0 20px; }
.footer-grid-final { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-grid-final h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 15px;}
.footer-grid-final p { font-size: 12px; color: #a1a1a6; line-height: 1.6;}
.footer-location-tag { margin-top: 10px; font-weight: 600; color: #fff; }
.footer-location-tag i { margin-right: 4px; color: var(--brand-orange); }

.footer-links-col ul { list-style: none; }
.footer-links-col ul li { margin-bottom: 8px;}
.footer-links-col ul li a { color: #a1a1a6; text-decoration: none; font-size: 12px; transition: color 0.2s;}
.footer-links-col ul li a:hover { color: #fff; }

.reclamaciones-footer { font-weight: 600; color: #fff !important; display: inline-flex; align-items: center; gap: 4px; }
.reclamaciones-footer i { color: var(--brand-orange); }
.contact-footer-item { color: #fff !important; font-size: 13px !important; font-weight: 600; margin-top: 8px; }
.contact-footer-item i { color: var(--brand-orange); }

.footer-bottom-legal { border-top: 1px solid #333; padding-top: 20px; text-align: center; font-size: 11px; color: #86868b; }

.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background-color: #25d366; color: white;
    border-radius: 50%; width: 52px; height: 52px; display: flex; justify-content: center; align-items: center;
    font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }

/* =========================================
   9. MODAL DEL CARRITO (Funcionalidad Tienda)
   ========================================= */
.cart-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10000; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.cart-content { background: white; padding: 30px; border-radius: 16px; width: 90%; max-width: 400px; max-height: 80vh; overflow-y: auto; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.close-cart { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #888; transition: 0.3s; }
.close-cart:hover { color: #000; }
.cart-content h2 { margin-top: 0; border-bottom: 2px solid #f5f5f7; padding-bottom: 15px; font-size: 20px; color: var(--apple-dark); }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding: 12px 0; font-size: 15px; }
.cart-item-row .del-btn { background: #ffe5e5; color: #e30000; border: none; border-radius: 50%; width: 25px; height: 25px; cursor: pointer; display: flex; justify-content: center; align-items: center; font-weight: bold; }
.cart-total { font-weight: bold; font-size: 20px; margin: 20px 0; text-align: right; color: var(--brand-orange); }
.added-anim { transform: scale(1.2); transition: 0.2s; color: var(--brand-orange); }

/* ========================================================= */
/* 10. REGLAS PARA CELULARES (Mobile First Responsiveness)   */
/* ========================================================= */
/* ========================================================= */
/* 10. REGLAS PARA CELULARES (Mobile First Responsiveness)   */
/* ========================================================= */
@media (max-width: 768px) {
    /* Ajustes del Menú en Celular */
    .navbar-content { 
        display: flex;
        flex-wrap: wrap; 
        justify-content: space-between;
        align-items: center;
    }
    .logo { flex: 1; min-width: 150px; }
    .nav-icons { flex: 1; justify-content: flex-end; }
    
    .desktop-menu { 
        width: 100%; 
        order: 3; /* Envía el menú abajo de los iconos */
        display: flex; 
        justify-content: center; 
        margin-top: 15px; 
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    .desktop-menu ul { gap: 20px; }
    
    /* Todas las grillas pesadas pasan a 1 sola columna centrada */
    .hero-grid, .tiktok-grid, .experience-grid, .footer-cta-grid, .footer-grid-final {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    /* Hero Banner: Reparación de la imagen */
    .hero { padding: 30px 0; }
    .hero-image { order: -1; display: flex; justify-content: center; width: 100%; } 
    .hero-image img { 
        max-width: 220px; /* Tamaño perfecto para celular */
        width: 100%; 
        height: auto;
        object-fit: contain;
        animation: float 4s ease-in-out infinite; 
    }
    
    .hero h1 { font-size: 32px; }
    .hero p { margin: 0 auto 20px; }
    .hero-actions { justify-content: center; }

    /* Los títulos de las secciones se centran */
    .section-header { flex-direction: column; gap: 10px; text-align: center; }
    .section-title, .section-title-left { font-size: 24px; text-align: center; }

    /* PRODUCTOS: Fuerza 2 columnas pequeñas en celulares */
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .product-image { height: 140px; }
    .product-image img { padding: 10px; }
    .product-info { padding: 15px; }
    .product-info h3 { font-size: 13px; min-height: 40px; }
    .price-sale { font-size: 16px; }

    .newsletter-form-inline { flex-direction: column; max-width: 100%; }
    .tiktok-mockup-container { flex-direction: column; }
}

/* Animación de flotado para la imagen principal */
@keyframes float { 
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-15px); } 
    100% { transform: translateY(0px); } 
}