/*---TABLAS DTF TEXTIL---*/
.dtf-price-module {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    padding: 60px 20px;
    color: var(--text-primary);
}

.cma-container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- CABECERA Y SUBTÍTULO --- */
#tablaPreciosDTF {
    color: var(--color-azul);
    font-size: clamp(1.8rem, 4vw, var(--font-size-subtitle));
    font-weight: var(--weight-bold);
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.cma-table-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-marron);
    margin-bottom: 40px;
}

/* --- TABLA DISEÑO PREMIUM --- */
.cma-price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 36, 52, 0.08);
    border: 1px solid rgba(35, 78, 105, 0.1);
}

.cma-price-table thead {
    background-color: var(--color-marino);
    color: var(--color-crema);
}

.cma-price-table th {
    padding: 20px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cma-price-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid var(--color-crema);
    font-size: 1.1rem;
}

/* --- NEUROMARKETING: RESALTADO DE FILA DE MAYOREO --- */
/* Aplicamos un color que genere confianza y destaque la mejor oferta */
.cma-price-table tr.highlight {
    background-color: var(--color-mostaza) !important;
    color: var(--color-crema) !important;
    font-weight: var(--weight-bold);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(27, 99, 68, 0.3);
}

.cma-price-table tr.highlight td {
    border-bottom: none;
}

/* Zebra striping para legibilidad */
.cma-price-table tbody tr:nth-child(even):not(.highlight) {
    background-color: rgba(240, 239, 232, 0.5);
}

/* Estilo de Metraje */
.meterage {
    color: var(--color-azul);
    font-weight: var(--weight-medium);
}
/*--TABLAS DTF TEXTIL FIN--*/

/*----TABLAS FILM DTF TEXTIL----*/

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.dtf-price-table {
  width: 100%;
  max-width: 900px;
  margin: var(--space-4) auto;
  font-family: var(--font-primary);
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  font-size: var(--text-base);
  line-height: 1.5;
}

/* Efecto de borde superior degradado (marca de calidad) */
.dtf-price-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--color-azul) 0%, 
    var(--color-mostaza) 50%, 
    var(--color-verde-bandera) 100%
  );
  z-index: 10;
}

/* ============================================
   HEADER - JERARQUÍA INFORMATIVA
   ============================================ */

.dtf-price-table thead {
  background: linear-gradient(135deg, var(--color-marino) 0%, var(--color-azul) 100%);
  position: relative;
}

.dtf-price-table thead tr {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
}

.dtf-price-table th {
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: white;
  text-align: center;
  position: relative;
  border: none;
}

/* Primera columna (Medida) alineada izquierda */
.dtf-price-table th:first-child {
  text-align: left;
  padding-left: var(--space-3);
}

/* Separadores sutiles entre headers */
.dtf-price-table th:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* Badge "Recomendado" en columna mayoreo */
.dtf-price-table th.price-wholesale {
  background: rgba(207, 159, 56, 0.15);
  position: relative;
}

.dtf-price-table th.price-wholesale::before {
  /*-content: 'MEJOR VALOR';-*/
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-mostaza);
  color: white;
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.05); }
}

/* Iconos en headers para reconocimiento rápido */
.dtf-price-table th:first-child::before {
  content: '▸ ';
  color: var(--color-mostaza);
  font-size: 1.2em;
}

.dtf-price-table th.price-wholesale::after {
  /*-content: ' 👥';-*/
  font-size: 1.1em;
  filter: grayscale(100%) brightness(2);
}

/* ============================================
   CUERPO DE TABLA - FILAS DE PRODUCTO
   ============================================ */

.dtf-price-table tbody {
  display: flex;
  flex-direction: column;
}

.dtf-price-table tbody tr {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(11, 36, 52, 0.06);
  transition: var(--transition-base);
  position: relative;
}

.dtf-price-table tbody tr:last-child {
  border-bottom: none;
}

/* Hover effect en fila (interactividad) */
.dtf-price-table tbody tr:hover {
  background: rgba(240, 239, 232, 0.5);
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
  z-index: 5;
  border-radius: var(--radius-sm);
}

