/* ============================================================================
   ASESOR MODAL — Diseño limpio (sin carrusel, grid de tarjetas)
   ========================================================================== */

.asesor-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: asesorFadeIn 0.2s ease;
}

.asesor-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.asesor-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    animation: asesorSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.asesor-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.asesor-modal-close:hover {
    background: rgba(254, 36, 24, 0.1);
    color: #FE2418;
}

/* ============= Header ============= */
.asesor-modal-header {
    padding: 28px 28px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.asesor-modal-header h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #091C49;
    font-family: 'Manrope', 'Inter', sans-serif;
}

.asesor-modal-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
}

/* ============= Body / Grid ============= */
.asesor-modal-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
}

.asesor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 560px) {
    .asesor-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.asesor-card {
    text-align: left;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.asesor-card:hover {
    border-color: #FE2418;
    box-shadow: 0 6px 14px rgba(254, 36, 24, 0.12);
}

.asesor-card:active {
    transform: translateY(1px);
}

.asesor-avatar {
    grid-row: 1;
    grid-column: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    font-family: 'Manrope', 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.asesor-card-info {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.asesor-card-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asesor-card-sub {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asesor-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.asesor-star {
    width: 13px;
    height: 13px;
}

.asesor-star-full {
    color: #f59e0b;
}

.asesor-star-half {
    color: #f59e0b;
    opacity: 0.55;
}

.asesor-star-empty {
    color: #cbd5e1;
}

.asesor-card-rating-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-left: 2px;
}

.asesor-card-cta {
    grid-row: 2;
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FE2418;
    color: #ffffff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.asesor-card:hover .asesor-card-cta {
    background: #d91b10;
}

.asesor-empty {
    grid-column: 1 / -1;
    padding: 32px 16px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

/* ============= Footer ============= */
.asesor-modal-footer {
    padding: 12px 28px 22px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
}

.asesor-random-link {
    background: transparent;
    border: 0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.asesor-random-link:hover {
    background: #f1f5f9;
    color: #091C49;
}

/* ============= Animations ============= */
@keyframes asesorFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes asesorSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============= Mobile tweaks ============= */
@media (max-width: 559px) {
    .asesor-modal {
        padding: 0;
        align-items: flex-end;
    }

    .asesor-modal-content {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        animation: asesorSlideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .asesor-modal-header,
    .asesor-modal-body,
    .asesor-modal-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@keyframes asesorSlideUpMobile {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
