/* =========================================
   FUENTES E IMPORTS
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://db.onlinewebfonts.com/c/af8360322ea08b2e685007f3951b7c8f?family=Zico+Display+H%2BL+Inline');
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');

@font-face {
  font-family: 'EurostileExtended';
  src: url('../../fonts/EurostileExtended-Black.woff2') format('woff2'),
       url('../../fonts/EurostileExtended-Black.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}


/* =========================================
   ESTILOS GENERALES
========================================= */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  color: #333;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

form label {
  font-weight: bold;
}

form select,
form input[type="number"] {
  padding: 10px;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
}


/* =========================================
   CONTENEDOR PRINCIPAL DEL PRODUCTO
========================================= */
.producto__container {
  max-width: 1200px;
  margin: 50px auto;
  display: flex;
  /* elimina flex-wrap para que no hagan salto */
  flex-wrap: nowrap;
  background-color: #fff;
  box-shadow: 0 0 10px #ccc;
  border-radius: 10px;
  overflow: hidden;
  /* para que tome la altura del contenido más alto */
  align-items: stretch;
}

/* =========================================
   IMÁGENES DEL PRODUCTO Y GALERÍA
========================================= */
.producto__imagen {
  flex: 0 0 50%; /* ocupa la mitad del contenedor, ni crece ni se encoge */
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  height: 100%; /* que ocupe toda la altura */
}

.producto__imagen img {
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
}

#imagen-principal {
  max-height: 1200px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.galeria__lateral {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.galeria__lateral .miniatura {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.galeria__lateral .miniatura:hover,
.galeria__lateral .miniatura.activa {
  border-color: #000;
}

#imagen-principal {
  transition: transform 0.4s ease;
}
#imagen-principal:hover {
  transform: scale(1.05);
}

/* =========================================
   DETALLES DEL PRODUCTO
========================================= */
.producto__detalles {
  flex: 0 0 50%; /* ocupa la mitad del contenedor */
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* para alinear con la imagen */
}

.producto__titulo-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.producto__titulo {
  margin: 0;
  font-size: 2.2em;
  flex-grow: 1;
}

.producto__precio {
  font-size: 1.8em;
  color: #000;
  margin-bottom: 20px;
}

.producto__descripcion {
  font-size: 1.1em;
  margin-bottom: 25px;
  line-height: 1.6;
}

.producto__stock {
  font-weight: bold;
  margin-bottom: 20px;
  color: green;
}

.producto__stock.agotado {
  color: red;
}


/* =========================================
   BOTONES DE ACCIÓN
========================================= */
.btn__carrito {
  background-color: #333;
  color: white;
  padding: 15px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s ease;
  margin: 10px 0 15px;
}

.btn__carrito:hover {
  background-color: #111;
}

.btn__volver {
  text-decoration: none;
  font-size: 0.95em;
  color: #555;
  margin-top: 10px;
  display: inline-block;
  text-align: center;
}

.btn__volver:hover {
  text-decoration: underline;
}


/* =========================================
   CARRUSEL DE IMÁGENES
========================================= */
.producto__imagen.galeria__carrusel,
.galeria__carrusel {
  position: relative;
  width: 100%;
  height: 620px;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carrusel__imagenes {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  height: 620px;
}

.carrusel__imagenes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  border-radius: 10px;
}

.carrusel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 8px;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.carrusel__btn.izquierda {
  left: 10px;
}

.carrusel__btn.derecha {
  right: 10px;
}

.carrusel__btn:hover {
  background: rgba(0,0,0,0.7);
}


/* =========================================
   VARIANTES DE COLOR Y TALLE
========================================= */
.variantes-colores {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.color-circulo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: border-color 0.2s;
}

.color-circulo:hover {
  border-color: #000;
}

