:root {
    --brand-purple: #8112ff;
    --brand-green: #00e676;
    --brand-orange: #ff6d00;
    --bg: #0c0d16;
    --bg-card: rgba(12, 13, 22, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --glow-purple: rgba(129, 18, 255, 0.25);
    --glow-green: rgba(0, 230, 118, 0.2);
}

/* ─── MESH BACKGROUND ─────────────────────────────────────── */
/* Fixed behind EVERYTHING — z-index -10 */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    background-color: var(--bg);
    overflow: hidden;
    pointer-events: none;
}

.mesh-gradient {
    position: absolute;
    width: 120vmax;
    height: 120vmax;
    top: -60%;
    left: -60%;
    background: radial-gradient(circle at center, var(--glow-purple) 0%, transparent 55%);
    filter: blur(100px);
    opacity: 0.5;
    animation: mesh-rotate 35s linear infinite;
}

.mesh-gradient.secondary {
    background: radial-gradient(circle at center, var(--glow-green) 0%, transparent 55%);
    animation: mesh-rotate 28s linear infinite reverse;
    top: 20%;
    left: 30%;
    opacity: 0.35;
}

@keyframes mesh-rotate {
    0%   { transform: rotate(0deg) scale(1); }
    33%  { transform: rotate(120deg) scale(1.15); }
    66%  { transform: rotate(240deg) scale(0.85); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ─── FLOATING MOCKUP ─────────────────────────────────────── */
.floating-product-wrap {
    perspective: 1800px;
    width: 100%;
    max-width: 700px;
    margin: 60px auto 0;
}

.floating-product {
    width: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.floating-product img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(129, 18, 255, 0.3)) drop-shadow(0 10px 30px rgba(0,0,0,0.6));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100%;
    position: relative;
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    z-index: 0;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
/* All content above z-index:0 sits above mesh background */
.ambient-layer {
    display: none; /* replaced by mesh-bg */
}

@keyframes float {
    from { transform: translate(-10%, -10%); }
    to { transform: translate(15%, 20%); }
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.3;
    z-index: -1;
    animation: drift linear infinite;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: 68px;
    background: rgba(8, 8, 18, 0.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 100px;
    border: 1px solid rgba(129, 18, 255, 0.25);
    box-shadow: 0 0 24px rgba(129, 18, 255, 0.12), 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(8, 8, 18, 0.96);
    border-color: rgba(129, 18, 255, 0.4);
}

/* Full-width inner container with padding */
.nav-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    gap: 24px;
}

/* Logo area — auto width, no overflow */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
    width: auto;
}

/* Logo image — strictly contained */
.nav-logo-img-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;          /* CRITICAL: clips the image to its box */
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;       /* scale inside, never overflow */
    display: block;
}

.nav-logo span {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
}

/* Centered nav links */
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    flex: 1;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

/* Right-side actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    width: auto;
    justify-content: flex-end;
}

.nav-login {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-login:hover { color: white; }

.btn-dashboard {
    background: var(--brand-purple);
    color: white;
    padding: 10px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(129, 18, 255, 0.2);
    white-space: nowrap;
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(129, 18, 255, 0.4);
}

.btn-demo {
    background: rgba(180, 122, 255, 0.1);
    color: #cbd5e1;
    padding: 10px 22px;
    border-radius: 12px;
    border: 1px solid rgba(180, 122, 255, 0.45);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(180, 122, 255, 0.1);
}

.btn-demo:hover {
    background: rgba(180, 122, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(180, 122, 255, 0.85);
    box-shadow: 0 0 20px rgba(180, 122, 255, 0.35);
}

.btn-demo .pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #a855f7;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #a855f7;
    animation: demoPulse 1.5s infinite;
}

@keyframes demoPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(168, 85, 247, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

/* Mobile Toggle Trigger Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: rgba(129, 18, 255, 0.2);
    transition: background 0.2s;
}

.mobile-menu-toggle:active {
    background: rgba(129, 18, 255, 0.2);
}

.mobile-menu-toggle svg,
.mobile-menu-toggle i {
    width: 26px;
    height: 26px;
    color: white;
    stroke: white;
    display: block;
    pointer-events: none;
}

/* Space background stars */
.space-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, rgba(255, 255, 255, 0.4), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.6), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, rgba(129, 18, 255, 0.5), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 150px 120px, rgba(255, 255, 255, 0.35), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 250px 50px, rgba(0, 230, 118, 0.4), rgba(0,0,0,0));
    background-size: 350px 350px;
    opacity: 0.55;
    animation: space-drift 120s linear infinite;
    pointer-events: none;
}

