body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Estilo para la cabecera */
header {
    background-color: #f5f5f5;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;

}
/* Asegúrate de que el logo se muestre correctamente */
.logo {
    height: 50px; /* Ajusta el tamaño según lo necesites */
    margin-right: 10px; /* Espacio entre el logo y el texto */
    vertical-align: middle; /* Alinea el logo con el texto */
    width: 50px;
}
/* Estilo responsivo */
@media (max-width: 768px) {
    .logo {
        height: 40px; /* Ajusta el tamaño según lo necesites */
        margin-right: 10px; /* Espacio entre el logo y el texto */
        vertical-align: middle; /* Alinea el logo con el texto */
    }
    .branding h1 {
        font-size: 1.45em; /* Ajusta el tamaño para pantallas pequeñas */
    }
}
.branding h1 a {
    color: #000000;
    text-decoration: none;
    font-size: 1.5em;
}
.branding .logo {
    width: 50px; /* Ajusta el tamaño del logo */
    height: auto;
    margin-right: 10px; /* Espacio entre el logo y el título */
}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 1.1em;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover, nav ul li a[aria-current="page"] {
    background-color: #1abc9c;
    border-radius: 5px;
}

h1 {
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    padding: 0px;
    width: 100%;
}

footer {
    background-color: #35424a;
    color: #ffffff;
    text-align: center;
    padding: 7px 0;
    position: relative;
    width: 100%;
    bottom: 0;
}
/* Estilo del menú de accesibilidad */
.accessibility-menu {
    position: fixed;
    top: 2%;
    right: 0;
    z-index: 1100;
}

/* Estilo del ícono del menú */
.accessibility-icon {
    background-color: #4A69BD;
    border: none;
    padding: 10px;
    cursor: pointer;
    outline: none;
}

/* Estilo de la imagen dentro del ícono */
.accessibility-icon img {
    width: 35px;
    height: 35px;
}

/* Estilo de las opciones del menú */
.accessibility-options {
    display: none; /* Se muestra solo cuando el menú está activado */
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 10px;
    width: 200px;
    position: absolute;
    top: 0;
    right: 40px; /* Ubica las opciones al lado del ícono */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Título del menú de accesibilidad */
.accessibility-options h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Lista de opciones */
.accessibility-options ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Estilo de cada opción en la lista */
.accessibility-options ul li {
    margin: 10px 0;
}

/* Estilo de los botones dentro de la lista */
.accessibility-options button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 8px 12px;
    width: 100%; /* Hace que los botones ocupen todo el ancho */
    text-align: left; /* Alinea el texto a la izquierda */
    cursor: pointer;
    outline: none;
    margin: 5px 0;
    border-radius: 4px; /* Bordes redondeados */
}

/* Estilo al pasar el mouse sobre los botones */
.accessibility-options button:hover {
    background-color: #00B0F0;
}

/* Estilo al enfocar los botones (cuando se hace clic o se navega con el teclado) */
.accessibility-options button:focus {
    border: 2px solid #333;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
/* Portada */
.hero {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    margin-top: 0px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    text-align: center;
}

/* Contenedor independiente de regiones */
.regions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 30px auto;
  max-width: 1200px;
}

.region-card {
  position: relative;
  width: 380px;
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.region-card:hover {
  transform: scale(1.05);
}

.region-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-title {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  width: 100%;
  padding: 5px;
  transform: translateY(-400%);
  font-size: 16px;
  text-align: center;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
}

/* Estilo responsivo */
@media (max-width: 768px) {
    .logo {
        height: 40px; /* Ajusta el tamaño según lo necesites */
        margin-right: 10px; /* Espacio entre el logo y el texto */
        vertical-align: middle; /* Alinea el logo con el texto */
    }
    .branding h1 {
        font-size: 1.45em; /* Ajusta el tamaño para pantallas pequeñas */
    }
}
/* Estilo responsivo para pantallas pequeñas */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    nav ul li a {
        padding: 10px 0;
    }
}
/* Ocultar la sidebar en pantallas pequeñas */
@media (max-width: 768px) {
    .body {
        margin: 0;
        padding: 0;
        background-color: #f5f5f5;
    }
    
    /* Estilo para la cabecera */
    .header {
        background-color: #f5f5f5;
        padding: 15px 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .container {
        flex-direction: column;
        text-align: center;
    }
    .title-container {
        width: 100%;
    }
    .footer {
        background-color: #35424a;
        color: #ffffff;
        text-align: center;
        padding: 7px 0;
        position: relative;
        width: 100%;
        bottom: 0;
    }}

@media (max-width: 768px) {
    .accessibility-icon img {
        width: 20px;
        height: 20px;
    }
    .accessibility-menu {
        position: fixed;
        top: 10%;
        right: 0;
        z-index: 1100;
    }
}
/* ✅ Responsivo para móviles */
@media (max-width: 768px) {
  .region-container {
    flex-direction: column;   /* tarjetas en columna */
    align-items: center;      /* centradas */
    gap: 5px;                /* espacio entre tarjetas */
  }

  .region-card {
    width: 100%;               /* más anchas, casi todo el ancho */
    max-width: 500px;         /* límite de ancho */
    height: 200px;            /* altura fija para que todas iguales */
  }

  .region-card img {
    width: 100%;
    height: 100%;             /* todas las imágenes mismo alto */
    object-fit: cover;        /* recorta si no encaja */
  }
  .region-title {
    position: absolute;
    bottom: 50%;
    left: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    text-align: center;
    font-weight: bold;
    font-family: 'Roboto';
    transform: translateY(0%);

  }
}
