:root {
    --primary: #2d4f95;
    --primary-dark: #0e2249;
    --accent: #d01341;
    --text-main: #1a365d;
    --text-body: #4a5568;
    --glass: rgba(255, 255, 255, 0.95);
}

.specialist-section {
    padding: 90px 20px;
    background: #ffffff;
    overflow: hidden;
}

/* Header Estilizado */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.badge-modern .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--text-dark);
    font-weight: 900;
}

.section-title span {
    color: var(--primary);
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto;
    border-radius: 10px;
}

/* Contenedor de Tarjetas */
.specialists-main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 700px;
}

.specialist-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: white;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.specialist-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    pointer-events: auto;
}

/* Columna de Fotos */
.photo-column {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-photo-frame {
    width: 100%;
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.doc-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.doc-img.active {
    opacity: 1;
}

.photo-nav-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.photo-nav-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.photo-nav-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Columna de Información */
.content-column {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doc-tag {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.doc-name {
    font-size: 2.5rem;
    color: var(--text-main);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.doc-intro {
    font-size: 1.2rem;
    color: var(--text-body);
    font-weight: 500;
    margin-bottom: 30px;
}

/* Highlights Grid Moderno */
.highlights-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.h-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.h-icon {
    width: 50px;
    height: 50px;
    background: #f0f4f8;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    transition: 0.3s;
}

.h-item:hover .h-icon {
    background: var(--primary);
    color: white;
}

.h-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.h-text span {
    font-size: 0.85rem;
    color: var(--text-body);
}

/* Navegación Principal */
.main-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.nav-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.nav-arrow:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-pills {
    display: flex;
    gap: 10px;
}

.pill {
    width: 40px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    transition: 0.3s;
}

.pill.active {
    background: var(--primary);
    width: 60px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .specialist-card {
        grid-template-columns: 1fr;
    }

    .photo-column {
        height: 450px;
        padding: 20px;
    }

    .main-photo-frame {
        height: 100%;
    }

    .content-column {
        padding: 40px 30px;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}