/* === ESTRUCTURA GENERAL === */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

body {
  background-image: url('../imagenes/background3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  margin: 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* === MENÚ Y SIDEBAR === */
.sidebar {
  width: 220px;
  background: #1a1a1a;
  padding: 20px;
  box-shadow: 4px 0 10px rgba(0,0,0,0.6);
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #ffcc00;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar button {
  display: block;
  width: 100%;
  background: #292929;
  color: white;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  transition: all 0.3s;
  cursor: pointer;
}

.sidebar button:hover {
  background: #444;
  transform: translateX(5px);
}

.sidebar details {
  margin: 10px 0;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar summary {
  background: #292929;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.3s ease;
  list-style: none;
}

.sidebar summary:hover {
  background: #444;
  transform: translateX(5px);
}

.sidebar .submenu {
  padding-left: 15px;
}

.sidebar .submenu button {
  background: #1c1c1c;
  color: #ccc;
  font-size: 0.9rem;
  padding: 8px;
  border-radius: 6px;
  width: 100%;
  margin: 5px 0;
  transition: background 0.2s;
}

.sidebar .submenu button:hover {
  background: #444;
  color: white;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu > li {
  position: relative;
}

.menu > li > ul.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  list-style: none;
  background-color: #222;
  padding: 10px;
  z-index: 999;
}

.menu > li:hover > ul.submenu {
  display: block;
}

.menu a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

.menu a:hover {
  background-color: #444;
}

/* === SECCIÓN PRODUCTOS === */
.productos {
  flex: 1;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
}

/* === TARJETAS DE PRODUCTO === */
.card {
  width: 200px;
  height: 300px;
  background: linear-gradient(145deg, #1c1c1c, #0f0f0f);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 10px 10px 30px #000000a8;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100px;
  height: auto;
}

.card h3 {
  font-size: 1rem;
  margin: 10px 0;
}

.card .btn-comprar {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #e60023;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

.card .btn-comprar:hover {
  background-color: #ff0033;
}

/* === POPUPS === */
.popup,
#popup-argentina,
#popup-transferencia {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup.hidden,
#popup-argentina.hidden,
#popup-transferencia.hidden {
  display: none;
}

.popup-content {
  position: relative;
  background: #1c1c1c;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 20px #000;
  width: 320px;
  max-width: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* espacio uniforme entre elementos */
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e60023;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
}

/* === BOTONES DE PAGO === */
.botones-pago {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.btn-opcion {
  width: 110%;
  max-width: 260px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* TRANSFERENCIA 🇦🇷 */
.btn-opcion.btn-transferencia {
  background-color: #ff9933;
  color: white;
}

.btn-opcion.btn-transferencia:hover {
  background-color: #e6811e;
}

/* TARJETAS 🇦🇷🌍 */
.btn-opcion.btn-tarjeta {
  background-color: #009ee3;
  color: white;
}

.btn-opcion.btn-tarjeta:hover {
  background-color: #007cb7;
}

/* PAYPAL 🌍 */
.btn-opcion.btn-paypal {
  background-color: #003087;
  color: white;
}

.btn-opcion.btn-paypal:hover {
  background-color: #0050a0;
}

/* === CONTENIDO DE TRANSFERENCIA === */
#popup-transferencia p {
  margin: 8px 0;
  font-size: 16px;
  color: #fff;
}

#popup-transferencia strong {
  color: #ffcc00;
}

.dato-copiable {
  margin: 10px 0;
  background: #2c2c2c;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dato-copiable button {
  background: #ffcc00;
  color: black;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.dato-copiable button:hover {
  background: #e6b800;
}

/* === PÁGINA DE INICIO === */
.inicio-box {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #1c1c1c;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.inicio-box h2 {
  color: #ffcc00;
  margin-bottom: 15px;
}

.inicio-box p {
  margin: 10px 0;
  line-height: 1.6;
}

.como-comprar-texto {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #1c1c1c;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.como-comprar-texto h2 {
  color: #ff6666;
  margin-bottom: 15px;
}

.como-comprar-texto p {
  margin: 10px 0;
  line-height: 1.6;
}

/* === IMAGEN EN POPUP (EFECTO ZOOM) === */
#popup-imagen {
  width: 100px;
  margin: 10px auto 12px;
  display: block;
  transition: transform 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
  cursor: zoom-in;
}

#popup-imagen:hover {
  transform: scale(2.2);
  margin-bottom: 120px; /* empuja la descripción hacia abajo */
  z-index: 1; /* ya no tapa el texto */
}

/* === BOTÓN HAMBURGUESA === */
.menu-hamburguesa {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000;
  font-size: 28px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  display: none;
}

/* === RESPONSIVE FINAL === */
@media (max-width: 768px) {
  .menu-hamburguesa {
    display: block;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10001;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    height: 100%;
    z-index: 9999;
    transition: left 0.3s ease;
  }

  .sidebar.activo {
    left: 0;
  }

  .container {
    flex-direction: column;
  }

  .productos {
    padding: 20px;
    margin-top: 60px;
    justify-items: center;
  }

  .card {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  .inicio-box,
  .como-comprar-texto {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
  }
}

/* === BOTÓN VOLVER PRINCIPAL === */
.btn-volver-principal {
  display: block;
  text-align: center;
  padding: 10px 12px;
  margin-top: 10px;
  background-color: #FF0000;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-volver-principal:hover {
  background-color: #FF0000;
}

/* === DESACTIVAR DRAG EN IMÁGENES === */
img:not(#popup-imagen) {
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
}

.btn-plus15 {
  position: relative;
  color: #ffdf5d;
  font-weight: bold;
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 5px #ffdf5d; }
  50% { text-shadow: 0 0 15px #ffb700, 0 0 30px #ffb700; }
  100% { text-shadow: 0 0 5px #ffdf5d; }
}

.btn-plus15:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

/* === DESCRIPCIÓN EN POPUP === */
#popup-descripcion,
.popup-desc {
  margin-top: 6px;
  font-size: .95rem;
  line-height: 1.35;
  opacity: .9;
  text-align: center;
}

.hidden { display:none; }
