/**
 * RMPowerTech — Neurovia Dual Edition v6.0
 * Basado fielmente en Neurovia AI Agency (Obsidiana #010102 + Cyan #00C9FF + Violeta #6207BC)
 * Con soporte Dual (Modo Oscuro + Modo Claro WCAG AAA), fuente Sora y tus 26 Apps 100% internas.
 */

/* =========================================================
   1. TOKENS DUALES NEUROVIA (OSCURO & CLARO)
   ========================================================= */
:root,
html[data-theme="light"] {
    --nv-bg: #FFFFFF;
    --nv-bg-alt: #F6F7FB;
    --nv-surface: rgba(255, 255, 255, 0.92);
    --nv-surface-2: #F1F4F9;
    --nv-border: #E2E8F0;
    --nv-border-hover: rgba(98, 7, 188, 0.45);
    --nv-text: #0B0B0C;
    --nv-body: #334155;
    --nv-muted: #64748B;
    --nv-primary: #6207BC;
    --nv-cyan: #0284C7;
    --nv-grad: linear-gradient(90deg, #6207BC 0%, #00A8E8 100%);
    --nv-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --nv-shadow-hover: 0 22px 45px rgba(98, 7, 188, 0.14);
}

html[data-theme="dark"] {
    --nv-bg: #010102;
    --nv-bg-alt: #07011F;
    --nv-surface: rgba(11, 11, 14, 0.84);
    --nv-surface-2: rgba(18, 16, 30, 0.88);
    --nv-border: rgba(255, 255, 255, 0.09);
    --nv-border-hover: rgba(0, 201, 255, 0.45);
    --nv-text: #FFFFFF;
    --nv-body: #B8C1CC;
    --nv-muted: #8B95A5;
    --nv-primary: #6207BC;
    --nv-cyan: #00C9FF;
    --nv-grad: linear-gradient(90deg, #00C9FF 0%, #6207BC 100%);
    --nv-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    --nv-shadow-hover: 0 24px 50px rgba(0, 201, 255, 0.12);
}

body {
    font-family: 'Sora', 'Inter', sans-serif !important;
    background-color: var(--nv-bg) !important;
    color: var(--nv-body) !important;
}

h1, h2, h3, h4, h5, .nv-title, .section-title {
    font-family: 'Sora', 'Inter', sans-serif !important;
}

/* =========================================================
   2. ENCABEZADOS FIRMA NEUROVIA (SOLO 1 PALABRA EN DEGRADADO)
   ========================================================= */
.nv-sec-header {
    margin-bottom: 44px;
}

.nv-sec-header.text-center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.nv-sub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--nv-cyan);
    margin-bottom: 12px;
}

.nv-title {
    font-size: clamp(1.9rem, 3.6vw, 2.95rem) !important;
    font-weight: 700 !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em !important;
    color: var(--nv-text) !important;
    -webkit-text-fill-color: var(--nv-text) !important;
    background: none !important;
    margin: 0 0 14px 0 !important;
}

.nv-title span {
    background: var(--nv-grad) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

.nv-lead {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--nv-body);
    margin: 0;
}

/* Botones Neurovia */
.nv-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 9999px;
    background: var(--nv-grad);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(98, 7, 188, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 201, 255, 0.35);
    color: #ffffff !important;
}

.nv-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 9999px;
    background: transparent;
    border: 1.5px solid var(--nv-border-hover);
    color: var(--nv-text) !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nv-btn-outline:hover {
    background: var(--nv-surface-2);
    border-color: var(--nv-cyan);
    transform: translateY(-2px);
}

/* =========================================================
   3. HERO VIDEO + ORBITAL TECH HUB (SIN CAJA FEA NI MARQUESINA)
   ========================================================= */
.nv-hero {
    position: relative;
    min-height: 640px;
    padding: 155px 0 95px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #010102;
}

html[data-theme="light"] .nv-hero {
    background: linear-gradient(135deg, #07011F 0%, #140836 60%, #071936 100%);
}

.nv-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    z-index: 0;
}

.nv-hero-scrim {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 45%, rgba(0, 201, 255, 0.14) 0%, transparent 48%),
                linear-gradient(90deg, rgba(1, 1, 2, 0.94) 0%, rgba(1, 1, 2, 0.74) 55%, rgba(7, 1, 31, 0.62) 100%);
    z-index: 1;
}

