/* ============================================
   IMPORTAR FUENTE 'INTER' (Fallback de SF Pro)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   VARIABLES Y RESET (Estilo Apple)
   ============================================ */
:root {
    --primary: #FF2F4D;
    --primary-dark: #cc253d;
    
    --bg-light: #fbfbfd;
    --card-light: #ffffff;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --border-light: rgba(0, 0, 0, 0.08);
    
    --bg-dark-mode: #000000; 
    --bg-dark-alt: #1D1D1F;  
    --card-dark: #1D1D1F;    
    --card-dark-pure: #000000; 
    
    --text-light: #ffffff;   
    --text-muted-dark: #a1a1a6; 
    
    --border-dark: rgba(255, 255, 255, 0.15);
    --border-dark-subtle: rgba(255, 255, 255, 0.08);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.08);
    --shadow-apple: 0 24px 80px rgba(0, 0, 0, 0.08);
    --shadow-apple-hover: 0 32px 100px rgba(0, 0, 0, 0.12);

    --border-color: var(--border-light);
    --gray-medium: var(--text-muted);
    
    /* Variables de estado */
    --error: #ff3b30;
    --error-light: rgba(255, 59, 48, 0.1);
    --success: #34c759;
    --success-light: rgba(52, 199, 89, 0.1);
    --warning: #ff9500;
    --info: #007aff;
}

body.dark-mode {
    background: var(--bg-light);
    --bg-light: var(--bg-dark-mode);
    --text-dark: var(--text-light);
    --border-color: var(--border-dark);
    --gray-medium: var(--text-muted-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 0.4s ease;
}

html { scroll-behavior: smooth; }

body {
    background: linear-gradient(180deg, #fbfbfd 0%, #f4f7fb 100%);
    color: var(--text-dark);
    line-height: 1.47059;
    letter-spacing: -0.015em;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 60px);
}

/* ============================================
   TIPOGRAFÍA Y LAYOUTS
   ============================================ */
.text-center { text-align: center; }

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    line-height: 1.1;
    color: var(--text-dark);
}
body.dark-mode .section-title { color: var(--text-light); }

.section-subtitle {
    font-size: clamp(17px, 3vw, 21px);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: -0.015em;
    line-height: 1.5;
    max-width: 600px;
}
body.dark-mode .section-subtitle { color: var(--text-muted-dark); }

/* ============================================
   NAVBAR Y MENÚ MÓVIL
   ============================================ */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

body.dark-mode .navbar {
    background: rgba(29, 29, 31, 0.85);
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-light);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; gap: 40px; }

.logo {
    width: 10%;
    font-size: 20px; font-weight: 800; white-space: nowrap; text-decoration: none;
    color: var(--text-dark); letter-spacing: -0.04em; display: flex; align-items: center; gap: 8px;
}
.logo img{
    width: 100%;
}



body.dark-mode .logo { color: var(--text-light); }
.logo:hover { color: var(--primary); }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 14px; }
body.dark-mode .nav-links a { color: var(--text-muted-dark); }
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}
body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: var(--primary);
}

.nav-actions { display: flex; gap: 15px; align-items: center; }

.icon-btn {
    background: transparent; border: none; color: var(--text-dark); cursor: pointer;
    font-size: 18px; padding: 8px; border-radius: 50%; transition: 0.3s;
    position: relative;
}
body.dark-mode .icon-btn { color: var(--text-light); }
.icon-btn:hover { color: var(--primary); background: rgba(255, 47, 77, 0.1); }

/* Estilo del carrito y contador */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(255, 47, 77, 0.4);
    border: 2px solid var(--card-light);
    transition: all 0.3s ease;
}

body.dark-mode .cart-count {
    border-color: var(--card-dark);
}

.cart-count:empty,
.cart-count[data-count="0"],
.cart-count:not(:empty):not([data-count]) {
    display: none;
}

.cart-count:not(:empty):not([data-count="0"]) {
    display: flex;
}

.cart-icon:hover .cart-count {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 47, 77, 0.5);
}

/* Estilos Base del Botón Hamburguesa Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    transform-origin: 1px;
}
body.dark-mode .menu-toggle span { background: var(--text-light); }

/* ============================================
   CARRITO FLOTANTE
   ============================================ */
