/* ============================================================
   PRODUCT PAGE — GASEX V5.1
   UX/UI refinado · Mobile First · Retail structure
   + Specs integradas en columna de galería
============================================================ */


/* ============================================================
   1. LAYOUT PRINCIPAL & BREADCRUMBS
============================================================ */

.gx-product-grid {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.gx-product-summary {
  max-width: 100%;
}

.gx-breadcrumb-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.gx-breadcrumb-pills a {
  background: #f1f5f9;
  color: var(--gx-primary);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}

.gx-breadcrumb-pills a:hover {
  background: var(--gx-primary);
  color: #fff;
}

@media (min-width: 992px) {
  .gx-product-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: stretch;        /* ⭐ columnas del mismo alto */
  }
}


/* ============================================================
   2. GALERÍA DE PRODUCTO
============================================================ */

.gx-product-gallery {
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.gx-main-image-card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;

/*  flex: 1 1 auto;*/
  min-height: 0;

  border-radius: 6px;
  overflow: hidden;            /* ⭐ recorta la imagen al borde redondeado */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: 0.3s;

  /* sin padding, sin background blanco */
}

.gx-main-image-card img {
  width: 100%;                 /* ⭐ llena el ancho */
  height: 100%;                /* ⭐ llena el alto */
  object-fit: fill;           /* ⭐ cubre todo el card sin dejar blanco */
  object-position: center;
  transition: 0.3s;
}

.gx-main-image-card:hover img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gx-thumbs-reel {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin: 14px 0 0 0;
  overflow-x: auto;
  padding-bottom: 8px;
  max-width: 100%;

  flex-shrink: 0;             /* ⭐ las miniaturas no se aplastan */
}

.gx-thumb-nav {
  width: 82px;
  height: 82px;
  border: 2px solid var(--gx-border);
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
  flex-shrink: 0;
  transition: 0.2s;
}

.gx-thumb-nav:hover,
.gx-thumb-nav.active {
  border-color: var(--gx-primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}


/* ============================================================
   3. SPECS DENTRO DE LA GALERÍA (Incluye + Ficha Técnica)
   Llena el espacio en blanco bajo las miniaturas en desktop.
   En mobile queda apilado naturalmente.
============================================================ */

.gx-gallery-specs {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gx-gallery-specs .gx-specs-col {
  padding-top: 0;
}

.gx-gallery-specs .gx-specs-table {
  font-size: 13px;
}

.gx-gallery-specs .gx-specs-table th,
.gx-gallery-specs .gx-specs-table td {
  padding: 7px 14px;
}

.gx-gallery-specs .gx-check-list li {
  font-size: 13px;
}

@media (min-width: 992px) {
  .gx-gallery-specs {
    margin-top: 36px;
  }
}


/* ============================================================
   4. CABECERA & TÍTULO
============================================================ */

.gx-summary-header {
  margin-bottom: 15px;
}

.gx-header-type1___title {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--gx-primary);
  margin: 0;
}

.gx-sku-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 15px;
}


/* ============================================================
   5. BLOQUE DE VALOR (Precio + Stock + Mayorista)
============================================================ */

.gx-value-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
  max-width: 550px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.gx-price-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gx-price-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gx-price-container ins,
.gx-price-container .woocommerce-Price-amount,
.gx-price-container .price > span,
.gx-price-container .price > bdi {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gx-primary);
  text-decoration: none;
  line-height: 1;
}

.gx-price-container del {
  font-size: 1.4rem;
  color: #94a3b8;
  text-decoration: line-through;
  display: flex;
  align-items: center;
  opacity: 0.6;
}

.gx-iva-label {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  align-self: center;
}


/* Stock Status */

.gx-stock-status {
  text-align: right;
}

.gx-badge-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.gx-badge-stock.in-stock  { background: #ecfdf5; color: #059669; }
.gx-badge-stock.out-stock { background: #fef2f2; color: #dc2626; }

.gx-badge-stock.in-stock::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  animation: gxPulse 2s infinite;
}

@keyframes gxPulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.5; }
}

.gx-delivery-tag {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}


/* Mayorista */

.gx-wholesale-mini-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gx-w-label  { font-size: 12px;    font-weight: 700; color: #64748b; }
.gx-w-price  { font-size: 1.55rem; font-weight: 900; color: #0f172a; }

.gx-w-price small {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-left: 4px;
}


/* ============================================================
   6. DESCRIPCIÓN CORTA
============================================================ */

.gx-short-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}


/* ============================================================
   7. CONTROLES DE COMPRA (Cantidad + CTA)
============================================================ */

.gx-cart-controls {
  display: flex;
  gap: 14px;
  margin: 25px 0;
  align-items: flex-end;
}

.gx-qty-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gx-qty-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gx-muted);
}

.gx-qty-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  overflow: hidden;
  width: 120px;
  height: 50px;
  background: #fff;
}

