/* Estilos modernos para la página de filtrado de clientes */

.client-filter-page {
    padding: 0;
}

.client-filter-header {
    background: linear-gradient(135deg, #e8280b 0%, #cc1f00 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(232, 40, 11, 0.15);
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e8280b;
}

.client-filter-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.page-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.filter-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.client-filter-header .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.client-filter-header .filter-subtitle {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.results-count {
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.count-number {
    background: white;
    color: #e8280b;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    font-weight: bold;
    color: #e8280b;
    font-size: 1.1rem;
}

/* Grid moderno de clientes */
.clients-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.client-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.client-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.client-card-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    display: block;
    height: 100%;
}

.client-card-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.client-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.client-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.client-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.placeholder-content {
    text-align: center;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.client-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(232, 40, 11, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card-modern:hover .client-card-overlay {
    opacity: 1;
}

.client-card-modern:hover .client-card-image img {
    transform: scale(1.1);
}

.view-details {
    background: #e8280b;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.client-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.client-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.client-badge {
    background: #28a745;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.client-card-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.client-card-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.client-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item i {
    color: #e8280b;
    width: 12px;
}

.client-card-info {
    margin-bottom: 1rem;
}

.client-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.client-info-item:last-child {
    margin-bottom: 0;
}

.client-info-item i {
    width: 16px;
    color: #e8280b;
    font-size: 1rem;
}

.client-info-item.location i {
    color: #28a745;
}

.client-info-item.phone i {
    color: #007bff;
}

.client-card-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.sector-badge {
    background: #f8f9fa;
    color: #495057;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.sector-badge.sector-restauracion {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.sector-badge.sector-alojamientos {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.sector-badge.sector-compras {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.sector-badge.sector-servicios {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.sector-badge.sector-excursiones {
    background: #e2e3e5;
    color: #383d41;
    border-color: #d6d8db;
}

.sector-badge.more {
    background: #e8280b;
    color: white;
    font-weight: 600;
}

/* Paginación */
.client-filter-pagination {
    text-align: center;
    margin: 3rem 0;
}

.client-filter-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.client-filter-pagination .page-numbers:hover,
.client-filter-pagination .page-numbers.current {
    background: #e8280b;
    color: white;
    border-color: #e8280b;
}

.client-filter-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* Sin resultados */
.no-clients-found {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.no-results-icon {
    font-size: 4rem;
    color: #e8280b;
    margin-bottom: 1rem;
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-clients-found h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.no-clients-found p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: #888;
    margin-bottom: 2rem;
}

.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-back,
.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #e8280b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.btn-back {
    background: #e8280b;
    color: white;
}

.btn-back:hover {
    background: #cc1f00;
    color: white;
}

.btn-home {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-home:hover {
    background: #e9ecef;
    color: #495057;
}

/* Layout principal para páginas de filtro */
.penci-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.penci-content-area {
    width: 100%;
}

.penci-content-sidebar-wrap {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Sidebar izquierdo */
.penci-sidebar-content.penci-sidebar-left {
    width: 300px;
    flex-shrink: 0;
    order: 1;
}

.penci-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
}

/* Contenido principal */
.penci-container-content.penci-main-content {
    flex: 1;
    order: 2;
}

.client-filter-page {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* Correcciones para el layout del sidebar */
.penci-content-sidebar-wrap {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.penci-sidebar-left {
    width: 300px;
    flex-shrink: 0;
    order: 1;
}

.penci-container-content {
    flex: 1;
    order: 2;
}

/* Asegurar que el widget funcione correctamente */
.widget_pueblos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_pueblos li {
    margin-bottom: 0.5rem;
}

.widget_pueblos a {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.widget_pueblos a:hover,
.widget_pueblos a.active {
    background: #f8f9fa;
    color: #e8280b !important;
}

.widget_pueblos a.active i {
    color: #e8280b !important;
}

/* Responsive para sidebar */
@media (max-width: 768px) {
    .penci-content-sidebar-wrap {
        flex-direction: column;
    }
    
    .penci-sidebar-left {
        width: 100%;
        order: 2;
    }
    
    .penci-container-content {
        order: 1;
    }
    
    .penci-container {
        padding: 0 10px;
    }
    
    .client-filter-page {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .clients-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .client-filter-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .client-filter-header .page-title {
        font-size: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-back,
    .btn-home {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .client-filter-header {
        padding: 1rem;
    }
    
    .client-filter-header .page-title {
        font-size: 1.5rem;
    }
    
    .client-card-content {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .clients-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
}
