
/* main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
} */

.profesionales-main {
    background-color: #8891a3;
}

.professionals-hero {
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.professionals-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #0d2a6a, #3a445a);
}

.professionals-hero h1 {
    position: relative;
    z-index: 1;
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.professionals-hero p {
    position: relative;
    z-index: 1;
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto;
}

/* .team-section {
    text-align: center;
    padding: 40px 40px 100px;
}

.team-section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.member-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.member-card img {
    width: 200px;
    height: 200px;
    background-color: #a4b1be;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.member-card h3 {
    font-size: 1.4em;
    color: var(--text-color-dark);
    margin-bottom: 5px;
}

.member-card p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
}

.professional-directory {
    background-color: #8891a3;
    text-align: center;
    padding: 50px;
}

.professional-directory h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.filter-controls {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-controls input[type="text"],
.filter-controls select {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
    color: #383838;
    outline: none;
}

.professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.professional-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.professional-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.professional-card h3 {
    font-size: 1.5em;
    color: var(--text-color-dark);
    margin-bottom: 5px;
}

.professional-card .specialty {
    font-size: 1em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.professional-card .description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.button-secondary {
    background-color: #2a5b7c;
    color: #eee;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-secondary:hover {
    background-color: #5b5e64;
} */

.hero-cards {
    padding: 100px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.card-wrapper {
    height: 500px;
    perspective: 1000px;
}

.card-inner {
    background-color: #cccccc66;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-wrapper:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front img {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
}

.card-front, .card-back {
    text-align: center;
    padding: 20px 10px;
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-back {
    transform: rotateY(180deg);
    text-align: justify;
    padding: 30px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .professionals-hero h1 {
        font-size: 2.5em;
    }

    .professionals-hero p {
        font-size: 1em;
    }

    .professional-directory h2 {
        font-size: 2em;
    }

    .filter-controls {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .filter-controls input[type="text"],
    .filter-controls select {
        max-width: 90%;
    }

    .professional-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .professionals-hero h1 {
        font-size: 2em;
    }
}