/* --- VARIABLES DE DISEÑO --- */
:root {
    --bg-pure: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #121212;
    --text-muted: #6c757d;
    --accent-blue: #00d4ff; 
    --accent-blue-dark: #00b8de;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* --- RESET GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-pure);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- BARRA DE ANUNCIOS --- */
.announcement-bar {
    background-color: var(--text-main);
    color: var(--bg-pure);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
}

/* --- NAVEGACIÓN --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--text-main);
    text-decoration: none;
}

.logo span { color: var(--accent-blue); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

.nav-links .nav-btn {
    background: var(--text-main);
    color: var(--bg-pure);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
}

.nav-links .nav-btn:hover {
    background: var(--accent-blue);
    color: var(--text-main);
    transform: translateY(-2px);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: none;
}

/* --- MENÚ LATERAL MÓVIL --- */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-pure);
    padding: 40px 30px;
    transition: var(--transition);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 35px;
    overflow-y: auto;
}

.sidebar.active { right: 0; }

.sidebar .menu-close {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar ul a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 5px 0;
}

/* --- HERO SECCIÓN (CORREGIDO PARA NO TAPAR TEXTO) --- */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 40px;
}

.hero-text { 
    flex: 1;
    max-width: 600px; 
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-text p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 35px; }
.hero-badges { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.badge-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--text-main); }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-pure);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--text-main);
    display: inline-block;
}
.btn-primary:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: var(--text-main); transform: translateY(-3px); }

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: inline-block;
}
.btn-secondary:hover { border-color: var(--text-main); background: rgba(0, 0, 0, 0.02); }

/* --- CONTENEDOR HERO IMAGE (RESPONSIVO Y ADAPTABLE) --- */
.hero-image-box {
    flex: 1;
    max-width: 520px;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--bg-light);
    border-radius: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: var(--transition);
}

.hero-image-box:hover img {
    transform: scale(1.03);
}

/* --- SOBRE NOSOTROS --- */
.about { padding: 100px 5%; max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--bg-light); }
.section-title { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -1px; margin-bottom: 50px; }
.section-title span { color: var(--accent-blue); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { color: var(--text-muted); line-height: 1.7; font-size: 1rem; }

/* --- CATEGORÍAS --- */
.categories { padding: 100px 5%; max-width: 1400px; margin: 0 auto; background: var(--bg-light); border-radius: 40px; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.category-card { background: var(--bg-pure); border: 1px solid rgba(0,0,0,0.04); border-radius: 24px; padding: 40px; transition: var(--transition); display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; box-shadow: var(--shadow); }
.category-card:hover { transform: translateY(-8px); border-color: var(--accent-blue); }
.cat-icon { font-size: 2.5rem; margin-bottom: 20px; }
.category-card h3 { font-family: var(--font-display); font-size: 1.8rem; text-transform: uppercase; margin-bottom: 20px; }
.category-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.category-card ul li { font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.category-card ul li::before { content: '✔'; color: var(--accent-blue); font-weight: bold; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.tag-item { background: var(--bg-light); padding: 8px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; color: var(--text-main); border: 1px solid rgba(0,0,0,0.05); }

/* --- BENEFICIOS --- */
.why-us { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.why-box { background: var(--bg-light); border: 1px solid rgba(0,0,0,0.02); border-radius: 20px; padding: 30px; transition: var(--transition); }
.why-box:hover { background: var(--bg-pure); border-color: var(--accent-blue); box-shadow: var(--shadow); }
.why-box .icon { color: var(--accent-blue); font-size: 2.2rem; margin-bottom: 15px; }
.why-box h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.why-box p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* --- NOVEDADES --- */
.news { padding: 100px 5%; max-width: 1400px; margin: 0 auto; text-align: center; }
.news-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { background: var(--bg-light); border: 1px solid rgba(0,0,0,0.05); color: var(--text-main); padding: 12px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; font-size: 0.85rem; transition: var(--transition); }
.tab-btn.active, .tab-btn:hover { background: var(--text-main); color: var(--bg-pure); border-color: var(--text-main); }
.news-box { background: var(--bg-light); border-radius: 24px; padding: 50px 30px; max-width: 700px; margin: 0 auto; border: 1px solid rgba(0,0,0,0.02); }
.news-box h3 { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; margin-bottom: 15px; color: var(--text-main); }
.news-box p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* --- PROCESO --- */
.process { padding: 100px 5%; max-width: 1400px; margin: 0 auto; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.process-card { background: var(--bg-pure); border: 1px solid rgba(0,0,0,0.05); border-radius: 20px; padding: 30px; position: relative; box-shadow: var(--shadow); }
.process-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: rgba(0, 212, 255, 0.15); position: absolute; top: 15px; right: 25px; }
.process-card h4 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; margin-top: 15px; }
.process-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

/* --- OPINIONES --- */
.reviews { padding: 100px 5%; max-width: 1400px; margin: 0 auto; background: var(--bg-light); border-radius: 40px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.review-card { background: var(--bg-pure); padding: 30px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.02); }
.stars { color: #ffcc00; margin-bottom: 15px; font-size: 1.1rem; }
.review-card p { font-style: italic; color: var(--text-main); font-size: 0.95rem; line-height: 1.6; }

/* --- BANNER ENVÍOS --- */
.shipping-banner { margin: 80px 5%; max-width: 1400px; background: var(--text-main); color: var(--bg-pure); border-radius: 30px; padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.shipping-text h2 { font-family: var(--font-display); font-size: 2rem; text-transform: uppercase; margin-bottom: 10px; }
.shipping-text p { color: rgba(255,255,255,0.7); max-width: 700px; }

/* --- DESCARGA DE LA APP Y MOCKUPS --- */
.app-download { padding: 100px 5%; max-width: 1400px; margin: 0 auto; text-align: center; }
.app-download p.app-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 750px; margin: -25px auto 40px; line-height: 1.6; }
.app-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.btn-app { background: #000000; color: #ffffff; display: flex; align-items: center; gap: 14px; padding: 12px 28px; border-radius: 14px; text-decoration: none; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1); text-align: left; width: 220px; }
.btn-app:hover { transform: translateY(-5px); background: #1a1a1a; box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.btn-app .app-icon { font-size: 2.2rem; color: #ffffff; }
.btn-app .btn-text-container { display: flex; flex-direction: column; }
.btn-app .app-sub { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.6); }
.btn-app .app-main { font-size: 1.15rem; font-weight: 700; font-family: var(--font-body); }

/* CONTENEDOR DE MOCKUPS ADAPTABLE */
.app-mockup-container { 
    max-width: 900px; 
    margin: 0 auto; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    padding: 30px 15px 0; 
}

/* 2. MOCKUP DESKTOP */
.mockup-desktop {
    width: 80%;
    height: auto;
    aspect-ratio: 16 / 10;
    background: #1e222b;
    border: 10px solid #2d3135;
    border-bottom-width: 18px;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.mockup-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. MOCKUP PHONE (SUPERPUESTO EN LAPTOP) */
.mockup-phone {
    width: 22%;
    height: auto;
    aspect-ratio: 9 / 18;
    background: #121212;
    border: 7px solid #2d3135;
    border-radius: 28px;
    position: absolute;
    right: 5%;
    bottom: -10px;
    z-index: 5;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
}

.mockup-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- PREGUNTAS FRECUENTES (FAQ) --- */
.faq-section { padding: 100px 5%; max-width: 900px; margin: 0 auto; }
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--bg-light); border-radius: 16px; overflow: hidden; border: 1px solid rgba(0,0,0,0.03); transition: var(--transition); }
.faq-question { padding: 24px 30px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; transition: var(--transition); }
.faq-question h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-main); padding-right: 15px; }
.faq-toggle-icon { color: var(--text-main); transition: transform 0.3s ease; font-size: 1.5rem; flex-shrink: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); background: rgba(255, 255, 255, 0.5); }
.faq-answer-content { padding: 0 30px 24px; color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
.faq-item.active { border-color: var(--accent-blue); background: var(--bg-pure); box-shadow: var(--shadow); }
.faq-item.active .faq-toggle-icon { transform: rotate(180deg); color: var(--accent-blue); }

/* --- CALL TO ACTION FINAL --- */
.cta-final { padding: 120px 5%; text-align: center; }
.cta-final h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); text-transform: uppercase; margin-bottom: 20px; }
.cta-final p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 35px; }

