:root {
    --bg-dark: #050508;
    --bg-space-blue: #0b0e1a;
    --bg-gradient: linear-gradient(135deg, #050508 0%, #0a0e24 50%, #050508 100%);
    --primary-lunar: #00f0ff;
    --primary-blue: #3b82f6;
    --indigo-glow: #6366f1;
    --accent-gold: #f59e0b;
    --success-green: #10b981;
    --error-red: #ef4444;
    
    --text-white: #f8fafc;
    --text-light: #e2e8f0;
    --text-gray: #94a3b8;
    --text-dark: #64748b;
    
    --glass-bg: rgba(8, 12, 28, 0.45);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    background-image: var(--bg-gradient);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
}

/* Selection */
::selection {
    background: rgba(0, 240, 255, 0.2);
    color: var(--text-white);
}

/* ==========================================================================
   STARFIELD BACKGROUND (Animación espacial fluida)
   ========================================================================== */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stars {
    background: transparent;
    box-shadow: 
        120px 80px #fff, 240px 300px rgba(255,255,255,0.7), 450px 120px rgba(255,255,255,0.4), 
        890px 400px #fff, 1100px 150px rgba(255,255,255,0.8), 1400px 600px #fff,
        200px 800px rgba(255,255,255,0.5), 750px 750px #fff, 1300px 900px rgba(255,255,255,0.6),
        1600px 200px #fff, 50px 500px rgba(255,255,255,0.8), 980px 850px #fff,
        1800px 700px rgba(255,255,255,0.4), 1250px 480px #fff, 550px 950px rgba(255,255,255,0.5);
    width: 1.5px;
    height: 1.5px;
    animation: spaceMove 120s linear infinite;
}

.stars2 {
    background: transparent;
    box-shadow: 
        300px 180px rgba(0,240,255,0.6), 620px 400px rgba(255,255,255,0.8), 850px 80px rgba(99,102,241,0.5),
        1050px 580px rgba(255,255,255,0.9), 1500px 350px rgba(0,240,255,0.4), 150px 650px rgba(255,255,255,0.7),
        500px 880px rgba(255,255,255,0.6), 1150px 820px rgba(99,102,241,0.7), 1750px 480px rgba(255,255,255,0.5),
        900px 980px rgba(0,240,255,0.5), 1350px 120px rgba(255,255,255,0.8), 400px 30px rgba(255,255,255,0.4);
    width: 2px;
    height: 2px;
    animation: spaceMove 80s linear infinite;
}

.stars3 {
    background: transparent;
    box-shadow: 
        180px 250px rgba(255,255,255,0.9), 550px 550px rgba(0,240,255,0.8), 950px 320px rgba(255,255,255,0.9),
        1200px 720px rgba(99,102,241,0.6), 1650px 800px rgba(255,255,255,0.7), 380px 780px rgba(255,255,255,0.5),
        800px 920px rgba(255,255,255,0.8), 1450px 480px rgba(0,240,255,0.6);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    animation: spaceMove 40s linear infinite;
}

@keyframes spaceMove {
    from { transform: translateY(0px); }
    to { transform: translateY(-1000px); }
}

/* ==========================================================================
   NAVBAR (Glassmorphic & Responsive)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(3, 3, 5, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: 0.7rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.moon-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
    animation: moonPulse 4s ease-in-out infinite alternate;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary-lunar) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-lunar);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-lunar), var(--indigo-glow));
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 4px;
    z-index: 1010;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION (Floating Moon & Tech details)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 5rem 2rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.03) 50%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-lunar {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--primary-lunar);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-lunar);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7);
    animation: dotPulse 1.5s infinite;
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, var(--primary-lunar) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    width: 100%;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--indigo-glow) 100%);
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.55), 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow);
}

/* GLOWING CSS MOON VISUAL (No parezca IA) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.moon-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    animation: floatMoon 6s ease-in-out infinite alternate;
}

.moon {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #a5f3fc 20%, #2563eb 50%, #0f172a 90%);
    border-radius: 50%;
    position: absolute;
    top: 25px;
    left: 25px;
    box-shadow: 
        inset -15px -15px 40px rgba(0, 0, 0, 0.95),
        inset 15px 15px 40px rgba(255, 255, 255, 0.25),
        0 0 60px rgba(0, 240, 255, 0.15),
        0 0 100px rgba(59, 130, 246, 0.1);
    overflow: hidden;
}

.craters {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.craters span {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5), inset -1px -1px 2px rgba(255,255,255,0.2);
}

.crater1 { width: 35px; height: 35px; top: 50px; left: 60px; }
.crater2 { width: 50px; height: 50px; top: 120px; left: 140px; }
.crater3 { width: 25px; height: 25px; top: 160px; left: 40px; }
.crater4 { width: 30px; height: 30px; top: 40px; left: 150px; }

.moon-ring {
    position: absolute;
    top: -25px;
    left: -25px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 50%;
    transform: rotateX(70deg) rotateY(15deg);
    pointer-events: none;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
}

.moon-ring-2 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 400px;
    height: 400px;
    border: 1px dashed rgba(99, 102, 241, 0.06);
    border-radius: 50%;
    transform: rotateX(65deg) rotateY(-20deg);
    pointer-events: none;
    animation: rotateRing 30s linear infinite;
}

.glow-orb {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 200px;
    height: 200px;
    background: var(--primary-lunar);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   SECTIONS GENERAL STYLING
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    color: var(--primary-lunar);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 50%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-lunar), var(--primary-blue));
    border-radius: 2px;
    margin: 1.2rem 0;
}

.section-desc {
    color: var(--text-gray);
    max-width: 620px;
    font-size: 1.05rem;
}

/* ==========================================================================
   SERVICES GRID (Modern, interactivo)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-lunar);
    margin-bottom: 1.8rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--indigo-glow));
    color: var(--text-white);
    border-color: var(--primary-lunar);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-features i {
    color: var(--primary-lunar);
    font-size: 0.9rem;
}

/* ==========================================================================
   SELLERS TABLE (Radicalmente Mejorada, de Alta Gama)
   ========================================================================== */
.sellers-section {
    position: relative;
}

.table-outer-wrapper {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(0,240,255,0.05));
    padding: 1px;
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.table-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 23px;
    padding: 0.5rem;
    overflow-x: auto;
}

