/* ===== ESTILOS PARA PAGINACIÓN MODERNA MINIMALISTA ===== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

/* Botones de números - ESTILO MODERNO MINIMALISTA */
.page-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Hover elegante - DISEÑO MODERNO */
.page-btn:hover:not(.active):not(:disabled) {
    background: transparent;
    color: #2563eb;
    transform: translateY(-1px);
}

/* Botón activo con estilo moderno minimalista */
.page-btn.active {
    background: transparent;
    color: #2563eb;
    font-weight: 600;
    position: relative;
}

/* Línea decorativa debajo del botón activo - ESTILO MODERNO */
.page-btn.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 1px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) scaleX(0); }
    to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

/* Botones de navegación elegantes - MODERNOS */
.page-nav {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
}

.page-nav:hover:not(:disabled) {
    background: transparent;
    color: #2563eb;
    transform: translateY(-1px);
}

.page-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #a0aec0;
}

/* Separador elegante */
.page-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-weight: 500;
    padding: 0 0.3rem;
    font-size: 0.9rem;
}

/* MODO OSCURO - Estilo moderno minimalista */
body.dark-mode .pagination {
    border-top-color: #334155;
}

body.dark-mode .page-btn {
    color: #cbd5e0;
}

body.dark-mode .page-btn:hover:not(.active):not(:disabled) {
    color: #60a5fa;
}

body.dark-mode .page-btn.active {
    color: #60a5fa;
}

body.dark-mode .page-btn.active::after {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
}

body.dark-mode .page-nav {
    color: #cbd5e0;
}

body.dark-mode .page-nav:hover:not(:disabled) {
    color: #60a5fa;
}

