* {

  font-family: "Poppins", sans-serif;
}

body {
  background: #f7f7f7;
  margin: 0;
  padding: 0;
}

/* --- Contenedor centrado solo para el contenido principal --- */
main {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.contenedor {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  width: 95%;
  max-width: 1100px;
}

.titulo {
  text-align: center;
  font-size: 60px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #000000;
  text-align: center;
  text-shadow: 0 0 8px rgb(0 0 0 / 51%);
  border-bottom: 2px solid rgb(0 0 0 / 63%);
  padding-bottom: 5px;
  width: 100%;
}

.superior {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.izquierda {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen-principal {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.derecha {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.planos {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.plano {
  flex: 1;
  height: 200px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
  background: #f9f9f9;
  display: block;
}

.descripcion {
  background: #f2f2f2;
  padding: 10px;
  border-radius: 8px;
}

.descripcion h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.descripcion p {
  font-size: 20px;
  color: #333;
  line-height: 1.5;
}

.botones {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;

}
a{
  text-decoration: none;
}

.btn {
  position: relative;
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  transition: background 0.6s ease, transform 0.2s ease;
}


.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75px;
  width: 50px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}


.btn:hover {
  transform: scale(1.05);
}
.btn:hover::after {
  left: 125%;
}




.btn.MercadoPago {
  background: #0098CF;
}
.btn.MercadoPago:hover {
  background: #007fad;
}


.btn.Efectivo {
  background: #4CAF50;
}
.btn.Efectivo:hover {
  background: #3d8e41;
}


.btn.mas-info {
  background: #ff9800;
}
.btn.mas-info:hover {
  background: #e68900;
}


.btn.contacto {
  background: #9C27B0;
}
.btn.contacto:hover {
  background: #7b1fa2;
}

/* --- Campo de cantidad --- */
.cantidad {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cantidad label {
  font-weight: 600;
}
.cantidad input {
  width: 80px;
  padding: 5px;
  border-radius: 6px;
  border: 2px solid #ccc;
  outline: none;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

/* --- Popup estilo moderno --- */
.popup {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff5252;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.5s ease;
  font-weight: 600;
  z-index: 9999;
}
.popup.visible {
  top: 30px;
  opacity: 1;
}

.share-buttons {
  position: absolute;
  top: 50px;
  right: 15%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 8px;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.info-stock {
  font-size: 0.9em;     /* La hace un poco más pequeña que el texto normal */
  font-style: italic;   /* Pone el texto en cursiva */
  color: #666;         /* Un color gris para que sea menos prominente */
  margin-top: 5px;      /* Un pequeño espacio arriba */
  margin-bottom: 15px;  /* Un espacio para separarlo del precio */
}
.share-buttons a img {
    width: 36px;
    height: 36px;
    cursor: pointer;
}


@media (max-width: 2022px) {
  .share-buttons {
    right:10%;
    }
}

@media (max-width: 1782px) {
  .share-buttons {
    right:7%;
    }
}

@media (max-width: 1646px) {
  .share-buttons {
    right:3%;
    }
}

@media (max-width: 1518px) {
  .share-buttons {
    right:1%;
    }
}
@media (max-width: 1441px) {
    .product-section{
        height: auto;
    }
}


@media (max-width: 545px) {
  .share-buttons {
    top: auto;          
    right: auto;        
    bottom: 20px;       
    left: 50%;          
    transform: translateX(-50%); 
    flex-direction: row;
    gap: 10px;              /* un poco menos de gap */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;      /* menos padding para que quede más compacto */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    width: auto;            /* que se ajuste al contenido */
    max-width: 70%;         /* máximo 90% del ancho de pantalla */
    max-height:70%;
    justify-content: center; /* centrar los botones */
  }
}
@media (max-width: 870px) {
  .share-buttons {
    position: absolute;
    top: 50px;
    right: 20px; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 777px) {
  .share-buttons {
    position: absolute;
    top: 50px;
    right: 0px; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 8px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 735px) {
.share-buttons {
    top: auto;          
    right: auto;        
    bottom: 20px;       
    left: 50%;          
    transform: translateX(-50%); 
    flex-direction: row;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  }

}

@media (max-width: 580px) {
  .share-buttons {
    top: 50px;
    right: 20px;
    bottom: auto;
    left: auto;
    transform: none;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

}


@media (max-width: 545px) {
  .share-buttons {
    top: auto;          
    right: auto;        
    bottom: 20px;       
    left: 50%;          
    transform: translateX(-50%); 
    flex-direction: row;
    gap: 10px;              /* un poco menos de gap */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;      /* menos padding para que quede más compacto */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    width: auto;            /* que se ajuste al contenido */
    max-width: 70%;         /* máximo 90% del ancho de pantalla */
    max-height:70%;
    justify-content: center; /* centrar los botones */
  }
  .share-buttons a img {
    width: 28px;            /* más pequeñas */
    height: 28px;
  }
}


@media (max-width: 768px) {
  .superior {
    flex-direction: column;
  }

  .planos {
    flex-wrap: wrap;
  }

  
}
