/* =====================
ESTILO GLOBAL UNIFICADO - REDES INFINITAS
   ===================== */

:root {
    --color-primario: #008394;
    --color-secundario: #263238;
    --color-acento: #00bcd4;
    --color-fondo: #f0f4f8;
    --color-blanco: #fff;
    --color-gris: #eceff1;
    --color-titulo: #008394;
    --color-subtitulo: #00acc1;
    --color-texto: #37474f;
    --color-link: #005f6b;
    --color-hover: #00acc1;
    --color-shadow: rgba(0,0,0,0.08);
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: var(--color-fondo);
    color: var(--color-texto);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, var(--color-acento) 0%, var(--color-primario) 100%);
    color: var(--color-blanco);
    padding: 2.5em 20px 1.5em 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px var(--color-shadow);
}

header .logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

header h1 {
    margin: 0;
    font-family: 'Montserrat Alternates', Arial, sans-serif;
    font-size: 2.8em;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.12);
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 1.5em 0 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5em;
}

header nav ul li {
    margin: 0;
}

header nav a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
    transition: color 0.2s;
}
header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: var(--color-blanco);
    transition: width 0.3s;
}
header nav a:hover,
header nav a:focus {
    color: var(--color-acento);
}
header nav a:hover::after {
    width: 100%;
}

.navbar {
    background: var(--color-secundario);
    box-shadow: 0 2px 5px var(--color-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 1.5em;
}
.navbar a {
    color: var(--color-gris);
    text-decoration: none;
    font-weight: bold;
    padding: 1.2em 1.5em;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}
.navbar a:hover {
    background: var(--color-hover);
    color: var(--color-blanco);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 10px 0 10px;
}

.section {
    background: var(--color-blanco);
    padding: 40px 24px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 12px var(--color-shadow);
    position: relative;
}
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--color-acento), var(--color-primario));
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.section h1, .section h2, .titulo-seccion,
.section h3, .tema-articulos h3, .titulo-especialidad {
    color: var(--color-titulo);
    font-family: 'Montserrat Alternates', Arial, sans-serif;
    font-weight: bold;
    border-bottom: 3px dotted var(--color-acento);
    padding-bottom: 0.5em;
    margin-bottom: 1.2em;
    text-align: center !important;
}

.section h3, .tema-articulos h3 {
    color: var(--color-subtitulo);
    font-family: 'Montserrat Alternates', Arial, sans-serif;
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

p, li, td, th {
    font-size: 1.08em;
}

/* Ajustes globales para imágenes */
img, video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto 1em auto;
    object-fit: cover;
}

/* Imágenes en listas de especialidades y artículos */
.imagen-especialidad,
.articulos-por-tema img,
.lista-especialidades img,
.tema-articulos img,
.articulo-resumen img {
    max-width: 220px;
    max-height: 150px;
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin: 0 auto 1em auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--color-shadow);
}

/* Imágenes en galerías de proyectos */
.galeria-proyectos img {
    max-width: 180px;
    max-height: 120px;
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin: 0 auto 1em auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--color-shadow);
}

/* Imágenes principales de sección (como #inicio) */
#inicio img.imagen {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5em auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px var(--color-shadow);
    object-fit: contain;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--color-shadow);
}
th, td {
    border: 1px solid #e0e0e0;
    padding: 1em;
    text-align: center;
}
th {
    background: var(--color-titulo);
    color: var(--color-blanco);
    font-weight: bold;
}
tbody tr:nth-child(even) {
    background: #f5f5f5;
}

/* Botón Telegram y otros botones */
.boton-telegram, .boton-mostrar {
    background: #4caf50;
    color: var(--color-blanco);
    border: none;
    padding: 1em 2em;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;  /* Centra verticalmente texto e imagen */
    gap: 8px;
    margin-top: 1.5em;
    transition: background 0.3s;
}
.boton-telegram:hover, .boton-mostrar:hover {
    background: #388e3c;
}

/* Galería de proyectos */
.galeria-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.proyecto-linkedin {
    text-align: center;
}
.proyecto-linkedin img {
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 5px var(--color-shadow);
    transition: transform 0.3s;
}
.proyecto-linkedin img:hover {
    transform: scale(1.05);
}
.proyecto-linkedin p {
    margin-top: 10px;
    font-size: 0.95em;
    color: #555;
}

