@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', Arial, sans-serif;
  background: #0f0f0f;
  color: #fff;
  max-width: 100%;
}

/* ---------------------HEADER----------------------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8%;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 2%;
  z-index: 1000;
}

#menu-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 32px;  
  cursor: pointer;
  margin-right: 16px;
}


#header nav {
  position: fixed;
  top: 8%;          
  left: 0;
  width: 100%;
  height: 0;
  background: #fff;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: height 0.4s ease, opacity 0.3s ease;
  z-index: 1001;
}

#header.show nav {
  height: 40%; /* altura del menú desplegable */
  opacity: 1;
  pointer-events: auto;
}


#header ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10%;
  height: 100%;
  list-style: none;
}

#header nav ul li a {
  color: #0f0f0f;
  font-size: 120%;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  padding: 10%;
}

#header img {
  width: 120px;   /* O el tamaño que prefieras */
  height: auto;
}

@media (max-width: 768px) {
  #header nav {
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  #header.show nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------------------CARRUSEL----------------------- */
.carrusel {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  height: auto;
  justify-content: center;
  align-items: center;
}

.slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carrusel .prev,
.carrusel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  font-size: 32px;      /* Tamaño del ícono de la flecha */
  cursor: pointer;
  z-index: 10;
  width: 48px;          /* Ancho del botón */
  height: 48px;         /* Alto del botón */
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrusel .prev { left: 2%; }
.carrusel .next { right: 2%; }

.img-mobile {
  width: 100%;
  height: auto;
  display: flex;
}

.img-desktop {
  display: none;
}

.carrusel .slide .img-mobile a img {
  width: 100%;
  height: auto;
  display: flex;
}

/* ---------------------CATEGORÍAS ---------------------------- */
.img-categorias-hover {
  display: none;
}
.img-link {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  padding: 0;
  height: auto;
}

.galeria-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 40px;
}

/*--------------FONDOS-----------------------*/
#casual {
  background-color: rgb(55, 62, 93);
  padding-top: 10%;
}

#hombre {
  background-color: rgb(28, 30, 40);
  padding-top: 10%;
}
#vestir {
  background-color: rgb(1, 8, 31);
  padding-top: 10%;
}
#mujer {
  background-color: rgb(169, 135, 108);
  padding-top: 10%;
}
#sandaliasm {
  background-color: rgb(198, 168, 141);
  padding-top: 10%;
}
#sandalias {
  background-color: rgb(122, 130, 164);
  padding-top: 10%;
}
#comfort {
  background-color: rgb(164, 136, 111);
  padding-top: 10%;
}
#index {
  background-color: rgb(0, 0, 0);
  padding-top: 10%;
}
/*-----------------TITULO-----------------------*/
.categoría {
  text-align: center;
  font-size: 430%;
  color: #fff;
  padding: 6% 0% 1% 0%;
  font-weight: 400;
  font-family: 'Bebas Neue', sans-serif;
}
/*----------------MODELOS-----------------------*/
.modelo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Añade esto */
  width: 100%;             /* Añade esto */
  padding: 3%;
  flex-wrap: wrap;
}
.modelo h2 {
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  font-size: 300%;
  margin-bottom: 2%;
  font-weight: normal;
}

.zapato {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 1rem;
  
  justify-content: center;
  align-items: center;
}

.zapato figure {
  
  max-width: 400px;
  margin: 0;
  padding: 2%;
  box-sizing: border-box;
}

.zapato figure figcaption {
  width: 300px;
  flex-wrap: wrap;
}

