/* ================================================
   NEXXORA v2 — Ethereal Depth Edition
   ================================================ */

:root {
    --primary-neon: #00D4FF;
    --primary-soft: rgba(0, 212, 255, 0.7);
    --secondary-violet: #6D28D9;
    --secondary-soft: rgba(109, 40, 217, 0.6);
    --bg-dark: #040408;
    --bg-overlay-c1: rgba(4, 4, 8, 0.6);
    --bg-overlay-mid: rgba(4, 4, 8, 0.3);
    --bg-overlay-c2: rgba(4, 4, 8, 0.95);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(0, 212, 255, 0.3);
    --text-main: #F0F0F5;
    --text-dim: #9898A8;
    --text-bright: #FFFFFF;
    --font-main: 'Outfit', sans-serif;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme — Premium Refinement */
.light-theme {
    --bg-dark: #FFFFFF;
    --bg-overlay-c1: rgba(255, 255, 255, 0.98);
    --bg-overlay-mid: rgba(248, 250, 252, 0.9);
    --bg-overlay-c2: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-bg-hover: rgba(255, 255, 255, 1);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-hover: rgba(0, 122, 255, 0.4);
    --text-main: #1E293B;
    --text-dim: #475569;
    --text-bright: #0F172A;
    --primary-neon: #007AFF;
    --primary-soft: rgba(0, 122, 255, 0.1);
    --secondary-violet: #7C3AED;
    --secondary-soft: rgba(124, 58, 237, 0.1);
}


/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================
   FULL-SCREEN BACKGROUND IMAGE (Subtle & Ethereal)
   ================================================ */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url('hero.png') center center / cover no-repeat;
    filter: brightness(0.35) saturate(0.6);
    transition: filter 0.5s ease;
}

.light-theme .bg-canvas {
    filter: brightness(1.1) saturate(0.5) contrast(0.8) opacity(0.1);
}


.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            var(--bg-overlay-c1) 0%,
            var(--bg-overlay-mid) 30%,
            var(--bg-overlay-c1) 60%,
            var(--bg-overlay-c2) 100%
        ),
        radial-gradient(ellipse at 20% 10%, var(--primary-soft) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, var(--secondary-soft) 0%, transparent 50%);

    transition: var(--transition-smooth);
}

.light-theme .bg-overlay {
    opacity: 0.6;
}

/* ================================================
   LAYOUT
   ================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ================================================
   NAVIGATION (Compact & Premium)
   ================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.navbar.scrolled {
    background: var(--bg-overlay-c1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.2rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-violet));
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
    box-shadow: 0 0 20px var(--primary-soft);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-bright);
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-neon);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--text-bright);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Theme Switcher Compact */
.theme-switcher {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3px;
    border-radius: 50px;
    gap: 4px;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-btn.active {
    background: var(--primary-neon);
    color: white;
    box-shadow: 0 2px 10px var(--primary-soft);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-neon);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--primary-neon);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-neon);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    color: var(--text-bright);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-neon) 0%, var(--secondary-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-violet));
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-glow:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.5);
}

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

.btn-ghost:hover {
    background: var(--card-bg-hover);
    border-color: var(--primary-neon);
    transform: translateY(-3px);
}

/* ================================================
   SOLUCIONES (Section Header)
   ================================================ */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary-neon);
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-soft), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-neon);
    background: var(--card-bg-hover);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.glass-card:hover::before {
    opacity: 0.1;
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-neon);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.glass-card:hover .service-icon-wrap {
    background: var(--primary-neon);
    color: white;
    transform: rotate(10deg);
}

.glass-card h3 {
    font-size: 1.6rem;
    color: var(--text-bright);
    margin-bottom: 1.2rem;
}

/* ================================================
   AUDIENCE SECTION
   ================================================ */
.audience-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.audience-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--glass-border);
}

.audience-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.audience-visual:hover img {
    transform: scale(1.1);
}

.check-list {
    list-style: none;
    margin-top: 2.5rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-soft);
    color: var(--primary-neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ================================================
   CTA FINAL
   ================================================ */
.cta-final {
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(109, 40, 217, 0.05));
    border: 1px solid var(--glass-border);
    padding: 6rem 3rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1.5rem;
    color: var(--text-dim);
}

.footer-logo {
    display: inline-block;
    vertical-align: middle;
}

.footer-links h4 {
    color: var(--text-bright);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-neon);
}

.legal-highlight {
    color: var(--primary-neon) !important;
    font-weight: 700;
}

.footer-fiscal {
    display: flex;
    justify-content: flex-end;
}

.afip-placeholder {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    width: 140px;
    text-align: center;
    color: #1e293b;
}

.afip-placeholder i {
    color: #005cbb;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.afip-placeholder span {
    font-size: 0.65rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.aaip-notice {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px dashed var(--glass-border);
    margin-bottom: 3rem;
}

.aaip-notice p {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

/* ================================================
   MODALS
   ================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    max-width: 800px;
    width: 100%;
    padding: 4rem 3rem;
    border-radius: var(--radius-xl);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-dim);
}

.modal h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-neon);
}

.legal-text-box p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* Mobile Adjustments */
@media (max-width: 992px) {
    .audience-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-fiscal {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    h1 {
        font-size: 3.5rem;
    }
}