.cart-sidebar {
    position: fixed; right: -400px; top: 0; width: 400px; max-width: 100vw; height: 100vh;
    background: var(--card-light); box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 1000; transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; flex-direction: column;
}
body.dark-mode .cart-sidebar { background: var(--card-dark); border-left: 1px solid var(--border-dark); }
.cart-sidebar.open { right: 0; }
.cart-header { padding: 24px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: transparent; border: none; font-size: 28px; cursor: pointer; color: var(--text-dark); }
body.dark-mode .close-btn { color: var(--text-light); }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.empty-cart { text-align: center; color: var(--text-muted); padding: 40px 20px; }
.cart-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
.cart-item-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: #fff; }
body.dark-mode .cart-item-img { background: #000; border: 1px solid var(--border-dark-subtle); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 5px; font-size: 15px; }
.cart-item-price { font-weight: 600; color: var(--primary); margin-bottom: 8px; font-size: 16px; }
.cart-item-quantity { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { 
    width: 28px; 
    height: 28px; 
    border: 1px solid var(--border-color); 
    background: var(--card-light); 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-dark);
    transition: all 0.2s ease;
}
body.dark-mode .qty-btn { 
    background: var(--card-dark); 
    border-color: var(--border-dark); 
    color: var(--text-light); 
}
.qty-btn:hover { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
}
.qty-value { 
    min-width: 30px; 
    text-align: center; 
    font-weight: 600; 
    font-size: 15px; 
}
.remove-item-btn {
    background: none; 
    border: none; 
    color: var(--text-muted); 
    cursor: pointer; 
    font-size: 24px; 
    padding: 4px 8px;
    transition: color 0.2s ease;
    align-self: flex-start;
}
.remove-item-btn:hover { color: var(--error); }
body.dark-mode .remove-item-btn { color: var(--text-muted-dark); }
.cart-footer { padding: 24px; border-top: 1px solid var(--border-color); background: var(--card-light); width: 100%; }
body.dark-mode .cart-footer { background: var(--card-dark); }
.cart-footer .btn-primary { width: 100%; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 18px; font-weight: 700; }

/* ============================================
   BOTONES GLOBALES
   ============================================ */
.btn-primary, .btn-secondary {
    padding: 14px 32px; border-radius: 999px; font-weight: 700; font-size: 15px;
    letter-spacing: -0.01em; border: none; cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center; text-decoration: none; text-align: center;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16); }

/* ==========================================================================
   ESTILO HERO (SECCIÓN 1)
   ========================================================================== */
