body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  overflow: hidden;
}

.background {
  background: url('images/R.gif') center/cover no-repeat;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* ---- Centro ---- */
.center-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}

.center-star {
  width: 160px;
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 10px #0004ff5e);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.shop-title {
  font-size: 2.3rem;
  color: #fff;
  text-shadow:
    0 0 5px #ff0000,
    0 0 15px #ff0000,
    0 0 25px #ff0000;
  margin-top: 10px;
  font-weight: 700;
}

/* ---- Popup base ---- */
.popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: #dcdcdc;
  width: 85%;
  max-width: 900px;
  border: 4px ridge #fff;
  box-shadow: 0 0 40px #ff0000;
  z-index: 10;
  transition: transform 0.3s ease;
}

.popup.active {
  transform: translate(-50%, -50%) scale(1);
  animation: bounceIn 0.4s ease;
}

@keyframes bounceIn {
  0% { transform: translate(-50%, -50%) scale(0.6); }
  60% { transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* BARRA DE VENTANA */
.window-bar {
  background: #d6d6d6;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #999;
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 12px;
}

.tab {
  background: #f5f5f5;
  padding: 6px 14px;
  border-radius: 6px;
  border: 2px solid #bcbcbc;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.tab:hover {
  background: #ff0000;
  color: white;
  border-color: #ff0000;
}

.tabactive {
  background: #ff0000;
  color: white;
  border-color: #ff0000;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.close-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

/* ---- POPUP SHOP ---- */
.scrollable { max-height: 70vh; overflow-y: auto; }
.popup-content { text-align: center; padding: 20px; }

.header-img { width: 500px; margin: 15px auto; display: block; }

.price-banner {
  background: red; color: #fff; border: 3px solid #ff0000;
  box-shadow: 0 0 10px #ff0000; padding: 8px; font-weight: 700;
}

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 25px; margin-top: 30px;
}

.product {
  background: #fff; border: 2px solid #ff003c; padding: 10px;
  box-shadow: 0 0 15px #ff003c; transition: transform 0.2s;
}
.product:hover { transform: scale(1.05); }
.product img { width: 100%; max-width: 150px; }
.product-name { color: #ff0000; font-weight: 600; margin-top: 10px; }

.add-btn {
  background: transparent; border: 2px solid red; color: red;
  padding: 6px 12px; cursor: pointer; font-weight: 600;
}


/* --- POPUP PINES --- */
#pinsPopup {
  background: linear-gradient(to bottom, #00FFF2, #000399);
  box-shadow: 0 0 40px #00aaff;
  color: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.popup-scroll {
  overflow-y: auto;
  max-height: calc(100vh - 50px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pines-img { width: 100%; height: auto; display: block; }

.pin-btn {
  background: red;
  color: white;
  font-weight: 700;
  border: none;
  padding: 10px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 0 15px red;
  margin: -60px 0 40px; /* sube más el botón */
}


/* --- POPUP VESTIDOR --- */
#vestidorPopup {
  background: #fff5f8;
  box-shadow: 0 0 40px red;
}

/* Contenedor */
.vestidor {
  position: relative;
  width: 350px;
  height: 600px;
  margin: 20px auto;
  overflow: hidden;
  border: 4px solid red;
  border-radius: 12px;
  background-color: #fff;
}

/* ======================
      MODELO (Base)
   ====================== */

   #modelo[src*="modelo1.png"] {
  position: absolute;
  left: 50%;
  top: 35px;
  transform: translateX(-50%);
  width: 60%;            /* MÁS CHICO */
  z-index: 3;
} 
#modelo[src*="modelo2.png"] {
  position: absolute;
  left: 50%;
  top: 35px;
  transform: translateX(-50%);
  width: 60%;            /* MÁS CHICO */
  z-index: 3;
}

#modelo[src*="modelo3.png"] {
 position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  width: 60%;            /* MÁS CHICO */
  z-index: 3;
}


/* ======================
      PELO (unificado)
   ====================== */
   #pelo[src*="pelo1.png"] {
  position: absolute;
  left: 53%;
  transform: translateX(-50%);
  width: 31%;            /* igual tamaño que modelo */
  top: 25px;             /* SUBE o BAJA el pelo */
  z-index: 5;
  pointer-events: none;
}

#pelo[src*="pelo2.png"] {
  position: absolute;
  left: 52.4%;
  transform: translateX(-50%);
   width: 25.9%;           /* igual tamaño que modelo */
  top: 28px;             /* SUBE o BAJA el pelo */
  z-index: 5;
  pointer-events: none;
}
#pelo[src*="pelo3.png"] {
  position: absolute;
  left: 52.4%;
  transform: translateX(-50%);
  width: 31.8%;            /* igual tamaño que modelo */
  top: 19px;             /* SUBE o BAJA el pelo */
  z-index: 5;
  pointer-events: none;
}