@keyframes space-drift {
    from { background-position: 0 0; }
    to { background-position: 350px 700px; }
}

/* Mobile drawer glassmorphism styling */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: rgba(8, 8, 18, 0.94);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(129, 18, 255, 0.2);
    z-index: 2500;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px 24px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close svg,
.mobile-menu-close i {
    width: 24px;
    height: 24px;
    color: white;
}

.drawer-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.drawer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
    display: block;
    padding: 8px 0;
}

.drawer-links a:hover,
.drawer-links a.active {
    color: white;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-login {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 12px;
    transition: color 0.3s;
}

.drawer-login:hover {
    color: white;
}

.drawer-btn {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    font-size: 14px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Common Structural Layouts */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

.section-block {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.mini-tag {
    color: var(--brand-green);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    margin-bottom: 16px;
    display: inline-block;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 24px;
}

/* HERO SECTION */
.hero-block {
    padding: 120px 5% 80px;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 40px;
}

.hero-tag span { width: 6px; height: 6px; background: var(--brand-green); border-radius: 50%; box-shadow: 0 0 10px var(--brand-green); }

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title span { 
    color: var(--brand-green);
    background: linear-gradient(90deg, #00e676, #00ff88, #00e676);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer-text 3s linear infinite;
}

@keyframes shimmer-text {
    to { background-position: 200% center; }
}

/* Hero Animations — reveal-up starts VISIBLE; GSAP overrides if loaded */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { }
.delay-2 { }
.delay-3 { }
.delay-4 { }
.delay-5 { }

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.2); }
    50% { box-shadow: 0 0 40px rgba(0, 230, 118, 0.5); }
}

.btn-main {
    background: var(--brand-green);
    color: #050508;
    padding: 18px 40px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-main:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 230, 118, 0.3); }

/* CARDS: SIN LÍMITES & FUNCIONALIDADES */
.card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 40px;
    border: 1px solid var(--border);
    position: relative;
    text-align: left;
    transition: var(--transition);
}

.card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); }
.card.orange:hover { border-color: var(--brand-orange); box-shadow: 0 10px 30px rgba(255, 109, 0, 0.1); }
.card.green:hover { border-color: var(--brand-green); box-shadow: 0 10px 30px rgba(0, 230, 118, 0.1); }
.card.purple:hover { border-color: var(--brand-purple); box-shadow: 0 10px 30px rgba(129, 18, 255, 0.1); }

.limit-num {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Bebas Neue';
    font-size: 100px;
    line-height: 1;
    opacity: 0.03;
    color: white;
    pointer-events: none;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: white;
}

.card h3 { font-size: 24px; margin-bottom: 16px; font-weight: 800; color: white; line-height: 1.3; }
.card p { color: var(--text-muted); font-size: 15px; font-weight: 300; line-height: 1.6; }

/* SECURITY BLOCK */
.security-wrap { padding: 0 24px; margin-bottom: 100px; }

.security-block {
    background: radial-gradient(circle at top right, rgba(129, 18, 255, 0.1), transparent 50%), var(--bg-card);
    border-radius: 40px;
    padding: 80px 40px;
    border: 1px solid var(--border);
}

.stats-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.stats-row h3 { font-size: 48px; font-family: 'Bebas Neue'; color: var(--brand-green); line-height: 1; }
.stats-row p { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; font-weight: 600;}

/* CTA MODERN */
.cta-wrap { padding: 0 24px; margin-bottom: 100px; }

