/* =============================================
   GAD — producto.css
   Estilos para la página de producto individual
   ============================================= */

/* HERO */
.producto__hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
  background: #1C1B1B;
  display: flex;
  align-items: flex-end;
}

.producto__hero-color {
  position: absolute;
  inset: 0;
  transition: background-color 0.4s ease;
}

.producto__hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.producto__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.2) 60%,
    rgba(0,0,0,0.05) 100%
  );
}

.producto__hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.producto__back {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.25s ease;
  width: fit-content;
}

.producto__back:hover {
  color: rgba(255,255,255,0.9);
}

.producto__ref {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 10px;
  margin-bottom: 12px;
}

.producto__nombre {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.producto__acabado {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* DETALLE: ficha + cocina */
.producto__detalle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
  border-bottom: 1px solid #E2E2DF;
}

/* Ficha técnica */
.producto__ficha-titulo {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #747474;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E2DF;
  margin-bottom: 0;
}

.producto__ficha-tabla {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}

.producto__ficha-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #E2E2DF;
  gap: 16px;
}

.producto__ficha-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #747474;
}

.producto__ficha-valor {
  font-size: 15px;
  font-weight: 500;
  color: #1C1B1B;
  text-align: right;
}

/* Botones */
.producto__acciones {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.producto__btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: #25D366;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.25s ease;
}

.producto__btn-wa:hover {
  background: #1ebe5a;
  color: #fff;
}

.producto__btn-catalogo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 1px solid #3A3A3A;
  color: #3A3A3A;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.producto__btn-catalogo:hover {
  background: #3A3A3A;
  color: #fff;
}

/* Foto cocina */
.producto__cocina {
  position: relative;
  overflow: hidden;
  background: #EFEFED;
  min-height: 400px;
}

.producto__cocina-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.producto__cocina-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #747474;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.producto__cocina-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  z-index: 2;
}

/* RELACIONADOS */
.producto__relacionados {
  padding: 80px 0;
}

.producto__relacionados-titulo {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #747474;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E2DF;
  margin-bottom: 32px;
}

.producto__relacionados-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prod-rel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #E2E2DF;
  text-decoration: none;
  transition: border-color 0.25s ease;
  background: #fff;
}

.prod-rel-card:hover {
  border-color: #3A3A3A;
}

.prod-rel-swatch {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}

.prod-rel-info {
  flex: 1;
}

.prod-rel-nombre {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #1C1B1B;
  line-height: 1.2;
  margin-bottom: 4px;
}

.prod-rel-ref {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #747474;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .producto__hero-content {
    padding: 24px;
  }

  .producto__detalle {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0;
  }

  .producto__cocina {
    min-height: 280px;
  }

  .producto__relacionados-grid {
    grid-template-columns: 1fr;
  }

  .producto__relacionados {
    padding: 48px 0;
  }
}