/* =============================================
   VARIABLES Y SISTEMA DE TEMAS
   ============================================= */
:root {
    /* Colores principales */
    --primary-color: #ff0000;
    --secondary-color: #000000;
    --accent-color: #270202;
    
    /* Fuentes */
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Protest Revolution', sans-serif;
    --font-metal: 'Orbitron', sans-serif;
    
    /* Tema oscuro (default) */
    --bg-body: #121212;
    --bg-card: #1e1e1e;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #333333;
    --hover-effect: rgba(255, 0, 0, 0.3);
    --nav-bg: rgba(0, 0, 0, 0.9);
    --shadow-color: rgba(255, 0, 0, 0.3);
}

/* Tema claro */
[data-theme="light"] {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-color: #212529;
    --text-secondary: #495057;
    --border-color: #dee2e6;
    --hover-effect: rgba(255, 0, 0, 0.1);
    --nav-bg: rgba(248, 249, 250, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Selector de idioma */
.language-selector {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-option img {
    width: 20px;
    margin-right: 8px;
}

.language-dropdown {
    position: absolute;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px 0;
    min-width: 120px;
    z-index: 1000;
    display: none;
}

.language-selector:hover .language-dropdown {
    display: block;
}

/* =============================================
   ESTILOS BASE
   ============================================= */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-body);
    overflow-x: hidden;
    padding-top: 70px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-title {
    font-family: var(--font-metal);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--shadow-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0.5rem auto;
    box-shadow: 0 0 10px var(--primary-color);
}

/* =============================================
   COMPONENTES PRINCIPALES
   ============================================= */

/* ----------------------------
   NAVBAR Y MENÚ (TAMAÑO AJUSTADO)
   ---------------------------- */
.navbar {
    background-color: var(--nav-bg) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--primary-color);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 0.3rem 1rem;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.navbar-nav .nav-link {
    font-family: var(--font-metal);
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem; /* Tamaño reducido */
    padding: 0.5rem 0.8rem; /* Espaciado ajustado */
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--primary-color);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px var(--shadow-color);
}

/* Dropdown menu */
.dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.85rem; /* Tamaño consistente */
}

.dropdown-item {
    color: var(--text-color);
    font-family: var(--font-metal);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--hover-effect);
    color: var(--primary-color);
}

/* ----------------------------
   CARDS
   ---------------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.card-img-top {
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    background: var(--bg-card);
}

/* ----------------------------
   BOTONES
   ---------------------------- */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: #000;
    font-weight: bold;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-family: var(--font-metal);
    transition: all 0.4s ease;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    background-color: #8b0000;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-color);
    color: #fff;
}

/* ----------------------------
   FOOTER
   ---------------------------- */
.footer {
    background: linear-gradient(to top, #000000, #1a0000);
    padding: 3rem 0;
    color: var(--text-color);
    border-top: 1px solid var(--primary-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 10px var(--primary-color);
}

.footer-title {
    color: var(--primary-color);
    font-family: var(--font-metal);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #000 !important;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-color);
}

/* =============================================
   EFECTOS ESPECIALES
   ============================================= */
.text-neon {
    text-shadow: 0 0 10px var(--primary-color);
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from {
        text-shadow: 0 0 5px var(--primary-color);
    }
    to {
        text-shadow: 0 0 15px var(--primary-color), 0 0 20px #8b0000;
    }
}

/* =============================================
   MEDIA QUERIES
   ============================================= */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.5rem;
    }

    .language-selector {
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .footer {
        text-align: center;
    }

    .navbar-nav .nav-link {
        font-size: 0.8rem;
    }
}
a{
    text-decoration: none;
}