/* ===== VARIABLES DE COLOR ===== */
:root {
    --crema: #FFF9F0;
    --hueso: #F5E6D3;
    --verde: #2A7F49;
    --mostaza: #E6A017;
    --azul-rey: #1E3A8A;
}

/* ===== RESET ===== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ===== HEADER MEJORADO ===== */
.head_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #eceed1;
    padding: 1rem 2rem;
    gap: 1rem;
}

.barLeft {
    text-align: left;
}

.nombre-header {
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
    color: var(--azul-rey, #1e3a8a);
}

.tagline-header {
    font-size: 0.8rem;
    margin: 0;
    color: var(--verde, #2a7f49);
}

.barRight {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.barRight a {
    text-decoration: none;
    color: #000;
    padding: 0.3rem 0.8rem;
    transition: background 0.2s;
}

.barRight a:hover {
    background-color: #e0e0e0;
    border-radius: 5px;
}

.barRight p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== PRESENTACIÓN (INDEX) ===== */
.presentacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    margin: 10px;
    margin-bottom: 0;
    padding: 2%;
    gap: 20px;
}

.presentacion_texto {
    margin-top: 20px;
    width: 100%;
}

.presentacion__imagen {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.presentacion__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.presentacion_enlaces {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ===== BIOGRAFÍA ===== */
.biografia {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 10%;
    margin-top: 0;
    padding-top: 0;
}

.biografiaTitulo {
    display: flex;
    justify-content: left;
    margin-bottom: 10px;
}

.biografiaTexto {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
    margin: auto;
}

.biografiaSignature {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.biografiaSignature img {
    max-width: 80%;
    height: auto;
}

/* ===== TÍTULOS DE SECCIÓN (para formación, skills, etc.) ===== */
.tituloSeccion {
    font-size: 1.8rem;
    color: var(--azul-rey, #1e3a8a);
    margin: 2rem 0 1rem 0;
    border-left: 5px solid var(--mostaza, #e6a017);
    padding-left: 1rem;
}

/* ===== TARJETAS DE FORMACIÓN / EXPERIENCIA ===== */
.grid-formacion,
.grid-experiencia {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card-formacion {
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-formacion:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-formacion .card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.card-formacion .card-header i {
    font-size: 1.8rem;
    color: var(--verde, #2a7f49);
}

.card-formacion .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--azul-rey, #1e3a8a);
}

.institucion {
    font-weight: 600;
    color: #444;
    margin: 0.2rem 0;
}

.fecha {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.descripcion {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    margin-top: 0.3rem;
}

.card-experiencia {
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-experiencia:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card-experiencia .card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}
.card-experiencia .card-header i {
    font-size: 1.8rem;
    color: var(--verde, #2a7f49);
}
.card-experiencia .card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--azul-rey, #1e3a8a);
}
.empresa {
    font-weight: 600;
    color: #444;
    margin: 0.2rem 0;
}
/* Ya tienes .fecha y ul, li, pero puedes añadir: */
.card-experiencia ul {
    margin: 0.5rem 0 0 1rem;
    padding-left: 0;
}
.card-experiencia li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== SKILLS (página skills.html) ===== */
/* Contenedores en grid */
.technicalSkills,
.professionalSkills,
.othersSkills,
.uniqueSkills,
.softSkills,
.languagesSkills {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, auto));
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Cada ítem individual (los <i>) */
.technicalSkills i,
.professionalSkills i,
.othersSkills i,
.uniqueSkills i,
.softSkills i,
.languagesSkills i {
    background: white;
    padding: 0.6rem 0.8rem;
    border-radius: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
    font-style: normal;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.technicalSkills i:hover,
.professionalSkills i:hover,
.othersSkills i:hover,
.uniqueSkills i:hover,
.softSkills i:hover,
.languagesSkills i:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== SECCIONES VIEJAS (posiblemente obsoletas, pero se conservan) ===== */
.skills {
    background-color: #f0e1e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1%;
}
.tituloSkills {
    display: flex;
    margin-bottom: 1%;
}
.iconosSkills {
    display: flex;
    gap: 20px;
}

.hobbies {
    background-color: #f3efce;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1%;
}
.tituloHobbies {
    display: flex;
    margin-bottom: 1%;
}
.iconosHobbies {
    display: flex;
    gap: 20px;
}

.experiencia {
    background-color: #d0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1%;
}
.tituloExperiencia {
    display: flex;
    margin-bottom: 1%;
}
.iconosExperiencia {
    display: flex;
    gap: 20px;
}

.academics {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    padding: 10%;
}
.evenflowAcademics {
    display: flex;
    margin-bottom: 5%;
    align-items: center;
}
.allAcademics {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    gap: 10px;
}
.colombiaAcademics {
    width: 100px;
    border: 1px solid #0a0909;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    text-align: center;
}
.colombiaAcademicsSena {
    width: 100%;
    height: auto;
    display: block;
}
.colombiaAcademicsTexto {
    padding: 10px;
    font-size: 16px;
    color: #333;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--hueso, #f5f0e1);
    border-top: 3px solid var(--mostaza, #e6a017);
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #2c2c2c;
    margin-top: 2rem;
}

.footer p {
    max-width: 800px;
    margin: 0 auto 0.5rem auto;
    line-height: 1.5;
}

.footer i {
    font-size: 1.2rem;
    color: var(--verde, #2a7f49);
    margin-top: 0.5rem;
}

/*ventana emergente*/

/* ===== VENTANA EMERGENTE (MODAL MULTIIDIOMA) ===== */
.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 58, 138, 0.4); /* Tu azul-rey traslúcido */
    backdrop-filter: blur(8px); /* Difumina el fondo sutilmente */
    display: none; /* JavaScript lo activa cambiando a 'flex' */
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Se superpone a todo, incluso al panal */
}

.lang-modal-box {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 480px;
    width: 90%;
    border-top: 8px solid var(--mostaza, #E6A017);
    animation: aparecerModal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-modal-box h2 {
    color: var(--azul-rey, #1E3A8A);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.lang-modal-box p {
    color: #333333;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.lang-modal-box .lang-subtext {
    color: #666666;
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.lang-modal-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-lang {
    background-color: var(--azul-rey, #1E3A8A);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-lang:hover {
    background-color: var(--mostaza, #E6A017);
    color: #1e1e1e;
    transform: translateY(-2px);
}

.btn-lang:active {
    transform: translateY(0);
}

/* Animación de entrada fluida */
@keyframes aparecerModal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}