body {
    font-family: sans-serif;
    background-color: #f5f5f5;
    padding: 40px;
    margin: 0;
    padding: 0;
    height: 100%;
  }

/* 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;
}

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

@media (max-width: 1024px) {
    .menu-central ul {
        flex-wrap: wrap; /* Permite que el menú se acomode mejor */
        justify-content: center;
    }
}

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;
    }
}

/*TEXO QUIENES SOMOS*/
section {
  max-width: 800px;
  margin: 0.5rem auto;
  padding: 2rem;
  background-color: white;
  font-family: 'Georgia', serif;
  color: #2c2c2c;
  line-height: 1.8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
}

hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2rem 0;
}

.title h1 {
  font-size: 1.8rem;
  color: #5A1E29;
  margin-bottom: 0.5rem;
}

.intro picture img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    object-position: 50% 65%;
}

section > p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

section em {
  font-style: italic;
  color: #5e3e2f;
}

section strong {
  font-weight: bold;
  color: #5A1E29;
}

section h2 {
  color: #5A1E29;
  margin-top: 1.5rem;
}

/* En móviles: quitar el desplazamiento lateral para que no se salga */
@media (max-width: 600px) {
  .divider-image {
    width: 100%;       /* cambiar 100vw a 100% */
    height: 20vh;
    min-height: 120px;
    margin: 1rem 0;
    left: 0;           /* eliminar offset lateral */
    right: 0;
    margin-left: 0;
    margin-right: 0;
  }
}

/*FOOTER*/
footer {
  background-color: #5A1E29;
  color: #D4AF37;
  padding: 10px;
  margin-top: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}
footer a {
    color: #ffff; /* Un color oscuro para mejorar el contraste */
    text-decoration: underline; /* Subrayado */
  }