/* =============================================================
   vista-previa-perfil.css — XpertMe / Vista de Perfil Profesional
   Fuente de verdad: Figma "Industria" node vacantes
   ============================================================= */

/* ---------------------------------------------------------------
   1. LAYOUT PRINCIPAL
--------------------------------------------------------------- */

/* ===== PAGE-SPECIFIC OVERRIDES ===== */
.xme-header {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 60px;
    border-bottom: 1px solid #e8eaf0;
    font-family: 'Lato', sans-serif;
}

/* Logo + nav grouped left */
.xme-header__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.xme-header__nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.xme-header__nav a {
    font-size: 14px;
    color: #707070;
    text-decoration: none;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.xme-header__nav a:hover {
    color: #080B17;
}

.xme-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Profile Card */
.profile-card {
    background: #FFE1C2;
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

.profile-card__avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(0, 0, 0, 0.08);
}

.profile-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-contactar {
    background: #080B17;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Lato', sans-serif;
}

.btn-outline {
    background: #fff;
    color: #080B17;
    border: 1.5px solid #ddd;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Lato', sans-serif;
}

.profile-tag {
    background: #9AD5FF;
    color: #005C88;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.stat-match {
    background: #3E4345;
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-match__pct {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    font-family: 'Lato', sans-serif;
}

.stat-match__label {
    font-size: 11px;
    color: #bfc4c6;
    text-align: center;
    margin-top: 6px;
    font-family: 'Lato', sans-serif;
}

.stat-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #f0f2f5;
}

.stat-info-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1b4e6b;
}

.stat-info-card__label {
    font-size: 11px;
    color: #9aa0a8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-family: 'Lato', sans-serif;
}

.stat-info-card__value {
    font-size: 14px;
    color: #080B17;
    font-weight: 700;
    margin-top: 2px;
    font-family: 'Lato', sans-serif;
}

/* Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid #e8eaf0;
    gap: 0;
    margin-top: 20px;
}

.profile-tab {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: 'Lato', sans-serif;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: color 0.15s;
}

.profile-tab.active {
    color: #FF8A00;
    border-bottom-color: #FF8A00;
}

.profile-tab:hover:not(.active) {
    color: #080B17;
}

/* Tab Panes */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Portfolio Section */
.portfolio-header {
    margin-top: 24px;
    margin-bottom: 20px;
}

.portfolio-header__title {
    font-size: 16px;
    font-weight: 800;
    color: #080B17;
    font-family: 'Lato', sans-serif;
    margin-bottom: 4px;
}

.portfolio-header__subtitle {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Lato', sans-serif;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.portfolio-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid #e8eaf0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.portfolio-card__main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
}

.portfolio-card__thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #f0f2f7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-card__info {
    flex: 1;
}

.portfolio-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Lato', sans-serif;
    margin-bottom: 4px;
    padding-right: 120px;
    line-height: 1.3;
}

.portfolio-card__desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    margin-bottom: 8px;
}

.portfolio-card__meta {
    font-size: 11px;
    color: #9aa0a8;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
}

.portfolio-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Lato', sans-serif;
    display: inline-flex;
    align-items: center;
}

.portfolio-card__actions {
    display: flex;
    gap: 16px;
    border-top: 1px solid #f0f2f5;
    padding-top: 12px;
}

.portfolio-btn {
    background: transparent;
    border: none;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    padding: 0;
}

.portfolio-btn:hover {
    color: #080B17;
}

.portfolio-btn svg {
    color: #6b7280;
}

.portfolio-btn:hover svg {
    color: #080B17;
}

/* 3-col content */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.content-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #f0f2f5;
}

.content-card__title {
    font-size: 15px;
    font-weight: 800;
    color: #080B17;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Lato', sans-serif;
}

.content-card__title a {
    font-size: 12px;
    color: #1b4e6b;
    font-weight: 600;
    text-decoration: none;
}

/* Logros */
.logro-item {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.logro-item__icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}

.logro-item__title {
    font-size: 13px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Lato', sans-serif;
}

.logro-item__org {
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
    font-family: 'Lato', sans-serif;
}

.logro-item__date {
    font-size: 11px;
    color: #9aa0a8;
    margin-top: 2px;
    font-family: 'Lato', sans-serif;
}

/* Certificaciones */
.cert-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-item__name {
    font-size: 13px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Lato', sans-serif;
}

.cert-item__date {
    font-size: 11px;
    color: #9aa0a8;
    margin-top: 2px;
    font-family: 'Lato', sans-serif;
}