/* Redes sociales */
#redes-sociales div {
    text-align: center;
    margin-top: 2em;
}
#redes-sociales div a {
    display: inline-block;
    margin: 0 20px;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}
#redes-sociales div a:hover {
    opacity: 1;
    transform: scale(1.2);
}
#redes-sociales img {
    height: 45px;
    width: auto;
}

footer {
    background: var(--color-secundario);
    color: var(--color-gris);
    text-align: center;
    padding: 2em 0 1em 0;
    font-size: 0.98em;
    margin-top: 60px;
}
footer .copyright {
    margin-top: 0.5em;
}
footer .colaboracion-general {
    font-size: 0.85em;
    color: #b0bec5;
    margin-top: 10px;
}

/* ========================================= */
/* ⭐ SECCIÓN DE ARTÍCULOS PRINCIPAL (INDEX) */
/* Grid en escritorio */
/* ========================================= */

.articulos-por-tema {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* ⭐ TARJETAS DE ARTÍCULOS */
.tema_articulos {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--color-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;

    /* ⭐ Animación y efecto moderno */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ⭐ EFECTO HOVER */
.tema_articulos:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}


/* ========================================= */
/* ⭐ SECCIÓN DE ARTÍCULOS EN SUBCARPETAS */
/* Scroll horizontal tipo Netflix */
/* ========================================= */

.art-cable-por-tema,
.art-camara-por-tema,
.art-fibra-por-tema,
.art-red-por-tema {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

/* ⭐ OCULTAR SCROLL (diseño premium) */
.art-cable-por-tema::-webkit-scrollbar,
.art-camara-por-tema::-webkit-scrollbar,
.art-fibra-por-tema::-webkit-scrollbar,
.art-red-por-tema::-webkit-scrollbar {
    display: none;
}

/* ⭐ TARJETAS DE CADA ARTÍCULO */
.art-cable-tema,
.art-camara-tema,
.art-fibra-tema,
.art-red-tema {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--color-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;

    /* ⭐ tamaño para scroll horizontal */
    min-width: 300px;

    /* ⭐ animaciones */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* ⭐ animación al aparecer */
    opacity: 0;
    transform: translateY(40px);
    animation: aparecer 0.6s ease forwards;
}

/* ⭐ EFECTO HOVER */
.art-cable-tema:hover,
.art-camara-tema:hover,
.art-fibra-tema:hover,
.art-red-tema:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}


/* ========================================= */
/* ⭐ IMÁGENES PROFESIONALES */
/* ========================================= */

.articulos-por-tema img,
.art-cable-por-tema img,
.art-camara-por-tema img,
.art-fibra-por-tema img,
.art-red-por-tema img {
    width: 100%;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

/* ⭐ zoom moderno */
.articulos-por-tema img:hover,
.art-cable-por-tema img:hover,
.art-camara-por-tema img:hover,
.art-fibra-por-tema img:hover,
.art-red-por-tema img:hover {
    transform: scale(1.05);
}


/* ========================================= */
/* ⭐ ANIMACIÓN AL APARECER */
/* ========================================= */

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


/* ========================================= */
/* ⭐ RESPONSIVE */
/* ========================================= */

/* ⭐ tablets */
@media (max-width: 1200px) {
    .articulos-por-tema {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ⭐ celular */
@media (max-width: 700px) {
    .articulos-por-tema {
        grid-template-columns: 1fr;
    }
}


/* ========================================= */
/* ⭐ AJUSTES GENERALES DE RESPONSIVE */
/* ========================================= */

@media (max-width: 900px) {
    main {
        padding: 10px;
    }
    .section {
        padding: 24px 8px;
    }
    .galeria-proyectos {
        grid-template-columns: 1fr;
    }
}

/* ⭐ celulares pequeños */
@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    .section h1, .section h2, .titulo-seccion {
        font-size: 1.4em;
    }
    .section {
        padding: 12px 2px;
    }
    main {
        padding: 2px;
    }
}


/* Tamaño de texto para autor y ver más artículos */
.autor-peq {
    font-size: 0.95em;
    color: #607d8b;
}
.ver-mas-peq {
    font-size: 0.98em;
    margin-top: 0.5em;
}

/* Tamaño más pequeño para certificados en autor.html */
.miniatura-certificado {
    width: 150px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px var(--color-shadow);
}

/* Centrar títulos de certificados en autor.html */
.certificados-miniaturas p {
    text-align: center;
    margin-bottom: 8px;
}

/* Grid de 4 columnas para certificados en autor.html */
.certificados-miniaturas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .certificados-miniaturas {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .certificados-miniaturas {
        grid-template-columns: 1fr;
    }
}

.ver-mas {
    text-align: center;
}

.frase-centro {
    text-align: center;
    margin-top: 1em;
}

.centrar-boton {
    text-align: center;
    margin-top: 1em;
}


.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 600%;
    margin: 0 auto; /* Centra el video */
    width: 100%;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Botón hamburguesa */
.navbar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--color-secundario);
    border: none;
    font-size: 2em;
    color: #fff;
    z-index: 2000;
    cursor: pointer;
    padding: 5px 10px;
}

/* Navbar responsiva */
@media (max-width: 700px) {

    .navbar {
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--color-secundario);
        height: 100vh;
        width: 100vw;
        padding-top: 80px;
        gap: 1.5em;
        display: none;
        z-index: 1000;
    }

    .navbar.open {
        display: flex;
    }

    .navbar a {
        padding: 1em 0;
        font-size: 1.2em;
        width: 100%;
        text-align: center;
    }

    .navbar-toggle {
        display: block;
    }
}


