/* ============================================================
   GASEX - DETALLE REGULADORES V2.1 (FINAL UX/UI)
   + Header principal + Íconos por grupo + Trust signals
   + Responsive cuidado + Accesibilidad
   ============================================================ */

   :root {
    --gx-azul: #122D54;
    --gx-azul-hover: #1a3d70;
    --gx-rojo: #E63946;
    --gx-borde: #333333;
    --gx-gris-faint: #F3F4F6;
    --transition: all 0.3s ease;
  }
  
  /* =====================================================
     WRAPPER PRINCIPAL DEL BLOQUE
  ===================================================== */
  
  .detalle-reguladores {
    margin: 0 auto;
    padding: 30px 12px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  }
  
  @media (min-width: 768px) {
    .detalle-reguladores {
      padding: 40px 20px;
    }
  }
  
  /* =====================================================
     HEADER PRINCIPAL
  ===================================================== */
  
  .dr-main-header {
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
    padding: 0 12px;
  }
  
  @media (min-width: 768px) {
    .dr-main-header {
      margin-bottom: 36px;
    }
  }
  
  .dr-main-pretitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gx-azul);
    margin-bottom: 12px;
    flex-wrap: wrap;
  }
  
  @media (min-width: 640px) {
    .dr-main-pretitle {
      font-size: 0.78rem;
      gap: 14px;
      letter-spacing: 0.18em;
    }
  }
  
  .dr-main-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gx-azul);
    opacity: 0.6;
  }
  
  @media (min-width: 640px) {
    .dr-main-line {
      width: 32px;
    }
  }
  
  .dr-main-title {
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    font-weight: 900;
    color: var(--gx-azul);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
  }
  
  .dr-main-desc {
    font-size: 0.92rem;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 700px;
  }
  
  @media (min-width: 640px) {
    .dr-main-desc {
      font-size: 0.95rem;
    }
  }
  
  /* =====================================================
     GRID DOS COLUMNAS (grupos)
  ===================================================== */
  
  .contenedor-detalle-reguladores {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
  }
  
  @media (min-width: 1024px) {
    .contenedor-detalle-reguladores {
      flex-direction: row;
      align-items: flex-start;
      gap: 28px;
      padding: 0 15px;
    }
  
    .columna-detalle-reguladores {
      flex: 1;
      width: 50%;
    }
  }
  
  /* =====================================================
     COLUMNA (card grupo)
  ===================================================== */
  
  .columna-detalle-reguladores {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px 16px;
    transition: var(--transition);
  }
  
  @media (min-width: 768px) {
    .columna-detalle-reguladores {
      padding: 22px;
    }
  }
  
  .columna-detalle-reguladores:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  }
  
  /* =====================================================
     HEADER CON ÍCONO (type1)
  ===================================================== */
  
  .gx-header-type1.gx-header-with-icon {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e5e7eb;
  }
  
  .gx-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  
  @media (min-width: 640px) {
    .gx-header-row {
      gap: 14px;
    }
  }
  
  .gx-header-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(18,45,84,0.06);
    border: 1px solid rgba(18,45,84,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gx-azul);
  }
  
  @media (min-width: 640px) {
    .gx-header-icon {
      width: 52px;
      height: 52px;
    }
  }
  
  .gx-header-icon svg {
    width: 24px;
    height: 24px;
  }
  
  @media (min-width: 640px) {
    .gx-header-icon svg {
      width: 26px;
      height: 26px;
    }
  }
  
  .gx-header-icon img {
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
  }
  
  .gx-header-body {
    flex: 1;
    min-width: 0;
  }
  
  .gx-header-with-icon .gx-header-type1__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gx-azul);
    margin: 0 0 4px;
    line-height: 1.2;
  }
  
  @media (min-width: 640px) {
    .gx-header-with-icon .gx-header-type1__title {
      font-size: 1.25rem;
    }
  }
  
  .gx-header-with-icon .gx-header-type1__subtitle {
    font-size: 0.83rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.4;
    display: block;
  }
  
  @media (min-width: 640px) {
    .gx-header-with-icon .gx-header-type1__subtitle {
      font-size: 0.85rem;
    }
  }
  
  .gx-header-type1.gx-align-center.gx-header-with-icon .gx-header-row {
    justify-content: flex-start;
  }
  
  /* =====================================================
     HEADER GX TYPE 2 (sin cambios)
  ===================================================== */
  
  .gx-header-type2 {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 10px;
  }
  
  .gx-header-type2__line {
    flex: 1;
    height: 2px;
    background-color: var(--gx-borde);
  }
  
  .gx-header-type2__box {
    border: 2px solid var(--gx-borde);
    padding: 8px 15px;
    border-radius: 8px;
    background: #fff;
  }
  
  .gx-header-type2__title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    color: #000;
    text-align: center;
  }
  
  /* =====================================================
     GRID DE PRODUCTOS
     Mobile: 1 columna full width
     Tablet (≥640): 2 columnas (cuando el bloque cabe ancho)
     Desktop (≥1024): 2 grupos → 2 cols por grupo
     Desktop XL (≥1280): 3 cols por grupo
  ===================================================== */
  
  .contenedor-etiquetas-reguladores {
    display: grid;
    grid-template-columns: 1fr;     /* MOBILE: 1 columna */
    gap: 14px;
  }
  
  @media (min-width: 480px) {
    .contenedor-etiquetas-reguladores {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }
  }
  
  @media (min-width: 1024px) {
    /* En desktop, cada grupo en su mitad → 2 cols */
    .contenedor-etiquetas-reguladores {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
    }
  }
  
  @media (min-width: 1280px) {
    /* XL: 3 cols por grupo */
    .contenedor-etiquetas-reguladores {
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
  }
  
  /* =====================================================
     TARJETA PRODUCTO (UX/UI mejorada)
  ===================================================== */
  
  .tarjeta-reguladores {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
  }
  
  .tarjeta-reguladores:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
    border-color: rgba(18,45,84,0.15);
  }
  
  /* Tap feedback en touch devices */
  @media (hover: none) {
    .tarjeta-reguladores:active {
      transform: scale(0.98);
      box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }
  }
  
  .tarjeta-reguladores img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: radial-gradient(circle, #244b8a 0%, #0d1b33 100%);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px;     /* aire entre el producto y los bordes */
  }
  
  /* Badge descuento (legible) */
  .descuento {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gx-rojo);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(230,57,70,0.3);
  }
  
  @media (min-width: 640px) {
    .descuento {
      font-size: 12px;
      padding: 4px 10px;
    }
  }
  
  .categoria-regulador {
    font-size: 10px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    font-weight: 600;
  }
  
  /* Nombre legible */
  .nombre-reguladores {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
  }
  
  /* Precios */
  .precios {
    margin-top: auto;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .precio-reguladores {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gx-azul);
    line-height: 1.1;
  }
  
  .tachado {
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1;
  }
  
  .precios span:last-child {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 2px;
  }
  
  /* Botón "Agregar al carrito" — touch target */
  .btn-reguladores {
    width: 100%;
    background: var(--gx-azul);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 8px;       /* mínimo 44px de altura */
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-height: 44px;
    line-height: 1.2;
  }
  
  @media (min-width: 640px) {
    .btn-reguladores {
      font-size: 0.82rem;
    }
  }
  
  .btn-reguladores:hover {
    background: var(--gx-azul-hover);
    transform: translateY(-1px);
  }
  
  .btn-reguladores:focus-visible {
    outline: 3px solid rgba(18,45,84,0.4);
    outline-offset: 2px;
  }
  
  /* =====================================================
     TRUST SIGNALS
  ===================================================== */
  
  .dr-trust-signals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 1400px;
    margin: 36px auto 0;
    padding: 28px 16px 12px;
    border-top: 1px solid #e5e7eb;
  }
  
  @media (min-width: 640px) {
    .dr-trust-signals {
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
      padding: 28px 20px 16px;
    }
  }
  
  @media (min-width: 1024px) {
    .dr-trust-signals {
      grid-template-columns: repeat(4, 1fr);
      gap: 28px;
    }
  }
  
  .dr-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  
  .dr-trust-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(18,45,84,0.06);
    border: 1px solid rgba(18,45,84,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gx-azul);
  }
  
  .dr-trust-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .dr-trust-icon img {
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
  }
  
  .dr-trust-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  
  .dr-trust-text strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--gx-azul);
    line-height: 1.25;
  }
  
  .dr-trust-text span {
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.5;
  }