/* Celdas base */
.dtf-price-table td {
  padding: var(--space-3) var(--space-2);
  text-align: center;
  position: relative;
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

/* Primera columna: Medida (Información técnica) */
.dtf-price-table td:first-child {
  text-align: left;
  padding-left: var(--space-3);
  font-weight: var(--weight-bold);
  color: var(--text-accent);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Icono técnico según tamaño */
.dtf-price-table td:first-child::before {
  content: '📏';
  font-size: 1.3em;
  filter: grayscale(100%);
  opacity: 0.7;
}

/* Destacar medida más popular (60cm) */
.dtf-price-table tbody tr:first-child td:first-child::after {
  content: 'POPULAR';
  font-size: var(--text-xs);
  background: var(--color-amarillo);
  color: var(--color-marino);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: var(--space-1);
  font-weight: var(--weight-bold);
  letter-spacing: 0.3px;
}

/* ============================================
   CELDAS DE PRECIO - NEUROMARKETING DEL VALOR
   ============================================ */

/* Precio Unitario (Anclaje) */
.price-unit {
  font-size: var(--text-lg);
  color: var(--color-verde);
  position: relative;
}

/* Precio Mayoreo (Objetivo de conversión) */
.price-wholesale {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-verde-bandera);
  background: linear-gradient(135deg, rgba(27, 99, 68, 0.05) 0%, rgba(27, 99, 68, 0.02) 100%);
  position: relative;
}

/* Efecto de "brillo" en precio mayoreo al hover de fila */
.dtf-price-table tbody tr:hover .price-wholesale {
  background: linear-gradient(135deg, rgba(27, 99, 68, 0.1) 0%, rgba(27, 99, 68, 0.05) 100%);
  box-shadow: inset 0 0 0 2px var(--color-verde-bandera);
  border-radius: var(--radius-sm);
}

/* Indicador de ahorro */
.price-wholesale::after {
  content: attr(data-savings);
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-vino);
  margin-top: 4px;
  opacity: 0.8;
}

/* Calcular ahorros para cada fila (usar data attributes en HTML) -*/
.dtf-price-table tbody tr:nth-child(1) .price-wholesale::after {
  content: 'Ahorra $83';
  color: var(--color-verde-bandera);
}

.dtf-price-table tbody tr:nth-child(2) .price-wholesale::after {
  content: 'Ahorra $120';
  color: var(--color-verde-bandera);
}

.dtf-price-table tbody tr:nth-child(3) .price-wholesale::after {
  content: 'Ahorra $125';
  color: var(--color-verde-bandera);
}

.dtf-price-table tbody tr:nth-child(4) .price-wholesale::after {
  content: 'Ahorra $27';
  color: var(--color-verde-bandera);
}

#tab-description .producto-hoodie-seo figure {width: 300px;
  margin: 40px auto;
  padding: 10px;
  background-color: var(--color-azul);
  border-radius: 15px;}

#tab-description .producto-hoodie-seo figure figcaption {color: var(--color-crema);
  font-weight: var(--weight-bold);
  text-align: center;}

.custom-tab-wrapper section ul {list-style:unset;margin:15px 25px;}

/* ============================================
   FOOTER DE TABLA - LLAMADA A LA ACCIÓN
   ============================================ */

/* Añadir un pseudo-footer con CTA */
.dtf-price-table::after {
  content: '💡 Compra 10 piezas o más de cualquier medida para obtener precio de mayoreo en todas';
  display: block;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(90deg, rgba(207, 159, 56, 0.1) 0%, rgba(250, 183, 64, 0.1) 100%);
  border-top: 2px dashed var(--color-mostaza);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-marron);
  text-align: center;
  font-style: italic;
}


/* ============================================
   TABLA SAY MÉXICO - GUÍA DE TALLAS
   ============================================ */