/* Estilos para la sección de Herramientas */
#herramientas-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

#herramientas-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
}

.herramientas-container {
    display: flex;
    justify-content: center;
    /* *** ESTE ES EL VALOR CLAVE PARA LA SEPARACIÓN ENTRE BOTONES *** */
    gap: 30px; /* Puedes aumentar o disminuir este valor (ej. 20px, 40px) */
    flex-wrap: wrap; /* Permite que los botones salten a la siguiente línea si no caben */
}

/* Estilos para centrar el botón individualmente (si es necesario) */
.centrar-boton {
    /* No es estrictamente necesario si .herramientas-container usa flexbox,
       pero ayuda a mantener la consistencia si añades otros elementos no flex */
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 10px 0; */ /* Puedes quitar este margen si el 'gap' es suficiente */
}

/* Estilos específicos para el botón de la calculadora/herramienta */
.boton-herramienta-calculadora {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Puedes añadir un ancho mínimo si quieres que todos los botones tengan un tamaño similar */
    /* min-width: 200px; */ 
    /* text-align: center; */ /* Si usas min-width, esto ayuda a centrar el texto */
    /* justify-content: center; */ /* Si usas display: flex en el a, esto centra el contenido */
}

.boton-herramienta-calculadora:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.boton-herramienta-calculadora:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Estilos para la imagen dentro del botón (si decides usar una) */
.boton-herramienta-calculadora img {
    height: 24px;
    vertical-align: middle;
    margin-left: 10px;
    filter: invert(1);
}

/* Media Queries para responsividad */
@media (max-width: 768px) {
    #herramientas-section h2 {
        font-size: 2em;
    }
    .boton-herramienta-calculadora {
        padding: 12px 25px;
        font-size: 1em;
    }
    .herramientas-container {
        gap: 20px; /* Reducir el espacio entre botones en pantallas medianas */
    }
}

@media (max-width: 480px) {
    .herramientas-container {
        flex-direction: column; /* Apila los botones en pantallas muy pequeñas */
        align-items: center; /* Centra los botones apilados */
        gap: 15px; /* Espacio entre botones apilados */
    }
    .boton-herramienta-calculadora {
        width: 90%; /* Hace que el botón ocupe casi todo el ancho disponible */
        max-width: 300px; /* Limita el ancho máximo para que no se vea demasiado grande en tabletas */
        box-sizing: border-box; /* Incluye padding y border en el ancho total */
    }
}

/* =====================
   ESTILO PARA SECCIÓN HISTORIA
   ===================== */

/* Contenedor tipo línea de tiempo */
.historia-timeline {
    position: relative;
    padding: 20px 0;
}

/* La línea vertical central (solo visible en escritorio) */
.historia-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px; /* Alineada con los círculos */
    width: 3px;
    height: 100%;
    background: var(--color-gris);
}

/* Cada bloque de la historia */
.historia-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 70px; /* Espacio para la línea y el círculo */
}