.hero-apple-style {
    background-color: var(--bg-light); width: 100%; display: flex; flex-direction: column;
    justify-content: flex-start; align-items: center; overflow: hidden; padding-top: 150px; position: relative;
}
body.dark-mode .hero-apple-style { background-color: #000000; }

.hero-content-centered { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; text-align: center; z-index: 2; position: relative; }
.hero-text-apple { display: flex; flex-direction: column; align-items: center; z-index: 1; margin-top: 0; }
.apple-subtitle { font-size: clamp(28px, 4vw, 36px); font-weight: 600; margin: 0 0 -5px 0; color: #000000; }
body.dark-mode .apple-subtitle { color: #ffffff; }

.apple-title-pro {
    font-size: clamp(3.5rem, 12vw, 12rem); font-weight: 900; letter-spacing: -0.03em;
    line-height: 0.9; margin: 0; text-transform: uppercase; white-space: nowrap; 
    background: url('https://assets.codepen.io/13471/noise.png') repeat, linear-gradient(180deg, #ff5c7c 0%, #FF2F4D 40%, #c4172f 70%, #610411 100%);
    background-blend-mode: overlay; background-size: auto, 100% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; 
}
body:not(.dark-mode) .apple-title-pro {
    background: url('https://assets.codepen.io/13471/noise.png') repeat, linear-gradient(180deg, #e63e56 0%, #d62441 40%, #991225 100%);
    background-blend-mode: overlay; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-img-apple { width: 100%; max-width: 950px; z-index: 2; position: relative; margin-top: -10%; display: block; }
.hero-img-apple img { width: 100%; height: auto; display: block; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(255, 47, 77, 0.15)); }
body.dark-mode .hero-img-apple img { filter: drop-shadow(0 30px 60px rgba(255, 47, 77, 0.25)); }

.hero-actions-apple { display: flex; flex-direction: column; align-items: center; gap: 16px; z-index: 10; position: absolute; bottom: 5%; left: 0; width: 100%; }
.hero-actions-buttons { display: flex; justify-content: center; }
.apple-desc-text { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.95); max-width: 500px; margin: 0 auto; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
body.dark-mode .apple-desc-text { color: #e5e5ea; }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.product-section { 
    padding: 100px 0; 
    overflow: hidden; 
    transition: background-color 0.4s ease; 
}
body.dark-mode .product-section { background-color: var(--bg-dark-alt); }

.product-section .section-header { 
    align-items: flex-start; 
    text-align: left; 
    margin-left: 0; 
    margin-bottom: 24px; 
    max-width: 100%; 
}

.product-filters { 
    display: flex; 
    flex-direction: column;
    gap: 20px; 
    justify-content: flex-start; 
    margin-bottom: 40px; 
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 980px;
    background: var(--card-light);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

body.dark-mode .category-btn {
    background: var(--card-dark);
    border-color: var(--border-dark);
    color: var(--text-light);
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

body.dark-mode .category-btn.active {
    background: var(--primary);
    color: white;
}

/* --- CONTENEDOR FLUIDO PANTALLA COMPLETA --- */
.carousel-container { 
    position: relative; 
    display: block; 
    width: 100vw; 
    margin-left: calc(-50vw + 50%); 
}

.carousel-wrapper {
    width: 100%; 
    overflow-x: auto; 
    overflow-y: visible; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
    padding-bottom: 40px; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    scroll-padding-left: clamp(24px, 5vw, 60px); 
}

@media (min-width: 1200px) {
    .carousel-wrapper { scroll-padding-left: calc(50vw - 540px); }
}

.carousel-wrapper::-webkit-scrollbar { display: none; }

.carousel { 
    display: inline-flex; 
    gap: 32px; 
    padding-right: clamp(24px, 5vw, 60px); 
}

.carousel::before {
    content: "";
    flex: 0 0 auto;
    width: clamp(24px, 5vw, 60px);
    margin-right: -32px; 
}
@media (min-width: 1200px) {
    .carousel::before { width: calc(50vw - 540px); }
}

/* --- TARJETAS --- */
.product-card {
    flex: 0 0 auto; 
    width: 440px; 
    scroll-snap-align: start; 
    position: relative;
    background: rgba(255,255,255,0.92); 
    border: 1px solid rgba(0, 0, 0, 0.08); 
    border-radius: 32px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    box-shadow: var(--shadow-soft); 
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
body.dark-mode .product-card {
    background: rgba(18, 18, 20, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

.product-card:hover { transform: none; box-shadow: var(--shadow-soft); }
body.dark-mode .product-card:hover { border-color: rgba(255,255,255,0.08); }
body:not(.dark-mode) .product-card {
    box-shadow: none;
}
body:not(.dark-mode) .product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-price { 
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    z-index: 10;
}
body.dark-mode .product-price { 
    background: rgba(29, 29, 31, 0.6); 
    color: #f5f5f7; 
    border: 1px solid rgba(255,255,255,0.1); 
}

.product-img { 
    width: 100%; 
    height: 360px; 
    object-fit: contain; 
    background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%); 
    padding: 40px; 
}
body.dark-mode .product-img { 
    background: linear-gradient(180deg, #111111 0%, #000000 100%); 
}

.product-info { 
    padding: 0 32px 32px 32px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;  
    flex: 1;
    background: #ffffff;
}
body.dark-mode .product-info { background: #000000; }

.product-category { 
    font-size: 11px; 
    color: #86868b; 
    text-transform: uppercase; 
    margin-bottom: 8px; 
    font-weight: 700; 
    letter-spacing: 0.08em; 
}
.product-name { 
    font-weight: 700; 
    font-size: 24px; 
    letter-spacing: -0.03em; 
    margin-bottom: 12px; 
    line-height: 1.1; 
    color: #1d1d1f;
}
body.dark-mode .product-name { color: #f5f5f7; }

.product-description { 
    font-size: 14px; 
    color: #86868b; 
    line-height: 1.5; 
    margin: 0 0 24px 0; 
    font-weight: 400;
    max-width: 95%;
}
body.dark-mode .product-description { color: #a1a1a6; }

.product-card .btn-primary { 
    width: 85%; 
    padding: 14px 24px; 
    margin-bottom: 0; 
    margin-top: auto; 
    font-size: 15px; 
    border-radius: 980px; 
}

.carousel-controls-bottom { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-top: 10px; 
}

.carousel-indicators { 
    display: flex; 
    gap: 10px; 
    background: rgba(0,0,0,0.04); 
    padding: 10px 14px; 
    border-radius: 30px; 
    align-items: center; 
}

body.dark-mode .carousel-indicators { 
    background: rgba(255,255,255,0.08); 
}

.indicator { 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background: var(--text-muted); 
    opacity: 0.5; 
    cursor: pointer; 
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
}

.indicator:hover {
    opacity: 0.8;
    transform: scale(1.2);
}

.indicator:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 50%;
}

.indicator.active { 
    width: 24px; 
    border-radius: 10px; 
    opacity: 1; 
    background: var(--text-dark); 
}

body.dark-mode .indicator.active { 
    background: var(--text-light); 
}

/* ==========================================================================
   ABOUT (SECCIÓN 3)
   ========================================================================== */
.about-alt { padding: 100px 0; transition: background-color 0.4s ease; }
body.dark-mode .about-alt { background-color: #000000; }
.about-eyebrow { display: block; margin-bottom: 10px; text-transform: uppercase; font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: 0.05em; }
.about-visual { text-align: center; margin-bottom: 60px; }
.about-visual img { max-width: 100%; border-radius: 24px; }
.about-metrics { display: flex; justify-content: center; gap: clamp(30px, 8vw, 80px); text-align: center; border-top: none; padding-top: 0; flex-wrap: wrap; }
/* ============================================
   NUEVA SECCIÓN: EXPLORADOR DE CARACTERÍSTICAS
   ============================================ */
.feature-explainer-section {
    padding: 100px 0;
    background: var(--bg-light);
    transition: background 0.4s ease;
}

body.dark-mode .feature-explainer-section {
}

.feature-explainer-section .section-header { margin-bottom: 40px; }
.project-section .section-subtitle { opacity: 0.9; margin: 0 auto; }

body.dark-mode .feature-explainer-section {
    background: linear-gradient(#000, var(--bg-dark-alt) 60%);
}

.explainer-container {
    background: var(--card-light);
    border-radius: 32px;
    padding: clamp(30px, 6vw, 80px);
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(14, 14, 28, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .explainer-container {
    background: #000000;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.05);
}

.explainer-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(40px, 8vw, 100px);
    align-items: center;
}

.explainer-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.feature-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 12px 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 980px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: left;
    outline: none;
}

.feature-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.18);
}

body.dark-mode .feature-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .feature-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-btn.active {
    background: var(--primary);
    border-color: transparent;
    color: white;
    padding-left: 18px;
}

.feature-btn.active .btn-icon.highlight-dot {
    background: var(--primary);
    width: 14px;
    height: 14px;
    margin-right: 6px;
    box-shadow: 0 0 15px var(--primary);
}

.feature-btn.active .btn-icon i {
    display: none;
}

.explainer-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
}

.feature-video {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

/* ============================================
   PROJECT SECTION
   ============================================ */
.project-section { background: var(--primary); color: white; padding: 100px 0; }
.project-section .section-header { margin-bottom: 0; }

/* ==========================================================================
   FAQ (SECCIÓN 4)
   ========================================================================== */
.faq-section { padding: 100px 0; transition: background-color 0.4s ease; }
body.dark-mode .faq-section { background-color: var(--bg-dark-alt); }
.faq-container { max-width: 800px; margin: 0 auto; background: rgba(255,255,255,0.95); border-radius: var(--radius-md); padding: 0 30px; box-shadow: var(--shadow-soft); transition: background-color 0.4s ease, border 0.4s ease, box-shadow 0.4s ease; }
body.dark-mode .faq-container { background: var(--card-dark-pure); border: 1px solid var(--border-dark-subtle); }
.faq-card { background: transparent; border: none; border-bottom: 1px solid var(--border-light); border-radius: 0; }
body.dark-mode .faq-card { border-bottom: 1px solid var(--border-dark); }
.faq-card:last-child { border-bottom: none; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 24px 0; cursor: pointer; background: none; border: none; text-align: left; color: var(--text-dark); font-size: 17px; font-weight: 600; }
body.dark-mode .faq-question { color: var(--text-light); }
.faq-icon { font-size: 14px; color: var(--text-muted); transition: transform 0.4s ease; }
.faq-card.open .faq-icon { transform: rotate(180deg); }

/* Corrección altura FAQ */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease; opacity: 0; }
.faq-card.open .faq-answer { max-height: 2000px; opacity: 1; }
.faq-answer-content { padding: 0 0 24px 0; color: var(--text-muted); line-height: 1.6; font-size: 15px; }

/* ============================================
   FOOTER
   ============================================ */
/* Corrección color fondo Footer */
.footer { background-color: var(--bg-dark-alt); color: #f5f5f7; padding: 80px 0 40px; }
body.dark-mode .footer { background-color: #000000; border-top: 1px solid var(--border-dark-subtle); }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 60px; margin-bottom: 60px; }
.footer-brand p { font-size: 14px; line-height: 1.6; color: #86868b; max-width: 280px; margin-bottom: 24px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; color: #f5f5f7; text-decoration: none; font-size: 15px; transition: all 0.3s ease; }
body.dark-mode .social-icons a { border: 1px solid var(--border-dark-subtle); }
.social-icons a:hover { background: var(--primary); transform: scale(1.1); border-color: var(--primary); }
.footer h3 { font-size: 19px; margin-bottom: 20px; font-weight: 700; }
.footer h4 { font-size: 12px; margin-bottom: 18px; text-transform: uppercase; color: #86868b; font-weight: 600; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 12px; }
.footer a { text-decoration: none; color: #d2d2d7; font-size: 14px; }
.footer a:hover { color: #ffffff; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: #86868b; }

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-slideUp { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

/* ============================================
   ACCESIBILIDAD
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .product-card { width: 400px; }
    .product-img { height: 320px; }
}

@media (max-width: 960px) {
    .explainer-container { padding: 40px 30px; }
    .explainer-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .explainer-controls { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .feature-btn { font-size: 14px; padding: 10px 16px 10px 10px; }
    .video-wrapper { max-width: 100%; }
}

@media (max-width: 900px) {
    .product-card { width: 340px; }
    .product-img { height: 280px; padding: 20px; }
    .product-info { padding: 0 24px 24px 24px; }
    .product-name { font-size: 22px; margin-bottom: 8px;}
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.mobile-active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--card-light); padding: 20px; gap: 15px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
    body.dark-mode .nav-links.mobile-active { background: var(--card-dark); border-bottom: 1px solid var(--border-dark); }
    
    .menu-toggle { display: flex; } /* Botón ahora visible y posicionado */
    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    
    .hero-apple-style { padding-top: 120px; }
    .apple-title-pro { font-size: clamp(3rem, 11vw, 8rem); white-space: normal; line-height: 1; }
    .hero-img-apple { margin-top: -8%; }
    .hero-actions-apple { bottom: 4%; }
    
    .cart-sidebar { width: 100vw; right: -100vw; }
}

@media (max-width: 480px) {
    .section-title { font-size: 32px; }
    .hero-img-apple { margin-top: -5%; }
    .hero-actions-apple { bottom: 3%; gap: 14px; }
    .hero-actions-buttons { flex-direction: column; width: 100%; padding: 0 20px; gap: 12px; }
    .hero-actions-buttons .btn-primary { width: 100%; }
    
    .product-card { width: 85vw; }
    .product-img { height: 250px; }
    
    .project-section { padding: 50px 0; }
    .faq-container { padding: 0 20px; }
    .footer-container { text-align: center; }
    .social-icons { justify-content: center; }
    
    .cart-item { flex-wrap: wrap; }
    .cart-item-img { width: 50px; height: 50px; }
    .qty-btn { width: 24px; height: 24px; font-size: 16px; }
}