* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
html{
  overflow-x:hidden;
  height: 100%;
}
html body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Bookman Old Style", Georgia, serif;
  background-color: #93c5bc;
  background-size: auto;
  background-attachment: fixed;
  background-position: center;
}
.img-centrada {
  display: block;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: auto;
}
/* Cabecera */
.logo-container {
  height: 100%;
  display: flex;
  align-items: center;
}
.logo {
  height: 100%;
  object-fit: contain;
}

/* Navegación */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #93c5bc;
  display: flex;
  justify-content: space-between;
  padding: 1rem 5%;
  height: 120px;
  border-style: none none solid;
  border-color: #608a83;
}
nav{
  display: flex;
  padding: 1rem;
}
header ul {
  list-style-type: none;
  display: flex;
  text-align: center;
  gap: 30px;
}
header ul li a{
  color: #ffffff;
  font-size: 1.2rem;
}
header ul li a:link {
  text-decoration: none;
}
header ul li a:visited {
  text-decoration: none;
}
header ul li a:hover {
  text-decoration: underline;
}
header ul li a:active {
  text-decoration: underline;
}
header ul li a img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 5px;
}
header ul li a.language-link {
  display: none;
}
/* Menu desplegable movil */
div.menu-movil-icono{
  display: none;
  height: 50px;
  width: 50px;
  margin-left: auto;
  position: relative;
}
.menu-movil-icono span {
  height: 5px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 25px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: .3s ease;
}
.menu-movil-icono span:nth-child(1) {
  top: 25%;
}
.menu-movil-icono span:nth-child(3) {
  top: 75%;
}
.menu-movil-icono.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.menu-movil-icono.active span:nth-child(2) {
  opacity: 0;
}
.menu-movil-icono.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Oculta los enlaces y muestra el botón en móviles */
@media (max-width: 800px) {
  div.menu-movil-icono{
    display: block;
  }
  .menu-sde {
    position: fixed;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    top: -6.5%;
    gap: 50px;
    right: -500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    transition: .3s ease;
    background-color: #a37644;
  }
  .menu-sde.active {
    right: 0;
  }
  #menu-sde {
  transition: all 0.3s ease;
  }
  header ul li a.language-link {
  display: inline-block;
}
}

/* Contenido */
.content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Texto */
h1 {
  color: #a37644;
  text-align: center;
  font-family: inherit;
  font-size: 5em;
  font-style: normal;
}
h2 {
  color: #a37644;
  font-family: inherit;
  margin-bottom: 5px;
  padding: 2%;
  margin-left: 2%;
  font-size: 2.5em;
}
h2.gal-titulo {
  text-align: center;
}
h3 {
  color: #a37644;
  font-family: "Bookman Old Style", Georgia, serif;
  font-size: 2em;
  margin-bottom: 1px;
  margin-top: 0px;
  text-align: center;
}
h4 {
  font-size: 1.8em;
  color: #a37644;
  font-family: inherit;
  margin-bottom: 0px;
}
h5{
  font-size: 1.8em;
  color: #ffffff;
  font-family: inherit;
  letter-spacing: 2px;
  margin-block-start: 0;
}
p {
  color: #000000;
  margin-bottom: 1rem;
  text-align: justify;
  font-family: Tahoma, "Trebuchet MS", sans-serif;
  font-size: 1em;
  line-height: 1.5;
  padding: 0 10% 0 10%;
}
.content p {
  font-size: 1.5em;
}
.content li {
  font-size: 1.5em;
}
p, .lista-punteada li {
  font-family: inherit;
  font-size: 1.5em;
  line-height: 1.6;
  color: inherit;
  margin: 0 0 1rem 0;
}
ul.grupo-apoyo {
  list-style-type: square;
}
strong {
  display: inline;
  font-weight: bold;
}
.lista-punteada {
  padding-left: 1.5rem; /* sangría para viñetas */
  margin: 0;
}

