/* =========================================
VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --dark-bg: #04020F;
    --card-bg: #161618;
    --accent: #00ff88; /* Verde Neón */
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #020101;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, .logo {
    font-family: 'Orbitron', sans-serif;
}





/* =========================================
   NAVBAR (BOOTSTRAP CUSTOM)
   ========================================= */
.navbar {
    background: rgba(4, 2, 15, 0.9) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: 0.3s;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    filter: invert(1) brightness(2);
    /* Convierte logo negro a blanco */
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.btn-contacto-bs {
    background: var(--accent) !important;
    color: #000 !important;
    border-radius: 5px;
    padding: 8px 20px !important;
    font-weight: bold;
    border: none;
}

header {
    /* Ajusta este valor según la altura real de tu navbar */
    padding-top: 125px; 
    text-align: center;
}




/*PIE DE PAGINA*/

.footer {
    background-color: #000000;
    color: 000000;
    padding: 25px 0 20px 0;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-top: 5px solid;
    border-image: linear-gradient(to right, #000000, #000000, #000000) 1;
    border-image-slice: 1;
}

.footer p {
    text-align: center;
    margin: 0 5px 5px;
    padding: 0;
    font-size: 0.9em;
}


/* Estilo del Footer Final */
.footer-new {
    background-color: #000;
    padding-bottom: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Línea muy sutil */
}

.footer-logo {
    height: 50px;
    /* Ajusta según tu imagen */
    margin: 20px 20px;
    width: auto;
    filter: brightness(1.5);
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    /* Para que el cambio sea suave */
}

.footer-links a:hover {
    color: var(--accent);
    /* Usa el verde neón definido en tu :root */
    cursor: pointer;
}

.copyright {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 0.5px;
    opacity: 0.9;
    text-align: center;
}

/* =========================================
   SELECTOR DE IDIOMAS (OPTIMIZADO MÓVIL)
   ========================================= */

.lang-selector .fa-globe {
    font-size: 1.2rem;
    color: white !important;
    transition: color 0.3s ease;
}

.lang-selector:hover .fa-globe,
.lang-selector.show .fa-globe {
    color: var(--accent) !important;
}

.lang-selector .dropdown-menu {
    background-color: #000000 !important;
    border: 1px solid rgba(0, 255, 136, 0.5); /* Borde neón más visible */
    min-width: 140px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2); /* Brillo neón */
}

.lang-selector .dropdown-item {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 1rem; /* Un poco más grande para dedos en móvil */
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.lang-selector .dropdown-item:hover {
    background: rgba(0, 255, 136, 0.2) !important;
    color: var(--accent) !important;
}

/* Quitar la flechita de Bootstrap */
.lang-selector .dropdown-toggle::after {
    display: none;
}

/* AJUSTES ESPECÍFICOS PARA MÓVIL */
@media (max-width: 991px) {
    .lang-selector .dropdown-menu {
        position: static !important; /* Evita que flote fuera de la pantalla */
        float: none;
        width: 100%; /* Que ocupe el ancho del menú desplegable */
        margin-top: 10px;
        background-color: rgba(255, 255, 255, 0.05) !important; /* Fondo sutilmente diferente en móvil */
        border: none;
        border-left: 2px solid var(--accent); /* Cambiamos a borde lateral para mejor look */
    }

    .lang-selector .nav-link {
        display: inline-block;
        padding: 10px 0;
    }
}


/* =========================================
   SECCIÓN FOLLOW US
   ========================================= */
.follow-us {
    background-color: #020101;
    ;
    /* Fondo negro puro */
    padding: 80px 0;
}

.follow-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    /* Tamaño grande e impactante */
    color: #ffffff;
    line-height: 1.1;
    text-transform: none;
    /* O uppercase si prefieres todo mayúsculas */
    margin-bottom: 20px;
    
}

.social-icons-large .social-icon {
    color: white;
    font-size: 2rem;
    /* Iconos grandes */
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
    margin-left: 15%;
    
}

.social-icons-large .social-icon:hover {
    color: var(--accent);
    
    /* Cambia al verde neón al pasar el mouse */
    transform: scale(1.1);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .follow-title {
        font-size: 2.2rem;
    }

    .social-icons-large .social-icon {
        font-size: 3rem;
    }
}



/* Efecto al pasar el mouse (Hover) */
.nav-link.btn-contacto-bs:hover {
    background-color: #1a1a1a !important; /* Un gris muy oscuro al posar el mouse */
    border-color: #ffffff;                /* El borde se ilumina a blanco */
    color: #ffffff !important;
}


/*noticias*/
/* Título y Separador */
/* --- Estilos de Noticias --- */
.latest-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem; /* Tamaño más fiel a la imagen */
    letter-spacing: 4px;
    margin-bottom: 5px;
    font-weight: 700;
}

.green-line {
    width: 40px;
    height: 2px;
    background: #00ff88;
    margin: 0 auto 50px;
}

/* El Marquito Blanco de la Imagen */
.white-frame {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px;
    background: transparent;
    transition: border 0.3s ease;
}

.news-item:hover .white-frame {
    border-color: #00ff88; /* Efecto sutil al pasar el mouse */
}

.post-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.post-date {
    font-size: 0.7rem;
    color: #666; /* Gris más oscuro */
    margin-bottom: 12px;
}

.post-intro {
    font-size: 0.8rem;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
   /* -webkit-line-clamp: 2; /* Corta el texto a 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-view {
    color: #ff3333; /* Rojo vibrante de tu referencia */
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.btn-view:hover {
    color: #ff3333;
    opacity: 0.8;
}

.item-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08); /* Línea muy tenue */
    margin: 30px 0;
}

/* --- Paginación Minimalista --- */
.custom-pager {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
}

.pager-btn, .pager-num {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: 0.7rem;
    color: #fff;
    transition: all 0.3s;
    background: transparent;
}

.pager-num.active {
    background: #00ff88;
    color: #000;
    border-color: #00ff88;
}

.pager-num:hover:not(.active) {
    border-color: #00ff88;
    color: #00ff88;
}

/* Animación: Flota y rota a la izquierda y derecha */
@keyframes balanceoFato {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-8deg); /* Sube y gira a la izquierda */
    }
    50% {
        transform: translateY(-20px) rotate(0deg);  /* Punto más alto, recto */
    }
    75% {
        transform: translateY(-10px) rotate(8deg);  /* Baja un poco y gira a la derecha */
    }
    100% {
        transform: translateY(0px) rotate(0deg);    /* Regresa al inicio */
    }
}

/* Aplicación a la clase */
.logo_fato {
    width: 200px !important;
    margin-left: auto;
    margin-right: 27px;
    animation: balanceoFato 5s ease-in-out infinite; /* 5s para que el vaivén sea suave */
    position: relative;
    z-index: 10;
}

/* --- RESPONSIVE --- */

@media (max-width: 992px) {
    .logo_fato {
        width: 150px !important;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .logo_fato {
        width: 120px !important;
        margin: 20px auto 0 auto !important;
        display: block;
        animation: balanceoFato 5s ease-in-out infinite;
    }

    .logo_fato img {
        margin-top: 0 !important; /* Evita que se encime en el texto en móviles */
    }
}
