
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
     /* CSS HEX */
    --charcoal: #264653ff;
    --persian-green: #2a9d8fff;

    --fuente1: "Reggae One", system-ui;
    --fuente2: "Bad Script", cursive;
    --font1: "Roboto Condensed";
    --font2: "Roboto";
    
    --color1: #457B9D;
    --color2: #84A59D;
    --color3: #FFFFFF;
    --color4: #000000;
    --color5: #868D97;
}

/* Barra de Scroll */
body::-webkit-scrollbar {
    width: 24px;
}

body::-webkit-scrollbar-track {
    background: linear-gradient(#217be2, yellowgreen);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ecff83, #d3a013);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, darkblue, magenta);
}

/* Barra de menu */
.navbar {
    position: fixed;  /* Cambiado de relative a fixed */
    top: 0;           /* Añadido para fijar en la parte superior */
    left: 0;          /* Añadido para que ocupe todo el ancho */
    width: 100%;
    height: auto;
    padding: 10px;
    z-index: 1000;    /* Z-index alto para que esté por encima de todo */
    background-color: rgba(255,255,255,0.05); /* Fondo semi-transparente */
    backdrop-filter: blur(10px); /* Efecto de desenfoque del fondo */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Sombra para separar del contenido */
}

.navbar-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color:rgba(255,255,255,0.1);
    color: black;
    padding: 6px;

    z-index: 10;
}

/* Ajustar el body para compensar el navbar fijo */
body {
    padding-top: 120px; /* Ajusta según la altura real de tu navbar */
}

.logo {
    height: 94px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.logo img{
    height: 150px;
    width: auto;
}

.logo-text {
    width: 100%;
    height: auto;

}

.logo-text img{
    width: 100%;
    height: 250px;
}


.right-section {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: space-around;

}

.right-section p{
    font-family: var(--fuente1);
    font-size: 3rem;
}

.menu-button {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    width: 400px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    z-index: 10;
    color: #333;
    display: none;
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid #2764df;
}

.dropdown-header h3 {
    font-family: var(--fuente1);
    font-size: 3rem;
    font-weight: bold;
}

.dropdown-menu ul {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
    font-family: var(--fuente2);
    font-weight: 700;
}

.dropdown-menu li a:hover {
    background-color: #f3f4f6;
}

/* Iconos SVG en línea */
.menu-icon, .search-icon, .clear-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container{
    width: 100%;
    display: flex;
    flex-direction: column;
}

.section {
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.section-1{
    width: 100%;
    display: flex;
    flex-direction: row;

    background: linear-gradient(90deg, var(--persian-green), #f3a845);
    z-index: 1;
}
.titulo{
    width: 40%;
    height: 70vh;
    margin-top: 70px;
    margin-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: linear-gradient(darkblue,purple);
    border-radius: 30% 70% 28% 72% / 55% 11% 89% 45%  ;
}

.titulo1{
    font-family: var(--fuente1);
    font-size: 20rem;
    font-weight: 700;
    color: orange;
    opacity: 0.8;
}

.titulo2{
    font-family: var(--fuente1);
    font-size: 4rem;
    font-weight: 700;
    color: orange;
    opacity: 0.6;
}

.saludo{
    width: 60%;
    height: 70vh;
    margin-top: 40px;
    
    margin-right: 30px;
    margin-right: 60px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: linear-gradient(rgb(255, 102, 0),darkgreen);
    border-radius: 50% 50% 93% 7% / 31% 87% 13% 69% ;

    font-family: var(--fuente2);
    font-weight: 500;
    font-size: 1.5rem;
    text-align: left;
    padding-left: 30px;
    padding-right: 50px;
}

 /* Espaciador para crear scroll entre secciones */
.spacer {
    height: 50vh;
    position: relative;
    z-index: 0;
}

.section-2-fixed-header {
    width: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    z-index: 2;
    position: sticky;
    top: 0;
    height: 100vh; /* Permite que crezca según el contenido */
    display: flex;
    flex-direction: column;

     padding-top: 120px; /* Ajusta según la altura real de tu navbar */
}

.timeline-container-scrollable{
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 40px 20px;
}

.timeline-header-fixed {
    text-align: center;
    padding: 40px 0 0 0;
    margin-bottom: 10px;
    color: black;
}

.timeline-header-fixed h1 {
    font-family: var(--fuente1);
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.timeline-header-fixed p {
    font-family: var(--fuente2);
    font-size: 1.8rem;
    opacity: 0.9;
}

.timeline {
    position: relative;
    max-width: 1000px;
    min-height: 1000px;
    margin: 0 auto;
    padding: 10px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    z-index: 2;
    transition: height 0.3s ease;
}

.timeline-item {
    position: relative;
    margin: 60px 0; /* Aumentar el margen para dar más espacio */
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.6s ease;
    width: 100%;
    min-height: 400px; /* Dar altura mínima para mantener el espaciado */
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: 4px solid white;
    border-radius: 50%;
    z-index: 3;
    top: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Scrollbars internos */
.timeline-container-scrollable::-webkit-scrollbar {
    width: 18px;
}

.timeline-container-scrollable::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}

.timeline-container-scrollable::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
}

.timeline-container-scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
}


/* Contenedores base */
.timeline-content-left {
    position: absolute;
    width: 45%;
    background: radial-gradient(yellow,rgba(41, 103, 153, 0.644));
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Posicionamiento a la izquierda */
    left: 0;
    text-align: right;
    padding-right: 20px;
    top: 0;
}

.timeline-content-right {
    position: absolute;
    width: 45%;
    background: radial-gradient(rgb(64, 233, 219),rgb(168, 110, 206));
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Posicionamiento a la derecha */
    right: 0;
    text-align: left;
    padding-left: 20px;
    top: 0;
}

.timeline-content-left:hover,
.timeline-content-right:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover .tooltip,
.timeline-item:hover .tooltip-right{
    visibility: visible;
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;

    cursor: pointer;
}

 /* Estilo del tooltip */
.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 110%;
    left: 25%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    border: 3px solid red;
}

.tooltip-right {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 110%;
    left: 75%;
    transform: translateX(-25%);
    background-color: #333;
    color: white;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    border: 3px solid yellowgreen;
}


/* Flecha del tooltip */
.tooltip::after,
.tooltip-right::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #333;
}