.zapato figure img {
  display: block;
}
.guia {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-bottom: 2%;
  list-style: none;
  text-decoration: none;
  gap: 3%;
  flex-wrap: wrap;
  margin-left: 20%;
  margin-right: 20%;
  font-size: 20px;
}
.guia li {
  padding: 1%;
  color: rgb(30, 30, 70);
  font-weight: bold;
}
ul.guia li a,
.guia a {
  text-decoration: none !important;
  color: inherit;
}
.guia li :hover{
  color: #ffffff;
  font-size: 120%;
  transition: 1s;
}
#sandaliasm .guia li, #comfort .guia li {
 color: rgb(115, 87, 64);
}
/*-----------------BOTON VOLVER ARRIBA-----------------------*/
#back2Top {
    width: 40px;
    line-height: 40px;
    overflow: hidden;
    z-index: 999;
    display: none;
    cursor: pointer;
    -moz-transform: rotate(270deg);
    -webkit-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
    position: fixed;
    bottom: 50px;
    right: 0px;
    background-color: #dddddda9;
    color: #000000;
    text-align: center;
    font-size: 30px;
    text-decoration: none;
}
#back2Top:hover {
    background-color: rgba(0, 0, 0, 0.501);
    color: #f9f7f7;
    transition: 0.5s;
}
/*-----------------CONTACTO-----------------------*/
#contacto {
  background-color: rgb(59, 59, 59);
  padding: 10%; 
  overflow: hidden;
}
#contacto h1 {
  font-family: 'Bebas Neue', sans-serif;
  text-align: left;
  font-size: 300%;
  font-weight: lighter;
  margin-bottom: 2%
}
#contacto h2 {
  font-family: 'Bebas Neue', sans-serif;
  text-align: left;
  font-size: 200%;
  font-weight: lighter;
  margin-bottom: 2%;
  margin-top: 10%;
}
main#contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15%;
}
#contacto p {
  font-size: 100%;
  color: #bdbdbd;
  text-align: left;
  max-width: 800px;
  margin-bottom: 6%;
}
#contacto a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
#contacto a:hover {
  color: #eeeeef;
  font-size: 130%;
}
#contacto li {
  list-style: none;
  margin-bottom: 1%;
}
/* ---------------------MEDIA QUERIES----------------------- */
@media (min-width: 769px) {
  main#contacto {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    padding: 5%;
  }
  #menu-toggle {
    display: none;
  }
  #header {
    position: static;
    height: auto;
    box-shadow: none;
    padding: 2% 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #header nav {
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: none !important;
    box-shadow: none !important;
    transition: none !important;
    display: block !important;
    transform: none !important;
    overflow: visible !important;
    z-index: auto !important;
  }
  #header ul {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50%;
    padding: 0;
    height: auto;
    margin: 0 auto;
    list-style: none;
  }
  #header nav ul li a {
    transition: color 0.2s, font-size 0.2s;
  }
  #header nav ul li a:hover {
    color: #4d4e54;     
    font-size: 130%;
  }

  a .img-mobile{
    display: none;
  }
  .img-mobile {
    display: none;
  }
  .img-desktop {
    display: flex;
    width: 100%;
  }

    .img-link {
    display: block;
    position: relative;
    width: 400px;  
    height: 300px;  
    overflow: hidden;
  }

  .img-link .img-categorias-hover,
  .img-link .img-categorias-hover {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
  }
  .img-link .img-categorias-hover {
    opacity: 0;
    z-index: 2;
  }
  .img-link:hover .img-categorias-hover {
    opacity: 1;
  }
  .img-link:hover .img-categorias {
    opacity: 0;
  }
  .galeria-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    gap: 2rem;
  }
  .img-link {
    flex: 0 1 45%;
    max-width: 400px;
    margin: 0 1rem 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: auto;
  }
  .galeria-links .img-link:nth-child(3) {
    flex-basis: 90%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    display: flex;
  }

  .galeria-links .img-link:not(:nth-child(3)):hover .img-categorias-hover {
    opacity: 1;
  }
  .galeria-links .img-link:not(:nth-child(3)):hover .img-categorias {
    opacity: 0;
  }
  
  .zapato {
    flex-direction: row;
  }

  #casual, #mujer, #hombre, #sandaliasm, #sandalias, #comfort, #vestir, #contacto, #index {
    padding: 0%;
  }
}


/* ---------------------IMAGEN MODAL----------------------- */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#sandaliasm .img-modal, #comfort .img-modal {
  background: rgba(134, 98, 69, 0.85);
}
#casual .img-modal, #vestir .img-modal {
  background: rgba(19, 23, 42, 0.85);
}
#sandalias .img-modal {
  background: rgba(67, 75, 109, 0.85);
}


.img-modal-content {
  display: block;
  margin: 0 auto;
  max-width: 95%;
  max-height: 60%;
}

#img-modal-caption {
  margin-top: 1%;
  text-align: center;
  font-size: 110%;
  padding: 0 1%;
}

.img-modal-close {
  position: absolute;
  top: 2.4%;
  right: 3.2%;
  color: #fff;
  font-size: 420%;
  font-weight: 100;
  cursor: pointer;
  z-index: 2100;
  transition: color 0.2s;
  user-select: none;
}
.img-modal-close:hover {
  color: #9e9e9e;
}

/* --- SOLO DESKTOP --- */
@media (min-width: 1024px) {
  .img-modal {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-left: 4%;
    padding-right: 4%;
  }
  .img-modal-content {
    max-width: 90%;
    max-height: 80%;
  }
  #img-modal-caption {
    margin-top: 0;
    margin-left: 1%;
    text-align: left;
    font-size: 130%;
    
    max-width: 40%;
    word-break: break-word;
    box-sizing: border-box;
  }
}