/* Evaluation panel */
.eval-panel {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e8eaf0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.eval-panel__title {
    font-size: 16px;
    font-weight: 800;
    color: #080B17;
    margin-bottom: 16px;
    font-family: 'Lato', sans-serif;
}

.eval-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    margin-top: 16px;
    font-family: 'Lato', sans-serif;
}

.star-rating {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.star-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.star-row__label {
    font-size: 13px;
    color: #374151;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 16px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s;
}

.star.filled {
    color: #FF8A00;
}

.industry-match-card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.industry-match-card__pct {
    font-size: 20px;
    font-weight: 900;
    color: #080B17;
    font-family: 'Lato', sans-serif;
    min-width: 52px;
}

.industry-match-card__info {
    flex: 1;
}

.industry-match-card__name {
    font-size: 13px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Lato', sans-serif;
}

.industry-match-card__badge {
    font-size: 10px;
    background: #fce4ec;
    color: #c2185b;
    border-radius: 10px;
    padding: 2px 8px;
    font-weight: 600;
    display: inline-block;
    margin-top: 2px;
    font-family: 'Lato', sans-serif;
}

.eval-textarea {
    width: 100%;
    background: #f8f9fb;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    color: #374151;
    resize: none;
    font-family: 'Lato', sans-serif;
    outline: none;
    min-height: 90px;
}

.eval-textarea:focus {
    border-color: #1b4e6b;
    box-shadow: 0 0 0 3px rgba(27, 78, 107, 0.08);
}

.btn-guardar {
    width: 100%;
    background: #080B17;
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    font-family: 'Lato', sans-serif;
    transition: background 0.15s;
}

.btn-guardar:hover {
    background: #212840;
}

/* Page layout */
.pp-page {
    background: #F5F5F5;
    min-height: 100vh;
    font-family: 'Lato', 'Inter', sans-serif;
}

.pp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px 48px;
}

/* Breadcrumb */
.pp-breadcrumb {
    font-size: 13px;
    color: #FFF3E0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: 'Lato', sans-serif;
}

/* Volver pill button – Figma style */
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #EFEFEF;
    color: #080B17;
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Inter', 'Lato', sans-serif;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-volver:hover {
    background: #e0e0e0;
}

/* Evaluation panel – full width under tabs */
.eval-panel {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 16px;
}

.eval-panel__title {
    font-size: 16px;
    font-weight: 800;
    color: #080B17;
    margin-bottom: 4px;
    font-family: 'Lato', sans-serif;
}

.eval-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .eval-inner {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .portfolio-card__title {
        padding-right: 0;
        margin-top: 24px;
    }

    .portfolio-card__badge {
        position: static;
        margin-bottom: 8px;
    }
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-card__actions {
        justify-content: center;
    }
}

/* Overlay con 80% de opacidad */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Fondo negro 80% */
    z-index: 9998;
    display: none;
    backdrop-filter: blur(2px);
    /* Opcional: un toque elegante */
}

.drawer-overlay.active {
    display: block;
}

/* Sidebar */
.side-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    /* Ancho ajustable */
    max-width: 90%;
    /* Responsividad */
    height: 100vh;
    background: white;
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.side-drawer.open {
    transform: translateX(0);
}

/* Estética de la imagen */
.drawer-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.drawer-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: #111;
}

.drawer-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.drawer-content {
    padding: 24px;
    flex-grow: 1;
    overflow-y: auto;
}

.eval-section-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

/* Estrellas y filas */
.star-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.star {
    color: #e2e8f0;
    /* Gris como en la imagen */
    font-size: 20px;
    cursor: pointer;
}

.eval-textarea {
    width: 100%;
    height: 100px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.drawer-footer {
    padding: 24px;
}

.btn-save {
    width: 100%;
    padding: 15px;
    background: #0a0b14;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* Color de estrella activa (dorado o el que prefieras) */
.star.active,
.star:hover {
    color: #ffb400;
    /* Un dorado suave */
}

/* Transición suave */
.star {
    transition: color 0.2s ease;
    cursor: pointer;
}

/* Ajuste para que el botón de cerrar se vea igual a la imagen */
.close-drawer {
    font-size: 24px;
    line-height: 1;
    padding: 5px;
    color: #333;
    transition: opacity 0.2s;
}

.close-drawer:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .side-drawer {
        width: 100%;
        /* Full width solo en móviles */
    }

    .drawer-header h2 {
        font-size: 1rem;
    }
}

/* --- Estilos del Footer --- */
.site-footer {
    display: flex;
    flex-direction: column;
    /* Por defecto para móviles */
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #f4f7fe;
    /* Color aproximado de la imagen */
    font-family: Arial, sans-serif;
    font-size: 14px;
    gap: 15px;
    width: 100%;
}

.site-footer__links {
    display: flex;
    gap: 15px;
}

.site-footer__links a {
    text-decoration: none;
    color: #333;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-footer__copy {
    margin: 0;
    color: #666;
}

/* --- Media Query para Escritorio --- */
@media (min-width: 768px) {
    .site-footer {
        flex-direction: row;
        /* Alineación horizontal en pantallas grandes */
        padding: 10px 40px;
    }
}

/* =========================================================================
   Resolucion Tabs & Cards
   ========================================================================= */

#pane-resolucion {
    padding: 24px;
    background-color: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 8px;
}