#pelo[src*="pelo4.png"] {
  position: absolute;
  left: 53%;
  transform: translateX(-50%);
  width: 36%;            /* igual tamaño que modelo */
  top: 22px;             /* SUBE o BAJA el pelo */
  z-index: 5;
  pointer-events: none;
}

#pelo[src*="pelo5.png"] {
  position: absolute;
  left: 50.5%;
  transform: translateX(-50%);
  width: 30.7%;            /* igual tamaño que modelo */
  top: 29.7px;             /* SUBE o BAJA el pelo */
  z-index: 5;
  pointer-events: none;
}

/* ======================
      REMERA (unificada)
   ====================== */
#remera {
  position: absolute;
  left: 52%;
  transform: translateX(-50%);
  width: auto;
  height: 110px;         /* MÁS CHICA TODAS IGUALES */
  top: 115px;            /* SUBE la remera según tu modelo */
  object-fit: contain;
  z-index: 4;
  pointer-events: none;
}

#remera [src*="remera5.png"]{
  position: absolute;
 left: 62% !important;
  transform: translateX(-50%);
  width: auto;
  height: 110px;         /* MÁS CHICA TODAS IGUALES */
  top: 115px;            /* SUBE la remera según tu modelo */
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}


#bottom[src*="bottom1.png"] {
  position: absolute;
  left: 57%;
  transform: translateX(-50%);
  
  width: 45%;       /* ajustado al cuerpo */
 top: 240px;     /* sube para quedar justo en la cadera */
  
  z-index: 3;
  pointer-events: none;
}
#bottom[src*="bottom2.png"] {
  position: absolute;
  left: 46%;
  transform: translateX(-50%);
  
  width: 58%;       /* ajustado al cuerpo */
  bottom: 43px;     /* sube para quedar justo en la cadera */
  
  z-index: 5;
  pointer-events: none;
}
#bottom[src*="bottom3.png"] {
  position: absolute;
   left: 56%;
  transform: translateX(-50%);
  
  width: 48%;       /* ajustado al cuerpo */
 top: 241px;     /* sube para quedar justo en la cadera */
  
  z-index: 3;
  pointer-events: none;
}

#calzado[src*="calzado1.png"] {
  position: absolute;
  left: 46.5%;
  transform: translateX(-50%);
  
  width: 58%;      /* ajustado al pie */
  bottom: 15px;    /* ubicación base de los pies */
  
  z-index: 4;      /* arriba del pantalón */
  pointer-events: none;
}

#calzado[src*="calzado2.png"] {
  position: absolute;
  left: 46%;
  transform: translateX(-50%);
  
  width:56%;      /* ajustado al pie */
  bottom: 17px;    /* ubicación base de los pies */
  
  z-index: 4;      /* arriba del pantalón */
  pointer-events: none;
}
/* ======================
      FONDO
   ====================== */
#fondo {
  position: absolute;
  width: 120%;
  top: 0;
  left: 0;
  z-index: 1;
}
/* === Flechas / Controles - Vestidor === */
.grupo {
  position: absolute;
  display: flex;
  justify-content: space-between;
  width: 100%;
  z-index: 10;
}

.grupo1 { top: 10%; }
.grupo2 { top: 35%; }
.grupo3 { top: 60%; }
.grupo4 { top: 80%; }

.flecha {
  background: transparent;
  color: #ff0000;
  font-weight: bold;
  border: none;
  font-size: 38px;  /* Flecha un poco más grande */
  cursor: pointer;
  transition: 0.2s;
  text-shadow: 0 0 8px #ff0000; /* Glow siguiendo la forma */
}

.flecha:hover {
  text-shadow: 0 0 14px #ff4040; /* Más glow en hover */
  transform: scale(1.1); /* Opción: leve agrandado */
}


/* Botones inferiores */
.botonera {
  position: absolute;
  bottom: 10px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 4;
}

.botonera button {
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 0 8px #ff0000;
}

.botonera button:hover {
  box-shadow: 0 0 12px #ff4040;
}