#product-15751 .product-info-summary .product-price, #product-15667 .product-info-summary .product-price {display: flex;align-items: center;flex-wrap: wrap;margin:0;}

  .say-mexico-table-container {
    width: 100%;
    overflow-x: auto; /* Garantiza que no se rompa en móviles */
    margin: 20px 0;
    background-color: var(--bg-main);
    border-radius: 8px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .say-mexico-table {
    width: 100%;    
    border-collapse: collapse;
    font-family: var(--font-primary);
    color: var(--text-primary);
    text-align: center;
  }

  .say-mexico-table thead th {
    background-color: var(--color-marino);
    color: white;
    padding: 15px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    border: 1px solid var(--color-marino);
  }

  .say-mexico-table tbody td {
    padding: 12px;
    border: 1px solid rgba(11, 36, 52, 0.1);
    font-weight: var(--weight-medium);
  }

  .say-mexico-table tbody tr:nth-child(even) {
    background-color: rgba(207, 159, 56, 0.05); /* Sutil toque mostaza */
  }

  .row-label {
    background-color: var(--color-marino);
    color: white;
    font-weight: var(--weight-bold) !important;
    text-align: left;
    padding-left: 20px !important;
  }

  .table-footer-note {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-top: 10px;
    text-align: right;
    font-style: italic;
  }


/* ============================================
   TABLA SAY MÉXICO - GUÍA DE TALLAS HOODIES
   ============================================ */
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    background-color: var(--bg-main);
    padding: 15px;
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .hoodie-size-table {
    width: 100%;
    min-width: 200px; /* Previene que se rompan renglones en móvil */
    border-collapse: collapse;
    font-family: var(--font-primary);
    color: var(--text-primary);
  }

  .hoodie-size-table thead tr {
    background-color: var(--color-marino);
    color: white;
  }

  .hoodie-size-table th, 
  .hoodie-size-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(11, 36, 52, 0.1);
  }

  .hoodie-size-table th {
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .hoodie-size-table td {
    font-weight: var(--weight-medium);
  }

  .hoodie-size-table tbody tr:nth-child(even) {
    background-color: rgba(207, 159, 56, 0.05);
  }

  .hoodie-size-table .highlight-cell {
    font-weight: var(--weight-bold);
    color: var(--color-mostaza);
  }

  .table-footer-note {
    font-family: var(--font-primary);
    font-size: 10pt;
    color: var(--text-primary);
    margin-top: 10px;
    text-align: left;
    font-style: italic;
  }

/* ============================================
   RESPONSIVE - MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 768px) {
	
	#tab-description .producto-hoodie-seo figure {width:100%;}
	 .hoodie-size-table {
      font-size: 11pt;
    }
	#product-15667 .product-info-summary .product-price {flex-direction:column;}
	.say-mexico-table {font-size: 14px;}
	
  .dtf-price-table {
    border-radius: var(--radius-md);
    margin: var(--space-2);
    box-shadow: var(--shadow-md);
  }
  
  /* Ocultar header tradicional en móvil */
  .dtf-price-table thead {
    display: none;
  }
  
  /* Filas como cards apiladas */
  .dtf-price-table tbody tr {
    display: flex;
    flex-direction: column;
    padding: var(--space-3);
    gap: var(--space-2);
    border-bottom: 2px solid var(--color-crema);
  }
  
  .dtf-price-table tbody tr:last-child {
    border-bottom: none;
  }
  
  /* Cada celda como bloque con label */
  .dtf-price-table td {
    padding: var(--space-1) 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  /* Labels visibles en móvil usando data-label */
  .dtf-price-table td::before {
    content: attr(data-label);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-verde);
    flex-shrink: 0;
  }
  
  /* Primera celda (Medida) destacada */
  .dtf-price-table td:first-child {
    font-size: var(--text-xl);
    border-bottom: 1px solid rgba(11, 36, 52, 0.1);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-1);
  }
  
  .dtf-price-table td:first-child::before {
    display: none; /* Ocultar emoji en móvil para limpieza */
  }
  
  /* Precios en formato horizontal */
  .dtf-price-table td.price-unit,
  .dtf-price-table td.price-wholesale {
    font-size: var(--text-lg);
  }
  
  .dtf-price-table td.price-wholesale {
    background: rgba(27, 99, 68, 0.05);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    margin-top: var(--space-1);
  }
  
  /* Badge POPULAR en móvil */
  .dtf-price-table tbody tr:first-child td:first-child::after {
    font-size: var(--text-xs);
    margin-left: auto;
  }
  
  /* Ahorro en línea con precio */
  .price-wholesale::after {
    display: inline;
    margin-left: var(--space-1);
    margin-top: 0;
  }
  
  /* Footer simplificado */
  .dtf-price-table::after {
    font-size: var(--text-xs);
    padding: var(--space-2);
  }
}

/* ============================================
   ESTADOS ESPECIALES Y MICROINTERACCIONES
   ============================================ */

/* Fila seleccionada (si se implementa JS de selección) */
.dtf-price-table tbody tr.selected {
  background: rgba(207, 159, 56, 0.1);
  box-shadow: var(--shadow-glow);
  border-radius: var(--radius-md);
}

.dtf-price-table tbody tr.selected td:first-child::before {
  content: '✓';
  color: var(--color-verde-bandera);
  font-weight: var(--weight-bold);
  filter: none;
  opacity: 1;
}

/* Animación de entrada */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dtf-price-table tbody tr {
  animation: slideInUp 0.4s ease-out forwards;
}

.dtf-price-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.dtf-price-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.dtf-price-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.dtf-price-table tbody tr:nth-child(4) { animation-delay: 0.4s; }

/* Efecto de "confeti" sutil en precio mayoreo al hover */
@keyframes sparkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.dtf-price-table tbody tr:hover .price-wholesale {
  animation: sparkle 1s ease-in-out;
}