.res-subtab {
    background: none;
    border: none;
    font-size: 15px;
    font-family: '\'' Lato'\'', sans-serif;
    cursor: pointer;
    padding: 0;
    color: #9aa0a8;
    font-weight: 500;
    transition: color 0.2s, font-weight 0.2s;
}

.res-subtab:hover {
    color: #374151;
}

.res-subtab.active {
    color: #080B17;
    font-weight: 700;
}

.res-subpane {
    display: none;
}

.res-subpane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.res-card {
    background-color: #f4f8fe;
    border: 1px solid #e4ecf7;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    gap: 20px;
}

.res-card__img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.res-card__content {
    flex: 1;
}

.res-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.res-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #080B17;
    font-family: '\'' Lato'\'', sans-serif;
    margin: 0;
}

.res-card__tags-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.res-card__tags-label {
    font-size: 11px;
    color: #9aa0a8;
    font-family: '\'' Inter'\'', sans-serif;
    margin-right: 2px;
}

.res-card__tag {
    background-color: #ffffff;
    color: #374151;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: '\'' Inter'\'', sans-serif;
    font-weight: 500;
    border: 1px solid #e8eaf0;
}

.res-card__section {
    margin-bottom: 12px;
}

.res-card__section:last-child {
    margin-bottom: 0;
}

.res-card__section-title {
    font-size: 13px;
    font-weight: 700;
    font-family: '\'' Inter'\'', sans-serif;
    margin: 0 0 4px 0;
}

.res-card__section-text {
    font-size: 13px;
    color: #374151;
    font-family: '\'' Inter'\'', sans-serif;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   Tab de Logros y Reconocimientos
   ========================================= */
.logros-header {
    margin-top: 24px;
    margin-bottom: 20px;
}

.logros-header__title {
    font-size: 16px;
    font-weight: 800;
    color: #080B17;
    font-family: 'Lato', sans-serif;
    margin-bottom: 4px;
}

.logros-header__subtitle {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Lato', sans-serif;
}

.logros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.logros-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8eaf0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.logros-card__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #e8eaf0;
}

.logros-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.logros-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Lato', sans-serif;
    margin-bottom: 4px;
}

.logros-card__org {
    font-size: 12px;
    color: #005be3;
    font-family: 'Lato', sans-serif;
    margin-bottom: 10px;
}

.logros-card__desc {
    font-size: 13px;
    color: #4b5563;
    font-family: 'Lato', sans-serif;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.logros-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f2f5;
    padding-top: 14px;
}

.logros-card__date {
    font-size: 11px;
    color: #9aa0a8;
    font-family: 'Lato', sans-serif;
}

.btn-evidencia {
    background: #fff;
    color: #374151;
    border: 1px solid #e8eaf0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Lato', sans-serif;
    transition: background 0.15s, border-color 0.15s;
}

.btn-evidencia:hover {
    background: #f8f9fb;
    border-color: #d1d5db;
    color: #080B17;
}

@media (max-width: 1024px) {
    .logros-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .logros-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Modal Base Styles
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e8eaf0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Lato', sans-serif;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fb;
}


/* =========================================================================
   Experiencia Pane
   ========================================================================= */

.exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .exp-grid {
        grid-template-columns: 1fr;
    }
}

.exp-card {
    background: #ffffff;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    padding: 24px;
}

.exp-card__header {
    font-size: 15px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Lato', sans-serif;
    margin-top: 0;
    margin-bottom: 24px;
}

/* Timeline specific */
.exp-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
}

.exp-timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}

.exp-timeline-item:last-child {
    padding-bottom: 0;
}

.exp-timeline-item::before {
    content: '';
    position: absolute;
    left: 19.5px;
    top: 40px;
    bottom: 0;
    width: 1px;
    background: #e8eaf0;
}

