body {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

a {
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: #5E6165;
}


/* --------ANUNCIO REGISTRARSE-------- */


.user {
  position: relative;
}

#autoDialog {
  position: fixed;
  color: #fff;
  background-color: #000;
  top: 104px;
  right: 90px;
  padding: 30px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 20;
  border-radius: 5px;
  height: 28px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.dialogo-p {
  color: #fff;
  margin-top: -10px;
}

.dialogo-p-cuenta {
  color: #fff;
  line-height: 2rem;
  margin-right: 10px;
}

.dialogo-a {
  display: inline;
  color: #fff;
  text-decoration-line: underline;
  font-weight: bolder;
  line-height: 2rem;
}

.registrate-link {
  display: flex;
}

#autoDialog::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 18px;
  background-color: #000;
  bottom: 80px;
  right: 15px;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 1;
}


/* --------ANUNCIO REGISTRARSE END-------- */


/* --------NAVEGADOR-------- */

.menu-toggle {
  display: none;
}

.navegador {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1000;
  padding-bottom: 2px;
}

#nav {
  display: flex;
  background-color: #EBEBEB;
  padding: 8px;
  color: #5E6165;
  justify-content: end;
  gap: 20px;
  padding-right: 40px;
}

span {
  text-align: center;
}

.sub-nav {
  display: flex;
  margin-top: 20px;
  justify-content: space-between;
  margin-bottom: 8px;
}

select {
  background-color: #EBEBEB;
  border: none;
  color: #5E6165;
  outline: none;
  text-align: center;
}

.logo {
  margin: 10px;
  margin-left: 100px;
}

.right-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-right: 40px;
  margin-top: 10px;
}

.screen-menu-link {
  display: flex;
  gap: 100px;
  align-items: center;
}

.menu-link {
  color: #000;
  font-weight: bolder;
}

.container {
  display: flex;
  align-items: center;
}

.input-nav {
  width: 202px;
  padding: 16px;
  background-color: #EBEBEB;
  border: none;
  text-indent: 16px;
  border-radius: 4px;
}

.lupa {
  position: absolute;
}


/* --------NAVEGADOR END-------- */


/* --------MENÚ EMERGENTE-------- */


.screen {
  position: absolute;
}

.screen-menu-link a.dim {
    opacity: 0.5;
}

.img-menu-emergente {
  width: 250px;
  height: 160px;
}

#screen1 {
  display: none;
  margin-top: 67px;
  top: 100;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: white;
}

#screen2 {
  display: none;
  margin-top: 67px;
  top: 100;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: white;
}

#screen3 {
  display: none;
  margin-top: 67px;
  top: 100;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: white;
}

.inner-menu-lista1 {
  display: flex;
  gap: 166px;
  margin-left: 200px;
}

.inner-menu-lista2 {
  display: flex;
  gap: 199px;
  margin-left: 200px;
}

.inner-menu-lista3 {
  display: flex;
  gap: 182px;
  margin-left: 200px;
}

.inner-menu {
  display: flex;
  flex-direction: column;
}

.inner-menu-titulo {
  font-weight: bolder;
  color: #000;
}

.inner-menu-item {
  display: block;
  color: #5E6165;
  line-height: 1.4rem;
}

.inner-menu-item:hover {
  color: #000;
}

.inner-menu-titulo-feature {
  color: #000;
  font-weight: bolder;
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 20px;
  margin-left: 16px;
}

.inner-menu-img1 {
  display: flex;
  flex-direction: column;
  background-color: #EBEBEB;
  padding: 33px;
} 

.inner-menu-img2 {
  display: flex;
  flex-direction: column;
  margin-left: 299px;
  background-color: #EBEBEB;
  padding: 33px;
} 

.inner-menu-img3 {
  display: flex;
  flex-direction: column;
  margin-left: 16px;
  background-color: #EBEBEB;
  padding: 33px;
} 