/* --- BOTÓN FINALIZAR COMPRA --- */
.finalize-btn {
  background: red;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 15px;
  box-shadow: 0 0 15px red;
  transition: background 0.2s ease;
}
.finalize-btn:hover {
  background: #ff4d6a;
}


/* === ICONO CARRITO === */
.cart-icon {
  position: fixed;
  bottom: 25px;
  right: 25px;
  cursor: pointer;
  z-index: 30;
}

.cart-icon img {
  width: 70px;
  filter: drop-shadow(0 0 10px red);
  transition: transform 0.2s;
}

.cart-icon:hover img {
  transform: scale(1.1);
}

/* CÍRCULO CON NÚMERO */
.cart-icon span {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px red;
}

/* === CARRITO SLIDE === */
.cart-menu {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 25px rgba(255, 0, 0, 0.5);
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.cart-menu.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: red;
  color: white;
  padding: 15px;
  font-weight: 700;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info .name {
  font-weight: 600;
  color: #333;
}

.cart-item-info .qty {
  color: #555;
  font-size: 14px;
}

.remove-btn {
  background: transparent;
  border: none;
  color: red;
  font-size: 20px;
  cursor: pointer;
}
.size-select {
  margin-top: 8px;
  padding: 5px;
  border: 2px solid red;
  border-radius: 6px;
  font-weight: 600;
  color: red;
  background: white;
  cursor: pointer;
}

.size-select:focus {
  outline: none;
  box-shadow: 0 0 8px red;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff0f0;
  border-bottom: 2px solid #ffb3b3;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.cart-img {
  width: 60px;
  height: auto;
  border-radius: 6px;
}

.cart-info {
  flex: 1;
  margin-left: 10px;
  text-align: left;
}

.cart-info .name {
  font-weight: 700;
  color: #ff004c;
}

.cart-info .size,
.cart-info .qty {
  font-size: 14px;
  color: #444;
}

.color-select {
  background: black;
  color: white;
  border: 1px solid red;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 14px;
  margin-top: 8px;
  box-shadow: 0 0 8px red;
}
/* Flecha volver */
.btn-volver {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.btn-volver img {
  width: 50px;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.5));
}

body.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.credito-ilustrador {
  position: absolute;
  right: 50px; /* probá ajustar este valor si lo querés más cerca o lejos */
  top: 80%;
  font-size: 14px;
  font-weight: 900;
  color: #ff0000;
  text-decoration: none;
  white-space: nowrap;


  /* 🔥 Los hace visibles SIEMPRE */
  z-index: 9999;
  text-shadow: 0 0 8px #ff0000;
}

.credito-ilustrador:hover {
  opacity: 0.7;
  cursor: pointer;
}


@media (max-width: 530px) {

  /* --- Window bar general --- */
  .popup .window-bar {
    justify-content: flex-start;
    padding: 10px 12px;
    height: 45px;
    gap: 6px;
    position: relative;
  }

  /* Ocultar nombre de ventana */
  .window-bar > span {
    display: none;
  }

  /* Tabs más pequeñas */
  .popup .tabs .tab,
  .popup .tabs .tabactive {
    font-size: 10px;
    padding: 4px 8px;
  }

  /* Botón cerrar siempre visible */
  .popup .close-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    font-size: 18px;
  }

  /* --- SHOP POPUP --- */
  #shopPopup .popup-content {
    padding: 10px;
    text-align: center;
  }

  #shopPopup .header-img {
    width: 50% !important;
    margin: 10px auto;
  }

  #shopPopup .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    margin-top: 15px;
  }

  #shopPopup .product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .credito-ilustrador {
    color: white !important;
    top: 170%;
    left: 20px;
    text-shadow: 0 0 5px #000;
    font-size: 10px;
  }



.center-star {
  width: 120px;
  animation: spin 6s linear infinite;
  filter: drop-shadow(0 0 10px #0004ff5e);
}


.shop-title {
  font-size: 2rem;

}
/* --- VESTIDOR: CUBÍCULO MÁS CHICO Y CENTRADO EN MOBILE --- */
#vestidorPopup .contenedor-cuerpo {
  width: 180px;       /* más pequeño */
  height: auto;
  left: 50%;          /* centrar horizontal */
  transform: translateX(-50%);
  top: 90px;          /* bajar un poco para mejor vista */
}

#vestidorPopup .contenedor-cuerpo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

  /* Mantener todo lo demás del vestidor igual */
}
