:root {
    --primary-color: #012B47;
    --secondary-color: #007bff;
    --accent-color: #0056b3;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --light-text: #f8f9fa;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

/* Encabezado general */
.logo-container {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #034a7c);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo-container img.logo {
    max-width: 140px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    margin-bottom: 15px;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--light-text);
    margin: 15px 0;
    letter-spacing: 0.5px;
}

.header-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Filter Card */
.filter-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.filter-label {
    font-size: 18px;
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: 500;
}

.dropdown {
    width: 60%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #ffffff;
    margin-top: 10px;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
}

.dropdown:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Row Styles */
.row {
    display: flex;
    align-items: stretch;
    margin-bottom: 25px;
    background-color: #ffffff;
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    transition: var(--transition);
}

.row:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Card Styles */
.card {
    padding: 20px;
}

.card-photo {
    flex: 1;
    min-width: 250px;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
    border-radius: 0;
    padding: 30px;
}

.card-photo img {
    width: 100%;
    height: auto;
    max-height: 220px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.card-photo img:hover {
    transform: scale(1.03);
}

.card-info {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: left;
    padding: 25px;
    border-left: 1px solid #eee;
}

.card-info p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--dark-text);
}

.card-info strong {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 180px;
    display: inline-block;
}

/* Badges for specializations */
.specialization-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Contact info styling */
.contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #666666;
    padding: 20px 0;
}

/* Loading animation */
.loading-spinner {
    display: none;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--secondary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 20px 0;
}

.empty-state img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state p {
    font-size: 16px;
    color: #666;
}

/* Responsiveness */
@media (max-width: 992px) {
    .dropdown {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .logo-container {
        padding: 20px 15px;
    }

    .header-title {
        font-size: 24px;
    }

    .filter-card {
        padding: 20px 15px;
    }

    .dropdown {
        width: 100%;
    }

    .row {
        flex-direction: column;
    }

    .card-photo {
        max-width: 100%;
        min-width: 100%;
        padding: 20px;
        border-bottom: 1px solid #eee;
    }

    .card-info {
        padding: 20px;
        border-left: none;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 22px;
    }

    .filter-label {
        font-size: 16px;
    }

    .card-info p {
        font-size: 14px;
    }

    .card-info strong {
        min-width: 140px;
    }
}