/* ==========================================
   ESPECIALIDADES PAGE STYLES
   ========================================== */

/* Page Header */
.page-header {
    position: relative;
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    overflow: hidden;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.header-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.header-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background-color: var(--gray-50);
}

.search-bar {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background-color: var(--white);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-btn {
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Filter Tags */
.filter-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tag {
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(30, 58, 138, 0.05);
}

.filter-tag.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Specialties Section */
.specialties-section {
    padding: 4rem 0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.specialty-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--gray-200);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.specialty-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.specialty-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.specialty-card:hover .specialty-icon {
    transform: scale(1.1) rotate(-5deg);
}

.specialty-tag {
    padding: 0.4rem 1rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specialty-card[data-category="cirugia"] .specialty-tag {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.specialty-card[data-category="consulta"] .specialty-tag {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.specialty-card[data-category="terapia"] .specialty-tag {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.specialty-card[data-category="diagnostico"] .specialty-tag {
    background-color: rgba(168, 85, 247, 0.1);
    color: #7c3aed;
}

.specialty-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.specialty-card > p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.specialty-doctors {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: 12px;
}

.doctor-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.doctor-item i {
    color: var(--accent);
    font-size: 1rem;
}

.specialty-info {
    margin-bottom: 1.5rem;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--gray-50);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.info-badge i {
    color: var(--primary);
}

.specialty-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.specialty-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.specialty-btn i {
    transition: var(--transition);
}

.specialty-btn:hover i {
    transform: translateX(5px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--gray-500);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-content .btn {
    background-color: var(--accent);
    border-color: var(--accent);
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.cta-content .btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 80px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-tags {
        gap: 0.75rem;
    }

    .filter-tag {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .specialty-card {
        padding: 1.5rem;
    }

    .specialty-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .specialty-card h3 {
        font-size: 1.25rem;
    }
}

/* Hidden Class */
.hidden {
    display: none !important;
}