.talles-container {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.talle-btn {
  padding: 10px 14px;
  border: 2px solid #ccc;
  background-color: #dddddd;
  color: black;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  position: relative;
}

.talle-btn:hover:not(.disabled) {
  background-color: #e0e0e0;
  border-color: #999;
}

.talle-btn.selected {
  background-color: #d0ebff;
  border-color: #0d6efd;
  color: #0d6efd;
}

.talle-btn.disabled {
  background-color: #eee;
  border-color: #bbb;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.talle-btn .talle-info {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: #666;
}

.mensaje-talle {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 14px;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn__guia_talles {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn__guia_talles:hover {
  background-color: #222;
}
/* ===============================
   ESTILOS DE PÁGINA DE PRODUCTO
   =============================== */

/* === Modal Guía de Talles === */
.modal__contenido {
    max-width: 90vh;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__guia {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

.imagen__guia {
    max-width: 90vh;
    max-height: 90vh;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
    object-fit: contain;
}

/* === Botón cerrar modal === */
.cerrar__modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    cursor: pointer;
}

/* === Título y botón favorito === */

.favorito-container {
  margin-top: 10px;
}

.favorito-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #999;
  transition: color 0.3s;
}

.favorito-btn:hover {
  color: #e74c3c;
}

.favorito-btn.favorito-activo i {
  color: #e74c3c;
  font-weight: bold;
}

.favorito-btn i {
  pointer-events: none;
}

/* =========================================
   COMPLETÁ TU LOOK - REDISEÑO
========================================= */

.look-completo {
  max-width: 1200px;
  margin: 40px auto 70px;
  padding: 0 20px;
}

.look-header {
  text-align: center;
  margin-bottom: 28px;
}

.look-subtitulo {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #777;
  margin-bottom: 8px;
}

.look-header h2 {
  margin: 0;
  font-size: 2rem;
  color: #111;
}

.look-header p {
  margin: 8px 0 0;
  color: #666;
  font-size: 0.95rem;
}

.look-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.look-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.look-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}

.card-rel {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.look-img-wrap {
  width: 100%;
  height: 280px;
  background: #f3f3f3;
  overflow: hidden;
}

.look-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.look-item:hover .look-img-wrap img {
  transform: scale(1.04);
}

.look-info {
  padding: 16px;
  text-align: center;
}

.look-info h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.look-precio {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
}

.look-btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s ease;
}

.look-item:hover .look-btn {
  background: #333;
}

/* Responsive */
@media (max-width: 1024px) {
  .look-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .look-img-wrap {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .look-completo {
    margin: 30px auto 50px;
    padding: 0 14px;
  }

  .look-header h2 {
    font-size: 1.6rem;
  }

  .look-items {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .look-img-wrap {
    height: 360px;
  }
}

/* === Footer === */
footer {
    background-color: #111;
    color: #eee;
    padding: 40px 0 10px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1 1 250px;
    margin: 20px 0;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
    border-bottom: 2px solid #444;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 14px;
    color: #bbb;
    margin: 8px 0;
}

.footer-section i {
    margin-right: 8px;
}

.social-icons a {
    color: #eee;
    margin-right: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1da1f2;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 13px;
    color: #888;
}

.beneficios {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: #444;
}
.beneficios div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Responsive === */

@media (min-width: 768px) and (max-width: 1024px) {
  .producto__container {
    flex-direction: column;
    margin: 30px 20px;
  }

  .producto__imagen {
    height: auto;
    padding: 20px;
  }

  .producto__imagen img {
    max-width: 100%;
    height: auto;
  }

  .producto__detalles {
    padding: 30px;
  }

  .producto__titulo {
    font-size: 2em;
  }

  .producto__precio {
    font-size: 1.5em;
  }

  .producto__descripcion {
    font-size: 1em;
  }

  .btn__carrito {
    width: 100%;
    padding: 12px;
    font-size: 1em;
  }

  .variantes-colores {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .color-circulo {
    width: 35px;
    height: 35px;
  }

  .talle-btn {
    padding: 10px;
    font-size: 15px;
  }

  .btn__guia_talles {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 767px) {
  .producto__container {
    flex-direction: column;
    margin: 20px 10px;
  }

  .producto__imagen {
    height: auto;
    padding: 15px;
    flex: 1 1 100%;
  }

  .producto__imagen img {
    max-width: 100%;
    height: auto;
  }

  .producto__detalles {
    padding: 20px;
    flex: 1 1 100%;
  }

  .producto__titulo {
    font-size: 1.6em;
  }

  .producto__precio {
    font-size: 1.3em;
  }

  .producto__descripcion {
    font-size: 1em;
  }

  .btn__carrito {
    width: 100%;
    font-size: 1em;
    padding: 12px;
  }

  .btn__volver {
    font-size: 0.9em;
  }

  .galeria__carrusel {
    flex-direction: column;
  }

  .carrusel__imagenes {
    flex-direction: row;
    overflow-x: scroll;
  }

  .carrusel__imagenes img {
    height: 250px;
    width: auto;
  }

  .carrusel__btn {
    display: none;
  }

  .variantes-colores {
    justify-content: center;
    flex-wrap: wrap;
  }

  .color-circulo {
    width: 30px;
    height: 30px;
  }

  .talles-container {
    justify-content: center;
  }

  .talle-btn {
    padding: 8px 10px;
    font-size: 14px;
  }

  .mensaje-talle {
    font-size: 13px;
  }

  .btn__guia_talles {
    padding: 8px;
    font-size: 14px;
    width: 100%;
  }

  .modal__contenido {
    width: 90%;
    height: auto;
    margin: 10% auto;
    padding: 15px;
  }

  .imagen__guia {
    max-width: 100%;
    max-height: 70vh;
  }

  .cerrar__modal {
    font-size: 22px;
    top: 8px;
    right: 15px;
  }
}

/* ===============================
   RESPONSIVE GALERÍA DE IMÁGENES
   =============================== */

@media (min-width: 768px) and (max-width: 1024px) {
  .producto__container {
    flex-direction: column;
    margin: 30px 20px;
  }

  .producto__imagen {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  #imagen-principal {
    max-height: 500px;
    width: 100%;
    object-fit: contain;
  }

  .galeria__lateral {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
  }

  .galeria__lateral .miniatura {
    width: 70px;
    height: 90px;
  }
}

@media (max-width: 767px) {
  .producto__container {
    flex-direction: column;
    margin: 20px 10px;
  }

  .producto__imagen {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  #imagen-principal {
    max-height: 350px;
    width: 100%;
    object-fit: contain;
  }

  /* Galería en scroll horizontal */
  .galeria__lateral {
    flex-direction: row;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: thin; /* Firefox */
  }

  .galeria__lateral::-webkit-scrollbar {
    height: 6px;
  }
  .galeria__lateral::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }

  .galeria__lateral .miniatura {
    width: 60px;
    height: 75px;
    flex-shrink: 0;
  }

  /* Carrusel en móvil */
  .galeria__carrusel {
    height: auto;
  }

  .carrusel__imagenes {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .carrusel__imagenes img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .carrusel__btn {
    display: none;
  }
}

.card-rel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #222;
  height: 100%;
}

.card-rel:hover {
  color: #000;
}

.card-rel img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #f2f2f2;
}

.card-rel p {
  text-decoration: none;
}

.card-rel .producto__precio {
  font-size: 1rem;
  color: #111;
  margin-top: 6px;
}

/* ===============================
   COLORES PRODUCTO
================================ */

.colores-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 18px;
}

.color-btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

.color-btn:hover,
.color-btn.activo {
    border-color: #111;
    background: #111;
    color: #fff;
}

.color-circulo {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.18);
    display: inline-block;
}

.color-btn.activo .color-circulo {
    border-color: rgba(255,255,255,0.7);
}

.talle-btn.seleccionado,
.talle-btn.activo {
    border-color: #111;
    background: #111;
    color: #fff;
}