/* ============================
           SISTEMA DE TEMAS (VARIABLES)
           ============================ */
:root {
    /* Tema por defecto: Indigo / Azul */
    --bs-body-font-family: 'Inter', sans-serif;
    --theme-main: #4f46e5;
    --theme-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --theme-glow: rgba(79, 70, 229, 0.4);
    --theme-subtle: #e0e7ff;
    --light-bg: #f8fafc;
}

body.theme-ocean {
    /* Tema Océano: Verde Azulado / Cyan */
    --theme-main: #0d9488;
    --theme-gradient: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    --theme-glow: rgba(13, 148, 136, 0.4);
    --theme-subtle: #ccfbf1;
}

body.theme-sunset {
    /* Tema Atardecer: Rosa / Naranja */
    --theme-main: #e11d48;
    --theme-gradient: linear-gradient(135deg, #e11d48 0%, #f97316 100%);
    --theme-glow: rgba(225, 29, 72, 0.4);
    --theme-subtle: #ffe4e6;
}

/* Clases utilitarias dinámicas según el tema */
.dynamic-text {
    color: var(--theme-main) !important;
}

.dynamic-bg {
    background: var(--theme-gradient) !important;
    color: white !important;
}

.dynamic-subtle {
    background-color: var(--theme-subtle) !important;
    color: var(--theme-main) !important;
}

body {
    background-color: var(--light-bg);
    color: #1e293b;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease;
}

/* Navbar Customization */
.navbar {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-link {
    font-weight: 500;
    color: #64748b;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--theme-main);
}

/* Selector de temas */
.theme-switcher .btn {
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 4rem 0;
    background: radial-gradient(circle at 90% 10%, var(--theme-subtle) 0%, rgba(255, 255, 255, 0) 40%);
}

.text-gradient {
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-custom {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--theme-glow);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--theme-main);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 var(--theme-glow);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Cloud Card Preview */
.cloud-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease;
}

.cloud-card:hover {
    transform: translateY(-4px);
}

.avatar-custom {
    width: 44px;
    height: 44px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.file-item {
    border-radius: 14px;
    transition: background-color 0.2s ease;
    padding: 0.75rem;
}

.file-item:hover {
    background-color: #f1f5f9;
}

.file-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Features Section */
.feature-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-color: var(--theme-main);
    box-shadow: 0 12px 24px -10px var(--theme-glow);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* About / Banner Section */
.about-banner {
    background: #0f172a;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: var(--theme-main);
    opacity: 0.3;
    filter: blur(80px);
    border-radius: 50%;
}

/* Floating Install Button */
.install-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    box-shadow: 0 10px 25px -5px var(--theme-glow);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
}