/* 
 * NEXODIGITAL CORE SYSTEM v5.0 - "Immutable Refactor"
 * Arquitectura consolidada: Variables -> Base -> Layout -> Components -> Cards -> Themes
 */

/* 1. DESIGN TOKENS (Variables) */
:root {
    /* Primary Brand Palette */
    --brand-primary: #7c4dff;
    --brand-secondary: #00e676;
    --bg-base: #030409;
    --bg-void: #05070a;
    --bg-glass: rgba(15, 17, 26, 0.6);
    --bg-glass-hover: rgba(25, 28, 41, 0.8);
    
    /* Functional Colors */
    --text-primary: #f8fafc;
    --text-secondary: #b0bec5;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --accent-purple: #8b5cf6; 
    --accent-gold: #fbbf24; 
    
    /* Layout & Geometry */
    --wrapper-width: 1300px;
    --gutter: 2rem;
    --radius-std: 1rem;
    --radius-lg: 1.5rem;
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 20px 50px rgba(0,0,0,0.5);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;

    /* LEGACY ALIASES (Backward Compatibility) */
    --color-primary: var(--brand-primary);
    --color-secondary: var(--brand-secondary);
    --color-text-muted: var(--text-secondary);
    --color-primary-glow: rgba(124, 77, 255, 0.3);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


@media (max-width: 768px) {
    :root { --gutter: 1.5rem; }
}

/* 2. GLOBAL RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(124, 77, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(0, 230, 118, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: var(--nd-mobile-sticky-ad-space, 0px);
}

main { position: relative; width: 100%; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ─── ESTABILIZACIÓN DE LAYOUT (Anti-CLS) ─── */
app-footer {
    display: block;
    /* min-height fija el espacio ANTES de que el JS hidrate el componente.
       Evita el layout shift. NO usar content-visibility:auto aquí —
       ese flag re-calcula el tamaño al renderizar y ES la causa del CLS 0.576 */
    min-height: 420px;
}

@media (max-width: 768px) {
    app-footer { min-height: 700px; }
}

@media (max-width: 480px) {
    app-footer { min-height: 850px; }
}

.hero-visual, app-diamond-hero {
    display: block;
    min-height: 350px; /* Base desktop */
}

@media (max-width: 768px) {
    .hero-visual, app-diamond-hero { min-height: auto; }
}

section.catalog-education, section.why-v4, section.hero-catalog-v3 {
    /* Sin content-visibility:auto — causa CLS al hidratarse */
    min-height: 350px;
}

@media (max-width: 768px) {
    section.catalog-education, section.why-v4, section.hero-catalog-v3 { min-height: auto; }
}


/* 3. LAYOUT SYSTEM */
.wrapper {
    width: 100%;
    max-width: var(--wrapper-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.grid-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .wrapper { padding: 0 4rem; }
}

@media (max-width: 768px) {
    .grid-catalog { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
    .wrapper { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
    .grid-catalog { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .wrapper { padding: 0 1.2rem; }
    .section-header { margin: 2rem auto 2rem auto; padding-top: 2rem; }
    .section-header .display-2 { font-size: 1.8rem; }
}

/* 4. SECTIONING & RHYTHM */
.section-header { 
    margin: 3rem auto 2.5rem auto; text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 3rem;
}
.section-header:first-of-type { margin-top: 1.5rem; border-top: none; padding-top: 0; }

@media (max-width: 768px) {
    .section-header { margin: 1.5rem auto 1rem auto; padding-top: 1.5rem; }
    .display-2 { font-size: 1.6rem; }
}


/* Typography Aliases */
.display-1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -2px; }
.display-2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-lead { 
    font-size: 1.15rem; 
    color: var(--text-secondary); 
    margin-bottom: 2rem; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}
.text-muted { color: rgba(255,255,255,0.5); font-size: 0.95rem; }


/* 4. UI COMPONENTS */

/* Buttons Premium Refactor */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: 16px; font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer; text-decoration: none; border: none;
    gap: 0.75rem; font-size: 1rem;
    min-height: 48px; /* Touch target safety */
}

@media (max-width: 768px) {
    .btn { padding: 0.8rem 1.5rem; font-size: 0.95rem; }
}

.btn-primary {
    background: var(--brand-primary); color: #fff;
    box-shadow: 0 10px 25px rgba(124, 77, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(124, 77, 255, 0.4); }

.btn-outline {
    border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.03); backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); color: #fff; }

.btn-success { background: #25D366; color: #fff; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2); }


.btn-xl { padding: 1.2rem 2.5rem; font-size: 1.1rem; border-radius: 20px; }

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-std);
}


/* Navbar */
.nd-main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 2000; padding: 1.5rem 0; transition: 0.4s; }
.nd-main-header.scrolled { background: rgba(5, 7, 10, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1rem 0; }
.nd-nav-container { display: flex; justify-content: space-between; align-items: center; }
.nd-brand { font-size: 1.6rem; font-weight: 900; color: #fff; letter-spacing: -1px; text-decoration: none; transition: 0.3s; }
.nd-brand span { color: var(--brand-primary); }

@media (max-width: 768px) {
    .nd-brand { font-size: 1.25rem; }
}
@media (max-width: 400px) {
    .nd-brand { font-size: 1.1rem; }
}

/* Botón Reseller Premium (Navbar) */
.nd-reseller-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1), rgba(0, 230, 118, 0.1));
    border: 1px solid rgba(124, 77, 255, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin: 0 0.5rem;
}

.nd-reseller-btn i {
    color: var(--brand-secondary);
    font-size: 0.9rem;
}

.nd-reseller-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.2), rgba(0, 230, 118, 0.2));
    border-color: var(--brand-secondary);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.15);
}