.sellers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    min-width: 700px;
}

.sellers-table th {
    color: var(--primary-lunar);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sellers-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    transition: var(--transition-smooth);
}

.sellers-table tr:last-child td {
    border-bottom: none;
}

.sellers-table tr {
    transition: var(--transition-smooth);
}

.sellers-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.sellers-table tbody tr:hover {
    box-shadow: inset 4px 0 0 var(--primary-blue);
}

/* Perfil Seller */
.seller-profile {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.seller-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--indigo-glow) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.seller-info {
    display: flex;
    flex-direction: column;
}

.seller-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-white);
}

.seller-status-text {
    font-size: 0.75rem;
    color: var(--text-gray);
}

/* Placeholders para puestos vacíos */
.lock-profile .seller-avatar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    box-shadow: none;
}

.text-placeholder {
    color: var(--text-dark) !important;
    font-style: italic;
    font-weight: 400;
}

/* BADGES (Placas estilizadas) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-founder {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-gold);
}

.badge-cofounder {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--indigo-glow);
}

.badge-dev {
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary-lunar);
}

.badge-active {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-green);
}

.badge-offline {
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
    color: var(--text-dark);
}

/* Botón Telegram de Contacto */
.btn-contact-telegram {
    padding: 0.55rem 1.1rem;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.15), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(0, 136, 204, 0.3);
    color: #33b3ff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-contact-telegram:not(.disabled):hover {
    background: linear-gradient(135deg, #0088cc, #3b82f6);
    color: var(--text-white);
    border-color: #00f0ff;
    box-shadow: 0 0 12px rgba(0, 136, 204, 0.4);
    transform: scale(1.03);
}

.btn-contact-telegram.disabled {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-dark);
    cursor: not-allowed;
}

/* ==========================================================================
   APIs SHOWCASE (Terminal interactiva)
   ========================================================================== */
.api-showcase-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
    align-items: stretch;
}

.api-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.api-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(5px);
}

.api-btn.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, rgba(8, 12, 28, 0.5) 100%);
    border-color: var(--primary-blue);
    box-shadow: inset 3px 0 0 var(--primary-lunar);
}

.api-method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    min-width: 48px;
    text-align: center;
    letter-spacing: 0.5px;
}