/* El círculo decorativo */
.historia-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--color-blanco);
    border: 4px solid var(--color-primario);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px var(--color-fondo);
}

/* Títulos de la cronología */
.historia-item h2 {
    text-align: left !important; /* Sobrescribe el centrado global de .section h2 */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.6em;
    border-bottom: 2px solid var(--color-acento);
    display: inline-block;
}

/* Lista de hitos dentro de la historia */
.lista-historia {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.lista-historia li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05em;
}

.lista-historia li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-acento);
    font-weight: bold;
}

.lista-historia li strong {
    color: var(--color-primario);
}

/* Cita destacada del Ing. Jaasiel */
.cita-historia {
    background: var(--color-gris);
    padding: 30px;
    border-radius: 12px;
    border-left: 6px solid var(--color-primario);
    font-style: italic;
    margin-top: 50px;
    text-align: center;
}

.cita-historia span {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    font-style: normal;
    color: var(--color-primario);
}

/* Responsive para móviles */
@media (max-width: 600px) {
    .historia-timeline::before {
        left: 15px;
    }
    .historia-item {
        padding-left: 45px;
    }
    .historia-item::before {
        left: 6px;
        width: 15px;
        height: 15px;
    }
}

.galeria-proyecto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.galeria-proyecto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.galeria-proyecto img:hover {
    transform: scale(1.05);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    font-size: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

form {
    max-width: 500px;
    margin: auto;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

button {
    background: #0073e6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #005bb5;
}

select {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

label {
    display: block;
    text-align: left; /* 🔥 mueve las etiquetas a la izquierda */
    font-weight: 600;
}

/* ******** CONTENEDOR SCROLL ******** */
.contenedor-scroll {
    position: relative;
}

/* ******** SCROLL HORIZONTAL ******** */
.scroll-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding: 10px 40px;
}

/* BOTONES DEL SLIDER */
.slider-controles {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.slider-controles button {
    background: #0073e6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

.slider-controles button:hover {
    background: #005bb5;
}

/* ===== Banner de cookies ===== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-banner a {
    color: #00c3ff;
    font-weight: bold;
}

.cookie-banner button {
    background: #00c3ff;
    border: none;
    padding: 10px 18px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.cookie-banner button:hover {
    background: #0099cc;
}

/* Banner cookies centrado */

.cookie-form-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);

  /* oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.cookie-form-banner.active {
    opacity: 1;
    visibility: visible;
}

.cookie-form-banner button {
    background: #00c3ff;
    border: none;
    padding: 10px 18px;
    margin-top: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-form-banner label {
    display: block;
    margin-top: 10px;
}

#elemento-animado {
    color: #ffffff; /* Cambia este código por el color de tu marca */
    font-weight: bold;
    border-right: 2px solid; /* Esto simula el cursor parpadeante */
}

/* Colores base para el modo oscuro */
body.dark-mode {
    background-color: #121212; /* Un gris casi negro, muy elegante */
    color: #e0e0e0; /* Texto gris claro para que no canse la vista */
}

/* Cambiar el fondo de las secciones o tarjetas si tienen fondo blanco */
body.dark-mode .card, 
body.dark-mode section,
body.dark-mode header {
    background-color: #1e1e1e; 
    color: #ffffff;
}

/* Ajuste para que los enlaces no se pierdan */
body.dark-mode a {
    color: #4da3ff;
}

.slider-container {
    width: 100%;
    max-width: 400px; /* Ajusta según el tamaño de tu diseño */
    margin: 0 auto;
    overflow: hidden;
}

#slider-image {
    width: 100%;
    transition: opacity 0.8s ease-in-out;
    border-radius: 10px; /* Para que se vea profesional */
}

.fade-out {
    opacity: 0;
}

#header {
    background-image: url("img/baner-infinito.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
}

.titulo-azul {
    margin-top: 80px; /* ajusta este valor */
    display: inline-block;
}

header {
    position: relative; /* importante */
}

.traductor {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.traductor img {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.2s;
}

.traductor img:hover {
    transform: scale(1.1);
}

.footer-bat-logo {
    width: 120px;   /* Tamaño estándar recomendado para pie de página */
    height: auto;    /* Mantiene la proporción para que no se vea estirado */
    max-width: 100%; /* Asegura que no se desborde en pantallas pequeñas */
}