.exp-timeline-item:last-child::before {
    display: none;
}

/* Base list items */
.exp-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exp-list-item {
    display: flex;
    gap: 16px;
}

.exp-list-item.minimal-gap {
    gap: 16px;
}

.exp-list-item.align-center {
    align-items: center;
}

.exp-list-item.gap-md {
    gap: 16px;
}

/* Icon box */
.exp-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
    /* above timeline line */
}

/* Colors for icon boxes */
.bg-blue {
    background-color: #eaf1fb;
}

.text-blue {
    color: #005be3;
    font-size: 20px;
}

.bg-green {
    background-color: #e8f5e9;
}

.text-green {
    color: #2e7d32;
    font-size: 20px;
}

.bg-orange {
    background-color: #fff3e0;
}

.text-orange {
    color: #e65100;
    font-size: 20px;
}

.bg-pink {
    background-color: #fce4ec;
}

.text-pink {
    color: #c2185b;
    font-size: 20px;
}

/* Content styles */
.exp-content {
    flex: 1;
}

.exp-title {
    font-size: 13px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Inter', sans-serif;
    margin: 0 0 2px 0;
}

.exp-title-plain {
    font-size: 13px;
    font-weight: 500;
    color: #080B17;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.exp-subtitle {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    margin: 0 0 4px 0;
}

.exp-date {
    font-size: 11px;
    color: #9aa0a8;
    font-family: 'Inter', sans-serif;
    margin: 0 0 8px 0;
}

.exp-desc {
    font-size: 13px;
    color: #374151;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.exp-desc-bold {
    font-size: 12px;
    font-weight: 600;
    color: #080B17;
    font-family: 'Inter', sans-serif;
    margin: 0 0 8px 0;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.exp-tags span {
    background-color: #f0f2f7;
    color: #374151;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

/* Split layout (for buttons) */
.exp-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.exp-btn {
    background: #ffffff;
    border: 1px solid #e8eaf0;
    color: #374151;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.exp-btn:hover {
    background: #f8f9fb;
    color: #080B17;
}

/* For minimal lists */
.minimal-gap .exp-date {
    margin-bottom: 0;
}

.clickable-icon {
    cursor: pointer;
    border: none;
    padding: 0;
    outline: none;
    transition: opacity 0.2s;
}

.clickable-icon:hover {
    opacity: 0.8;
}

.exp-collapsible {
    display: block;
    margin-bottom: 10px;
}

.exp-timeline-item.collapsed .exp-collapsible {
    display: none;
}

.exp-timeline-item.collapsed .exp-desc-bold {
    display: none;
}

/* ===== VALIDACIONES ===== */
.validaciones-header {
    margin-bottom: 24px;
}

.validaciones-header__title {
    font-size: 16px;
    font-weight: 800;
    color: #080B17;
    margin-bottom: 4px;
    font-family: 'Lato', sans-serif;
}

.validaciones-header__subtitle {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Lato', sans-serif;
}

.validaciones-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.val-card {
    background: #fff;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
}

.val-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eaf1fb;
    color: #005be3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.val-card__content {
    flex: 1;
}

.val-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #080B17;
    font-family: 'Lato', sans-serif;
    margin: 0 0 2px 0;
}

.val-card__role {
    font-size: 13px;
    font-weight: 600;
    color: #005be3;
    font-family: 'Inter', sans-serif;
    margin: 0 0 2px 0;
}

.val-card__org {
    font-size: 12px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    margin: 0 0 16px 0;
}

.val-card__quote {
    border-left: 3px solid #005be3;
    padding-left: 16px;
    font-size: 13px;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.val-card__tags-row {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.val-card__tags-label {
    font-family: 'Inter', sans-serif;
}

.val-card__tag {
    background: #eaf1fb;
    color: #374151;
    padding: 4px 10px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.val-card__date {
    font-size: 11px;
    color: #9aa0a8;
    font-family: 'Inter', sans-serif;
}

.logro-item {
    background: #ffffff;
    border: 1px solid #f0f2f5;
    border-radius: 20px;
    /* Bordes más redondeados según el diseño */
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    /* Efecto de elevación suave */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.logro-item__title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: #080B17;
    line-height: 1.2;
}

.logro-item__org,
.logro-item__date {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    /* Gris más suave para subtextos */
    line-height: 1.4;
}

.icon-badge {
    background-color: #FFD4A6;
    color: #080B17;
    border-radius: 50%;
    width: 48px;
    /* Un poco más grande para el diseño */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}