.api-method.get {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.api-method.post {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.api-path {
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.api-console {
    background: #04060e;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
}

.console-header {
    background: rgba(8, 12, 28, 0.8);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-dots {
    display: flex;
    gap: 0.4rem;
}

.console-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background-color: var(--error-red); }
.dot-yellow { background-color: var(--accent-gold); }
.dot-green { background-color: var(--success-green); }

.console-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-gray);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-color: rgba(0, 240, 255, 0.2);
}

.console-body {
    padding: 1.5rem;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e2e8f0;
    max-height: 350px;
    flex-grow: 1;
}

.console-body code {
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==========================================================================
   DASHBOARD LIVE PREVIEW (Estética Lunar premium)
   ========================================================================== */
.dashboard-preview {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Pulse effects */
.pulse-blue { background: rgba(59, 130, 246, 0.1); color: var(--primary-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.pulse-indigo { background: rgba(99, 102, 241, 0.1); color: var(--indigo-glow); border: 1px solid rgba(99, 102, 241, 0.2); }
.pulse-cyan { background: rgba(0, 240, 255, 0.1); color: var(--primary-lunar); border: 1px solid rgba(0, 240, 255, 0.2); }
.pulse-green { background: rgba(16, 185, 129, 0.1); color: var(--success-green); border: 1px solid rgba(16, 185, 129, 0.2); }

.stat-info h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-sub {
    font-size: 0.72rem;
    color: var(--text-dark);
}

/* Text glow colors */
.text-glowing-blue { text-shadow: 0 0 10px rgba(59, 130, 246, 0.3); color: #60a5fa; }
.text-glowing-indigo { text-shadow: 0 0 10px rgba(99, 102, 241, 0.3); color: #818cf8; }
.text-glowing-cyan { text-shadow: 0 0 10px rgba(0, 240, 255, 0.3); color: var(--primary-lunar); }
.text-glowing-green { text-shadow: 0 0 10px rgba(16, 185, 129, 0.3); color: #34d399; }

/* Network Chart Card (Mock Visual) */
.network-chart-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

.chart-header h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.live-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: var(--success-green);
    padding: 0.3rem 0.6rem !important;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.chart-visual {
    height: 140px;
    display: flex;
    align-items: flex-end;
    padding-top: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-bars {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4px;
}

.chart-bar {
    flex-grow: 1;
    height: var(--height, 10%);
    background: linear-gradient(to top, rgba(59, 130, 246, 0.05) 0%, rgba(0, 240, 255, 0.55) 100%);
    border-radius: 3px 3px 0 0;
    transition: height 0.5s ease-in-out;
    position: relative;
}

.chart-bar:hover {
    background: linear-gradient(to top, rgba(59, 130, 246, 0.1) 0%, #00f0ff 100%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* ==========================================================================
   FOOTER (Diseño robusto y espacial)
   ========================================================================== */
.footer {
    background: #020204;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    margin-top: 8rem;
}

.footer-glow {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 3.5rem 2rem;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-brand-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    max-width: 380px;
}

.footer-socials {
    display: flex;
    gap: 0.9rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-lunar);
    color: var(--primary-lunar);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.7rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-lunar);
    transform: translateX(4px);
}

.footer-links a:hover i {
    opacity: 1;
}

.footer-contact-item {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact-item a:hover {
    color: var(--primary-lunar);
}

.font-icon-blue {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.support-badge {
    margin-top: 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: var(--success-green);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding: 1.8rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   ANIMATIONS (Intersection Observer & Keyframes)
   ========================================================================== */
/* Scroll Reveal base state */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Delay staggered animation for grids */
.services-grid .service-card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.3s; }

/* Custom Text Reveal */
.animate-text-reveal {
    animation: textReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-actions {
    animation: fadeIn 1.2s ease-out 0.6s both;
}

.hero-visual {
    animation: scaleIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatMoon {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes rotateRing {
    from { transform: rotateX(65deg) rotateY(-20deg) rotate(0deg); }
    to { transform: rotateX(65deg) rotateY(-20deg) rotate(360deg); }
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

@keyframes moonPulse {
    from { filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.4)); }
    to { filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.8)); }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-top: 3rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .moon-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .moon {
        width: 200px;
        height: 200px;
    }
    
    .moon-ring { width: 300px; height: 350px; }
    .moon-ring-2 { width: 340px; height: 340px; }
    
    .api-showcase-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(3, 3, 5, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 3rem 0;
        gap: 2.5rem;
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .badge-lunar {
        font-size: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   ADMIN PORTAL & SYSTEM INTEGRATIONS (Premium Estética Lunar)
   ========================================================================== */

/* Navbar link especial */
.admin-nav-link {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.4rem 1rem !important;
    border-radius: 50px;
    margin-left: 0.5rem;
    transition: var(--transition-smooth);
}

.admin-nav-link:hover, .admin-nav-link.active-admin {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary-lunar);
    color: var(--primary-lunar) !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* MODAL DE AUTENTICACIÓN (LOGIN) */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: none; /* Controlado por JS */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-content {
    background: var(--bg-space-blue);
    background-image: linear-gradient(180deg, rgba(8, 12, 28, 0.85) 0%, rgba(5, 5, 8, 0.95) 100%);
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalScaleUp {
    to { transform: scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-btn:hover {
    color: var(--primary-lunar);
    background: rgba(255, 255, 255, 0.05);
}

.modal-header-lunar {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon-glow {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: var(--primary-lunar);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.15); border-color: rgba(0, 240, 255, 0.2); }
    100% { box-shadow: 0 0 30px rgba(0, 240, 255, 0.35); border-color: rgba(0, 240, 255, 0.5); }
}

.modal-header-lunar h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.modal-header-lunar p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-lunar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-lunar label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group-lunar label i {
    color: var(--primary-blue);
}

.form-group-lunar input, 
.form-group-lunar select, 
.form-group-lunar textarea {
    background: rgba(5, 5, 8, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group-lunar input:focus, 
.form-group-lunar select:focus, 
.form-group-lunar textarea:focus {
    outline: none;
    border-color: var(--primary-lunar);
    background: rgba(11, 14, 26, 0.9);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    transition: var(--transition-smooth);
}

.password-toggle-btn:hover {
    color: var(--primary-lunar);
}

.login-alert {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    display: none;
}

.login-alert.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================================================
   PANEL DE ADMINISTRACIÓN (WORKSPACE COMPLETO OVERLAY)
   ========================================================================== */
.admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    background-image: linear-gradient(135deg, #020204 0%, #060918 50%, #020204 100%);
    z-index: 3000;
    display: none; /* Controlado por JS */
}

.admin-panel-overlay.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.admin-workspace {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: rgba(4, 6, 15, 0.7);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-shrink: 0;
}

.admin-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-user-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.user-avatar-glowing {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-lunar) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--bg-dark);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role-badge {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.admin-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
}

.admin-nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--primary-blue);
    color: var(--text-white);
}

.admin-nav-item.active i {
    color: var(--primary-lunar);
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.6));
}

.admin-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.btn-logout {
    width: 100%;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-logout:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

/* Contenido Principal */
.admin-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-navbar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(4, 5, 12, 0.3);
}

.admin-page-title h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-white);
}

.admin-page-title p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.btn-exit-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-exit-panel:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--primary-lunar);
    color: var(--primary-lunar);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.admin-scrollable-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2.5rem;
}

/* Tabs */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.admin-grid-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.admin-card {
    background: rgba(8, 12, 28, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.admin-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 38px;
    height: 38px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-blue);
}

.admin-card-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-intro-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.8rem;
}

/* Formularios de Panel */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.textarea-format-hint {
    font-size: 0.78rem;
    color: var(--text-dark);
    margin-top: 0.3rem;
    display: flex;
    justify-content: space-between;
}

.btn-text-action {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-text-action:hover {
    color: var(--primary-lunar);
}

.admin-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Tablas del Panel */
.admin-table-container {
    overflow-x: auto;
    max-height: 520px;
    overflow-y: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    color: var(--text-gray);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.admin-api-name {
    font-weight: 600;
    color: var(--text-white);
}

.admin-api-meta {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-top: 0.15rem;
}

.btn-api-action {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-api-action.edit {
    color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.btn-api-action.edit:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.btn-api-action.delete {
    color: var(--error-red);
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-api-action.delete:hover {
    background: var(--error-red);
    color: white;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Telegram Tab */
.input-desc {
    font-size: 0.78rem;
    color: var(--text-dark);
    margin-top: 0.2rem;
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-white);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + .toggle-slider {
    background-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(22px);
    background-color: var(--primary-lunar);
}

.toggle-label {
    font-size: 0.88rem;
    color: var(--text-light);
}

.tg-test-alert {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    display: none;
}

.tg-test-alert.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #a7f3d0;
}

.tg-test-alert.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.tg-setup-instructions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-num {
    width: 26px;
    height: 26px;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--primary-lunar);
    border-radius: 50%;
    color: var(--primary-lunar);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.step-content p a {
    color: var(--primary-lunar);
    text-decoration: none;
}

.step-content p code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Logs Console Tab */
.text-console-card {
    background: #030306 !important;
    border-color: rgba(0, 240, 255, 0.05) !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.console-logs-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.logs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logs-body {
    height: 480px;
    overflow-y: auto;
    background: #020204;
    padding: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.log-entry {
    line-height: 1.4;
    display: flex;
    gap: 0.6rem;
}

.log-timestamp {
    color: var(--text-dark);
    flex-shrink: 0;
}

.log-tag {
    font-weight: 700;
    flex-shrink: 0;
}

.log-tag.system { color: var(--primary-blue); }
.log-tag.auth { color: var(--indigo-glow); }
.log-tag.api { color: var(--primary-lunar); }
.log-tag.telegram { color: #229ed9; }
.log-tag.error { color: var(--error-red); }

.log-msg {
    color: var(--text-light);
    word-break: break-all;
}

/* ==========================================================================
   DYNAMIC API CATALOG (Sección #apis)
   ========================================================================== */
.api-catalog-section {
    margin-top: 4.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 3.5rem;
}

.section-subheader {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-subheader h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-white);
}

.section-subheader h3 i {
    color: var(--primary-lunar);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.section-subheader p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.api-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.api-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.api-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.api-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 240, 255, 0.08);
}

.api-card:hover::before {
    opacity: 1;
}

.api-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.api-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
}

.api-card-method {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.api-card-method.get { background: rgba(16, 185, 129, 0.12); color: var(--success-green); border: 1px solid rgba(16, 185, 129, 0.2); }
.api-card-method.post { background: rgba(59, 130, 246, 0.12); color: var(--primary-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.api-card-method.put { background: rgba(245, 158, 11, 0.12); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.2); }
.api-card-method.delete { background: rgba(239, 68, 68, 0.12); color: var(--error-red); border: 1px solid rgba(239, 68, 68, 0.2); }

.api-card-path {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--primary-lunar);
    background: rgba(0, 240, 255, 0.04);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 1.3rem;
    word-break: break-all;
    border: 1px solid rgba(0, 240, 255, 0.05);
}

.api-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.api-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-gray);
}

/* Custom Badges para APIs */
.badge-api {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* Solver Badges */
.badge-solver-no {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-solver-v2 {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.1);
}

.badge-solver-v3 {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.1);
}

/* Lenguaje Badges */
.badge-lang-php {
    background: rgba(79, 93, 149, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(79, 93, 149, 0.3);
}

.badge-lang-python {
    background: rgba(234, 179, 8, 0.1);
    color: #fef08a;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.badge-lang-node {
    background: rgba(132, 204, 22, 0.1);
    color: #bef264;
    border: 1px solid rgba(132, 204, 22, 0.25);
}

.badge-lang-go {
    background: rgba(6, 182, 212, 0.1);
    color: #a5f3fc;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-lang-generic {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.api-seller-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.api-seller-link:hover {
    color: var(--primary-lunar);
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4));
}

.btn-api-test {
    width: 100%;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: var(--text-white);
    padding: 0.65rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-api-test:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-lunar) 100%);
    border-color: transparent;
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   ADMIN PORTAL RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .admin-grid-two-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-workspace {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1.5rem;
    }
    
    .admin-brand {
        margin-bottom: 1.2rem;
    }
    
    .admin-user-info {
        margin-bottom: 1.2rem;
    }
    
    .admin-nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .admin-sidebar-footer {
        display: none; /* En mobile logout se maneja diferente */
    }
    
    .admin-navbar-top {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-scrollable-area {
        padding: 1.5rem;
    }
    
    .form-row-two, .form-row-three {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   METODOS DE PAGO SECTION (Estética Lunar Premium)
   ========================================================================== */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.payment-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.payment-card:hover {
    transform: translateY(-8px);
}

.binance-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.15);
}

.nequi-card:hover {
    border-color: rgba(219, 39, 119, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(219, 39, 119, 0.15);
}

.payment-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -50px;
    left: -50px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.payment-card:hover .payment-glow {
    width: 300px;
    height: 300px;
}

.binance-card .payment-glow {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

.nequi-card .payment-glow {
    background: radial-gradient(circle, rgba(219, 39, 119, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

.payment-badge, .payment-badge-pink {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.payment-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.payment-badge-pink {
    background: rgba(219, 39, 119, 0.1);
    color: #f472b6;
    border: 1px solid rgba(219, 39, 119, 0.25);
}

.payment-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

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

.text-glowing-gold {
    color: #f59e0b;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
}

.text-glowing-pink {
    color: #db2777;
    filter: drop-shadow(0 0 10px rgba(219, 39, 119, 0.5));
}

.payment-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-white);
}

.payment-instructions {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 320px;
}

.payment-details-box {
    width: 100%;
    background: rgba(5, 5, 8, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.details-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

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

.details-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.btn-copy-id, .btn-contact-nequi {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--primary-blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-copy-id:hover {
    background: var(--primary-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.btn-contact-nequi {
    background: rgba(219, 39, 119, 0.1);
    border-color: rgba(219, 39, 119, 0.25);
    color: #f472b6;
}

.btn-contact-nequi:hover {
    background: #db2777;
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(219, 39, 119, 0.4);
    transform: scale(1.05);
}

.payment-footer-note {
    font-size: 0.8rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.payment-footer-note i {
    font-size: 0.95rem;
}
