#dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#dark-mode-toggle:hover {
    transform: scale(1.1);
}

.dark-mode {
    background-color: #121212 !important;
    color: #ffffff !important;
}

.dark-mode a {
    color: #bbbbbb !important;
}

/* Fondo oscuro para la cabecera y el pie */
body.dark-mode .section 
/*body.dark-mode .footer,
body.dark-mode .navbar*/ {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Ajustar color de títulos */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: #ffffff !important;
}

/* Mejor contraste para enlaces */
body.dark-mode a {
    color: #ddd !important;
}

/* Estilos para las tarjetas de entradas */
body.dark-mode .categoria {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

body.dark-mode .categoria h2,
body.dark-mode .categoria p {
    color: #ffffff !important;
}

body.dark-mode .categoria img {
    border-color: #444 !important;
}
/* Estilos para las tarjetas del blog */
body.dark-mode .card {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important; /* Asegura que el texto sea blanco */
}

/* Fondo oscuro para tarjetas y elementos internos */
body.dark-mode .card,
body.dark-mode .card * {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important;
}

/* Ajustar imágenes */
body.dark-mode .card img {
    filter: brightness(0.8);
}


body.dark-mode .card-header,
body.dark-mode .card-body,
body.dark-mode .card-footer {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

body.dark-mode .card-title h5 a {
    color: #ffffff !important; /* Color del título */
}

body.dark-mode .card-subtitle .text-gray {
    color: #bbbbbb !important; /* Color del subtítulo */
}

body.dark-mode .card-body h2,
body.dark-mode .card-body p {
    color: #ffffff !important; /* Color del texto dentro del cuerpo */
}



/* Botones */
body.dark-mode .btn {
    background-color: #444 !important;
    color: #ffffff !important;
    border-color: #555 !important;
}

/* Listas */
body.dark-mode ul li {
    color: #ffffff !important;
}

.langswitcher {
    position: relative;
    z-index: 10;
}

nav.navbar {
    z-index: 20;
}

.navbar ul li {
    position: relative;
}

.navbar ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    z-index: 100;
    padding: 0;
    margin: 0;
    min-width: 150px; 
}

.navbar ul li:hover > ul {
    display: block;
}

.navbar ul li ul li {
    padding: 10px;
}

.navbar ul li ul li:hover {
    background: #f0f0f0; 
}

.navbar ul li ul:hover {
    display: block;
}

.categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.categoria {
    width: 30%; /* Ajusta el tamaño de cada tarjeta */
    max-width: 300px; /* Tamaño máximo para que no sean demasiado grandes */
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.categoria:hover {
    transform: scale(1.05);
}

.categoria img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.categoria h2 {
    font-size: 1.2em;
    margin: 10px 0;
}

.categoria p {
    font-size: 0.9em;
    padding: 0 10px 10px;
    color: #555;
}

/* === Centrado simple y efectivo === */
.footer-section.contact .share-buttons-container {
    text-align: center;
    margin: 10px 0 0 0;
}

.footer-section.contact .share-buttons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block; /* Hace que el <ul> se comporte como texto centrado */
}

.footer-section.contact .share-buttons li {
    display: inline-block;
    margin: 0 4px; /* Espacio horizontal entre íconos */
}

.footer-section.contact .share-buttons li a {
    display: block;
    line-height: 0;
}

.footer-section.contact .share-buttons img {
    width: 24px;
    height: 24px;
    display: block;
}
/* Estilos del footer */
#footer {
    background-color: #f9f9f9;
    color: #333;
    padding: 20px 0;
    font-size: 0.7em;
}

.site-footer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.5em;
    margin-bottom: 5px;
    line-height: 1.5em;
    margin-top: 0.5em
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 3px;
}

.footer-section ul li a {
    color: #333;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

/* Iconos de redes sociales */
.fa {
    margin-right: 5px;
}

/* Responsividad */
@media (max-width: 768px) {
    .site-footer {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 15px;
    }
}

/***************************/
