:root {
  --color1: #1d1d1b;
  --color2: #4e4e4e;
  --color3: #d1ccca;
  --color4: #fbdcd9;
  --color5: #ac988f;
  --color6: #e8dacf;
  --color7: #ffffff;

  --color8: #f6f6b3;
  --color9: #b08f43;

  --color10: #f1f1f3;
  --color11: #b4b6b9;

  --gradient-start: #e1ba70;
  --gradient-mid: #aa7648;
  --gradient-end: #a57c51;

  --hover-gradient-start: #f7d488;
  --hover-gradient-mid: #e1b35d;
  --hover-gradient-end: #d19c4b;
}

body {
  background: var(--color7);
  font-family: "Kalnia", serif;
}

/* Contenedor Principal */
#contenedorP {
  padding-top: 62px;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1.2rem;
}

/* InicioP */

.detalle-producto {
  font-family: "Inter", sans-serif;
  display: flex;
  margin-top: 40px;
  gap: 2rem;
  width: 100%;
  max-width: 95vw;
}

.columna-imagen {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-direction: row;
}

.img-principal {
  width: 100%;
  height: auto; /* ← mantiene la proporción */
  max-width: 700px;
  object-fit: contain; /* evita que se recorte la imagen */
  border-radius: 10px;
}

.miniaturas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.miniatura {
  width: 50px;
  height: 55px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0.85;
  border: 2px solid transparent;
}

.miniatura.activa {
  border-color: black;
}

.nota-altura {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #888;
}

.columna-info {
  flex: 1;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 530px;
}

.titulo-precio {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nombre-producto {
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.precio-producto {
  font-size: 1rem;
  color: #333;
  letter-spacing: 1.5px;
}

.tallas {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.titulos-tallas {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Contenedor de botones */
.opciones-talla {
  display: flex;
  gap: 0.5rem;
}

/* Estilo base de cada talla */
.opciones-talla .btn-talla {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover (cuando pasas el cursor) */
.opciones-talla .btn-talla:hover {
  background-color: #f5f5f5;
  border-color: #999;
  color: #000;
}

/* Activa (la talla seleccionada) */
.opciones-talla .btn-talla.activa {
  background-color: #e0e0e0;
  color: rgb(0, 0, 0);
  border-color: #ccc;
}

/* Deshabilitada (sin stock) */
.opciones-talla .btn-talla.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
  color: rgb(0, 0, 0);
}

.guia-medidas {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
  text-decoration: underline;
}

.cantidad {
  display: flex;
  align-items: center;
  border: 1px solid #c7c7c7;
  border-radius: 4px;
  overflow: hidden;
  width: fit-content;
}

.cantidad input {
  width: 40px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
}

/* Quitar flechas en Chrome, Edge, Safari, Opera */
.cantidad input[type="number"]::-webkit-outer-spin-button,
.cantidad input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Quitar flechas en Firefox */
.cantidad input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield; /* estándar */
}

.menos,
.mas {
  background: none;
  border: none;
  font-size: 1rem;
  padding: 0.4rem 0.8rem;
  color: inherit;
  cursor: pointer;
  font-family: "Inter", sans-serif;
}

/* Quita bordes laterales individualmente */
.menos {
  border-right: 0px;
}

.mas {
  border-left: 0px;
}

.btn-carrito {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 1.1rem;
  border: none;
  letter-spacing: 2px;
}

.especificaciones h3 {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.especificaciones p {
  font-size: 0.9rem;
  color: #444;
}

/* Tablets (≤1024px) */
@media (max-width: 1024px) {
  .detalle-producto {
    gap: 4rem;
    max-width: 90vw;
  }
  .nombre-producto {
    font-size: 1.3rem;
  }

  .columna-info {
    gap: 1.5rem;
  }

  .precio-producto {
    font-size: 1rem;
  }

  .btn-carrito {
    font-size: 1rem;
  }
}

/* Móviles (≤768px) */
@media (max-width: 768px) {
  .detalle-producto {
    flex-direction: column;
    padding: 1rem;
    align-items: center;
  }
  .columna-imagen {
    flex-direction: column;
  }

  .titulo-precio {
    gap: 0.5rem;
  }

  .miniaturas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .img-principal {
    max-width: 100%;
  }

  .btn-carrito {
    width: 100%;
    font-size: 1rem;
  }

  .opciones-talla {
    justify-content: center;
    align-items: center;
  }
  .cantidad {
    margin: 0 auto; 
    justify-content: center; 
  }
}
