/* ======== ESTILO GLOBAL ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  background-color: #fff;
  color: #000;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* ======== HEADER ======== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.header a:hover {
  color: #777;
}

.logo {
  height: 50px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ======== CARRITO ICONO ======== */
#carrito-icono {
  position: relative;
  cursor: pointer;
}

#carrito-icono img {
  width: 28px;
  height: 28px;
}

#carrito-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: red;
  color: white;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ======== MINI CARRITO ======== */
#mini-carrito {
  position: absolute;
  top: 80px;
  right: 40px;
  width: 320px;
  max-height: 400px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 16px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

#mini-carrito h3 {
  margin-bottom: 12px;
}

.item-mini-carrito {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-eliminar {
  background: transparent;
  border: none;
  color: #888;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-eliminar:hover {
  color: red;
  transform: scale(1.1);
}

#mini-carrito-total {
  font-weight: bold;
  margin-top: 10px;
}

#ir-checkout {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#ir-checkout:hover {
  background: #222;
}

/* ======== SECCIÓN PRODUCTOS ======== */
.productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centra todos los productos */
  gap: 32px;
  padding: 40px;
}

.producto-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: 0.3s ease;
  width: 280px;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.producto-box:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.producto-box img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.producto-info {
  padding: 16px;
}

.producto-info h3 {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 18px;
}

.producto-info .precio {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.tallas {
  font-size: 14px;
  margin-bottom: 10px;
}

.disponible {
  color: green;
  font-weight: 600;
}

.no-disponible {
  color: #999;
  text-decoration: line-through;
}

.producto-box button {
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.producto-box button:hover {
  background: #222;
}

/* ======== FOOTER ======== */
footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

footer .footer-redes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

footer p {
  font-size: 14px;
  color: #555;
}
/* ======== PRODUCTO DETALLE ======== */
.vista-producto {
  display: flex;
  justify-content: center;
  padding: 40px;
}

.producto-box-detalle {
  display: flex;
  flex-direction: row;
  gap: 40px;
  max-width: 900px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.producto-imagen img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.producto-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.producto-info h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.producto-info .precio {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
}

.producto-info .tallas {
  margin-bottom: 16px;
  font-size: 16px;
}

.producto-info button {
  width: 200px;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.producto-info button:hover {
  background: #222;
}
/* ======== PRODUCTO INDIVIDUAL ESTILO SHOPIFY ======== */
.shopify-style {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 60px 20px;
}

.producto-detalle {
  display: flex;
  gap: 40px;
  max-width: 1000px;
  width: 100%;
}

.producto-imagen img {
  width: 450px;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.producto-info-detalle {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.producto-info-detalle h2 {
  font-size: 28px;
  font-weight: 700;
}

.producto-info-detalle .precio {
  font-size: 22px;
  font-weight: bold;
  color: #000;
}

.producto-info-detalle .descripcion {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.select-talla {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 16px;
  cursor: pointer;
}

.agregar-carrito {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.agregar-carrito:hover {
  background: #222;
}
/* ======== FORMULARIO ENVÍO ESTILO SHOPIFY ======== */
.envio-shopify {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

#form-envio {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#form-envio h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

#form-envio input,
#form-envio textarea {
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

#form-envio input:focus,
#form-envio textarea:focus {
  border-color: #000;
}

#form-envio textarea {
  resize: vertical;
  min-height: 100px;
}

#form-envio button {
  background: #000;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

#form-envio button:hover {
  background: #222;
}
/* ======== RESUMEN CARRITO ESTILO SHOPIFY ======== */
.resumen-carrito {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.resumen-carrito h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.item-resumen {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

#resumen-carrito-total {
  margin-top: 15px;
  font-weight: 700;
  text-align: right;
  font-size: 18px;
}
/* ======== CONFIRMACIÓN ESTILO SHOPIFY ======== */
.resumen-carrito {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.resumen-carrito h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.resumen-carrito h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}

.item-resumen {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

#total-confirmacion {
  margin-top: 15px;
  font-weight: 700;
  text-align: right;
  font-size: 18px;
}

#datos-envio-confirmacion p {
  margin: 6px 0;
  font-size: 16px;
}
/* ======== ESTILO SHOPIFY PARA ENVÍO Y CONFIRMACIÓN ======== */

/* Secciones */
.resumen-carrito, .envio-shopify, .resumen-carrito h1, .resumen-carrito h2 {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 20px;
}

.resumen-carrito h1, .resumen-carrito h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

/* Cajas de productos */
.item-resumen, .producto-confirmado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background-color: #fff;
  transition: 0.2s;
}

.item-resumen:hover, .producto-confirmado:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Formulario envío */
.envio-shopify form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.envio-shopify form input,
.envio-shopify form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.envio-shopify form button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background-color: #000;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.envio-shopify form button:hover {
  background-color: #333;
}

/* Resumen total */
#resumen-carrito-total, #total-confirmacion {
  text-align: right;
  font-weight: 600;
  margin-top: 12px;
  font-size: 16px;
}

/* Datos de envío */
#datos-envio-confirmacion p {
  margin-bottom: 8px;
}

/* Método de pago */
.pago-bbva {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  max-width: 500px;
  margin: 20px auto 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pago-bbva p {
  margin-bottom: 8px;
  font-size: 16px;
}

.pago-bbva strong {
  color: #000;
}
/* Logo dentro del header */
.header .logo-3d {
  width: 120px; /* tamaño estándar de logo en header */
  max-width: 50%; /* para que no se desborde en móviles */
  height: auto;
  animation: girar 8s linear infinite; /* si quieres que siga girando */
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.header .logo-3d:hover {
  transform: scale(1.05); /* un pequeño efecto hover */
}

/* Media query para móviles */
@media (max-width: 600px) {
  .header .logo-3d {
    width: 90px; /* más pequeño en móviles */
  }
}

/* Mantener animación giratoria */
@keyframes girar {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
/* Slider de producto */
.slider {
  position: relative;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.slider .slides {
  display: flex;
}

.slider .slides img {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 12px;
  margin-right: 10px;
  object-fit: cover;
}
.carrito-flotante {
  position: fixed;
  bottom: 0px; /* distancia desde el borde inferior */
  right: 0px;  /* distancia desde el borde derecho */
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
}

.carrito-flotante:hover {
  transform: scale(1.1);
}

.carrito-flotante svg {
  width: 28px;
  height: 28px;
}

.carrito-flotante #carrito-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff0000;
  color: #fff;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mini-carrito {
  display: none; /* por defecto oculto */
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 20px;
  z-index: 1000;
}

#mini-carrito.mostrar {
  display: block;
}