/* ============================================
   UTILIDADES Y ACCESIBILIDAD
   ============================================ */

/* Focus visible para navegación por teclado */
.dtf-price-table:focus-within {
  outline: 3px solid var(--color-mostaza);
  outline-offset: 4px;
}

/* Reducir motion si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  .dtf-price-table *,
  .dtf-price-table *::before,
  .dtf-price-table *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Alto contraste para accesibilidad */
@media (prefers-contrast: high) {
  .dtf-price-table th,
  .dtf-price-table td {
    border: 1px solid currentColor;
  }
  
  .price-wholesale {
    background: var(--color-verde-bandera) !important;
    color: white !important;
  }
}
/*---TABLAS FILM DTF TEXTIL---*/

/* ==========================================================
   TABLA DE MEDIDAS - Guía de Prendas
   ========================================================== */

.medidas-table {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    border-collapse: collapse;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--color-crema);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(11, 36, 52, 0.08);
}

/* --- Cabecera --- */
.medidas-table thead {
    background: var(--color-azul);
}

.medidas-table thead tr {
    display: table-row;
}

.medidas-table th {
    color: var(--color-crema);
    font-weight: var(--weight-bold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
    text-align: center;
    border: none;
    white-space: nowrap;
}

.medidas-table th:first-child {
    text-align: left;
    border-radius: 12px 0 0 0;
}

.medidas-table th:last-child {
    border-radius: 0 12px 0 0;
}

/* --- Cuerpo --- */
.medidas-table tbody tr {
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(35, 78, 105, 0.08);
}

.medidas-table tbody tr:last-child {
    border-bottom: none;
}

.medidas-table tbody tr:hover {
    background: rgba(207, 159, 56, 0.06);
}

.medidas-table td {
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    font-weight: var(--weight-medium);
    text-align: center;
    border: none;
}

.medidas-table td:first-child {
    text-align: left;
    font-weight: var(--weight-bold);
    color: var(--color-azul);
}

/* --- Destacar fila alterna (zebra sutil) --- */
.medidas-table tbody tr:nth-child(even) {
    background: rgba(151, 159, 121, 0.04);
}

/* ==========================================================
   RESPONSIVE: MÓVIL (max-width: 768px)
   ========================================================== */

@media (max-width: 768px) {
    
    .medidas-table {
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(11, 36, 52, 0.06);
    }
    
    /* Ocultar cabecera visualmente pero mantener accesibilidad */
    .medidas-table thead {
        display: block;
        width: 100%;
    }
    
    .medidas-table thead tr {
        display: flex;
        width: 100%;
    }
    
    .medidas-table th {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }
    
    .medidas-table th:first-child {
        border-radius: 10px 0 0 0;
        flex: 0 0 80px;
    }
    
    .medidas-table th:last-child {
        border-radius: 0 10px 0 0;
    }
    
    /* Transformar filas en "tarjetas" horizontales */
    .medidas-table tbody {
        display: block;
        width: 100%;
    }
    
    .medidas-table tbody tr {
        display: flex;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid rgba(35, 78, 105, 0.06);
    }
    
    .medidas-table tbody tr:last-child {
        border-bottom: none;
    }
    
    .medidas-table td {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.9375rem;
        text-align: center;
        min-width: 0; /* Evita desbordamiento */
    }
    
    .medidas-table td:first-child {
        flex: 0 0 80px;
        text-align: center; /* Centrar en móvil para simetría */
        font-size: 1rem;
        color: var(--color-marino);
        background: rgba(207, 159, 56, 0.08);
        font-weight: var(--weight-bold);
        border-radius: 0;
    }
    
    /* Primera celda de cada fila: redondeo en primera y última fila */
    .medidas-table tbody tr:first-child td:first-child {
        border-radius: 0;
    }
    
    .medidas-table tbody tr:last-child td:first-child {
        border-radius: 0 0 0 10px;
    }
    
    .medidas-table tbody tr:last-child td:last-child {
        border-radius: 0 0 10px 0;
    }
}

/* ==========================================================
   RESPONSIVE EXTRA PEQUEÑO (max-width: 360px)
   ========================================================== */

@media (max-width: 360px) {
    
    .medidas-table th,
    .medidas-table td {
        padding: 0.625rem 0.375rem;
        font-size: 0.875rem;
    }
    
    .medidas-table td:first-child {
        flex: 0 0 60px;
        font-size: 0.9375rem;
    }
    
    .medidas-table th:first-child {
        flex: 0 0 60px;
    }
}