/* DISEÑO EXCLUSIVO PARA EL CUADRO DE CURRÍCULUM (SWEETALERT2) - ESTILO MODERNO DOS COLUMNAS */

/* Contenedor principal de SweetAlert2 */
.cv-modal-modern {
    border-radius: 12px !important;
    overflow: hidden !important; /* Para que las esquinas del diseño interno no se salgan */
    background: transparent !important; /* El fondo lo manejará nuestro layout interno */
}

/* Para ocultar la "x" por defecto si se superpone feo con nuestro diseño, 
   o la estilizamos. Por ahora la dejamos arriba a la derecha. */
.swal2-close {
    background-color: white !important;
    border-radius: 50% !important;
    color: var(--primary-color) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 100 !important;
}

/* Contenedor Flex para las dos columnas */
.cv-layout-modern {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 500px; /* Altura mínima para que se vea bien */
    max-height: 85vh;
    background-color: #fff;
    text-align: left;
}

/* --- COLUMNA IZQUIERDA (BARRA LATERAL) --- */
.cv-sidebar {
    width: 35%;
    background-color: var(--primary-color);
    color: white;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Scroll independiente si es muy largo */
}

/* Scrollbar personalizada para la barra lateral */
.cv-sidebar::-webkit-scrollbar {
    width: 6px;
}
.cv-sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.cv-profile-img-container {
    text-align: center;
    margin-bottom: 30px;
}

.cv-photo-modern {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color); /* Borde turquesa o naranja */
    padding: 4px; /* Efecto de doble borde */
    background-color: rgba(255, 255, 255, 0.1);
}

.cv-sidebar-section {
    margin-bottom: 25px;
}

.cv-section-title {
    color: var(--secondary-color);
    font-size: 14px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-profile-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cv-skills-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.cv-skills-list li {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.cv-skills-list li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 16px;
}


/* --- COLUMNA DERECHA (CONTENIDO PRINCIPAL) --- */
.cv-main-content {
    width: 65%;
    padding: 40px;
    overflow-y: auto; /* Scroll principal */
    background-color: #fcfcfc;
}

/* Scrollbar personalizada para el contenido principal */
.cv-main-content::-webkit-scrollbar {
    width: 8px;
}
.cv-main-content::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.cv-main-content::-webkit-scrollbar-thumb {
    background: var(--primary-color); 
    border-radius: 10px;
}

.cv-header {
    margin-bottom: 40px;
}

.cv-name {
    color: var(--primary-color);
    font-size: 38px;
    line-height: 1.1;
    margin: 0 0 5px 0;
    font-weight: 800;
}

.cv-job-title {
    color: var(--accent-color); /* Turquesa */
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.cv-country-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.cv-body-section {
    margin-bottom: 35px;
}

.cv-main-title {
    color: var(--primary-color);
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contenedor de experiencia y educacion */
.cv-experience-item,
.cv-education-item {
    display: flex;
    margin-bottom: 20px;
}

.cv-exp-date,
.cv-edu-date {
    width: 25%;
    font-size: 13px;
    color: #666;
    font-weight: bold;
    padding-right: 15px;
    flex-shrink: 0;
}

.cv-exp-details,
.cv-edu-details {
    width: 75%;
    border-left: 2px solid var(--accent-color);
    padding-left: 20px;
    position: relative;
}

/* Puntito en la línea de tiempo */
.cv-exp-details::before,
.cv-edu-details::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 3px;
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}


.cv-exp-role,
.cv-edu-degree {
    font-size: 16px;
    color: var(--primary-color);
    margin: 0 0 3px 0;
}

.cv-exp-company,
.cv-edu-school {
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

.cv-exp-tasks {
    font-size: 13px;
    color: #444;
    padding-left: 15px;
    margin: 0;
    line-height: 1.5;
}

.cv-exp-tasks li {
    margin-bottom: 4px;
}

/* RESPONSIVE PARA CELULARES */
@media (max-width: 768px) {
    .cv-layout-modern {
        flex-direction: column;
    }
    .cv-sidebar,
    .cv-main-content {
        width: 100%;
        padding: 20px;
    }
    .cv-experience-item,
    .cv-education-item {
        flex-direction: column;
    }
    .cv-exp-date,
    .cv-edu-date {
        width: 100%;
        margin-bottom: 5px;
    }
    .cv-exp-details,
    .cv-edu-details {
        width: 100%;
        border-left: none;
        padding-left: 0;
    }
    .cv-exp-details::before,
    .cv-edu-details::before {
        display: none;
    }
}