.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d3748;
}

.project-date {
    color: #311313;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.project-description {
    line-height: 1.6;
    color: #383838;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    background: #f8f9fa;
    color: #495057;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.project-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Alineación específica para cada lado */
.timeline-content-left .tech-stack {
    justify-content: flex-end;
}

.timeline-content-left .project-links {
    justify-content: flex-end;
}

.timeline-content-right .tech-stack {
    justify-content: flex-start;
}

.timeline-content-right .project-links {
    justify-content: flex-start;
}


 .section-3-fixed-header {
    width: 100%;
    background: linear-gradient(90deg, #c74ffe 0%, #c3d612 100%);
    z-index: 3;
    position: sticky;
    top: 0;
    height: 100vh; /* Permite que crezca según el contenido */
    display: flex;
    flex-direction: column;

    padding-top: 120px; /* Ajusta según la altura real de tu navbar */
}

.project-image video{
    width: 100%;
    height: 100%;
}

.section-4-fixed-header {
    width: 100%;
    background: linear-gradient(90deg, #29c95eff 0%, #126dd6ff 100%);
    z-index: 4;
    position: sticky;
    top: 0;
    height: 100vh; /* Permite que crezca según el contenido */
    display: flex;
    flex-direction: column;

    padding-top: 120px; /* Ajusta según la altura real de tu navbar */
}

/* ****** Curriculum *******/
 .section-5-fixed-header {
    width: 100%;
    background: linear-gradient(90deg,#d8f3dc, #52b788);
    z-index: 5;
    position: sticky;
    top: 0;
    height: 50vh; /* Permite que crezca según el contenido */
    display: flex;
    flex-direction: column;
    padding-top: 120px; /* Ajusta según la altura real de tu navbar */
}


/* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            position: relative;
            margin: 2% auto;
            width: 90%;
            max-width: 900px;
            background-color: #333;
            border-radius: 10px;
            overflow: hidden;
            animation: slideDown 0.3s ease;
        }

        .modal-video {
            width: 100%;
            height: auto;
            display: block;
        }

        .modal-info {
            padding: 20px;
            background-color: #2a2a2a;
        }

        .modal-title {
            font-size: 1.5em;
            margin-bottom: 10px;
            color: #ffffff;
        }

        .modal-description {
            color: #cccccc;
            line-height: 1.5;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 25px;
            color: rgb(255,255,255);
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
            background-color: rgba(0, 0, 0, 0.5);
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s ease;
        }

        .close-btn:hover {
            background-color: rgba(255, 0, 0, 0.7);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideDown {
            from { 
                transform: translateY(-50px);
                opacity: 0;
            }
            to { 
                transform: translateY(0);
                opacity: 1;
            }
        }



/******* Curriculum ******/
.timeline-container-scrollable-curriculum{
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-y: auto;
    padding: 0 20px 40px 20px;
}

/* Scrollbars internos */
.timeline-container-scrollable-curriculum::-webkit-scrollbar {
    width: 10px;
}

.timeline-container-scrollable-curriculum::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}

.timeline-container-scrollable-curriculum::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
}

.timeline-container-scrollable-curriculum::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
}

.lado-izquierdo{
    width: 33%;
    height: 300vh ;
    background-color: var(--color1);
    display: flex;
    flex-direction: column;
    /* ELIMINAR position y left */
    padding: 30px;
    gap: 40px;
}

.nombreFoto{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.nombreFoto h1{
    font-size: 3rem;
    font-family: var(--font2);
    color: var(--color4);
}
.nombreFoto img{
    width: 250px;
    height: auto;
}

.sobreMi, .lenguajes, .contacto{
    display: flex;
    flex-direction: column;
}
.sobreMi-titulo, .lenguajes-titulo, .contacto-titulo{
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 30px;
}
.sobreMi-titulo img, .lenguajes-titulo img, .contacto-titulo img{
    width: 50px;
    padding: 5px;
}
.sobreMi-titulo h2, .lenguajes-titulo h2, .contacto-titulo h2{
    font-size: 2.2rem;
    font-family: var(--font2);
    color: var(--color4);
}

.sobreMi-texto p{
    font-family: var(--font1);
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--color3);
    line-height: 1.5;
    letter-spacing: 1.3;
    padding: 30px;
}

.idioma{
    display: flex;
    flex-direction: row;
    padding-left: 30px;
    padding-bottom: 20px;
    gap: 20px;
}

.idioma h3{
    font-family: var(--font2);
    font-size: 2rem;
    color: var(--color3);
    font-weight: 400;
    padding-left: 30px;
}

.idioma p{
    font-family: var(--font1);
    font-size: 1.7rem;
    font-weight: 200;
    color: var(--color3);
}

.modoContacto{
    display: flex;
    flex-direction: row;
    padding-left: 50px;
    padding-bottom: 20px;
    gap: 20px;
}

.modoContacto img{
    width: 40px;
}

.modoContacto p{
    font-family: var(--font1);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color3);
}