/* Perfiles */
.contenedor-perfiles {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 1rem;
}
.perfil {
  flex: 1 1 20rem; /* al menos 20rem de ancho, se adapta */
  max-width: 25rem;
  background-color: #f9f9f9;
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}
.perfil img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  background-color: #f9f9f9;
}
.perfil strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.perfil p {
  font-size: 0.95rem;
  line-height: 1.5;
}
#img-mirelia {
  object-fit: cover;
  object-position: top center;
}
#img-pendiente {
  background-color: #000;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 0.5rem;
}

/* Estilo contacto */
div.content {
  margin: 0;
  padding: 0;
  text-align: center;
}
div.content ul {
  list-style-type: none;
  display: inline-block;
  text-align: left;
  padding: 0;
  margin: 0;
}
li.contacto {
  align-items: center;
  list-style-type: none;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}
.numero {
  height: 35px;
  margin: 0.5rem;
  filter: invert(47%) sepia(44%) saturate(509%) hue-rotate(351deg) brightness(94%) contrast(87%);
}
.numero:hover {
  height: 50;
  transition: all 0.3s ease;
}
.contacto p {
  font-size: 1em;
  color: #a37644;
  font-family: "times new roman", serif;
}
p.metodos-contacto{
  color: #ffffff;
  text-align: center;
  padding: 0;
  margin: 0;
}
a.correo {
  color: #a37644;
  text-decoration: none;
}

/* Slideshow container */
.slideshow-container {
  max-width: 900px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  overflow: hidden;
}
/* Imagenes */
.img-mision {
  width: 640px;
  height: 480px;
  border-radius: 10px;
  object-position: center;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.img-introduccion {
  width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
/* Caption text */
.text {
  color: #f2f2f2;
  background-color: #00000080;
  font-size: 30px;
  font-family: "Bookman Old Style", Georgia, serif;
  font-weight: bold;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}
/* Number text (1/4 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}
/* Hides all slides by default */
.mySlides {
  display: none;
  width: 100%;
  position: relative;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
/* Shows the active slide */
.mySlides.active {
  display: block;
  opacity: 1;
}
/* Dot styles */
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s;
}
.dot.active {
  background-color: #717171;
}

/* Consecutivas */
.galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem;
}
.galeria img {
  width: 100%;
  max-width: 20rem;
  flex: 1 1 15rem;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
}
/* Galería */
.margenes-galeria {
  margin: 5%;
  padding: 0;
}
.wrapper {
  overflow: hidden;
  height: 100vh;
  display: grid;
  grid-template-rows: 2fr 1fr;
  grid-gap: 10px;

  @media screen and (min-width: 1200px) {
    grid-template-columns: 1fr 5fr;
    grid-template-rows: auto;
  }
}
.gal-img {
  display: block;
  width: 100%;
  scroll-snap-align: start;
  margin-bottom: 10px;
}

.gallery {
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  display: flex;

  @media screen and (min-width: 1200px) {
    display: block;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
  }
}

.gallery__img {
  scroll-snap-align: start;
  margin-bottom: 10px;
  min-width: 100vw;
  object-fit: cover;

  @media screen and (min-width: 1200px) {
    min-width: auto;
    min-height: 100vh;
  }
}

.lil-nav {
  overflow-x: scroll;
  overflow-y: hidden;
  display: flex;
  grid-row-start: 2;

  @media screen and (min-width: 1200px) {
    overflow-y: scroll;
    overflow-x: hidden;
    display: block;
    grid-row-start: auto;
  }

  a {
    display: flex;
    min-width: 45vw;
    margin-right: 10px;

    @media screen and (min-width: 1200px) {
      margin-bottom: 10px;
      min-height: 200px;
      min-width: 100%;
    }
  }
}

.lil-nav__img {
  object-fit: cover;
  filter: saturate(0);
  transition: 0.3s ease all;

  &:hover {
    transform: scale(1.05);
    filter: saturate(1);
  }
}

/* Footer */
footer {
  position: relative;
  display:flex;
  flex-direction: column;
  align-items: center;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0 1rem 0;
  background-color: black;
}
 
.pie-de-pagina {
  color: darkgrey;
  font-size: 14px;
  margin:auto;
  text-align: center;
}
