/* ==== General ==== */
.grid-malla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  max-width: 1100px;
  margin: 15px auto;
  padding: 10px;
}



@media (max-width: 768px) {
  .grid-malla {
    gap: 10px;
    padding: 10px;
  }

  .celda {
    margin-bottom: 10px;
  }
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .media-adaptada {
    width: 60px;
    height: 60px;
  }
}


.celda {
  background-color: #111;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.full-width {
  grid-column: 1 / span 2;
}

/* ==== Imagen principal ==== */
#principal-media img,
#principal-media video {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  cursor: pointer;
}

/* ==== Galería (miniaturas) ==== */
.media-adaptada {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  margin: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.media-adaptada:hover {
  transform: scale(1.07);
  border: 2px solid #00ffbf;
}

/* ==== Texto superior destacado ==== */
.texto-superior {
  background-color: #1c1c1c;
  color: #00ff88;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ==== Estrellas ==== */
.rating-estrellas {
  font-size: 1.3rem;
  color: #ffcc00;
  margin: 8px 0;
}

/* ==== Precio ==== */
.precio-original {
  text-decoration: line-through;
  color: #888;
  font-size: 1rem;
  margin-right: 10px;
}

.precio-descuento {
  font-size: 1.4rem;
  font-weight: bold;
  color: #00ff7f;
}

.descuento-badge {
  background-color: #ff4444;
  color: white;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 8px;
  margin-left: 10px;
  display: inline-block; /* 👈 Clave para que se adapte al contenido */
  white-space: nowrap;   /* 👈 Evita que se corte en dos líneas si sobra espacio */
}


/* ==== Compra ==== */
.compra-responsive {
  display: flex;
  align-items: baseline; /* 👈 CAMBIO CLAVE */
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}



/* Estilo base para escritorio */
.compra-responsive label {
  margin-right: 10px;
  font-weight: bold;
}

.compra-responsive input[type="number"] {
  width: 80px;
  height: 40px;
  text-align: center;
  padding: 5px;
  border-radius: 0 ;
  border: 1px solid #555;
  background-color: #1c1c1c;
  color: #fff;
}

.compra-responsive button {
  height: 40px;
  padding: 0 15px;
  background-color: #00ff7f;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.compra-responsive button:hover {
  background-color: #00cc66;
}

/* Responsive: apila todo en móviles */
@media (max-width: 768px) {
  .compra-responsive {
    flex-direction: column;
    align-items: stretch;
  }

  .compra-responsive label,
  .compra-responsive input[type="number"],
  .compra-responsive button {
    width: 100%;
    text-align: left;
  }

  .compra-responsive input[type="number"] {
    text-align: center;
  }

  .compra-responsive button {
    margin-top: 5px;
  }
}

@media (max-width: 768px) {
  .grid-malla {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 10px;
    margin: 0 auto;
    overflow-x: hidden;
  }

  .full-width {
    grid-column: 1 / -1;
  }

  html, body {
    overflow-x: hidden;
  }

  .celda,
  .grid-malla > * {
    max-width: 100%;
    overflow-x: hidden;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
  }
}









.tabs {
  position: relative;
  margin: 1rem 0;
  background: #1c1c1c;
  height: auto;
}

.tabs input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.tabs ul {
  display: flex;
  flex-wrap: wrap;              /* ✅ permite que se adapte a varias líneas si hace falta */
  justify-content: space-between;
  width: 100%;                  /* ✅ se adapta al contenedor padre */
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
}

.tabs ul li {
  flex: 1 1 33.3333%;           /* ✅ ocupa 1/3 cada uno y se ajusta */
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tabs ul li label {
  display: block;
  padding: 0.5rem;
  background: #1c1c1c;
  cursor: pointer;
  text-align: center;
  width: 100%;
}

.tabs ul li label span {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  width: 100%;
}
@media (max-width: 768px) {
  .tabs ul {
    flex-direction: column;
  }

  .tabs ul li {
    flex: 1 1 100%;
  }
}


.tabs .slider {
  position: relative;
  width: 100%;
  height: 2px;
  background: #ccc;
}

.tabs .slider .indicator {
  position: absolute;
  width: 33.3333%;
  height: 100%;
  background: #00ff7f;
  transition: 0.3s;
}

.tabs .content section {
  display: none;
  padding: 1rem;
}

#tab1:checked ~ .slider .indicator {
  left: 0;
}

#tab2:checked ~ .slider .indicator {
  left: 33.3333%;
}

#tab3:checked ~ .slider .indicator {
  left: 66.6666%;
}

#tab1:checked ~ .content section:nth-child(1),
#tab2:checked ~ .content section:nth-child(2),
#tab3:checked ~ .content section:nth-child(3) {
  display: block;
}

.tabs ul li label span {
  font-size: 1.0rem; /* Aumenta el valor según lo que necesites */
  font-weight: bold;
  text-transform: uppercase; /* Opcional: todo en mayúsculas */
}


@media (max-width: 768px) {
  .tabs ul li label span {
    font-size: 0.9rem; /* 👈 Ajustá este valor como te guste */
  }
}
@media (max-width: 480px) {
  .tabs ul li label span {
    font-size: 0.8rem;
  }
}


.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  z-index: 100;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
}

.whatsapp-float:hover {
  box-shadow: 0 0 10px #25d366;
  transform: scale(1.05);
  transition: 0.2s ease;
}









.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.testimonial {
  background: #0b0b0b;
  padding: 1rem;
  border-radius: 10px;
  border-left: 5px solid #007bff;
}

.testimonial p {
  margin: 0;
  font-size: 1rem;
  color: #ddd;
}

.testimonial h4 {
  margin-top: 8px;
  font-weight: bold;
  color: #fff;
}

/* Formulario de reseñas */
.formulario-reseña {
  margin-top: 2rem;
  background: #111;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#form-reseña input,
#form-reseña textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background-color: #222;
  color: white;
  border: 1px solid #444;
  border-radius: 0;
}

#form-reseña textarea {
  resize: vertical;
  min-height: 80px;
}

#form-reseña button {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  background-color: #00ff88;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 0;
  cursor: pointer;
}

#form-reseña button:hover {
  background-color: #00cc66;
}



.acciones-reseña {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.icono-btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.icono-btn:hover {
  background: #444;
}