.lado-derecho{
    width: 67%;
    height: 300vh;
    background-color: var(--color2);
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* ELIMINAR position y left */
    padding: 30px;
}

.experiencia{
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.experiencia-titulo{
    display: flex;
    flex-direction: row;
    padding: 30px;
    gap: 20px;
}

.experiencia-titulo img{
    width: 40px;
}

.experiencia-titulo h2{
    color: var(--color3);
    font-family: var(--font2);
    font-size: 2.2rem;
}
.experiencia-texto p{
    color: var(--color4);
    font-family: var(--font1);
    font-size: 1.4rem;
    padding-left: 50px;
    padding-right: 50px;
    line-height: 1.5;
}

#empresa{
    font-weight: bolder;
    padding-left: 50px;
}

#periodo{
    padding-left: 70px;
}
#funciones{
    padding-left: 90px;
}
.negrita{
    font-weight: bold;
}

.formacion-academica{
    display: flex;
    flex-direction: column;
}

.formacion-titulo{
    display: flex;
    flex-direction: row;
    padding: 30px;
    gap: 20px;
}
.formacion-titulo img{
    width: 40px;
}
.formacion-titulo h2{
    color: var(--color3);
    font-family: var(--font2);
    font-size: 2.2rem;
}
.formacion-academica p, .formacion-complementaria p{
    color: var(--color4);
    font-family: var(--font1);
    font-size: 1.4rem;
    padding-left: 50px;
    padding-right: 50px;
    line-height: 1.5;
}

