/* Reset y variables base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  min-height: 100vh;
  padding: 2.5rem 1rem;
}

/* Layout Principal */
.product-detail-container {
  max-width: 64rem;
  margin: 0 auto;
}

/* Botón Volver */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-back:hover {
  color: #0f172a;
  background-color: #ffffff;
}

/* Tarjeta del Producto */
.product-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .product-card {
    grid-template-columns: 1fr 1fr;
    padding: 2rem;
  }
}

/* Galería / Imagen */
.product-card__gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(248, 250, 252, 0.8);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid #f1f5f9;
  position: relative;
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #1e293b;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.product-card__image {
  height: 18rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07));
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .product-card__image {
    height: 24rem;
  }
}

.product-card__image:hover {
  transform: scale(1.05);
}

/* Detalles e Información */
.product-card__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card__header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.product-card__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: #0f172a;
}

.product-card__subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.product-card__price {
  font-size: 1.875rem;
  font-weight: 900;
  color: #d97706;
  margin-top: 0.75rem;
}

/* Selector de Color */
.color-selector {
  margin-bottom: 1.5rem;
}

.color-selector__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.color-selector__name {
  color: #d97706;
  text-transform: capitalize;
}

.color-selector__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.color-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.color-btn:hover {
  transform: scale(1.1);
}

.color-btn.active {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

/* Paleta de colores */
.color-btn--green { background-color: #047857; }
.color-btn--red   { background-color: #dc2626; }
.color-btn--pink  { background-color: #f472b6; }
.color-btn--blue  { background-color: #2563eb; }
.color-btn--black { background-color: #0f172a; }
.color-btn--gray  { background-color: #94a3b8; }
.color-btn--salmon{ background-color: #fb7185; }

/* Especificaciones */
.specs-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: rgba(248, 250, 252, 0.8);
  border-radius: 0.5rem;
  border: 1px solid #f1f5f9;
}

.spec-item__icon {
  color: #d97706;
  flex-shrink: 0;
}

.spec-item__label {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
}

.spec-item__value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
}

/* Caja de "Incluye" */
.included-box {
  background-color: rgba(254, 243, 199, 0.9);
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: #78350f;
}

/* Botón de WhatsApp */
.btn-whatsapp {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background-color: #059669;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.875rem 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
  background-color: #10b981;
  box-shadow: 0 10px 20px -3px rgba(5, 150, 105, 0.3);
}