/* ============================================
   LUMINA PACS — Custom Styles
   Premium dark theme with cyan-blue accents
   ============================================ */

/* === CUSTOM PROPERTIES === */
:root {
    --lumina-400: #38bdf8;
    --lumina-500: #0ea5e9;
    --lumina-600: #0284c7;
    --dark-900: #0B1120;
    --dark-800: #0f172a;
    --dark-700: #1e293b;
}

/* === BASE === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--dark-900);
}

::selection {
    background-color: rgba(56, 189, 248, 0.3);
    color: white;
}

/* === NAVBAR === */
#navbar {
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    background: rgba(11, 17, 32, 0.95);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

/* === CTA BUTTON GLOW === */
.cta-button {
    position: relative;
    overflow: visible;
}

.cta-glow {
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9, #38bdf8);
    opacity: 0;
    filter: blur(8px);
    z-index: -1;
    transition: opacity 0.4s ease;
}

.cta-button:hover .cta-glow {
    opacity: 0.5;
    animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* === HERO BACKGROUND === */
.hero-bg {
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #38bdf8, transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 15s ease-in-out infinite;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #0ea5e9, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: orbFloat2 20s ease-in-out infinite;
}

.gradient-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #7dd3fc, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 12s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 30px) scale(1.1); }
    66% { transform: translate(30px, -20px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.15); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-45%, -55%) scale(1.2); opacity: 0.2; }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* === FEATURE CARDS === */
.feature-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(56, 189, 248, 0.05);
}

.feature-icon {
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* === PROBLEM / SOLUTION CARDS === */
.problem-card,
.solution-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover,
.solution-card:hover {
    transform: translateY(-6px);
}

/* === PRICING CARDS === */
.pricing-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* === ENTERPRISE CARDS === */
.enterprise-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.enterprise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(56, 189, 248, 0.05);
}

/* === ARCHITECTURE DIAGRAM === */
.arch-diagram {
    padding: 2rem 1rem;
}

.arch-box {
    transition: all 0.3s ease;
    min-width: 80px;
}

.arch-box:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.arch-box-main {
    transition: all 0.4s ease;
}

.arch-box-main:hover {
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
}

/* === CALCULATOR === */
.calc-container {
    transition: all 0.5s ease;
}

.calc-container:hover {
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.08);
}

.calc-modality-item input::-webkit-inner-spin-button,
.calc-modality-item input::-webkit-outer-spin-button {
    opacity: 1;
}

/* === COMPARISON TABLE === */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table tbody tr {
    transition: background-color 0.3s ease;
}

.comparison-table tbody tr:hover {
    background-color: rgba(56, 189, 248, 0.03);
}

/* === QR DEMO === */
.qr-demo-container {
    transition: all 0.5s ease;
}

.qr-demo-container:hover {
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.08);
}

#qrCode canvas {
    border-radius: 8px;
}

#qrCode.active {
    opacity: 1;
    transform: scale(1);
}

/* === TIMELINE === */
.timeline-item {
    opacity: 1;
}

/* === SECTION DIVIDERS === */
section {
    position: relative;
}

/* === WHATSAPP BUTTON PULSE === */
#whatsappBtn {
    animation: whatsappPulse 3s ease-in-out infinite;
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0.1); }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--dark-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lumina-400);
}

/* === FORM STYLES === */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

select option {
    background-color: var(--dark-800);
    color: white;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .gradient-orb-1 {
        width: 300px;
        height: 300px;
    }

    .gradient-orb-2 {
        width: 200px;
        height: 200px;
    }

    .gradient-orb-3 {
        width: 150px;
        height: 150px;
    }
}

/* === SMOOTH TRANSITIONS FOR LANGUAGE SWITCH === */
[data-es], [data-en] {
    transition: opacity 0.2s ease;
}

/* === LOADING STATE === */
.loading-skeleton {
    background: linear-gradient(90deg, var(--dark-800) 25%, var(--dark-700) 50%, var(--dark-800) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === FOCUS STYLES (Accessibility) === */
*:focus-visible {
    outline: 2px solid var(--lumina-400);
    outline-offset: 2px;
}

/* === PRINT === */
@media print {
    .hero-bg,
    #whatsappBtn,
    #navbar {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
