:root {
    --bg-dark: #0f0f11;
    --accent-start: #b536f1;
    --accent-end: #3b82f6;
}

body {
    background-color: var(--bg-dark) !important;
    color: #ffffff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Texto con degradado */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Efecto Glow en el logo */
.logo-glow {
    filter: drop-shadow(0 0 20px rgba(181, 54, 241, 0.2));
}

/* Efecto Hover en las tarjetas */
.hover-effect {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hover-effect:hover {
    transform: translateY(-5px);
    border-color: rgba(181, 54, 241, 0.5) !important;
}

/* Nueva clase para las tarjetas oscuras */
.glass-card {
    background-color: rgba(255, 255, 255, 0.05);
    /* 5% de blanco = Gris muy oscuro transparente */
    backdrop-filter: blur(5px);
    /* Efecto de desenfoque detrás (opcional) */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Borde sutil */
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-start);
    /* Brillo morado al pasar el mouse */
    background-color: rgba(255, 255, 255, 0.08);
    /* Un poco más claro al hover */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* NAVBAR STYLES */
.navbar {
    background: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Clase que agregaremos con JS cuando se haga scroll */
.navbar-scrolled {
    background-color: rgba(15, 15, 17, 0.85);
    /* Fondo oscuro semitransparente */
    backdrop-filter: blur(10px);
    /* Efecto vidrio */
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(181, 54, 241, 0.5);
    /* Brillo morado suave */
}

/* FOOTER LINKS */
.hover-text-accent:hover {
    color: var(--accent-start) !important;
    padding-left: 5px;
    /* Pequeño movimiento a la derecha */
    transition: all 0.2s ease;
}

.text-accent {
    color: var(--accent-start);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    /* Ajustamos para que empiece desde arriba, detrás del navbar */
    margin-top: -80px;
    padding-top: 150px;
    /* Compensamos el margen negativo */
    padding-bottom: 100px;
    background: radial-gradient(circle at center, rgba(20, 20, 30, 0.8) 0%, var(--bg-dark) 100%),
        url('/assets/img/home_hero.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Efecto Parallax sencillo */
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* --- ANIMACIONES --- */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ICONOS GLOW --- */
.icon-glow {
    color: #fff;
    text-shadow: 0 0 15px var(--accent-start);
}

/* --- BOTONES --- */
.btn-gradient {
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    border: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(181, 54, 241, 0.4);
    color: white;
}

/* --- FIX PARA MENU MOVIL --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(15, 15, 17, 0.98);
        /* Fondo oscuro casi sólido */
        backdrop-filter: blur(10px);
        /* Efecto vidrio */
        padding: 20px;
        margin-top: 15px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    /* Ajuste para que los botones dentro del menú móvil se vean bien */
    .navbar-nav .btn {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Estilos específicos para el formulario Dark Mode */
.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-start);
    box-shadow: 0 0 0 0.25rem rgba(181, 54, 241, 0.25);
    color: white;
}

/* Para el select en modo oscuro */
select option {
    background-color: #1a1a2e;
    color: white;
}

/* Placeholder color */
::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-icon:hover {
    background: var(--accent-start);
    border-color: var(--accent-start);
}