.specialty-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.specialty {
    width: calc(50% - 40px);
    max-width: 200px;
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.specialty:hover {
    transform: scale(1.05);
}

.specialty img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.specialty-name {
    margin-top: 10px;
    font-weight: bold;
}

.specialty-search {
    margin-bottom: 20px;
    text-align: center;
}

.specialty-search input {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.doctors-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.doctor {
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.doctor img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Media Queries para Responsividad */
@media (max-width: 1200px) {
    .doctors-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .doctors-gallery {
        grid-template-columns: 1fr;
    }

    .doctor {
        margin: 0;
    }

    .specialty-search input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .specialty-search input {
        width: 100%;
        max-width: 100%;
    }
}