* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Segoe UI";
    list-style-type: none;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

:root {
    --text-color:#333b67;
    --bg-color:#f1f1f1;
    --text-color-weight:#18458d;
}

.navbar {
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: var(--text-color);
    padding: 20px;
    z-index: 1000;
    position: sticky;
    top: 0px;
}

.lista-nav {
    list-style-type: none;
    display:flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

h1 {
    font-size: 2em;
}

.link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 100;
    font-size: 1.3em;
    transition: color .3s ease;
}

.link:hover {
    color: #333b6777;
}

/*HEADER CONTAINER*/

.header {
    background-image: url("./imagenes/edificios3.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.header::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:rgba(70, 76, 114, 0.7); 
    z-index: -1; 
}

.persona-container {
    display: flex;
    justify-content: center;
    padding: 7rem 50px 0 50px;
    width: 100%;
    height: 100%;
}

.monica-img {
    background-image: url("./imagenes/monica.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 50%;
    height: 100%;
}

.descripcion-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    background-color: #f1f1f1;
    width: 50%;
    height: 100%;
    padding: 20px;
    padding-left: 30px;
    color: var(--text-color);
    gap: 30px;
}

.contacto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.titulo-secundario {
    font-size: 2em;
    font-weight: 400;
}

.span {
    font-weight:800;
}

/*MAIN SECTION*/

.main {
    max-width: 100vw;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.primer-apartado, .apartado {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    width: 100%;
    padding: 0px;
    box-sizing: border-box;
}

.primer-apartado {
    width: 100vw;
}

.section-contenido {
    max-width: 100vw; 
    width: 100vw;  
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.redes-container {
    background-color: #212b77;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
    width: 90vw;
}

.links-redes {
    color: #f1f1f1;
}

.yo-apartado {
    background-color: #eee;
    width: 100vw;
}

.sobre-mi__container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 50vh;
    padding: 0px;
    gap: 20px;
    width: 100vw;
}

.nombre-titulo {
    font-size: 2em;
    color: var(--text-color);
    font-weight: 400;
}

.descripcion-mia {
    color: var(--text-color);
    text-align: center;
    padding: 0 100px;
}

.experiencia-titulo {
    padding: 20px;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 2px;
}

.separador {
    height: 1px;
    width: 100vw;
    background-color: #7775;
}

/*CÓDIGO GENERADO POR IA*/

.timeline {
    position: relative; 
    max-width: 1000px; 
    margin: 40px auto; 
    padding: 20px 0;
}

.timeline::before {
    content: ''; 
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; 
    width: 2px; 
    background-color: #ccc; 
    transform: translateX(-50%); 
}

.timeline-item {
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 30px;
    position: relative; 
}

.timeline-date, 
.timeline-content {
    width: 48%; 
    padding: 10px;
    box-sizing: border-box; 
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 5px; 
    left: 50%; 
    width: 10px; 
    height: 10px;
    background-color: var(--text-color);
    border-radius: 50%; 
    transform: translateX(-50%); 
    z-index: 10; 
}

.timeline-date {
    text-align: right; 
}

/* Opcional: Estilo visual para el contenido */
.timeline-content h3 {
    margin-top: 0;
    color: var(--text-color-weight); /* Color de ejemplo */
    letter-spacing: 2px;
}

/*CÓDIGO CSS GENERADO POR IA FINALIZADO*/

.formacion-titulo {
    padding: 20px;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 2px;
}

.aptitudes-titulo {
    padding: 25px;
    font-weight: 500;
    font-size: 1.25em;
    letter-spacing: 2px;
    color: white;
    background-color: #0f117c;
    width: 100vw;
    text-align: center;
}

.separador-blanco {
    height: 1px;
    width: 100vw;
    background-color: #aaa7;
}

.container-aptitudes {
    padding: 100px;
    width: 100vw;
    background-image: url("./imagenes/aptitudes.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 10;
}

.container-aptitudes::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:rgba(38, 50, 126, 0.7); 
    z-index: -10; 
}

.lista-aptitudes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    text-align: center;
    gap: 20px;
}

.aptitudes-item {
    background-color: #9997;
    padding: 20px 10px;
    color: #fff;
    border-radius: 2px;
    letter-spacing: 2px;
    font-weight: 500;
}

.areas-titulo {
    padding: 20px;
    color: var(--text-color);
    letter-spacing: 2px;
    font-weight: 400;
}

.area-container {
    padding: 20px;
}

.areas-lista {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.areas-item {
    padding: 20px;
}

.titulos-minimos {
    padding: 10px 0;
    color: var(--text-color);
    letter-spacing: 3px;
    font-size: 0.99em;
}

.texto-minimo {
    color: var(--text-color);
    font-weight: 400;
}

.contacto-titulo {
    color: var(--text-color);
    padding: 20px;
    letter-spacing: 2px;
    font-weight: 400;
}

/* --- CONFIGURACIÓN GENERAL DEL CONTACTO --- */
.contacto-apartado {
    background-color: #f7f7f7; /* El fondo gris claro de la imagen */
    padding: 50px 20px;
}

/* --- DISEÑO DE DOS COLUMNAS --- */
.contacto-container {
    display: flex;
    justify-content: space-between;
    width: 100vw;
    padding: 20px;
    padding-top: 20px;
}

/* --- COLUMNA DEL FORMULARIO (Izquierda) --- */
.form-container {
    width: 55%; /* Le damos un poco más de espacio al formulario */
    padding-right: 40px; /* Separación de la columna de info */
    gap: 20px;
}

.separador-vertical {
    height: 100%;
    width: 16px;
    background-color: #0005;
}

/* --- COLUMNA DE INFORMACIÓN (Derecha) --- */
.info-container {
    width: 45%;
    padding-left: 40px;
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.8;
}

.info-container h2 {
    color: var(--text-color);
    margin-bottom: 5px;
}

.titulo-persona {
    color: #888;
    margin-top: 0;
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px; 
    margin-bottom: 15px;
}

.input-group {
    flex: 1; 
}

.input-group.full-width {
    flex: none;
    width: 100%;
}

.input-group label {
    display: block;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 5px;
}

.input, .textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box; 
    border-radius: 2px;
}

.textarea {
    resize: none; 
}

.boton-enviar {
    background-color: var(--text-color-weight); 
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    font-size: 1.1em;
}

.redes-sociales {
    margin-top: 20px;
}

.redes-sociales a {
    color: #333;
    font-size: 1.5em;
    margin-right: 15px;
    text-decoration: none;
}

label {
    color: var(--text-color);
}

/*FOOTER SECTION*/

.footer {
    width: 100vw;
    padding: 10px;
    background-color: #9997;
}

/*RESPONSIVE*/

@media (max-width: 768px) {
    * {
        box-sizing: border-box;
        overflow-x: hidden;
    }
    

    .navbar {
        display: none;
    }

    .timeline {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    /* 1. Mueve la línea central a la izquierda */
    .timeline::before {
        left: 20px; /* Mueve la línea vertical 20px desde la izquierda */
        transform: translateX(0); /* Deshacemos el ajuste de centrado */
    }

    /* 2. Hace que cada item ocupe todo el ancho */
    .timeline-item {
        display: block; /* Deshace el 'display: flex' */
        padding-left: 40px; /* Deja espacio para la nueva línea vertical */
    }

    /* 3. El contenido debe ocupar todo el ancho */
    .timeline-date, 
    .timeline-content {
        width: 100%; /* El contenido ocupa todo el espacio disponible */
        padding: 0; /* Elimina el padding extra que usamos para el diseño a dos columnas */
        text-align: left !important; /* Asegura que la fecha se alinee a la izquierda */
    }

    .timeline-content p {
        max-width: 100%;
        padding: 10px;
    }

    /* 4. Mueve los puntos (círculos) */
    .timeline-item::after {
        left: 20px; /* Los coloca sobre la nueva posición de la línea vertical */
        transform: translateX(-50%); /* Ajuste para centrar el círculo */
    }

    /* 5. Ajustes de espaciado */
    .timeline-date {
        margin-bottom: 5px; /* Pequeño espacio entre la fecha y el contenido */
        font-weight: bold;
    }
    
    .contacto-container {
        flex-direction: column; 
        width: 100%;
        padding: 30px; 
        display: flex; 
    }

    .form-container,
    .info-container {
        width: 100%; 
        padding: 0 15px;  
    }
    
    .form-row {
        display: block; 
        gap: 0;
    }
    
    .info-container {
        margin-top: 30px;
        text-align: center; 
    }
    
    .redes-sociales {
        text-align: center;
    }

    .redes-container {
        display: none;
    }

    .persona-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 100%;
        padding: 30px;
    }

    .contacto {
        padding: 5px;
        overflow-x: hidden;
    }

    .red {
        padding: 2px;
        overflow-x: hidden;
    }

    .monica-img, .descripcion-container {
        width: 100%;
    }

    .areas-lista, .lista-aptitudes {
        display: flex;
        flex-direction: column;
    }

    .lista-aptitudes {
        width: 100%;
    }

    .aptitudes-item {
        padding: 10px 10px;
    }

    .areas-item {
        padding: 20px;
    }

    .footer {
        width: 100%;
        padding: 10px;
    }
}