body.dark-mode .page-separator {
    color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .page-btn,
    .page-nav {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .page-nav {
        font-size: 1.1rem;
    }
    
    .page-btn.active::after {
        width: 20px;
        height: 2px;
        bottom: 5px;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-btn,
    .page-nav {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .page-btn.active::after {
        width: 18px;
        bottom: 3px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .page-btn,
    .page-nav {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .page-nav {
        font-size: 1.1rem;
    }
    
    .page-btn.active::after {
        width: 20px;
        height: 2px;
        bottom: 5px;
    }
}

/* ELIMINAR VERSIONES ALTERNATIVAS - Mantener solo diseño minimalista */
.page-btn.active-alt,
.page-btn.hover-border {
    display: none;
}

/* Asegurar que en modo oscuro los botones 1-5 sean visibles */
body.dark-mode .page-btn.page-1,
body.dark-mode .page-btn.page-2,
body.dark-mode .page-btn.page-3,
body.dark-mode .page-btn.page-4,
body.dark-mode .page-btn.page-5 {
    color: #ffffff !important;
}

/* Eliminar cualquier estilo duplicado que cause fondo blanco */
.page-btn:not(.active):not(:hover) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Estados deshabilitados */
.page-btn:disabled,
.page-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive adicional */
@media (max-width: 768px) {
    .page-btn,
    .page-nav {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    
    .page-btn.active {
        font-size: 1rem;
    }
    
    /* Asegurar visibilidad en móvil */
    .page-btn.page-1,
    .page-btn.page-2,
    .page-btn.page-3,
    .page-btn.page-4,
    .page-btn.page-5 {
        min-width: 38px;
        min-height: 38px;
    }
}

/* ===== ESTILOS PARA FILTRADO POR CATEGORÍAS ===== */
.catalogo-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.filter-select {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filter-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--light-gray);
    padding: 0.25rem;
    border-radius: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
}

.view-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Mensaje sin resultados */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    margin: 2rem 0;
}

.no-results-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.no-results-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-results-content p {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Vista de lista para producto */
.productos-grid.list-view {
    grid-template-columns: 1fr !important;
}

.productos-grid.list-view .producto-card {
    display: flex;
    height: 200px;
    gap: 2rem;
}

.productos-grid.list-view .producto-image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.productos-grid.list-view .producto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ===== MODO OSCURO PARA CATÁLOGO ===== */

/* Secciones */
body.dark-mode .catalogo-section,
body.dark-mode .cta-catalogo {
    background: #1e293b;
    color-scheme: dark;
}

/* Filtros */
body.dark-mode .catalogo-filters {
    background: #334155;
    border: 1px solid #475569;
}

body.dark-mode .filter-label {
    color: #e2e8f0;
}

body.dark-mode .filter-select {
    background: #475569;
    border: 1px solid #64748b;
    color: #e2e8f0;
}

body.dark-mode .filter-select option {
    background: #475569;
    color: #e2e8f0;
}

/* View Toggle */
body.dark-mode .view-toggle {
    background: #475569;
    border-radius: 10px;
    padding: 4px;
}

body.dark-mode .view-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    transition: all 0.3s ease;
}

body.dark-mode .view-btn.active {
    background: #60a5fa;
    color: #0f172a;
    border-radius: 8px;
}

/* Productos Grid */
body.dark-mode .productos-grid {
    background: #1e293b;
}

/* Cards de Productos */
body.dark-mode .producto-card {
    background: #334155;
    border: 1px solid #475569;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

body.dark-mode .producto-card:hover {
    background: #475569;
    border-color: #60a5fa;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .producto-card:hover .producto-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    background: #475569;
}

/* Imagen de Producto */
body.dark-mode .producto-image {
    background: #475569;
    border-bottom: 1px solid #64748b;
}

/* Acciones de Producto */
body.dark-mode .producto-actions {
    background: 475569;
    backdrop-filter: blur(10px);
}

body.dark-mode .action-btn {
    background: #475569;
    color: #e2e8f0;
    border: 1px solid #64748b;
    transition: all 0.3s ease;
}

body.dark-mode .action-btn:hover {
    background: #60a5fa;
    color: #0f172a;
}

/* Información de Producto */
body.dark-mode .producto-categoria {
    background: #334155;
    color: #60a5fa;
    border: none;
}

body.dark-mode .producto-card .producto-categoria {
    transition: all 0.3s ease; /* Transición aplica siempre */
}

body.dark-mode .producto-card:hover .producto-categoria {
    background: #475569;
    transition: all 0.3s ease;
}


body.dark-mode .producto-nombre {
    color: #f8fafc;
}

body.dark-mode .producto-descripcion {
    color: #cbd5e1;
}

/* Features de Producto */
body.dark-mode .producto-features {
    border-top: 1px solid #64748b;
}

body.dark-mode .feature-tag {
    background: #475569;
    color: #94a3b8;
    border: 1px solid #64748b;
}

/* Botones de Producto */
body.dark-mode .btn-block {
    background: #2563eb;
    color: #ffffff;
    border: none;
}

body.dark-mode .btn-block:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Paginación en modo oscuro - CONSERVANDO DISEÑO MINIMALISTA */
body.dark-mode .pagination {
    background: transparent;
    border-top: 1px solid #334155;
    border: none;
}

body.dark-mode .page-btn {
    background: transparent;
    color: #e2e8f0;
    border: none;
    transition: all 0.3s ease;
}

body.dark-mode .page-btn.active {
    background: transparent;
    color: #60a5fa;
    border: none;
}

body.dark-mode .page-btn:hover:not(.active) {
    background: transparent;
    color: #60a5fa;
}

/* CTA Textos */
body.dark-mode .cta-text h2 {
    color: #f8fafc;
}

body.dark-mode .cta-text p {
    color: #cbd5e1;
}

body.dark-mode .cta-catalogo {
    border-top: 1px solid #334155;
    background-color: #1e293b;
}

/* Botones CTA */
body.dark-mode .cta-actions .btn-primary {
    background: #60a5fa;
    color: #0f172a;
}

body.dark-mode .cta-actions .btn-primary:hover {
    background: #3b82f6;
}

body.dark-mode .cta-actions .btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 2px solid #e2e8f0;
}

body.dark-mode .cta-actions .btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Mensaje sin resultados */
body.dark-mode .no-results-message {
    background: #334155;
}

body.dark-mode .no-results-content i {
    color: #60a5fa;
}

body.dark-mode .no-results-content h3 {
    color: #e2e8f0;
}

body.dark-mode .no-results-content p {
    color: #cbd5e1;
}

/* Control de Idiomas */
body.dark-mode .en-lang {
    display: none !important;
}

body.lang-en .es-lang {
    display: none !important;
}

body.lang-en .en-lang {
    display: block !important;
}

body.lang-en .en-lang.feature-tag {
    display: inline-block !important;
}

/* Placeholders y Focus */
body.dark-mode input::placeholder {
    color: #94a3b8;
}

body.dark-mode .search-input:focus,
body.dark-mode .filter-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .catalogo-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .view-toggle {
        align-self: flex-start;
    }
    
    body.dark-mode .catalogo-filters {
        background: #334155;
    }
    
    body.dark-mode .filter-select {
        background: #475569;
    }
    
    body.dark-mode .producto-card {
        margin-bottom: 1.5rem;
    }
    
    .productos-grid.list-view .producto-card {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }
    
    .productos-grid.list-view .producto-image {
        width: 100%;
        height: 200px;
    }
    
    /* Paginación responsive */
    .pagination {
        gap: 0.4rem;
    }
    
    .page-btn,
    .page-nav {
        width: 36px;
        height: 36px;
    }
    
    .page-btn.active::after {
        width: 20px;
        bottom: 4px;
    }
}

/* ===== ESTILOS ADICIONALES PARA BOTONES DE PRODUCTO ===== */
body.dark-mode .btn-block {
    background: #2563eb;
    color: #ffffff;
    border: none;
}

body.dark-mode .btn-block:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Placeholders y Focus */
body.dark-mode input::placeholder {
    color: #94a3b8;
}

body.dark-mode .search-input:focus,
body.dark-mode .filter-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* ===== ESTILOS ESPECÍFICOS PARA LA VERSIÓN MINIMALISTA ===== */
/* Para asegurar que los números 1-5 tengan buen espaciado como en la imagen */
.pagination.minimalist-layout {
    gap: 0.5rem;
}

.pagination.minimalist-layout .page-btn {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    color: #374151;
}

.pagination.minimalist-layout .page-btn.active {
    color: #2563eb;
}

.pagination.minimalist-layout .page-btn.active::after {
    width: 26px;
    bottom: 6px;
    background: #2563eb;
}

/* Modo oscuro para layout minimalista */
body.dark-mode .pagination.minimalist-layout .page-btn {
    color: #d1d5db;
}

body.dark-mode .pagination.minimalist-layout .page-btn.active {
    color: #60a5fa;
}

body.dark-mode .pagination.minimalist-layout .page-btn.active::after {
    background: #60a5fa;
}

/* Eliminar cualquier estilo conflictivo heredado */
.page-btn.active-alt,
.page-btn.hover-border {
    display: none !important;
}

/* Garantizar que el diseño minimalista sea el predeterminado */
.pagination .page-btn,
.pagination .page-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Para tablets pequeñas */
@media (max-width: 480px) {
    .pagination {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-btn,
    .page-nav {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    
    .page-btn.active::after {
        width: 18px;
        bottom: 3px;
    }
}

/* ===== ESTILOS PARA ANIMACIONES DE PRODUCTOS ===== */
@keyframes fadeInProduct {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto-card {
    animation: fadeInProduct 0.5s ease forwards;
    opacity: 0;
}

.producto-card:nth-child(1) { animation-delay: 0.1s; }
.producto-card:nth-child(2) { animation-delay: 0.2s; }
.producto-card:nth-child(3) { animation-delay: 0.3s; }
.producto-card:nth-child(4) { animation-delay: 0.4s; }
.producto-card:nth-child(5) { animation-delay: 0.5s; }
.producto-card:nth-child(6) { animation-delay: 0.6s; }

/* ===== SCROLL SMOOTH ===== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .producto-card {
        animation: none;
        opacity: 1;
    }
}


