/* ==========================================================================
   Cartuchos Hero Section - Optimized Background Treatment
   ========================================================================== */

/* Hero Section with Simplified Background */
.cartuchos-hero,
.nt-hero-wrapper.cartuchos-hero {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%),
        url('../img/cartuchos-hero-bg.jpg') !important;
    background-size: cover, cover !important;
    background-position: center, center !important;
    background-attachment: fixed, fixed !important;
    background-repeat: no-repeat, no-repeat !important;
    position: relative;
    overflow: hidden;
}

/* Simplified Pattern Overlay */
.cartuchos-hero::before,
.nt-hero-wrapper.cartuchos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 3px 3px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Hero Content Layering */
.cartuchos-hero .hero-content,
.nt-hero-wrapper.cartuchos-hero .hero-content {
    position: relative;
    z-index: 3;
}

/* Responsive Optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 2), 
       screen and (min-resolution: 192dpi),
       screen and (min-resolution: 2dppx) {
    .cartuchos-hero,
    .nt-hero-wrapper.cartuchos-hero {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: -moz-crisp-edges;
        image-rendering: crisp-edges;
    }
    
    .cartuchos-hero::before,
    .nt-hero-wrapper.cartuchos-hero::before {
        background-size: 80px 80px, 160px 160px;
    }
    
    .cartuchos-hero::after,
    .nt-hero-wrapper.cartuchos-hero::after {
        background-size: 240px 240px, 320px 320px;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .cartuchos-hero,
    .nt-hero-wrapper.cartuchos-hero {
        background-attachment: scroll, scroll, scroll, scroll, scroll;
        background-size: cover, 400px 400px, 500px 500px, 300px 300px, cover;
    }
    
    .cartuchos-hero::before,
    .nt-hero-wrapper.cartuchos-hero::before {
        background-size: 30px 30px, 60px 60px;
        animation-duration: 20s;
    }
    
    .cartuchos-hero::after,
    .nt-hero-wrapper.cartuchos-hero::after {
        background-size: 90px 90px, 120px 120px;
        animation-duration: 25s;
    }
}

/* 4K and Ultra-wide Displays */
@media screen and (min-width: 2560px) {
    .cartuchos-hero,
    .nt-hero-wrapper.cartuchos-hero {
        background-size: cover, 1600px 1600px, 2000px 2000px, 1200px 1200px, cover;
    }
    
    .cartuchos-hero::before,
    .nt-hero-wrapper.cartuchos-hero::before {
        background-size: 60px 60px, 120px 120px;
    }
    
    .cartuchos-hero::after,
    .nt-hero-wrapper.cartuchos-hero::after {
        background-size: 180px 180px, 240px 240px;
    }
}

/* ==========================================================================
   Estilos Modernos para la Nueva Interfaz - Optimizados
   ========================================================================== */

/* Efectos de hover simplificados para tarjetas */
.card-modern {
    transition: box-shadow 0.2s ease;
}

.card-modern:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Estilos para badges de impresoras */
.printer-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    margin: 2px;
}

/* Efectos simplificados para botones modernos */
.btn-gradient-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 16px;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.btn-gradient-modern:hover {
    opacity: 0.9;
}

