/* ====================================
   CATÁLOGO AUDIOVISUAL - ESTILO DOCTORALIA
   ================================= */

:root {
    --primary-color: #00d4aa;
    --primary-dark: #00b895;
    --secondary-color: #1a1a1a;
    --accent-color: #ff6b35;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===============================
   HERO SECTION
   =============================== */

.hero-section {
    background: #fff;
    color: #222;
    padding: 60px 0 60px;
    position: relative;
    overflow: visible;
}

.hero-section::before {
    content: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #222;
    text-shadow: none;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #555;
    opacity: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===============================
   BÚSQUEDA PRINCIPAL
   =============================== */

.search-container {
    margin-bottom: 40px;
}

.main-search-form {
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.search-inputs {
    display: flex;
    align-items: center;
    gap: 2px;
}

.search-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-field i {
    position: absolute;
    left: 20px;
    color: var(--text-light);
    z-index: 2;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-color);
    outline: none;
    border-radius: 25px;
}

.search-field input::placeholder {
    color: var(--text-light);
}

.search-field select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ===============================
   CATEGORÍAS RÁPIDAS
   =============================== */

.quick-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-chip {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===============================
   LAYOUT PRINCIPAL
   =============================== */

.main-content {
    padding: 40px 0;
    background: var(--background-light);
    min-height: calc(100vh - 300px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* ===============================
   FILTROS LATERALES
   =============================== */

.filters-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.filters-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.clear-filters {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.clear-filters:hover {
    color: var(--primary-dark);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 0;
}

.filter-option input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--primary-color);
}

.filter-option span {
    color: var(--text-color);
    font-weight: 500;
}

.filter-option:hover span {
    color: var(--primary-color);
}

/* Filtro de calificación */
.rating-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.rating-option input[type="radio"] {
    margin-right: 10px;
}

.stars {
    display: flex;
    margin-right: 8px;
}

.stars i {
    color: #ffc107;
    font-size: 14px;
}

.stars i.far {
    color: #e0e0e0;
}

/* ===============================
   ÁREA DE RESULTADOS
   =============================== */

.results-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.results-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.results-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.results-info p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-options label {
    font-weight: 500;
    color: var(--text-color);
}

.sort-options select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.sort-options select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

/* ===============================
   GRID DE PROFESIONALES
   =============================== */

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 30px;
}

.professional-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.professional-card:hover .card-image img {
    transform: scale(1.05);
}

.verified-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.verified-badge i {
    font-size: 16px;
}

.card-content {
    padding: 25px;
}

.card-header {
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 10px 0;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating .stars {
    display: flex;
}

.rating .stars i.filled {
    color: #ffc107;
}

.rating .stars i.empty {
    color: #e0e0e0;
}

.rating-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.card-info {
    margin-bottom: 20px;
}

.specialty {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.description {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.price-range {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.card-actions {
    display: flex;
    gap: 12px;
}

.btn-primary {
    flex: 1;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ===============================
   NO RESULTS
   =============================== */

.no-results {
    padding: 80px 30px;
    text-align: center;
}

.no-results-content i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-results-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 15px 0;
}

.no-results-content p {
    color: var(--text-light);
    margin: 0 0 30px 0;
    font-size: 1.1rem;
}

/* ===============================
   PAGINACIÓN
   =============================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px;
    border-top: 1px solid var(--border-color);
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===============================
   RESPONSIVE DESIGN
   =============================== */

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .search-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-field {
        width: 100%;
    }
    
    .professionals-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .main-search-form {
        margin: 0 20px;
    }
    
    .quick-categories {
        margin: 0 20px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .professionals-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        padding: 20px;
    }
    
    .card-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .results-header {
        padding: 20px;
    }
    
    .professionals-grid {
        padding: 15px;
        gap: 15px;
    }
}

/* ===============================
   ANIMACIONES
   =============================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.professional-card {
    animation: fadeInUp 0.6s ease-out;
}

.professional-card:nth-child(2) { animation-delay: 0.1s; }
.professional-card:nth-child(3) { animation-delay: 0.2s; }
.professional-card:nth-child(4) { animation-delay: 0.3s; }

/* ===============================
   UTILIDADES
   =============================== */

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===============================
   Enlaces de Profesionales
   =============================== */

.professional-link {
    text-decoration: none;
    color: inherit;
}

.professional-link:hover h3 {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