.nv-hero-grid {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.nv-hero-copy {
    text-align: left;
    transition: opacity 0.32s ease, transform 0.32s ease;
}

.nv-hero-copy.is-fading {
    opacity: 0;
    transform: translateY(10px);
}

.nv-hero-copy h1 {
    font-size: clamp(2.15rem, 4.3vw, 3.65rem) !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 14px 0 18px 0 !important;
}

.nv-hero-copy h1 span {
    background: linear-gradient(90deg, #00C9FF 0%, #6207BC 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.nv-hero-copy p {
    font-size: 1.06rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 560px;
    margin: 0 0 30px 0;
}

.nv-hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.nv-hero-dot {
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nv-hero-dot.active {
    background: rgba(0, 201, 255, 0.18);
    border-color: #00C9FF;
    color: #ffffff;
}

/* Hub Orbital Animado Estilo Neurovia (.hero-ai) */
.nv-orbital-hub {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-orbital-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(0, 201, 255, 0.35);
    animation: nvOrbitSpin 28s linear infinite;
}

.nv-orbital-ring-inner {
    position: absolute;
    inset: 48px;
    border-radius: 50%;
    border: 1px solid rgba(98, 7, 188, 0.45);
    animation: nvCounterSpin 20s linear infinite;
}

.nv-orbital-center {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #00C9FF 0%, #6207BC 75%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0 55px rgba(0, 201, 255, 0.48), 0 0 90px rgba(98, 7, 188, 0.45);
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nv-orbital-node {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(11, 11, 18, 0.88);
    border: 1px solid rgba(0, 201, 255, 0.42);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    text-decoration: none !important;
    transition: transform 0.25s ease, border-color 0.25s ease;
    animation: nvCounterSpin 28s linear infinite;
}

.nv-orbital-node:hover {
    transform: scale(1.16) !important;
    border-color: #ffffff;
}

@keyframes nvOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes nvCounterSpin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* =========================================================
   4. BENTO DASHBOARD ASIMÉTRICO (8/4 + 6/6 ESTILO NEUROVIA)
   ========================================================= */
.nv-section {
    padding: 84px 0;
    position: relative;
    z-index: 2;
}

.nv-section-alt {
    background: var(--nv-bg-alt);
}

html[data-theme="dark"] .nv-section-alt {
    background: rgba(7, 1, 31, 0.55) !important;
}

.nv-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nv-bento-dash {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
}

.nv-span-8 { grid-column: span 8; }
.nv-span-4 { grid-column: span 4; }
.nv-span-6 { grid-column: span 6; }

.nv-panel {
    background: var(--nv-surface);
    border: 1px solid var(--nv-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--nv-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

.nv-panel:hover {
    border-color: var(--nv-border-hover);
    box-shadow: var(--nv-shadow-hover);
    transform: translateY(-4px);
}

.nv-panel h3 {
    color: var(--nv-text) !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.nv-panel p {
    color: var(--nv-body) !important;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0;
}

/* =========================================================
   5. FEATURES, TESTIMONIAL, PRICING, FAQ, BLOG & CTA BAND
   ========================================================= */
.nv-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: center;
}

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

.nv-price-card {
    background: var(--nv-surface);
    border: 1px solid var(--nv-border);
    border-radius: 24px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(18px);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.nv-price-card:hover {
    transform: translateY(-6px);
    border-color: var(--nv-border-hover);
}

.nv-price-featured {
    border: 1.5px solid var(--nv-cyan) !important;
    background: linear-gradient(180deg, rgba(0, 201, 255, 0.08) 0%, var(--nv-surface) 100%);
    box-shadow: 0 22px 55px rgba(0, 201, 255, 0.14);
}

.nv-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--nv-text);
    margin: 12px 0;
}

.nv-price-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 26px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nv-price-list li {
    font-size: 0.9rem;
    color: var(--nv-body);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nv-faq-item {
    background: var(--nv-surface);
    border: 1px solid var(--nv-border);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.nv-faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 700;
    color: var(--nv-text);
    font-size: 0.98rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nv-faq-item summary::-webkit-details-marker { display: none; }

.nv-faq-item[open] summary {
    color: var(--nv-cyan);
    border-bottom: 1px solid var(--nv-border);
}

.nv-faq-body {
    padding: 16px 22px;
    color: var(--nv-body);
    font-size: 0.92rem;
    line-height: 1.7;
}

.nv-cta-band {
    border-radius: 28px;
    padding: 48px 36px;
    background: linear-gradient(135deg, rgba(0, 201, 255, 0.14) 0%, rgba(98, 7, 188, 0.22) 100%);
    border: 1px solid var(--nv-border-hover);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .nv-hero-grid,
    .nv-grid-2,
    .nv-grid-3 {
        grid-template-columns: 1fr;
    }
    .nv-span-8, .nv-span-4, .nv-span-6 {
        grid-column: span 12;
    }
    .nv-orbital-hub {
        width: 280px;
        height: 280px;
    }
}

/* =========================================================
   6. ESCUDO GLOBAL DE CONTRASTE PARA LAS 26 APPS (OSCURO + CLARO)
   ========================================================= */
.card,
.tool-workspace-card,
.qr-config-panel,
.qr-preview-panel {
    background: var(--nv-surface) !important;
    border-color: var(--nv-border) !important;
    color: var(--nv-body) !important;
}

.card h1, .card h2, .card h3, .card h4, .card label,
.tool-workspace-card h2, .tool-workspace-card h3, .tool-workspace-card label {
    color: var(--nv-text) !important;
}

.card p, .card small, .card .form-hint,
.tool-workspace-card p, .tool-workspace-card small {
    color: var(--nv-body) !important;
}

/* Scrollbar elegante en pestañas de PDF Tools */
.pdf-tabs-scroll::-webkit-scrollbar {
    height: 5px;
}
.pdf-tabs-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.pdf-tabs-scroll::-webkit-scrollbar-thumb {
    background: var(--nv-border-hover);
    border-radius: 999px;
}

/* Inputs, selects y textareas siempre visibles en ambos temas */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="submit"]),
select,
textarea {
    background-color: var(--nv-surface-2) !important;
    color: var(--nv-text) !important;
    border: 1.5px solid var(--nv-border) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--nv-muted) !important;
    opacity: 0.85;
}