.gx-qty-box input {
  border: none;
  height: 100%;
  width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

.gx-qty-btn {
  width: 36px;
  height: 100%;
  background: #f1f5f9;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gx-qty-btn:hover {
  background: #e2e8f0;
}


/* Botón principal */

.gx-btn {
  margin-top: 0;
}

.gx-btn--lg {
  flex-grow: 1;
  height: 50px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 12px;
  background: var(--gx-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.gx-btn--lg:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Out of stock */

.gx-out-stock-box {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gx-out-stock-label {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}


/* ============================================================
   8. TRUST & PAYMENTS (Webpay + envío + garantía)
============================================================ */

.gx-payment-trust-box {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  flex-wrap: wrap;
}

.gx-payment-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gx-payment-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.gx-webpay-logo {
	max-height: 50px;
  height: auto;
  object-fit: contain;
}

.gx-trust-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.gx-trust-item {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ============================================================
   9. SOPORTE TÉCNICO (Banner suave con borde + íconos)
============================================================ */

.gx-support-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--gx-primary);
  color: #1e293b;
  padding: 26px 32px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Lado izquierdo: ícono + textos */
.gx-support-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gx-support-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--gx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gx-support-text strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gx-primary);
  display: block;
  margin-bottom: 8px;
}

/* Contactos (teléfono + email) */
.gx-support-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.gx-support-contact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.gx-support-contact svg {
  color: var(--gx-primary);
}

.gx-support-contact:hover {
  color: var(--gx-primary);
}

/* Botón CTA WhatsApp */
.gx-support-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gx-primary);
  color: #fff;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  transition: 0.25s;
}

.gx-support-cta svg {
  flex-shrink: 0;
}

.gx-support-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

/* Desktop: layout horizontal (info izquierda, botón derecha) */
@media (min-width: 768px) {
  .gx-support-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

section.gx-section.gx-support-promo {
  padding: 30px 0px;
}

/* ============================================================
   10. ESPECIFICACIONES (estilos base reutilizados por gallery-specs)
============================================================ */

.gx-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
 
@media (min-width: 992px) {
  .gx-specs-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}


/* Specs Table */

.gx-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.gx-specs-table th {
  background: var(--gx-primary);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 8px 16px;
  width: 38%;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.gx-specs-table td {
  background: #f8fafc;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  text-align: justify;
}

.gx-specs-table th,
.gx-specs-table td {
  vertical-align: middle;
}

.gx-specs-table tr:hover td {
  background: #f1f5f9;
}


/* Check List (Incluye) */

.gx-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gx-check-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #1e293b;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.gx-check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 14px;
  color: var(--gx-primary);
}


.gx-specs-col {
  padding-top: 10px;
}


/* ============================================================
   11. DESCRIPCIÓN EDITORIAL (Body extendido)
============================================================ */

.gx-desc-intro {
  display: block;
  margin-top: 50px;
  clear: both;
}

.gx-desc-intro::after {
  content: "";
  display: table;
  clear: both;
}

.gx-desc-image {
  float: right;
  width: 350px;
  margin-left: 50px;
  margin-bottom: 25px;
  position: relative;
}

.gx-desc-image img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  max-height: 550px;
  object-fit: cover;
}

.gx-desc-image::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -12px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0));
  border-radius: 14px;
  z-index: -1;
}

.gx-desc-text {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  max-width: 820px;
}

.gx-desc-text h2,
.gx-desc-text h3,
.gx-desc-text h4 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 34px;
  margin-bottom: 14px;
  color: #0f172a;
}

.gx-desc-text h2::after,
.gx-desc-text h3::after,
.gx-desc-text h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gx-primary);
  margin-top: 8px;
  border-radius: 2px;
}


/* Listas en descripción editorial */

.gx-desc-text ul {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.gx-desc-text li {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: 0.2s;
}

.gx-desc-text li::before {
  content: "✓";
  color: #10b981;
  font-weight: 900;
  flex-shrink: 0;
}


/* Bloque inferior: Características + Garantía */

.gx-desc-bottom {
  clear: both;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.gx-desc-warranty {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.gx-desc-warranty h2::after,
.gx-desc-warranty h3::after {
  display: none;
}


/* ============================================================
   12. RESPONSIVE GLOBAL (Overrides finales)
============================================================ */

@media (max-width: 1000px) {

  .gx-desc-image {
    float: none;
    width: 100%;
    margin-left: 0;
  }

}

@media (max-width: 768px) {

  .gx-product-summary       { text-align: center; }
  .gx-value-block           { margin-left: auto; margin-right: auto; }
  .gx-price-main-row        { flex-direction: column; }
  .gx-stock-status          { text-align: center; }
  .gx-cart-controls         { flex-direction: column; align-items: center; }
  .gx-btn--lg               { width: 100%; }
  .gx-payment-trust-box     { flex-direction: column; }
  .gx-support-card          { text-align: center; }
  .gx-desc-bottom           { grid-template-columns: 1fr; }

}

@media (min-width: 768px) {

  .gx-support-card {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .gx-wholesale-mini-box {
    justify-content: space-between;
  }

}

/* ============================================================
   SOPORTE TÉCNICO — RESPONSIVE MOBILE
============================================================ */

@media (max-width: 767px) {

  .gx-support-card {
    flex-direction: column;
    align-items: stretch;       /* ocupa todo el ancho */
    text-align: left;
    gap: 18px;
    padding: 22px;
  }

  /* Ícono + texto: alinear arriba, no centrado */
  .gx-support-info {
    align-items: flex-start;
    gap: 14px;
  }

  /* Título alineado a la izquierda, no centrado */
  .gx-support-text strong {
    text-align: left;
  }

  /* Contactos en columna para que no se aprieten */
  .gx-support-contacts {
    flex-direction: column;
    gap: 8px;
  }

  /* Botón full-width y centrado */
  .gx-support-cta {
    width: 100%;
    justify-content: center;
  }

}