.cta-modern {
    background: linear-gradient(135deg, var(--brand-purple) 0%, #30006e 100%);
    padding: 100px 40px;
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(129, 18, 255, 0.5);
    box-shadow: 0 20px 50px rgba(129, 18, 255, 0.15);
}

/* NEWSLETTER */
.news-wrap { padding: 0 24px; margin-bottom: 100px; }

.news-block {
    background: var(--bg-card);
    padding: 60px 80px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    gap: 40px;
}

.news-input-wrap {
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 100px;
    display: flex;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border);
}

.news-input-wrap input {
    background: transparent;
    border: none;
    padding: 0 25px;
    flex: 1;
    outline: none;
    font-family: 'Outfit';
    color: white;
    font-size: 15px;
}

/* PRECIOS CARDS */
.p-card {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 50px 40px;
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.p-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.2); }
.p-card.popular { border: 2px solid var(--brand-purple); box-shadow: 0 20px 40px rgba(129, 18, 255, 0.15); }

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-purple);
    color: white;
    padding: 6px 24px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.p-list { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.p-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-main); margin-bottom: 16px; }
.p-list li svg { flex-shrink: 0; color: var(--brand-green); margin-top: 4px; }

.p-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: rgba(129, 18, 255, 0.1);
    color: var(--brand-purple);
    font-family: 'Outfit';
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.p-btn:hover { background: rgba(129, 18, 255, 0.2); }
.p-card.popular .p-btn { background: var(--brand-purple); color: white; }
.p-card.popular .p-btn:hover { background: #9638ff; box-shadow: 0 10px 20px rgba(129, 18, 255, 0.3); }

/* ALL FEATURES SECTION */
.features-compare-section {
    max-width: 1100px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.features-compare-section .section-header { margin-bottom: 50px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    transition: var(--transition);
}

.feature-category:hover { border-color: rgba(255, 255, 255, 0.2); }

.feature-category h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.feature-category ul { list-style: none; }
.feature-category li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}
.feature-category li svg { color: var(--brand-green); flex-shrink: 0; margin-top: 2px; }

/* FAQ SECTION */
.faq-section { max-width: 900px; margin: 60px auto 100px; padding: 0 24px; }
.faq-section .section-header { margin-bottom: 50px; }
.faq-list { display: flex; flex-direction: column; gap: 20px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px 40px;
    text-align: left;
    transition: var(--transition);
}
.faq-item:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.03);
    transform: translateY(-3px);
}
.faq-item h4 { color: white; font-size: 18px; margin-bottom: 12px; font-weight: 700; letter-spacing: 0.2px; }
.faq-item p { color: var(--text-muted); font-size: 15px; font-weight: 300; line-height: 1.6; }