.inner-menu1 {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.inner-menu2 {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.inner-menu3 {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.inner-menu a:hover {
  text-decoration: underline;
}


/* --------MENÚ EMERGENTE-------- */



/* --------NAV ICONOS-------- */


.nav-icono {
  position: relative;
  display: inline-block;
}

.nav-icono .nav-icono-texto {
  font-size: 12px;
  visibility: hidden;
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  width: 50px;
  top: 120%;
  left: 50%;
  margin-left: -25px;
  position: absolute;
  z-index: 1;
}

.nav-icono:hover .nav-icono-texto {
  visibility: visible;
}


/* --------NAV ICONOS END-------- */


/* ---------------SELECT BANDERAS-------------- */


.custom-select-wrapper-top {
  position: relative;
  display: inline-block;
  user-select: none;
}

.custom-select-top {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select-trigger-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #EBEBEB;
  padding: 0px 18px;
  cursor: pointer;
}

.custom-select-trigger-top .arrow-top {
  border: solid #999;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  margin-left: 8px;
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.custom-select-top.open .custom-select-trigger-top .arrow-top {
  transform: rotate(-135deg);
}

.custom-options-top {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #EBEBEB;
  border: 1px solid #ccc;
  z-index: 99;
  display: none;
  flex-direction: column;
}

.custom-select-top.open .custom-options-top {
  display: flex;
}

.custom-option-top {
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.custom-option-top:hover {
  background: #000;
  color: #fff;
}


/* ---------------SELECT BANDERAS END-------------- */



/* --------ANUNCIO-------- */


.anuncio {
  background-color: #EBEBEB;
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid #dddada;
}

.anuncio-uno, .anuncio-dos, .anuncio-tres {
  display: none;
}

.visible {
  display: flex;
}

.anuncio-uno {
  gap: 7px;
}

.anuncio-title {
  color: #000;
}


/* --------ANUNCIO END-------- */


/* --------PORTADA-------- */


.header {
  background-image: linear-gradient(to right, rgba(0, 0, 1, 0.7), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url(./portada.avif);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
  height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portada-titulo {
  color: #fff;
  font-size: 44px;
  margin: 0;
  padding: 0;
  margin-bottom: 20px;
}

.portada-p {
  color: #fff;
  font-size: 22px;
  margin: 0;
  padding: 0;
  margin-bottom: 30px;
}

.portada-btn {
  width: 200px;
  height: 40px;
  border: none;
  border-radius: 20px;
  margin-right: 20px;
  font-weight: bolder;
  font-size: 14px;
}

button {
  cursor: pointer;
}

.btn-hombre {
  color: #fff;
  background-color: #5E6165;
}

.btn-hombre:hover {
  color: #000;
  background-color: #dddada;
}

.btn-mujer:hover {
  color: #000;
  background-color: #7a7a7a;
}


/* --------PORTADA END-------- */


/* --------CARRUSEL-------- */


.carrusel-section {
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.carrusel-titulo {
  display: flex;
  align-items: center;
  gap: 40px;
}

.carrusel-todo > p {
  margin-top: 50px;
}

.carrusel-img1, .carrusel-img2 {
  width: 440px;
  height: 550px;
}

.section-title {
  margin-left: 40px;
  margin-top: 80px;
}

.carrusel-todo {
  text-decoration-line: underline;
  color: #000;
  font-size: 18px;
  font-weight: bolder;
  margin-top: 10px;
}

.carrusel-productos {
  display: flex;
  margin-top: 0;
  gap: 8px;
  transition: transform 0.5s ease;
}

.carrusel-link {
  position: relative;
}

.carrusel-item {
  list-style: none;
}

.item-descripcion {
  color: #000;
}

.item-precio {
  color: #000;
}

.item-btn {
  position: absolute;
  right: 0;
  top: 0;
  border: none;
  border-radius: 50%;
  background-color: #F8F5F5;
  margin: 7px;
}

.item-btn:hover {
  background-color: rgba(255, 0, 0, 0.5);
}

.favorito-img {
  margin: 2px;
  margin-top: 5px;
  width: 15px;
}

.prev-button {
  position: absolute;
  top: 0;
  margin-top: 340px;
  border: none;
}

.next-button {
  position: absolute;
  top: 0;
  margin-top: 340px;
  right: 0;
  border: none;
}


/* --------CARRUSEL END-------- */


/* --------CAMBIAR DE IMAGENES :HOVER-------- */


.carrusel-img2 {
  display: none;
}

.carrusel-item:hover .carrusel-img2 {
  display: block;
}

.carrusel-item:hover .carrusel-img1 {
  display: none;
}


/* --------CAMBIAR DE IMAGENES :HOVER END-------- */


/* --------POPULARES-------- */


.populares {
  margin-top: 60px;
}

.populares-img {
  width: 440px;
  height: 550px;
}

.populares-btn {
  margin-left: 40px;
  margin-top: 10px;
  width: 150px;
  height: 40px;
  border: none;
  border-radius: 20px;
  font-weight: bolder;
  font-size: 14px;
}

.populares-btn:hover,
.populares-btn.active {
  background-color: #000;
  color: #fff;
}

.populares-productos-mujer, 
.populares-productos-hombre, 
.populares-productos-complementos {
  display: flex;
  gap: 18px;
}

.hidden {
  display: none;
}


/* --------POPULARES END-------- */


/* --------TRAIN SECCION-------- */

.train-mobile {
  display: none;
}

.train {
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.train-lista {
  list-style: none;
  display: flex;
  gap: 8px;
}

.train-li-imagen {
  position: relative;
}

.img-gradient {
  position: relative;
  width: 100%;
  height: 100%;
}

.img-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 680px;
  background: linear-gradient(to top, black, transparent 25%);
  pointer-events: none; /* Permite que los eventos pasen a través del pseudo-elemento */
}

.titulo-btn {
 position: absolute;
 bottom: 30px;
 left: 46px;
}

.train-p {
  color: #fff;
  font-size: 28px;
  font-weight: bolder;
  margin-bottom: 12px;
}

.btn-train {
  background-color: #fff;
  width: 120px;
  height: 40px;
  border: none;
  border-radius: 20px;
  font-weight: bolder;
  font-size: 14px;
}

.btn-train:hover {
  background-color: #000;
  color: #fff;
}

.prev-button-train {
  position: absolute;
  top: 0;
  margin-top: 340px;
  border: none;
}

.next-button-train {
  position: absolute;
  top: 0;
  margin-top: 340px;
  right: 0;
  border: none;
}


/* --------TRAIN SECCION END-------- */


/* ----------ENLACES---------- */


.enlaces {
  display: flex;
  margin-top: 60px;
  gap: 200px;
  margin-bottom: 80px;
}

.enlaces > ul {
  list-style: none;
}

.enlaces-li {
  color: #5E6165;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8rem;
}

.enlaces-li:hover {
  color: #000;
  text-decoration: underline;
} 


/* ----------ENLACES END---------- */


/* TARJETAS DE PAGO */

.cards {
  width: 42px;
  height: 25px;
}


/* TARJETAS DE PAGO END */


/* ----------FOOTER---------- */


.footer-container {
  border-top: 1px solid #ccc;
  margin-left: 40px;
  display: flex;
  justify-content: space-between;
}

.footer-enlaces {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}


.footer-lista {
  margin-top: 40px;
  list-style: none;
}

.footer-li {
  color: #5E6165;
  font-weight: 600;
  line-height: 2rem;
}

.footer-li:hover {
  color: #000;
  text-decoration: underline;
}

.footer-info {
  margin-top: 80px;
  margin-right: 200px;
}

.footer-title {
  text-align: center;
}

.footer-text {
  width: 150px;
  font-size: 12px;
  font-weight: bolder;
  padding-bottom: 10px;
  margin-top: -4px;
  background-color: #ccc;
  text-align: initial;
}

.footer-text-blog {
  padding-bottom: 24px;
}

.tarjetas {
  margin-top: 100px;
  margin-left: 80px;
}

.tarjetas-rrss {
  display: flex;
  justify-content: space-between;
}

.rrss {
  margin-top: 100px;
  margin-right: 200px;
  display: flex;
  gap: 16px;
}

.copyrigth {
  height: 60px;
  border-top: 1px solid #ccc;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy {
  margin-left: 40px;
}

.copyrigth-dos {
  display: flex;
  gap: 20px;
  margin-right: 40px;
}

.copyrigth-dos-a {
  margin-top: 10px;
  color: #000;
  font-size: 18px;
}


/* ----------FOOTER END---------- */



/* -------------BANDERAS SELECT------------ */


.custom-select-wrapper {
  position: relative;
  display: inline-block;
  user-select: none;
  box-sizing: border-box;
}

.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 18px;
  cursor: pointer;
}

.custom-select-trigger .arrow {
  border: solid #999;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  margin-left: 8px;
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.custom-select.open .custom-select-trigger .arrow {
  transform: rotate(-135deg);
}

.custom-options {
  position: absolute;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  display: none;
  flex-direction: column;
}

.custom-select.open .custom-options {
  display: flex;
  bottom: 100%;
  top: auto;
}

.custom-option {
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.custom-option:hover {
  background: #f0f0f0;
}


/* -------------BANDERAS SELECT END------------ */


/* -----------------IDIOMAS---------------- */


.select-footer {
  background-color: #fff;
  color: #000;
}


/* -----------------IDIOMAS END---------------- */


@media (max-width: 768px) {
  .header {
    background-image: url(./header.webp);
    height: 320px;
    background-position:55%;
    margin: 0 0 0 10px;
    padding: 0;
  }

  .menu-toggle {
    display: block;
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    position: absolute;
    right: 10px;
  }

  .idioma {
    font-size: 28px;
  }

  .anuncio {
    margin: 0;
    padding: 0;
  }

  .portada-titulo {
   display: none;
  }
  
  .portada-p {
    display: none;
  }
  
  .portada-btn {
    width: 100px;
    margin-top: 230px;
    margin-left: 20px;
  }

  .logo {
    margin-top: 30px;
  }

  .gallery-navigation {
    display: none;
  }

  #nav {
    display: none;
  }

  .nav-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .right-nav {
    justify-content: space-evenly;
  }

  .input-nav {
    padding: 6px;
  }

  .nav-top p {
    display: none;
  }

  .nav-top a, .nav-top select {
    text-align: center;
    font-weight: 800;
  }

  .pais {
    margin-left: 160px;
    font-weight: 800;
  }

  .dialogo {
    display: none;
  }

  .sub-nav {
    gap: 0;
    margin: 0;
    flex-direction: column;
    justify-content: center;
  }

  .screen,
  .screen-menu-link {
    display: none;
  }

  .carrusel-section {
    margin-bottom: 40px;
  }

  .carrusel-productos {
    margin-top: 20px;
    margin-right: 30px;
    display: grid;
    grid-template-columns: 50% 50%;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .carrusel-item img {
    width: 170px;
    height: 200px;
  }

  .carrusel-item button {
    display: none;
  }

  .carrusel-todo p {
    display: none;
  }

  .last {
    display: none;
  }

  .populares {
    display: flex;
    flex-direction: column; 
  }

  .btn-populares-complementos {
    margin-left: 135px;
  }

  .populares-productos-mujer, 
  .populares-productos-hombre, 
  .populares-productos-complementos {
  gap: 4px;
  }

  .section-title {
  margin: 40px;
  font-size: 20px;
  }

  .img-3, .img-4 {
  display: none;
  }
  
  .populares-img {
    width: 140px;
    height: 260px;
    margin: 30px 0 20px 0;
    gap: 0;
  }

  .train {
   display: none;
  }

  .img-gradient {
    width: 0%;
    height: 0%;
  }

  .train-lista {
    display: grid;
    grid-template-columns: 50% 50%;
    margin: 0;
    padding: 20px;
    justify-items: center;
    gap: 0;
  }
  .train-imagen {
    width: 180px;
    height: 260px;
  }

  .section-enlaces {
    margin: 0;
  }

  .enlaces {
    flex-direction: column;
    gap: 0;
  }

  .footer-info {
    display: none;
  }

  .footer-lista {
    margin: 20px;
    padding: 0;
  }

  .footer-lista h4 {
    font-size: 18px;
    margin: 0;
    padding: 0;
  }

  .footer-li {
    font-size: 12px;
    margin: 0;
    padding: 0;
  }

  .footer-text {
    font-size: 8px;
    margin: 14px;
  }
  
  .img-footer {
    width: 100px;
    margin: 2px;
  }

  .tarjetas-rrss {
   flex-direction: column;
   margin: 20px;
   gap: 20px;
  }

  .footer-container {
    display: flex;
    flex-direction: column-reverse;
    margin: 0;
    gap: 0;
  }

  .tarjetas {
    gap: 5px;
    margin: 0;
  }

  .rrss {
    gap: 5px;
    margin: 0;
  } 

  .copyrigth {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    margin: 0;
    gap: 0;
  }

  .copyrigth-dos-a {
    font-size: 8px;
    gap: 0;
    margin: 0;
  }

  .select-footer {
    font-size: 10px;
  }

  .custom-select-trigger {
    font-size: 10px;
  }
}