body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #D6D6D6;
    font-size: 18px;  /* Ajustar el tamaño de la letra aquí */
}

/* GENERAL BARRA */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    background-color: #222;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .logo {
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.navbar .logo a img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.logo a img {
  display: block;
  width: 120px;
  height: 100px;
  object-fit: contain;
}

/* Menú navegación */
.menu-central {
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 5px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #5A1E29;
    border-radius: 5px;
}

/* CARRITO */
.carrito_logo {
    position: absolute;
    right: 60px;
    width: 38px;
    height: 38px;
    cursor: pointer;
}

.navbar .carrito_logo a img {
    height: 38px;
    width: auto;
}

.contador-carrito {
    position: absolute;
    top: -16px;
    right: -9px;
    background-color: #5A1E29;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 4px 6px;
    min-width: 18px;
    text-align: center;
}

/* Cambio visual al hacer scroll */
.navbar.scrolled {
    background-color: #3a3a3a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* IDIOMAS */
.language-switch a {
    text-decoration: none;
    color: #bbb;
    font-weight: bold;
    margin: 0 5px;
    transition: color 0.3s ease;
    margin-right: 25px;
}
.language-switch a.active {
    color: white !important;
    font-weight: bold;
}

.language-switch a:first-child {
    margin-right: 2px;
}

.language-switch a:last-child {
    margin-left: 2px;
}

.language-switch a:hover {
    color: #5A1E29;
}

/* Responsive hasta 1100px */
@media (max-width: 1100px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 70px;
        padding: 0 10px;
        background-color: #222;
        z-index: 1000;
    }

/*MENÚ HAMBURGUESA INICIO*/
    .menu-toggle {
        display: block;
        position: absolute;
        left: 10px;
        font-size: 26px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1101;
    }

    nav.menu-central {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background-color: #222;
    flex-direction: column;
    z-index: 999;
    }

    nav.menu-central.active {
        display: flex;
    }

    nav.menu-central.active ul {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);
    align-items: center;
    padding: 15px 0;
}

nav.menu-central.active ul li {
    margin: 15px 0;
    text-align: center;
    }

nav.menu-central.active ul li a {
    display: block;
    padding: 15px 30px;
    font-size: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    }

nav.menu-central.active ul li a:hover {
    background-color: #5A1E29;
    color: white;
    box-shadow: 0 4px 8px rgba(90, 30, 41, 0.4);
    }

/*Switch de Idioma*/
.language-switch {
    margin-top: auto;
    padding-top: 20px;
    width: 80%;
    border-top: 1px solid #444;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.language-switch a {
    font-size: 16px !important;
    color: #bbb !important;
    text-decoration: none;
    padding: 10px !important;
}
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        height: 50px;
    }

    .logo a img {
        height: 50px;
        width: auto;
    }

    .carrito_logo {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1101;
    }

    .carrito_logo a img {
        height: 32px;
        width: auto;
    }

    .contador-carrito {
        position: absolute;
        top: -10px;
        right: -10px;
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* BARRA SUPERIOR */
main {
    padding-top: 2.5rem;
}

/* SECCIÓN BLOG */
#noticias {
    padding: 2rem;
    font-family: Arial, sans-serif;
}

/* Título */
#noticias h1 {
    font-size: 2rem;
    text-align: left;
    color: #333;
    margin-bottom: 10px;
}

/* Párrafo descriptivo */
#noticias p {
    text-align: left;
    margin-bottom: 30px;
    color: #555;
}

/* Wrapper general */
.blog-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Contenedor de posts */
.blog-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* Cada post */
.blog-post {
    display: flex;
    flex-direction: column;
    border: 1px solid #25242494;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    width: 100%;
}

/* Imagen del post */
.blog-post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    object-position: 50% 65%;
}

/* Contenido */
.post-content {
    padding: 20px;
    flex-grow: 1;
}

/* Fecha */
.post-content .date {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

/* Título */
.post-content h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Enlace del título */
.post-content h2 a {
    text-decoration: none;
    color: #333;
}

.post-content h2 a:hover {
    text-decoration: underline;
}

/* Texto resumen */
.post-content p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0;
    text-align: left;
}

/* MENSAJE DE CARGA (por si lo reutilizas) */
.loading {
    font-style: italic;
    color: #555;
    text-align: center;
    margin: 2em 0;
}

/* FOOTER */
footer {
    background-color: #5A1E29;
    color: #D4AF37;
    padding: 10px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14.5px;
}

footer a {
    color: #fff;
    text-decoration: underline;
}