/* Estilos para tabla modernizada simplificada */
.table-modern {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.table-modern thead {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.table-modern th {
    padding: 20px 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.table-modern th:last-child {
    border-right: none;
}

.table-modern tbody tr {
    transition: background-color 0.2s ease;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

/* Efectos de loading para búsqueda */
.search-loading {
    position: relative;
}

.search-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Estilos para pestañas modernizadas simplificadas */
.tabs-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button-modern {
    transition: background-color 0.2s ease;
    border-radius: 12px;
}

.tab-button-modern.active {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   Optimizaciones móviles para cartuchos
   ========================================================================== */

/* Mejoras para el buscador en móviles */
@media (max-width: 640px) {
    .cartuchos-hero .hero-content h1 {
        font-size: 2rem;
        line-height: 2.25rem;
    }
    
    .cartuchos-hero .hero-content p {
        font-size: 1rem;
    }
    
    /* Buscador responsive */
    #buscador {
        padding-left: 3.5rem !important;
        padding-right: 3rem !important;
        font-size: 0.9rem;
    }
    
    /* Botón de búsqueda minimalista */
    #botonBuscar {
        right: 0.5rem !important;
    }
    
    /* Botón limpiar en móviles */
    #limpiarBusqueda {
        right: 2.5rem !important;
    }
}

/* Cards de cartuchos móviles */
.cartucho-card-mobile {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.cartucho-card-mobile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mejoras para badges de impresoras en móviles */
@media (max-width: 768px) {
    .printer-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin: 0.125rem;
    }
    
    /* Limitar badges en móviles */
    .printer-badge:nth-child(n+4) {
        display: none;
    }
}

/* Estilos para tabla responsive */
.table-modern {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.table-modern thead {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

.table-modern th {
    padding: 12px 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.table-modern th:last-child {
    border-right: none;
}

.table-modern tbody tr {
    transition: background-color 0.2s ease;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

/* Responsive breakpoints específicos */
@media (max-width: 1024px) {
    .table-modern th,
    .table-modern td {
        padding: 8px 6px;
        font-size: 0.875rem;
    }
    
    .table-modern th {
        font-size: 0.75rem;
    }
}
    
    .table-modern {
        font-size: 14px;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 12px 8px;
    }
    
    .btn-gradient-modern {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Estilos para elementos glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FAQ Estilos - Componente de Preguntas Frecuentes
   ========================================================================== */

/* FAQ Estilos mejorados */
.nt-faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.nt-faq-item {
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.nt-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.nt-faq-q {
    margin: 0;
}

.nt-faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 16px;
}

.nt-faq-toggle:hover {
    background: rgba(59, 130, 246, 0.04);
}

.nt-faq-toggle:focus {
    outline: 2px solid rgba(59, 130, 246, 0.3);
    outline-offset: -2px;
}

.nt-faq-toggle .fa-chevron-down {
    color: #6b7280;
    font-size: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
    order: 3;
    margin-left: auto;
    flex-shrink: 0;
}

.nt-faq-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
    color: #3b82f6;
}

.nt-faq-q-ico {
    color: #3b82f6;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nt-faq-q-text {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
    flex: 1;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.nt-faq-a {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    background: #fafbfc;
}

.nt-faq-a:not([hidden]) {
    max-height: 800px;
    opacity: 1;
    padding-top: 8px;
}

.nt-faq-a[aria-hidden="false"] {
    max-height: 800px;
    opacity: 1;
    padding-top: 8px;
}

.nt-faq-a-inner {
    padding: 0 24px 24px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 15px;
}

.nt-faq-a-inner p {
    margin: 0 0 12px;
}

.nt-faq-a-inner p:last-child {
    margin-bottom: 0;
}

/* Estados especiales mejorados */
.nt-faq-item.nt-faq-hidden {
    display: none;
}

.nt-faq-item[data-expanded="true"] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.nt-faq-item[data-expanded="true"] .nt-faq-toggle {
    background: rgba(59, 130, 246, 0.08);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.nt-faq-item[data-expanded="true"] .nt-faq-q-text {
    color: #1e40af;
}

/* Herramientas del FAQ */
.nt-faq-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nt-faq-search {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.nt-faq-search input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    background: white;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nt-faq-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.nt-faq-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 14px;
}

.nt-faq-actions {
    display: flex;
    gap: 6px;
}

.nt-faq-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nt-faq-btn:hover {
    background: #f8fafc;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.nt-faq-btn.ghost {
    background: transparent;
    color: #6b7280;
}

.nt-faq-btn i {
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .nt-faq-tools {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nt-faq-search {
        max-width: none;
    }
    
    .nt-faq-actions {
        justify-content: center;
    }
    
    .nt-faq-toggle {
        padding: 16px 20px;
    }
    
    .nt-faq-a-inner {
        padding: 0 20px 20px;
    }
}