/* Variables CSS para consistencia */
:root {
  --primary-color: #db0101;
  --primary-dark: #d80202;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0d0d0d;
  color: var(--text-color);
  line-height: 1.6;
  padding-top: 80px; /* Compensa la altura del navbar fijo */
}

.product-details {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 2rem;
}

.product-gallery {
  flex: 1;
  min-width: 300px;
}

.main-image-container {
  position: relative;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.main-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
  cursor: zoom-in;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.7;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.product-info {
  flex: 1;
  min-width: 300px;
  padding: 1rem 0;
  position: relative;
  top: -40px;
}

.product-info h1 {
  font-size: 3rem;
  margin-bottom: 2px;
  color: #fff;
  font-weight: 700;
}

.price {
  font-weight: 700;
  font-size: 250px;
  color: red;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.description {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.features {
  margin-bottom: 2rem;
}

.descripcion {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  border: 1px solid #2d2d2d;
}

.descripcion h3 {
  color: #fff;
  opacity: 0.8;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.descripcion .description {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.features h3 {
  color: #fff;
  opacity: 0.8;
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-size: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card {
  background-color: #1a1a1a;
  border: 1px solid #2d2d2d;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.feature-card.available {
  border-left: 4px solid #4caf50;
}

.feature-card.unavailable {
  border-left: 4px solid #f44336;
  opacity: 0.7;
}

.feature-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feature-card.available .feature-icon {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.feature-card.unavailable .feature-icon {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.feature-text {
  flex: 1;
}

.feature-text h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-text p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

.actions {
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-buy {
  background-color: var(--primary-color);
  color: white;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.btn-buy:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(229, 74, 74, 0.3);
}

/* Modal para imagen ampliada */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin-top: 2%;
  border-radius: var(--border-radius);
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.close:hover {
  color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 1rem;
  }

  .product-info h1 {
    font-size: 1.6rem;
  }

  .price {
    font-size: 120px; /* Tamaño ajustado para móviles */
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* Badge de oferta (opcional) */
.badge {
  display: inline-block;
  background-color: #ff4757;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Indicadores de galería */
.gallery-indicators {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--primary-color);
}

.payment-info {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  border: 1px solid #2d2d2d;
}

.payment-info p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  font-size: 15px;
}

.payment-info .prices {
  color: #fff;
  opacity: 0.5;
}