.nd-reseller-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.nd-reseller-btn:hover::after {
    left: 100%;
}

@media (max-width: 768px) {
    .nd-reseller-btn { display: none; }
}

/* Hero for Interior Pages (Combos, Catalog, etc) */
.hero-page-v3 {
    padding-top: 140px;
    padding-bottom: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content-v3 {
    max-width: 800px;
    margin: 0 auto;
}
.hero-content-v3 .display-1 {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-page-v3 { padding-top: 100px; padding-bottom: 2rem; }
}

.nd-desktop-links { display: flex; gap: clamp(0.5rem, 1vw, 1.5rem); list-style: none; align-items: center; }
.nd-d-link { 
    color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; 
    font-weight: 700; font-size: 0.75rem; text-decoration: none; position: relative;
    padding: 1.5rem 0.5rem; transition: 0.3s; display: flex; align-items: center; gap: 6px;
}
.nd-d-link:hover, .nd-d-link.active { color: #fff; }

/* Dropdown System */
.nd-nav-item { position: relative; }
.nd-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: rgba(13, 15, 20, 0.95); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
    padding: 1rem; width: 220px; opacity: 0; visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

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

.nd-drop-link {
    display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem;
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem;
    font-weight: 600; border-radius: 10px; transition: 0.3s;
}
.nd-drop-link i { color: var(--brand-primary); font-size: 0.9rem; transition: 0.3s; }
.nd-drop-link:hover { background: rgba(124, 77, 255, 0.1); color: #fff; transform: translateX(5px); }
.nd-drop-link:hover i { transform: scale(1.2); }

.nd-nav-item i.fa-chevron-down { font-size: 0.6rem; opacity: 0.5; transition: 0.3s; }
.nd-nav-item:hover i.fa-chevron-down { transform: rotate(180deg); color: var(--brand-primary); opacity: 1; }

.nd-nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Mobile optimization: Ocultar en navbar */
@media (max-width: 920px) {
    .nd-nav-container .nd-region-switcher { display: none !important; }
}

/* Region Switcher Premium (Segmented Toggle) */
.nd-region-switcher {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    display: flex;
    padding: 2px;
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    overflow: hidden;
}

.nd-region-switcher::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    background: var(--brand-primary);
    border-radius: 100px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.3);
    z-index: 0;
}

.nd-region-switcher[data-active="US"]::before {
    transform: translateX(100%);
}

.nd-region-option {
    flex: 1;
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    transition: 0.3s;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    letter-spacing: 0.5px;
}

.nd-region-option.active {
    color: #fff;
}

/* Mobile optimization refinements */
@media (max-width: 480px) {
    .nd-nav-actions { gap: 0.6rem; }
    .nd-region-option { 
        padding: 0.25rem 0.6rem; 
        font-size: 0.65rem; 
        min-width: 55px; 
    }
    .nd-cart-trigger { font-size: 1.2rem; }
    .nd-mobile-toggle { width: 35px; gap: 4px; }
    .nd-mobile-toggle span { height: 2px; }
}

@media (max-width: 360px) {
    .nd-nav-actions { gap: 0.4rem; }
    .nd-region-switcher { padding: 1px; }
    .nd-brand { font-size: 1rem; }
}

.nd-cart-trigger { background: none; border: none; font-size: 1.5rem; cursor: pointer; position: relative; color: #fff; }
.nd-cart-icon { color: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,0.2)); }
.nd-cart-count { 
    position: absolute; top: -5px; right: -5px; background: var(--accent-danger); 
    color: #fff; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; 
    display: none; align-items: center; justify-content: center; font-weight: 800; 
}

/* Cart Sidebar */
.nd-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: 0.4s; z-index: 4000; }
.nd-cart-overlay.visible { opacity: 1; visibility: visible; }
.nd-cart-sidebar { 
    position: fixed; top: 0; right: 0; width: 420px; max-width: 100%; height: 100%; 
    background: #0d0f14; z-index: 5000; transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
    max-width: 100vw;
}
.nd-cart-sidebar.open { transform: translateX(0); }

