/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('cielo_estrellado_azul_negro.svg'); /* Fondo SVG */
    background-size: cover; /* Cubre toda la pantalla */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que se repita */
    color: #333; /* Texto en color oscuro */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Evita el desplazamiento horizontal */
    position: relative;
}

/* Clase para ocultar elementos */
.oculto {
    display: none;
}

/* Ventana emergente inicial */
.ventana-emergente {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(100, 149, 237, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: aparecer 1s ease-in-out;
    z-index: 1000;
}

.contenido-ventana {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    animation: deslizarEntrada 0.5s ease-in-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.contenido-ventana h1 {
    margin-bottom: 20px;
    color: #6495ed;
}

.contenido-ventana button {
    padding: 10px 20px;
    background-color: #6495ed;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contenido-ventana button:hover {
    background-color: #4169e1;
}

/* Contenedor de la hoja de vida */
.hoja-de-vida {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    margin: auto;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semi-transparente */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

/* Pestañas de navegación */
.pestanas {
    width: 200px;
    background-color: #6495ed;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boton-pestana {
    padding: 10px;
    background-color: transparent;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

.boton-pestana.activo {
    background-color: #4169e1;
}

.boton-pestana:hover {
    background-color: #4169e1;
    transform: translateX(5px); /* Efecto de desplazamiento al hacer hover */
}

.boton-pestana i {
    font-size: 18px;
}

/* Secciones */
.contenedor-secciones {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.seccion {
    margin-top: 20px;
    transition: opacity 0.3s ease-in-out;
}

.seccion.oculto {
    opacity: 0;
    pointer-events: none; /* Evita interacciones con secciones ocultas */
}

.seccion:not(.oculto) {
    opacity: 1;
}

.seccion h2 {
    border-bottom: 2px solid #6495ed;
    padding-bottom: 10px;
}

.contenido {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

/* Columna izquierda: Foto y datos de contacto */
.columna-izquierda {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contenedor-imagen {
    text-align: center;
}

.imagen-perfil {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 0;
    border: 3px solid #000;
}

.info-contacto {
    background-color: #f9f9f9; /* Fondo gris clarito */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.info-contacto p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.info-contacto a {
    color: #6495ed;
    text-decoration: none;
}

.info-contacto a:hover {
    text-decoration: underline;
}

/* Línea divisora vertical */
.divisor {
    width: 2px;
    background-color: #000;
    margin: 0 20px;
}

/* Columna derecha: Descripción personal */
.columna-derecha {
    flex: 1;
    padding: 0 20px;
}

.columna-derecha p {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
    text-align: justify;
    line-height: 1.6;
}

/* Estilos para la lista de habilidades */
.lista-habilidades {
    list-style: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lista-habilidades li {
    width: calc(33.33% - 14px);
    margin-bottom: 20px;
}

.lista-habilidades span {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.contenedor-habilidad {
    display: flex;
    align-items: center;
    gap: 10px;
}

.barra-habilidad {
    flex: 1; /* Barra flexible */
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.nivel-habilidad {
    height: 100%;
    background-color: #0077b6;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.porcentaje-habilidad {
    font-size: 14px;
    color: #333;
}

/* Estilos para la lista de educación */
.lista-educacion {
    list-style: none;
    padding: 0;
    width: 100%;
}

.lista-educacion li {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9; /* Fondo gris clarito */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.lista-educacion strong {
    font-size: 18px;
    color: #0077b6;
}

.lista-educacion p {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

/* Animaciones */
@keyframes aparecer {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes deslizarEntrada {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}