#curso{
    padding-left: 70px;
    line-height: 2;
}

.conocimientos{
    display: flex;
    flex-direction: column;
}

.conocimientos-titulo{
    display: flex;
    flex-direction: row;
    padding: 30px;
    gap: 20px;
}

.conocimientos-titulo img{
    width: 40px;
}

.conocimientos-titulo h2{
    color: var(--color3);
    font-family: var(--font2);
    font-size: 2rem;
}

.conocimientos-informaticos{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.conocimiento-informatico{
    width: 30%;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}

.informatico-titulo{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 30px;
    padding-bottom: 5px;
    gap: 10px;
}

.informatico-titulo img{
    width: 48px;
    height: 48px;
    background-color: var(--color3);

    border-radius: 50%;
}

.informatico-titulo h3{
    font-family: var(--font2);
    font-size: 2rem;
    color: var(--color3);
}


.skill-bar {
      width: 90%;
      height: 20px;
      margin-left: 30px;
      background: var(--color5);
      border-radius: 10px;
      overflow: hidden;
    }

.skill-fill {
    height: 100%;
    width: 0;
    background: var(--color4);
    border-radius: 10px;
    transition: width 3s ease-in-out;
}

/* Activamos la animación automáticamente con una clase al cargar */
.skill-fill.animate {
    width: var(--level);
}

.habilidades{
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
}

.habilidades-titulo{
    display: flex;
    flex-direction: row;
    padding-left: 30px;
    padding-bottom: 30px;
    gap: 10px;
}

.habilidades-titulo img{
    width: 40px;
}

.habilidades-titulo h2{
    color: var(--color3);
    font-family: var(--font2);
    font-size: 2.2rem;
}

.conjunto-habilidades{
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 5px;
}

.habilidad{
    width: 50%;
    display: flex;
    flex-direction: row;
    padding-left: 30px;
    padding-right: 20px;
    padding-bottom: 10px;
}

.habilidad h3{
    width: 80%;
    padding-left: 10px;
    font-family: var(--font1);
    font-size: 1.3rem;
    font-weight: 400;
}

/* ***********************************/
/* Estilos para las animaciones de aparición por scroll */
.section-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones específicas para diferentes tipos de contenido */
.nombreFoto.section-hidden {
    transform: translateY(-30px) scale(0.9);
}

.nombreFoto.section-visible {
    transform: translateY(0) scale(1);
    transition: all 1s ease-out;
}

/* Animación especial para el lado izquierdo */
.lado-izquierdo .section-hidden {
    transform: translateX(-30px);
    opacity: 0;
}

.lado-izquierdo .section-visible {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.6s ease-out;
}

/* Animación especial para el lado derecho */
.lado-derecho section.section-hidden {
    transform: translateX(30px);
    opacity: 0;
}

.lado-derecho section.section-visible {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.6s ease-out;
}

/* Mejorar la animación de las barras de habilidades */
.skill-fill {
    height: 100%;
    width: 0;
    background: var(--color4);
    border-radius: 10px;
    transition: width 1.2s ease-out;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en las barras cuando se animan */
.skill-fill.animate::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 1.5s ease-out 0.3s;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Activamos la animación de las barras */
.skill-fill.animate {
    width: var(--level);
}

/* Efectos hover mejorados */
.skill-bar:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Animación de fade-in escalonado para listas de habilidades */
.conjunto-habilidades .habilidad {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.section-visible .conjunto-habilidades .habilidad {
    opacity: 1;
    transform: translateY(0);
}

/* Delays escalonados para las habilidades */
.section-visible .conjunto-habilidades .habilidad:nth-child(1) { transition-delay: 0.1s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(2) { transition-delay: 0.2s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(3) { transition-delay: 0.3s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(4) { transition-delay: 0.4s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(5) { transition-delay: 0.5s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(6) { transition-delay: 0.6s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(7) { transition-delay: 0.7s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(8) { transition-delay: 0.8s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(9) { transition-delay: 0.9s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(10) { transition-delay: 1.0s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(11) { transition-delay: 1.1s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(12) { transition-delay: 1.2s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(13) { transition-delay: 1.3s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(14) { transition-delay: 1.4s; }
.section-visible .conjunto-habilidades .habilidad:nth-child(15) { transition-delay: 1.5s; }

/* Animación similar para conocimientos informáticos */
.conocimientos-informaticos .conocimiento-informatico {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.section-visible .conocimientos-informaticos .conocimiento-informatico {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para conocimientos informáticos */
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(1) { transition-delay: 0.1s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(2) { transition-delay: 0.2s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(3) { transition-delay: 0.3s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(4) { transition-delay: 0.4s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(5) { transition-delay: 0.5s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(6) { transition-delay: 0.6s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(7) { transition-delay: 0.7s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(8) { transition-delay: 0.8s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(9) { transition-delay: 0.9s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(10) { transition-delay: 1.0s; }
.section-visible .conocimientos-informaticos .conocimiento-informatico:nth-child(11) { transition-delay: 1.1s; }


/*********** Footer *******/
footer{
    width: 100%;
    height: 5vh;
    background: linear-gradient(90deg, #5e548e,#e0b1cb );
    backdrop-filter: blur(10px); /* Efecto de desenfoque del fondo */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Sombra para separar del contenido */
}

footer:hover{
    background: linear-gradient(90deg, #e0b1cb, #5e548e );
}
footer p {
    margin: 0;
    text-align: center;
    color: black;
    font-family: var(--font1);
    font-size: 1.2rem;
    border-top: 1px solid #555;
    padding-top: 10px;
}

footer p:hover{
    color: white;
    font-size: 1.5rem;
}




/* Responsive */

@media (max-width: 1400px) {

/* SECCIÓN 1 - CORREGIDA */
.titulo1{
    font-size: 9.7rem;
}

.titulo2{
    font-size: 2.5rem;
}

.saludo{
    width: 90%;
    height: auto;
   
    margin: 20px auto;
    padding: 30px;
    
    line-height: 1.6;
}

    
}

/* Responsive para Tablets (768px) */
@media (max-width: 768px) {

body {
    padding-top: 90px;
}

.logo {
    height: 74px;
}

.logo img{
    height: 110px;
}

.logo-text img{
    width: 100%;
    height: 200px;
}

.right-section p{
    font-size: 2rem;
}

/* SECCIÓN 1 - CORREGIDA */
.section-1{
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.titulo{
    width: 90%;
    height: 40vh;
    margin: 20px auto;
}

.titulo1{
    font-size: 10rem;
}

.titulo2{
    font-size: 2rem;
}

.saludo{
    width: 90%;
    height: 50vh;
    min-height: 30vh;
    margin: 20px;
    padding: 30px;
    font-size: 1.3rem;
    line-height: 1.6;
}

.timeline-header-fixed {
    padding: 20px 0 0 0;
    margin-bottom: 30px;
}

.timeline-header-fixed h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.timeline-header-fixed p {
    font-size: 1.2rem;
}

/* TIMELINE RESPONSIVE */
.timeline-content-left,
.timeline-content-right {
    width: 90%;
    left: 5%;
    right: auto;
    text-align: left;
    padding: 20px;
    padding-left: 60px;
    position: relative;
}

.timeline-dot {
    left: 30px;
    transform: none;
}

.timeline::before,
.timeline-progress {
    left: 30px;
    transform: none;
}

.timeline-content-left .tech-stack,
.timeline-content-left .project-links,
.timeline-content-right .tech-stack,
.timeline-content-right .project-links {
    justify-content: flex-start;
}

/* CURRICULUM - CORREGIDO PARA TABLET */
.timeline-container-scrollable-curriculum{
    flex-direction: column;
}

.lado-izquierdo{
    width: 100%;
    height: auto;
    padding: 20px;
}

.nombreFoto{
    padding: 20px;
}

.nombreFoto h1{
    font-size: 2.5rem;
}

.nombreFoto img{
    width: 200px;
}

.sobreMi-titulo, .lenguajes-titulo, .contacto-titulo{
    gap: 15px;
    padding: 20px;
}

.sobreMi-titulo img, .lenguajes-titulo img, .contacto-titulo img{
    width: 35px;
}

.sobreMi-titulo h2, .lenguajes-titulo h2, .contacto-titulo h2{
    font-size: 1.8rem;
}

.sobreMi-texto p{
    font-size: 1.5rem;
    line-height: 1.4;
    padding: 20px;
}

.idioma{
    padding-left: 20px;
}

.idioma h3{
    font-size: 1.6rem;
    padding-left: 20px;
}

.idioma p{
    font-size: 1.3rem;
}

.modoContacto{
    padding-left: 30px;
    padding-bottom: 15px;
}

.modoContacto img{
    width: 35px;
}

.modoContacto p{
    font-size: 1.3rem;
}

.lado-derecho{
    width: 100%;
    height: auto;
    padding: 20px;
}

.experiencia-titulo{
    padding: 20px;
}

.experiencia-titulo img{
    width: 35px;
}

.experiencia-titulo h2{
    font-size: 1.8rem;
}

.experiencia-texto p{
    font-size: 1.2rem;
    padding-left: 30px;
    padding-right: 30px;
}

#empresa{
    padding-left: 30px;
}

#periodo{
    padding-left: 50px;
}

#funciones{
    padding-left: 70px;
}

.formacion-titulo{
    padding: 20px;
}

.formacion-titulo img{
    width: 35px;
}

.formacion-titulo h2{
    font-size: 1.8rem;
}

.formacion-academica p, .formacion-complementaria p{
    font-size: 1.2rem;
    padding-left: 30px;
    padding-right: 30px;
}

#curso{
    padding-left: 50px;
}

.conocimientos-titulo{
    padding: 20px;
}

.conocimientos-titulo img{
    width: 35px;
}

.conocimientos-titulo h2{
    font-size: 1.8rem;
}

.conocimiento-informatico{
    width: 48%;
    padding-bottom: 30px;
}

.informatico-titulo{
    padding-left: 20px;
}

.informatico-titulo img{
    width: 40px;
    height: 40px;
}

.informatico-titulo h3{
    font-size: 1.5rem;
}

.skill-bar {
    width: 90%;
    margin-left: 20px;
}

.habilidades-titulo{
    padding-left: 20px;
    padding-bottom: 20px;
}

.habilidades-titulo img{
    width: 35px;
}

.habilidades-titulo h2{
    font-size: 1.8rem;
}

.habilidad{
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.habilidad h3{
    font-size: 1.2rem;
}

}

/* Responsive para Móviles pequeños (420px) */
@media (max-width: 520px) {

body {
    padding-top: 70px;
}

.logo {
    height: 50px;
}

.logo img{
    height: 70px;
}

.logo-text img{
    width: 100%;
    height: 80px;
}

.right-section p{
    font-size: 1rem;
}

/* SECCIÓN 1 - CORREGIDA PARA MÓVIL */
.section-1{
    flex-direction: column;
    align-items: center;
    padding: 10px;
    min-height: auto;
}

.titulo{
    width: 95%;
    height: 35vh;
    margin: 10px auto;
    padding: 10px;
}

.titulo1{
    font-size: 5rem;
}

.titulo2{
    font-size: 1.5rem;
}

.saludo{
    width: 95%;
    height: auto;
    min-height: 60vh;
    margin: 10px auto;
    padding: 20px;
    font-size: 1.2rem;
    line-height: 1.5;
    border-radius:71% 29% 84% 16% / 28% 87% 13% 72%   ;
}

.timeline-header-fixed {
    padding: 15px 0 0 0;
    margin-bottom: 10px;
}

.timeline-header-fixed h1 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-header-fixed p {
    font-size: 0.9rem;
}

/* TIMELINE MÓVIL */
.project-image {
    height: 150px;
}

.project-title {
    font-size: 1.2rem;
}

.project-date {
    font-size: 0.8rem;
}

.project-description {
    font-size: 0.9rem;
}

.tech-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
}

/* CURRICULUM - CORREGIDO PARA MÓVIL */
.timeline-container-scrollable-curriculum{
    flex-direction: column;
    padding: 0 10px 20px 10px;
}

.lado-izquierdo{
    width: 100%;
    height: auto;
    padding: 15px;
    gap: 20px;
}

.nombreFoto{
    padding: 15px;
}

.nombreFoto h1{
    font-size: 1.8rem;
    text-align: center;
}

.nombreFoto img{
    width: 150px;
}

.sobreMi-titulo, .lenguajes-titulo, .contacto-titulo{
    gap: 10px;
    padding: 10px;
}

.sobreMi-titulo img, .lenguajes-titulo img, .contacto-titulo img{
    width: 25px;
}

.sobreMi-titulo h2, .lenguajes-titulo h2, .contacto-titulo h2{
    font-size: 1.3rem;
}

.sobreMi-texto p{
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
    padding: 10px;
}

.idioma{
    padding-left: 10px;
    padding-bottom: 10px;
    gap: 10px;
}

.idioma h3{
    font-size: 1.2rem;
    padding-left: 10px;
}

.idioma p{
    font-size: 1rem;
}

.modoContacto{
    padding-left: 10px;
    padding-bottom: 10px;
    gap: 10px;
}

.modoContacto img{
    width: 25px;
}

.modoContacto p{
    font-size: 0.9rem;
}

.lado-derecho{
    width: 100%;
    height: auto;
    padding: 15px;
    gap: 20px;
}

.experiencia{
    padding-top: 10px;
}

.experiencia-titulo{
    padding: 10px;
    gap: 10px;
}

.experiencia-titulo img{
    width: 25px;
}

.experiencia-titulo h2{
    font-size: 1.3rem;
}

.experiencia-texto p{
    font-size: 0.9rem;
    padding-left: 15px;
    padding-right: 15px;
    line-height: 1.4;
}

#empresa{
    padding-left: 15px;
}

#periodo{
    padding-left: 25px;
}

#funciones{
    padding-left: 35px;
}

.formacion-titulo{
    padding: 10px;
    gap: 10px;
}

.formacion-titulo img{
    width: 25px;
}

.formacion-titulo h2{
    font-size: 1.3rem;
}

.formacion-academica p, .formacion-complementaria p{
    font-size: 0.9rem;
    padding-left: 15px;
    padding-right: 15px;
    line-height: 1.4;
}

#curso{
    padding-left: 25px;
    line-height: 1.6;
}

.conocimientos-titulo{
    padding: 10px;
    gap: 10px;
}

.conocimientos-titulo img{
    width: 25px;
}

.conocimientos-titulo h2{
    font-size: 1.3rem;
}

.conocimientos-informaticos{
    flex-direction: column;
}

.conocimiento-informatico{
    width: 100%;
    padding-bottom: 20px;
}

.informatico-titulo{
    padding-left: 10px;
    padding-bottom: 5px;
}

.informatico-titulo img{
    width: 30px;
    height: 30px;
}

.informatico-titulo h3{
    font-size: 1.1rem;
}

.skill-bar {
    width: 95%;
    height: 15px;
    margin-left: 10px;
}

.habilidades{
    padding-bottom: 20px;
}

.habilidades-titulo{
    padding-left: 10px;
    padding-bottom: 15px;
    gap: 10px;
}

.habilidades-titulo img{
    width: 25px;
}

.habilidades-titulo h2{
    font-size: 1.3rem;
}

.conjunto-habilidades{
    padding: 5px;
}

.habilidad{
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 8px;
}

.habilidad h3{
    width: 70%;
    padding-left: 5px;
    font-size: 0.9rem;
}

/* Footer móvil */
footer p {
    font-size: 0.9rem;
    padding-top: 5px;
}

footer p:hover{
    font-size: 1rem;
}

}