/* --- EMPTY STATE PREMIUM --- */
.nd-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    height: 100%;
}
.nd-empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.3));
}
.nd-empty-state h4 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
}
.nd-empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 250px;
}
.nd-btn-return {
    display: inline-block;
    background: var(--brand-primary); /* Sólido para contraste */
    color: #fff !important; /* Blanco puro */
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(124, 77, 255, 0.3);
}
.nd-btn-return:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* --- CART INTERNALS --- */
.nd-cart-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.nd-btn-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.nd-btn-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}
.nd-cart-header h3 { margin: 0; font-size: 1.2rem; letter-spacing: 2px; }
.nd-cart-body { 
    flex: 1 1 auto; overflow-y: auto; padding: 1rem; 
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.nd-mini-item { display: flex; gap: 1rem; background: rgba(15, 18, 25, 0.7); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 1.2rem; margin-bottom: 1rem; position: relative; }
.nd-item-img { width: 80px; height: 55px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.nd-item-img img { width: 100%; height: 100%; object-fit: cover; }
.nd-item-info h4 { margin: 0 0 0.3rem; font-size: 0.95rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.nd-item-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 0.8rem; gap: 1rem; }
.nd-price { color: #fff; font-weight: 800; font-size: 1.15rem; }
.nd-qty-selector { display: flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.06); padding: 2px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.03); }
.nd-qty-btn { background: none; border: none; color: rgba(255,255,255,0.6); width: 24px; height: 24px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; font-size: 0.75rem; }
.nd-qty-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nd-qty-val { font-weight: 800; min-width: 20px; text-align: center; font-size: 0.95rem; color: #fff; }
.nd-item-icon { width: 80px; height: 55px; background: rgba(124, 77, 255, 0.1); border: 1px dashed rgba(124, 77, 255, 0.3); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.nd-btn-remove { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.05); border: none; color: rgba(255,255,255,0.3); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.nd-btn-remove:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; transform: rotate(90deg); }

/* Cart Footer & Checkout V4.1 - Ultra Compact */
.nd-cart-footer { 
    padding: 0.8rem 1.2rem; 
    background: #0d0f14; 
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.nd-price-summary-v3 {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nd-total-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nd-total-top span {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nd-total-top strong {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-display);
}

.nd-fee-banner {
    background: rgba(255, 160, 0, 0.08);
    border-left: 4px solid #ffa000;
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    margin: 0.5rem 0;
}

.nd-fee-banner i { color: #ffa000; font-size: 1.3rem; }
.nd-fee-banner span {
    font-size: 0.85rem;
    color: #ffa000;
    font-weight: 600;
    line-height: 1.5;
}

.nd-checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

.nd-btn-checkout { 
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; text-align: center; padding: 0.8rem; border-radius: 100px; 
    font-weight: 800; font-size: 1rem; cursor: pointer; border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nd-btn-whatsapp { background: #25d366; color: #fff; }
.nd-btn-whatsapp-alt { 
    background: linear-gradient(135deg, #7c4dff 0%, #448aff 100%); 
    color: #fff; 
    box-shadow: 0 10px 30px rgba(68, 138, 255, 0.4);
}

.nd-separator {
    text-align: center;
    margin: 0.6rem 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nd-separator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.nd-separator span {
    background: #0d0f14;
    padding: 0 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 2px;
}

.nd-paypal-wrapper { 
    min-height: 50px; 
    margin: 1rem 0 0.5rem 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 100px;
    position: relative;
    z-index: 10;
}
.nd-paypal-wrapper.nd-disabled { opacity: 0.4; pointer-events: none; filter: grayscale(1); }

.nd-btn-checkout--blocked { opacity: 0.4; cursor: not-allowed; filter: grayscale(1); }
.nd-btn-checkout--blocked:hover { transform: none; }

.nd-legal-disclaimer { 
    margin-bottom: 0.8rem; 
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nd-custom-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; transition: 0.3s; }
.nd-custom-check input { 
    width: 22px; 
    height: 22px; 
    margin-top: 2px; 
    accent-color: var(--brand-primary); 
    cursor: pointer;
    flex-shrink: 0;
}
.nd-custom-check .nd-txt { color: rgba(255,255,255,0.8); font-size: 0.85rem; line-height: 1.4; }
.nd-custom-check a { color: var(--brand-primary); text-decoration: none; font-weight: 800; }
.nd-custom-check a:hover { text-decoration: underline; }


/* Shake animation: se activa cuando el usuario intenta proceder sin aceptar */
@keyframes nd-shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-6px); }
    30%       { transform: translateX(6px); }
    45%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    75%       { transform: translateX(-3px); }
    90%       { transform: translateX(3px); }
}
.nd-shake {
    animation: nd-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
    background: rgba(239, 68, 68, 0.08) !important;
    border-radius: 8px;
    outline: 1px solid rgba(239, 68, 68, 0.3);
}

/* Mobile Navigation: App-Island Refactor (v6.0) */
.nd-mobile-overlay { 
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(25px); z-index: 9999; opacity: 0; visibility: hidden; 
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
    display: flex; align-items: flex-start; justify-content: center; 
    padding: 1rem; pointer-events: none;
    overflow-y: auto; /* Permitir scroll en el overlay */
}
.nd-mobile-overlay.active { opacity: 1; visibility: visible; pointer-events: all; }

.nd-menu-island { 
    background: #0d0f14; border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 32px; width: 100%; max-width: 400px;
    display: flex; flex-direction: column;
    transform: translateY(30px) scale(0.95); transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.9);
    position: relative; 
    margin: auto 0; /* Centrado dinámico */
}
.nd-mobile-overlay.active .nd-menu-island { transform: translateY(0) scale(1); }

.nd-menu-header {
    padding: 1rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nd-menu-body { padding: 1rem; }

/* Grid de iconos 2x2 */
.nd-menu-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.nd-menu-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; padding: 0.75rem 0.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    text-decoration: none; color: #fff; transition: 0.3s;
}
.nd-menu-grid-item:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-5px); }

.m-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.icon-blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-purple { background: rgba(124, 77, 255, 0.1); color: #7c4dff; }
.icon-gold { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.nd-menu-grid-item span { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* Lista de enlaces secundarios */
.nd-menu-list { display: flex; flex-direction: column; gap: 0.5rem; }
.nd-menu-list-item {
    padding: 0.6rem 0.8rem; display: flex; align-items: center; gap: 0.7rem;
    color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 700;
    font-size: 0.9rem; border-radius: 12px; transition: 0.3s;
}
.nd-menu-list-item i { width: 24px; color: var(--brand-primary); }
.nd-menu-list-item:hover { background: rgba(255,255,255,0.03); color: #fff; }

.nd-menu-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 0.75rem 0; }

.nd-menu-footer-links { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.nd-menu-footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.4); text-decoration: none; font-weight: 600; }
.nd-menu-footer-links .dot { color: rgba(255,255,255,0.1); }

.nd-menu-bottom { padding: 1rem; background: rgba(255,255,255,0.02); display: flex; justify-content: center; }

.nd-menu-close {
    background: rgba(255,255,255,0.08); border: none; color: #fff;
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.3s;
}
.nd-menu-close:hover { background: #ef4444; transform: rotate(90deg); }

@media (max-width: 480px) {
    .nd-menu-island { border-radius: 32px; }
    .nd-menu-grid { gap: 0.75rem; }
    .nd-menu-grid-item { padding: 1.2rem 0.8rem; }
}
.nd-status-pill { background: rgba(0, 230, 118, 0.1); color: #00e676; padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.5px; border: 1px solid rgba(0, 230, 118, 0.2); }
.nd-mobile-toggle { 
    display: none; flex-direction: column; gap: 6px; background: none; border: none; 
    cursor: pointer; padding: 10px; width: 45px; z-index: 2001;
}
.nd-mobile-toggle span { 
    width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; 
    box-shadow: 0 0 10px rgba(124, 77, 255, 0.3);
}

@media (max-width: 920px) {
    .nd-desktop-links { display: none; }
    .nd-mobile-toggle { display: flex; }
}


/* 5. PRODUCT CARD SYSTEM (Cinematic) */
.card-product {
    background: var(--bg-glass); border: var(--border-glass); border-radius: var(--radius-std);
    display: flex; flex-direction: column; overflow: hidden; position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    min-height: auto; isolation: isolate;
}
.card-product:hover {
    transform: translateY(-8px); border-color: rgba(124, 77, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.product-image {
    width: 100%; height: 140px; object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    transition: transform 0.6s ease;
}
.card-product:hover .product-image { transform: scale(1.05); }

.card-content {
    flex: 1; padding: 1.2rem; display: flex; flex-direction: column;
    align-items: center; text-align: center; margin-top: -20px;
}

.product-title {
    font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
    color: #fff; margin-bottom: 0.3rem; line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-subtitle { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }

.product-price {
    font-family: var(--font-display); font-weight: 900; font-size: 1.6rem;
    color: var(--brand-secondary); margin: 0.5rem 0; line-height: 1;
}

.product-specs {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    background: rgba(255,255,255,0.05); padding: 0.2rem 0.6rem;
    border-radius: 4px; color: var(--text-secondary); margin-bottom: 1rem;
}

.card-footer { width: 100%; margin-top: auto; padding-bottom: 1rem; display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }

.btn-add-cart { width: 100%; padding: 0.9rem; font-size: 0.95rem; }
.btn.disabled, .btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; filter: grayscale(1); }

.product-note { 
    font-size: 0.75rem; color: #cbd5e1; display: flex; 
    align-items: center; gap: 0.4rem; padding: 0.5rem; 
    background: rgba(0,0,0,0.2); border-left: 2px solid var(--accent-warning); 
    border-radius: 6px; margin-top: 0.5rem;
}
.product-note.promo { border-left-color: var(--accent-success); }


/* Product Badges */
.badge-star {
    position: absolute; top: 0; right: 0; z-index: 10;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #000; font-weight: 800; font-size: 0.7rem; padding: 0.4rem 0.8rem;
    border-radius: 0 var(--radius-std) 0 var(--radius-std); text-transform: uppercase;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
}


/* 6. PAGE SECTIONS */

/* Hero Index */
.hero-section { 
    padding-top: 140px; 
    padding-bottom: 30px; 
    min-height: 560px;
    position: relative; 
    overflow: hidden; 
}

@media (max-width: 768px) {
    .hero-section { padding-top: 120px; padding-bottom: 0; }
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.hero-visual { position: relative; aspect-ratio: 1200/896; min-height: 350px; }
.visual-container { 
    border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-premium);
    transform: perspective(1000px) rotateY(-5deg); transition: 0.5s;
}
.visual-container:hover { transform: perspective(1000px) rotateY(0) translateY(-10px); }
.hero-img { width: 100%; height: auto; display: block; filter: contrast(1.1); }

@media (max-width: 1024px) {
    .hero-grid { display: flex; flex-direction: column; text-align: center; gap: 0.5rem; }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero-section { padding-top: 110px; padding-bottom: 20px; }
    .visual-container { min-height: auto; max-width: 420px; margin: 0 auto; }
}

.cta-group { display: flex; gap: 1rem; align-items: center; }
@media (max-width: 480px) { .cta-group { flex-direction: column; width: 100%; } .cta-group .btn { width: 100%; } }

.section-header { text-align: center; margin-bottom: 2.5rem; width: 100%; }
.catalog-preview { padding-top: 2rem; padding-bottom: 2rem; }
.catalog-actions { 
    display: flex; justify-content: center; align-items: center; 
    margin-top: 3rem; width: 100%;
}

.faq-container { max-width: 900px; margin: 0 auto; }


/* Benefits */
.benefits-section { padding-top: 1.75rem; padding-bottom: 2rem; }
.benefit-card { 
    padding: 3rem; text-align: center; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05); border-radius: 24px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
    will-change: transform, box-shadow;
    height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.benefits-section .grid-3 {
    min-height: 280px;
}

.combos-container {
    padding-top: 1.5rem;
}
.benefit-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.22); }

@media (max-width: 768px) {
    .hero-section { min-height: auto; }
    .benefits-section .grid-3 { min-height: auto; }
    .benefit-card { 
        padding: 1.5rem; 
        flex-direction: row; 
        text-align: left; 
        align-items: center; 
        gap: 1.2rem;
    }
    .card-icon { font-size: 2.2rem; margin-bottom: 0 !important; flex-shrink: 0; }
    .benefit-content { flex: 1; }
    .benefit-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; text-align: left; }
    .benefit-card p { font-size: 0.85rem; margin: 0; line-height: 1.4; text-align: left; }
}
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }

/* Editorial Insights */
.editorial-insights { padding: 4rem 0; position: relative; }
.editorial-container { padding: 4rem; border-radius: 40px; }
.editorial-header { margin-bottom: 3rem; text-align: center; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.editorial-text p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.editorial-text strong { color: #fff; font-weight: 700; }

@media (max-width: 1024px) {
    .editorial-grid { grid-template-columns: 1fr; gap: 2rem; }
    .editorial-container { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    .editorial-insights { 
        padding: 2.5rem 1.5rem !important; 
        margin-bottom: 1rem !important; 
        width: 100%; 
    }
    .editorial-container { 
        padding: 2rem 1.2rem !important; 
        border-radius: 24px; 
        width: 100%; 
        border: 1px solid rgba(255,255,255,0.1);
    }
    .editorial-header { margin-bottom: 2rem; text-align: center; }
    .editorial-header .display-2 { 
        font-size: 1.8rem; 
        text-align: center; 
        line-height: 1.3;
        margin-top: 0.5rem;
    }
    .editorial-grid { 
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .editorial-text p { 
        font-size: 1rem; 
        line-height: 1.8; 
        margin-bottom: 2rem; 
        color: rgba(255,255,255,0.7);
        text-align: left;
    }
}

/* Agency Solutions Section */
.agency-solutions { padding: 8rem 0; }
.service-card { padding: 3rem; text-align: center; height: 100%; transition: 0.4s; }
.service-card:hover { transform: translateY(-10px); border-color: var(--brand-primary); }
.service-icon { 
    font-size: 2.5rem; color: var(--brand-primary); margin-bottom: 1.5rem; 
    background: rgba(124, 77, 255, 0.1); width: 70px; height: 70px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 20px; margin: 0 auto 1.5rem;
}
.service-card h3 { margin-bottom: 1.2rem; font-family: var(--font-display); }
.service-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }

.differential-value-banner { 
    margin-top: 4rem; padding: 4rem 2rem; 
    background: linear-gradient(90deg, rgba(124, 77, 255, 0.1) 0%, rgba(0, 230, 118, 0.05) 100%);
    border: 1px solid rgba(255,255,255,0.1);
}
.differential-content { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; }
.diff-text h3 { font-size: 1.8rem; margin-bottom: 0.8rem; font-family: var(--font-display); }
.diff-text p { color: var(--text-secondary); max-width: 700px; }

@media (max-width: 768px) {
    .agency-solutions { 
        padding: 4rem 1.5rem !important; 
        margin-top: 1.5rem !important; 
    }
    .differential-content { flex-direction: column; text-align: center; }
    .diff-text h3 { font-size: 1.6rem; }
    .service-card { 
        padding: 2.5rem 1.5rem !important; 
        border-radius: 24px;
    }
    .differential-value-banner { 
        padding: 2.5rem 1.5rem !important; 
        border-radius: 24px !important;
        margin-top: 2rem !important;
    }
}

/* FAQ */
.faq-section { padding-top: 3rem; padding-bottom: 3rem; }
.faq-item { 
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 16px; margin-bottom: 1rem; overflow: hidden; 
}
.faq-item summary { 
    padding: 1.5rem; cursor: pointer; font-weight: 700; list-style: none; 
    display: flex; justify-content: space-between; align-items: center; 
}
.faq-item summary::after { content: '+'; color: var(--brand-primary); font-size: 1.5rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-answer { padding: 0 1.5rem 1.5rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* Utilities: Scroll Management */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Catalog Specific Nav Refinement */
.catalog-nav-wrapper { position: sticky; top: 80px; z-index: 100; background: var(--bg-base); padding: 1rem 0; }


/* Testimonials Marquee */
.marquee-container { width: 100%; overflow: hidden; padding: 3rem 0; position: relative; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 1rem)); } }

.review-card { 
    width: 350px; padding: 2rem; flex-shrink: 0; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 24px;
}
.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.user-avatar { 
    width: 48px; height: 48px; background: var(--brand-primary); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; 
    flex-shrink: 0; aspect-ratio: 1/1; /* Blindaje contra deformación */
}
.user-meta { min-width: 0; } /* Permite que el texto se trunque si es necesario */
.user-meta strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.main-footer { background: var(--bg-void); border-top: 1px solid rgba(255,255,255,0.05); padding: 3rem 0 3rem; margin-top: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-nav a { color: rgba(255,255,255,0.6); text-decoration: none; transition: 0.3s; }
.footer-nav a:hover { color: var(--brand-primary); }

/* Accessibility & Contrast Fixes (Audit Phase) */
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-icon { 
    color: #fff !important; 
    font-weight: 800; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    font-size: 0.95rem;
}
.social-icon i { color: #00e676; font-size: 1.2rem; }

.btn-footer-wa {
    background: #00e676 !important; /* Verde ultra-brillante */
    color: #030409 !important; /* Texto oscuro para contraste máximo (Ratio > 7:1) */
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}
.btn-footer-wa:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 230, 118, 0.3); }

@media (max-width: 920px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; text-align: center; } }

/* 7. BRAND THEMES (Optimized Overrides) */

/* Netflix */
.card-product[data-id^="nfx"] { 
    background: #000 radial-gradient(circle at 100% 100%, rgba(229, 9, 20, 0.2) 0%, transparent 60%); 
    border-color: rgba(229, 9, 20, 0.3);
}
.card-product[data-id^="nfx"] .product-price { color: #E50914; text-shadow: 0 0 15px rgba(229,9,20,0.3); }

/* Disney+ */
.card-product[data-id^="ds"] { 
    background: #020412 radial-gradient(circle at 100% 100%, rgba(17, 60, 207, 0.2) 0%, transparent 60%); 
    border-color: rgba(17, 60, 207, 0.3);
}
.card-product[data-id^="ds"] .product-price { color: #4da3ff; }

/* Max */
.card-product[data-id="max"] { 
    background: #050014 radial-gradient(circle at 100% 100%, rgba(124, 77, 255, 0.2) 0%, transparent 60%); 
    border-color: rgba(124, 77, 255, 0.3);
}

/* Amazon Prime */
.card-product[data-id="amz"] { 
    background: #081018 radial-gradient(circle at 100% 100%, rgba(0, 168, 225, 0.2) 0%, transparent 60%); 
    border-color: rgba(0, 168, 225, 0.3);
}

/* IPTV Special */
.card-product[data-id^="ip"] { 
    background: #0f0f12 radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.2) 0%, transparent 60%); 
    border-color: rgba(139, 92, 246, 0.3);
}

/* 8. MODULAR SYSTEMS (Interactions) */

/* 9. PRODUCT THEMATIC OVERRIDES */

/* YouTube & Red Themes */
.card-product[data-id^="yt"], .card-product[data-id="mega"] {
    background: #0f0f12 radial-gradient(circle at 100% 100%, rgba(239, 68, 68, 0.25) 0%, transparent 60%);
    border-color: rgba(239, 68, 68, 0.3);
}
.card-product[data-id^="yt"] .btn-add-cart, .card-product[data-id="mega"] .btn-add-cart {
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(239, 68, 68, 0.4);
}
.card-product[data-id^="yt"] .btn-add-cart:hover, .card-product[data-id="mega"] .btn-add-cart:hover {
    background: #dc2626; border-color: #dc2626;
}

/* Spotify & Green Themes */
.card-product[data-id="spo"], .card-product[data-id="gpt"] {
    background: #0f0f12 radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.25) 0%, transparent 60%);
    border-color: rgba(34, 197, 94, 0.3);
}
.card-product[data-id="spo"] .product-price, .card-product[data-id="gpt"] .product-price {
    color: #86efac; text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}
.card-product[data-id="spo"] .btn-add-cart, .card-product[data-id="gpt"] .btn-add-cart {
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(34, 197, 94, 0.4);
}
.card-product[data-id="spo"] .btn-add-cart:hover, .card-product[data-id="gpt"] .btn-add-cart:hover {
    background: #16a34a; border-color: #16a34a;
}

/* Red Themes Price Fix */
.card-product[data-id^="yt"] .product-price, .card-product[data-id="mega"] .product-price {
    color: #fca5a5; text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}




/* =========================================================================
   TOAST SYSTEM V4 — NexoDigital Premium
   Estilos estáticos (NO inyectados por JS) para garantizar disponibilidad
   inmediata antes de cualquier ejecución de scripts.
   ========================================================================= */

/* Contenedor: fixed, centrado horizontalmente, apila verticalmente */
.ndv4-container {
    position: fixed;
    top: 85px; /* Ajustado para aparecer debajo del navbar (aprox 70-80px) */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
    z-index: 2147483647;
    width: max-content;
    max-width: min(560px, 95vw);
}

/* Toast base */
.ndv4-toast {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.4rem 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left-width: 4px;
    background: rgba(13, 15, 22, 0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 100%;
    pointer-events: auto;

    /* Estado inicial: invisible + desplazado hacia arriba */
    opacity: 0;
    transform: translateY(-18px) scale(0.97);
    transition:
        opacity   0.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Acento lateral por tipo (signature del diseño legacy) */
.ndv4-toast--success { border-left-color: #10b981; }
.ndv4-toast--error   { border-left-color: #ef4444; }
.ndv4-toast--warning { border-left-color: #f59e0b; }
.ndv4-toast--info    { border-left-color: #3b82f6; }

/* Icono con fondo circular semitransparente */
.ndv4-icon-wrap {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem; /* Aumentado de 0.95rem */
}
.ndv4-toast--success .ndv4-icon-wrap { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.ndv4-toast--error   .ndv4-icon-wrap { background: rgba(239,  68,  68, 0.15); color: #ef4444; }
.ndv4-toast--warning .ndv4-icon-wrap { background: rgba(245, 158,  11, 0.15); color: #f59e0b; }
.ndv4-toast--info    .ndv4-icon-wrap { background: rgba( 59, 130, 246, 0.15); color: #3b82f6; }

/* Texto */
.ndv4-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* Barra de progreso de tiempo */
.ndv4-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    transform-origin: left center;
}
.ndv4-toast--success .ndv4-progress { background: #10b981; }
.ndv4-toast--error   .ndv4-progress { background: #ef4444; }
.ndv4-toast--warning .ndv4-progress { background: #f59e0b; }
.ndv4-toast--info    .ndv4-progress { background: #3b82f6; }

/* Estado: visible */
.ndv4-toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.ndv4-toast--visible .ndv4-progress {
    animation: ndv4-shrink 3.5s linear forwards;
}

/* Estado: saliendo */
.ndv4-toast--leaving {
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@keyframes ndv4-shrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* Mobile */
@media (max-width: 480px) {
    .ndv4-container {
        top: 75px; /* Ajustado para móviles */
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
    }
    .ndv4-toast {
        padding: 0.75rem 1rem 0.75rem 0.85rem;
        font-size: 0.875rem;
        border-radius: 14px;
        gap: 0.75rem;
    }
    .ndv4-icon-wrap { width: 28px; height: 28px; font-size: 0.85rem; }
}


/* Modals & Overlays */
.checkout-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 10000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(10px); }
.checkout-modal-content { background: #0d0f14; padding: 3rem; border-radius: 2rem; border: 1px solid var(--brand-primary); text-align: center; max-width: 500px; width: 90%; }

.nd-boot-overlay { position: fixed; inset: 0; background: var(--bg-base); z-index: 20000; display: flex; align-items: center; justify-content: center; }
.nd-boot-spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--brand-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Extra Animations */

/* SUCCESS MODAL PREMIUM V4 */
.nd-success-modal-overlay {
    position: fixed; inset: 0; 
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    animation: nd-fade-in 0.4s ease;
}

.nd-success-modal {
    background: #0d0f14;
    border: 1px solid var(--brand-primary);
    border-radius: 32px;
    padding: 3rem 2rem;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    animation: nd-modal-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nd-success-modal.leaving {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.nd-success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(124, 77, 255, 0.4));
}

.nd-success-modal h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.nd-success-modal p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.nd-btn-claim {
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    background: #25d366; color: #fff;
    padding: 1rem 2rem; border-radius: 50px;
    font-weight: 800; text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
    margin-bottom: 1rem;
}
.nd-btn-claim:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4); }

.nd-btn-close-modal {
    background: none; border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem; font-weight: 700;
    cursor: pointer; transition: 0.3s;
}
.nd-btn-close-modal:hover { color: #fff; }

@keyframes nd-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nd-modal-slide-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }


@keyframes nd-pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 77, 255, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(124, 77, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(124, 77, 255, 0); }
}


/* === ND COMBO CONSOLE (ULTRA COMPACT MOBILE) === */
.nd-combo-console { 
    background: var(--bg-void);
    padding-top: 2rem;
    padding-bottom: 4rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Máscara de fundido superior optimizada */
.nd-combo-console::after {
    content: '';
    position: absolute;
    top: -80px; left: 0; width: 100%; height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg-void));
    pointer-events: none;
}

@media (max-width: 768px) {
    .nd-combo-console { padding-top: 1rem; padding-bottom: 8rem; }
}

/* Efecto de orbe de luz ambiental detrás del título */
.nd-combo-console::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--family-color, #7c4dff), transparent 95%) 0%, transparent 60%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .nd-combo-console { padding-top: 0.5rem; }
}

.console-header { 
    padding: 1rem 0; text-align: center; display: flex; flex-direction: column; gap: 0.5rem;
    position: relative;
    z-index: 1;
}
.console-title { font-size: 1.5rem; font-weight: 900; letter-spacing: -1px; margin: 0; }

.family-selector-mini { 
    display: flex; gap: 0.5rem; justify-content: center; overflow-x: auto; 
    padding: 0.5rem; scrollbar-width: none;
}
.f-mini-btn { 
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem 1rem; border-radius: 12px; color: rgba(255,255,255,0.5);
    font-size: 0.75rem; font-weight: 800; cursor: pointer; transition: 0.3s;
}
.f-mini-btn.active { background: var(--family-color, #7c4dff); color: #fff; border-color: var(--family-color, #7c4dff); }

.console-body {
    position: relative;
    z-index: 1;
}

.console-grid { 
    display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 1rem;
}

.console-box { 
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    padding: 0.75rem; border-radius: 16px;
}
.box-label { 
    display: block; font-size: 0.65rem; text-transform: uppercase; 
    font-weight: 900; color: var(--family-color, #7c4dff); margin-bottom: 0.8rem;
}

/* Mini Tiers */
.mini-tiers { display: flex; flex-direction: column; gap: 0.5rem; }
.tier-mini-card { 
    background: rgba(255,255,255,0.03); padding: 0.6rem 0.8rem; border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    transition: 0.2s; border: 1px solid transparent;
}
.tier-mini-card.active { border-color: var(--family-color, #7c4dff); background: rgba(124, 77, 255, 0.1); }
.t-name { font-size: 0.8rem; font-weight: 700; color: #fff; }
.t-val { font-size: 0.85rem; font-weight: 900; color: var(--family-color, #7c4dff); }

/* Base Pills */
.base-pills-compact { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill-mini { 
    background: rgba(124, 77, 255, 0.1); color: #fff; padding: 0.3rem 0.6rem;
    border-radius: 8px; font-size: 0.65rem; font-weight: 800; border: 1px solid rgba(124, 77, 255, 0.2);
}
.pill-mini.out-of-stock { opacity: 0.5; filter: grayscale(1); border-color: rgba(255,255,255,0.1); }

/* Addons Chips */
.addons-compact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin-top: 0.8rem; }
.addons-compact-grid.locked { opacity: 0.4; pointer-events: none; }

.addon-chip { 
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    padding: 0.5rem; border-radius: 12px; color: rgba(255,255,255,0.6);
    font-size: 0.65rem; font-weight: 800; cursor: pointer; transition: 0.3s;
    text-align: center; position: relative;
}
.addon-chip.active { background: var(--family-color, #7c4dff); color: #fff; border-color: var(--family-color, #7c4dff); }
.addon-chip.disabled { opacity: 0.3; cursor: not-allowed; }
.stock-tag { display: block; font-size: 0.5rem; color: #ef4444; margin-top: 2px; }

.addons-status-msg { font-size: 0.7rem; font-weight: 800; color: rgba(255,255,255,0.4); margin-bottom: 0.5rem; }
.status-complete { color: var(--brand-secondary); }
.status-error { color: #ef4444; }

/* Console Action Bar */
/* Action Bar Float (Commit 502f7b7) */
.console-action-bar { 
    position: sticky; 
    bottom: 0.5rem; 
    margin: 2rem auto 0 auto; 
    width: 95%; 
    max-width: 1000px;
    background: rgba(13, 15, 20, 0.85); 
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 0.8rem 1.5rem;
    border-radius: 24px; 
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.console-action-bar.ready { 
    border-color: var(--family-color, #7c4dff); 
    box-shadow: 0 0 30px rgba(124, 77, 255, 0.2); 
}

.bar-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 1rem;
}

.price-display { display: flex; flex-direction: column; }
.price-display small { 
    font-size: 0.6rem; 
    text-transform: uppercase; 
    font-weight: 800; 
    color: rgba(255, 255, 255, 0.5); 
}
.final-price { 
    font-size: 1.5rem; 
    font-weight: 900; 
    color: #fff; 
}

.btn-buy-console { 
    background: #fff; 
    color: #000; 
    border: none; 
    padding: 0.8rem 1.5rem;
    border-radius: 16px; 
    font-weight: 900; 
    font-size: 0.85rem; 
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy-console.waiting { 
    background: rgba(255, 255, 255, 0.1); 
    color: #fff; 
    cursor: not-allowed; 
}

/* Ajustes Móvil */
@media (max-width: 768px) {
    .console-action-bar {
        bottom: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 1rem 1.5rem;
    }
    .bar-flex { padding: 0; }
    .final-price { font-size: 1.3rem; }
    .btn-buy-console { padding: 0.7rem 1.2rem; font-size: 0.8rem; }
}

@media (max-width: 600px) {
    .console-grid { grid-template-columns: 1fr 1fr; }
    .full-width-mobile { grid-column: span 2; }
    .addons-compact-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 10. CSP UTILITIES & COMPONENT FIXES */
.text-center { text-align: center !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-8 { margin-bottom: 4rem !important; }
.mt-4 { margin-top: 2rem !important; }
.pb-8 { padding-bottom: 4rem !important; }
.opacity-6 { opacity: 0.6; }

.hero-lead-fixed { max-width: 800px; margin: 2rem auto 0; text-align: center; }

/* PayPal Integration Classes */
.nd-paypal-wrapper { min-height: 50px; margin-top: 1.5rem; width: 100%; }
.nd-paypal-info { font-size: 0.7rem; text-align: center; margin-top: 0.75rem; opacity: 0.6; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }

/* Testimonials CSP Fix */
.reviews-header-fixed { margin-bottom: 4rem; text-align: center; }
.reviews-title-fixed { text-align: center; margin-bottom: 0.5rem; }
.reviews-subtitle-fixed { text-align: center; color: rgba(255,255,255,0.6); }

/* Combo Quick-Access Premium Style (Gold Edition) */
.btn-combo-highlight { 
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
    color: #000 !important; 
    border: none !important;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.btn-combo-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

@media (max-width: 480px) {
    .btn-combo-highlight {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
    }
}

/* === BLOQUEO GLOBAL DURANTE CHECKOUT === */
body.nd-cart-locked .btn-add-cart,
body.nd-cart-locked .btn-buy-console,
body.nd-cart-locked .f-mini-btn,
body.nd-cart-locked .tier-mini-card,
body.nd-cart-locked .addon-chip {
    opacity: 0.5 !important;
    pointer-events: none !important;
    filter: grayscale(1);
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════
   SECCIÓN PLANES DE NEGOCIO IPTV (index.html)
   ═══════════════════════════════════════════════════════ */
.business-opp-section {
    padding: 4rem 0;
}

.biz-opp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.biz-opp-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.biz-opp-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 77, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.biz-opp-card.biz-featured {
    border-color: rgba(0, 230, 118, 0.25);
    background: rgba(0, 230, 118, 0.03);
}
.biz-opp-card.biz-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00e676, #7c4dff);
    border-radius: 1rem 1rem 0 0;
}
.biz-opp-card.biz-featured:hover {
    border-color: rgba(0, 230, 118, 0.5);
    box-shadow: 0 20px 50px rgba(0, 230, 118, 0.1);
}

.biz-opp-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid rgba(124, 77, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.biz-opp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.25);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--brand-primary);
    width: fit-content;
}

.biz-badge-green {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.3);
    color: #00e676;
}

.biz-opp-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-display);
    margin: 0;
}

.biz-opp-card > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

.biz-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
    margin: 0;
    padding: 0;
}

.biz-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.biz-feature-list li i {
    color: var(--brand-primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.biz-cta-btn {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
}

/* Banner inferior de asesoría */
.biz-cta-banner {
    padding: 2rem 2.5rem;
    margin-top: 0.5rem;
}

.biz-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.biz-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.biz-cta-label {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}

.biz-cta-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .biz-opp-grid { grid-template-columns: 1fr 1fr; }
    .biz-opp-card.biz-featured { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; }
}

@media (max-width: 768px) {
    .biz-opp-grid { grid-template-columns: 1fr; }
    .biz-opp-card.biz-featured { flex-direction: column; grid-column: auto; }
    .biz-cta-content { flex-direction: column; text-align: center; }
    .biz-cta-content .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   HEADER: Nuevos estilos para dropdown de emprendedores
   ═══════════════════════════════════════════════════════ */
.nd-drop-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0.5rem 0;
}

.nd-drop-highlight {
    background: rgba(0, 230, 118, 0.04);
}
.nd-drop-highlight i {
    color: var(--brand-secondary) !important;
}
.nd-drop-highlight:hover {
    background: rgba(0, 230, 118, 0.1) !important;
    color: #fff;
}

/* Íconos nuevos para menú móvil */
.icon-rocket {
    background: rgba(124, 77, 255, 0.15);
    color: #a78bfa;
}
.icon-biz {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.m-icon i {
    font-size: 1.4rem; /* Ajuste para que FontAwesome coincida con el peso visual de los SVGs */
}

.nd-menu-grid-reseller,
.nd-menu-grid-business {
    position: relative;
    overflow: hidden;
}
.nd-menu-grid-reseller::after {
    content: 'NUEVO';
    position: absolute;
    top: 6px;
    right: -20px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 2px 20px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