/* --- FOOTER --- */
footer { background: var(--bg-light); padding: 40px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-marquee { overflow: hidden; white-space: nowrap; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 25px; }
.marquee-inner { display: inline-block; font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); animation: sideMarquee 30s linear infinite; }

@keyframes sideMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
.footer-copy { text-align: center; font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   REGLAS MÓVILES RESPONSIVAS Y TABLETS (OPTIMIZADO)
   ========================================================================== */
@media (max-width: 992px) {
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px 20px 50px; 
        gap: 35px; 
    }
    .hero-text { max-width: 100%; }
    .hero-badges { align-items: center; }
    .hero-buttons { justify-content: center; width: 100%; gap: 12px; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 320px; text-align: center; padding: 14px 24px; }
    
    /* Hero Image adaptado a móviles */
    .hero-image-box { 
        width: 100%; 
        max-width: 380px; 
        margin: 0 auto; 
    }

    .about { padding: 60px 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    
    .categories, .why-us, .news, .process, .reviews, .faq-section, .app-download { padding: 60px 20px; }

    .shipping-banner { text-align: center; justify-content: center; padding: 40px 20px; margin: 40px 20px; }
    
    /* Mockups en Tablets */
    .app-mockup-container { padding-top: 20px; }
    .mockup-desktop { width: 88%; border-width: 6px; border-bottom-width: 12px; }
    .mockup-phone { width: 26%; border-width: 5px; right: 2%; bottom: -10px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    .categories-grid, .why-grid, .process-grid, .reviews-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px; 
    }
    .category-card { min-height: auto; padding: 30px 20px; }
    
    /* Mockups alineados verticalmente en celulares pequeños */
    .app-mockup-container { 
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding-top: 10px;
    }
    .mockup-desktop { width: 100%; }
    .mockup-phone { 
        position: relative; 
        width: 160px; 
        right: 0; 
        bottom: 0; 
    }
    
    .app-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .btn-app { width: 100%; max-width: 290px; }
    
    .faq-question { padding: 20px; }
    .faq-answer-content { padding: 0 20px 20px; }
    
    .cta-final { padding: 60px 20px; }
}

@media (max-width: 400px) {
    .navbar { padding: 15px 4%; }
    .logo { font-size: 1.25rem; }
    .section-title { margin-bottom: 35px; }
    .news-tabs { gap: 6px; }
    .tab-btn { padding: 10px 18px; font-size: 0.8rem; width: 100%; text-align: center; }
}