/* --- EXPLORAR SECTION --- */
.explore-hero {
    background: linear-gradient(135deg, rgba(129, 18, 255, 0.15) 0%, transparent 100%);
    padding: 140px 5% 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.explore-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.explore-title span {
    background: linear-gradient(90deg, var(--brand-purple), var(--brand-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-bar-wrap {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-family: 'Outfit';
    outline: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: white;
}

.search-btn {
    background: var(--brand-purple);
    color: white;
    border: none;
    padding: 0 40px;
    border-radius: 100px;
    font-weight: 700;
    font-family: 'Outfit';
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover { background: #9638ff; box-shadow: 0 5px 15px rgba(129, 18, 255, 0.3); }

.filter-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.filter-chip {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-chip:hover { border-color: var(--text-muted); color: white; }
.filter-chip.active { background: var(--brand-purple); border-color: var(--brand-purple); color: white; }

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 100px;
    cursor: pointer;
}

.store-results-wrap {
    max-width: 1200px;
    margin: 40px auto 100px;
    padding: 0 24px;
}

.results-count {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.results-count b { color: white; }

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.s-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.s-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); }

.s-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
}

.s-card.c-red::before { background: #ec4899; }
.s-card.c-purple::before { background: var(--brand-purple); }
.s-card.c-blue::before { background: #3b82f6; }
.s-card.c-green::before { background: var(--brand-green); }
.s-card.c-orange::before { background: var(--brand-orange); }

.s-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    margin-top: 8px;
}

.s-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
}

.s-info h3 { font-size: 18px; color: white; font-weight: 700; margin-bottom: 6px; }

.s-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.s-card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.s-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--brand-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-green);
}

.s-products { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* FOOTER ANIMADO */
.footer-bottom {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-anim { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }

.author-tag {
    position: relative;
    font-weight: 700;
    color: var(--brand-green);
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(0, 230, 118, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: inline-block;
}

.author-tag:hover { color: white; background: var(--brand-green); box-shadow: 0 0 15px var(--brand-green); }

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.copyright-text span { animation: pulse-text 3s infinite; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* RESPONSIVE REGLAS GENERALES */
@media (max-width: 960px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .news-block { flex-direction: column; text-align: center; padding: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .search-bar-wrap { flex-direction: column; }
    .search-btn { padding: 16px 40px; }
    .filter-checkbox { margin-left: 0; width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .grid-3, .features-grid { grid-template-columns: 1fr; }
    
    /* ─── NAVBAR MOBILE ─────────────────────────────────── */
    #navbar {
        /* CRÍTICO: usar left+right en lugar de left:50%+transform
           El transform en position:fixed falla en algunos Android/Chrome mobile */
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        height: 56px;
        top: 10px;
        border-radius: 18px;
    }
    .nav-inner {
        padding: 0 14px;
        gap: 0;
        justify-content: space-between;
    }
    /* Logo siempre visible en mobile */
    .nav-logo {
        flex: 1;
        gap: 8px;
        min-width: 0;
    }
    .nav-logo-img-wrap {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border-radius: 8px;
    }
    .nav-logo-img {
        width: 28px;
        height: 28px;
    }
    .nav-logo span {
        font-size: 14px;
        letter-spacing: 1.5px;
        white-space: nowrap;
    }
    /* Ocultar links y botones desktop */
    .nav-links {
        display: none !important;
    }
    .nav-actions {
        display: none !important;
    }
    /* Mostrar hamburger */
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
    }

    /* ─── HERO MOBILE ───────────────────────────────────── */
    .page-content {
        padding-top: 76px;
    }
    .hero-block {
        padding: 30px 5% 60px;
    }
    .hero-title {
        font-size: clamp(40px, 10vw, 60px);
        letter-spacing: -1px;
    }

    /* Otras secciones */
    .news-block { flex-direction: column; text-align: center; padding: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .search-bar-wrap { flex-direction: column; }
    .search-btn { padding: 16px 40px; }
    .filter-checkbox { margin-left: 0; width: 100%; justify-content: center; }
}

.auth-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 120px 20px 80px;
    min-height: 100vh;
}

.auth-card {
    background: rgba(12, 13, 22, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 50px;
    width: 100%;
    max-width: 480px;
    margin: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(129, 18, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.auth-header h1 { font-size: 32px; font-weight: 800; color: white; margin-bottom: 12px; }

/* Role Toggle */
.role-toggle-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.role-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.role-option.active {
    background: rgba(129, 18, 255, 0.1);
    border-color: var(--brand-purple);
    box-shadow: 0 0 20px rgba(129, 18, 255, 0.1);
}

.role-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.role-option.active .role-icon {
    background: var(--brand-purple);
    color: white;
}

.role-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-info strong {
    font-size: 14px;
    color: white;
}

.role-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 300;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-left: 4px;
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 20px;
    color: white;
    font-family: 'Outfit';
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--brand-purple);
    background: rgba(129, 18, 255, 0.05);
    box-shadow: 0 0 15px rgba(129, 18, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: #050508;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: #0c0d16;
    padding: 0 15px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-alert {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.p-card.selected {
    border: 2px solid var(--brand-green);
    background: rgba(0, 230, 118, 0.05);
    box-shadow: 0 15px 30px rgba(0, 230, 118, 0.1);
}

.p-card.selected .p-btn {
    background: var(--brand-green);
    color: #050508;
}

/* Icon Utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.text-brand-green { color: var(--brand-green); }

/* --- Explore Directory Toggles (Premium Redesign) --- */
.explore-toggle-wrap {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 24px;
    margin: 32px auto;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 48px;
    border-radius: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid transparent;
}

.toggle-btn svg {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
    width: 22px;
    height: 22px;
}

.toggle-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #8112ff, #630ed4);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(129, 18, 255, 0.5), 0 0 0 4px rgba(129, 18, 255, 0.1);
}

.toggle-btn.active svg {
    opacity: 1;
    transform: scale(1.2) rotate(-5deg);
}

.toggle-btn.active svg {
    opacity: 1;
    transform: scale(1.15);
}

@media (max-width: 600px) {
    .explore-toggle-wrap {
        display: flex;
        width: calc(100% - 32px);
        max-width: 360px;
        margin: 24px auto;
        padding: 4px;
        border-radius: 20px;
    }
    .toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
        gap: 8px;
        border-radius: 16px;
    }
    .toggle-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* --- Professional Service Cards --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.prof-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.prof-card::after {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: var(--prof-color);
    opacity: 0.15;
    filter: blur(60px);
    border-radius: 50%;
    z-index: 0;
}

.prof-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.prof-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.prof-avatar {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: var(--prof-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 900;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.prof-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prof-main-info h3 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.prof-cat {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--prof-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prof-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

.prof-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.prof-loc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.prof-action {
    font-size: 14px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.prof-card:hover .prof-action {
    color: var(--prof-color);
    transform: translateX(5px);
}

/* ==========================================
   ═══ SANDBOX SELECTION MODAL SYSTEM ═══
   ========================================== */
.sandbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

.sandbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.sandbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 10, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sandbox-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: rgba(12, 13, 22, 0.85);
    border: 1px solid rgba(180, 122, 255, 0.2);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(129, 18, 255, 0.1);
    border-radius: 32px;
    padding: 50px 40px 40px;
    z-index: 10;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', sans-serif;
    color: white;
}

.sandbox-modal.open .sandbox-content {
    transform: translateY(0) scale(1);
}

.sandbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.sandbox-close:hover {
    background: rgba(255, 59, 48, 0.15);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
    transform: rotate(90deg);
}

.sandbox-header {
    text-align: center;
    margin-bottom: 40px;
}

.sandbox-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(180, 122, 255, 0.1);
    border: 1px solid rgba(180, 122, 255, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c084fc;
    margin-bottom: 20px;
}

.sandbox-tag span {
    width: 6px;
    height: 6px;
    background: #c084fc;
    border-radius: 50%;
    box-shadow: 0 0 8px #c084fc;
}

.sandbox-header h2 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sandbox-header p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.sandbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sandbox-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.sandbox-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(185deg, rgba(255,255,255,0.08), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.sandbox-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
}

.store-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.06);
}

.panel-card:hover {
    border-color: rgba(129, 18, 255, 0.3);
    box-shadow: 0 15px 35px rgba(129, 18, 255, 0.06);
}

.sandbox-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.5s;
}

.sandbox-card:hover .sandbox-card-icon {
    transform: scale(1.1) rotate(-3deg);
}

.store-card .sandbox-card-icon {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.panel-card .sandbox-card-icon {
    background: rgba(129, 18, 255, 0.1);
    border: 1px solid rgba(129, 18, 255, 0.2);
    color: #a855f7;
}

.sandbox-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.sandbox-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 28px;
    flex-grow: 1;
}

.sandbox-card-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
}

.store-card .sandbox-card-btn {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.store-card .sandbox-card-btn:hover {
    background: #10b981;
    color: #050508;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.panel-card .sandbox-card-btn {
    background: rgba(129, 18, 255, 0.1);
    color: #a855f7;
    border: 1px solid rgba(129, 18, 255, 0.2);
}

.panel-card .sandbox-card-btn:hover {
    background: #a855f7;
    color: white;
    box-shadow: 0 8px 20px rgba(129, 18, 255, 0.3);
}

@media (max-width: 768px) {
    .sandbox-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .sandbox-content {
        padding: 40px 24px 24px;
        max-height: 90vh;
        overflow-y: auto;
    }
    .sandbox-header h2 {
        font-size: 28px;
    }
    .sandbox-card {
        padding: 24px;
    }
}
