@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap%27");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}
body {
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background-color: #e4f0f7;
    color:#3a4a60;
    background-size: cover;
    background-position: center;
    padding: 100px 90px;
}
/*----------------------------Header----------------------------*/
.logo a {
    color: #3a4a60;
}
.logo {
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}
.logo:hover {
    transform: scale(1.2);
}
.contenedor-cabecera {
    background:#e4f0f7;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}
.contenedor-cabecera header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items:center;
    justify-content: space-between;
    padding: 0px;
}
.contenedor-cabecera header ul {
    display: flex;
    list-style: none;
}
.contenedor-cabecera header .navbar ul li a {
    text-align: none;
    color: #3a4a60;
    margin: 0 15px;
    padding: 3px;
    transition: 0.5s;
    text-decoration: none;  
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.contenedor-cabecera header .navbar ul li a:hover {
    color:#4b98c4;
    border-bottom: 3px solid #4b98c4 ;
}
header {
    position: relative;
    padding: 0 2rem;
}
.navbar {
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar .logo a {
    font-size: 1.5rem;
    font-weight: bold;
}
.navbar .links {
    display: flex;
    gap: 2rem;
}
.navbar .toggle_btn {
    color: rgb(48, 105, 155);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}
.action_btn {
    background-color: #889293;
    color: white;
    padding: 0.7rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.action_btn:hover {
    transform: scale(1.1); 
    background-color: #474745; 
    color: #ffffff; 
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3); 
}
.action_btn:active {
    scale: 0.95;
}
/* Dropdown del menu */
.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 61px;
    height: 0;
    width: 200px;
    background: rgba(red, green, blue, alpha);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dropdown_menu.open {
    height: 240px;
}
.dropdown_menu li {
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown_menu a{
    text-align: none;
    color: #3a4a60;
    margin: 0 15px;
    padding: 3px;
    transition: 0.5s;
    text-decoration: none;  
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.dropdown_menu a:hover{
    color:#4b98c4;
    border-bottom: 3px solid #4b98c4 ;

}
.dropdown_menu .action_btn {
    width: 80%;
    display: flex;
    justify-content: center;
}
/* Diseño del boton al momento de cambiar el tamano */
@media(max-width: 992px) {

    .navbar .links,
    .navbar .action_btn {
        display: none;
    }

    .navbar .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }
    body {
        padding: 50px 30px; 
    }
    .logo {
        font-size: 1.2rem;
    }
}

@media(max-width: 576px) {
    .dropdown_menu {
        left: 2rem;
        width: unset;
    }
    body {
        padding: 20px; 
    }
    .habilidades {
        font-size: 24px; 
    }
}

/*----------------------------Sobre mi----------------------------*/
section .sobremi{
    padding: auto;
}

.sobremi {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    padding: 0px 100px;
}
.sobremi .descripcion h1{
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.3;
}
span{
    color: #4b98c4;
}

.descripcion h3 { 
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;

}

.sobremi-img{
    height: auto;
    border-radius: 50%;
    
}

.sobremi-img img{
    position:relative;
    width: 18vw;
    border-radius: 50%;
    box-shadow:0 0 25px solid #3a4a60 ;
    cursor: pointer;
    transition: 0.2s linear; 
}

.sobremi-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-incons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #3a4a60 ;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem;
    transition: 0.3s ease;
}

.social-incons a:hover{
    color: #e4f0f7;
    transform: scale(1.3) #4b98c4;
    background-color:  #4b98c4;
    box-shadow: 0 0 25px  #4b98c4;

}

.habilidades{
    font-size: 34px;
    font-weight:600;
    min-width: 280px;

}

.habilidades span{
    position: relative;
}

.habilidades span::before{
    content: "Desorrallador";
    color:#4b98c4 ;
    animation: words 20s infinite;
}

.habilidades span::after{
    content: "";
    background-color:#e4f0f7;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid #3a4a60 ;
    right: -8;
    animation:cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left:3px solid #4b98c4;
    }
}

@keyframes words{
    0%, 20%{
        content: "Técnico en computadoras";
    }
    21%, 40%{
        content: "Desarollador";
    }
    41%, 60%{
        content: "Investigador";
    }
    61%, 80%{
        content: "Encargado de bodega";
    }
    81%, 100%{
        content: "Electrónico";
    }

}

@media (max-width: 768px) {
    .sobremi {
        flex-direction: column;
        padding: 0 20px; 
        gap: 2rem; 
    }
    .sobremi .descripcion h1 {
        font-size: 2.5rem; 
    }
    .sobremi-img img {
        width: 40vw; 
    }
    .experiencia {
        padding-left: 10px;
    }

    .experience-item {
        padding: 10px;
    }
    .educacion {
        padding: 20px 10px;
        margin: 10px 0;
    }
    .contenido-seccion {
        padding: 10px;
    }

    form input, form textarea {
        font-size: 0.9rem;
    }
}


/*----------------------------Experiencia----------------------------*/

.experiencia {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
    margin-top: 20px;
}

.experiencia h2 {
    color: #1a237e;
    text-align: center;
    margin-top: 20px;
    font-size: 24px;
}

.experience-item {
    background-color: #fdf7f7;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.experience-item h3 {
    color: #1a237e;
    margin: 0;
}

.experience-item h4 {
    color: #333;
    margin: 5px 0;
    font-weight: bold;
}

.experience-item p {
    color: #555;
    margin: 10px 0 0;
}

.timeline {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #333;
}

.dot {
    position: absolute;
    left: -5px;
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
}

/*----------------------------Educacion----------------------------*/

.educacion {
    background-color: #e3f2fd;
    padding: 40px 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #1976d2;
}

.educacion h2 {
    color: #0d47a1;
    text-align: left;
    font-size: 28px;
    margin-bottom: 30px;
    padding-left: 10px;
    border-left: 5px solid #0d47a1;
}

.education-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #b0bec5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.education-item h3 {
    color: #1976d2;
    font-weight: bold;
    margin-top: 0;
    font-size: 20px;
}

.education-item p {
    color: #37474f;
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.6;
}

/*----------------------------Formulario----------------------------*/

.contenido-seccion{
    width: 90%;
    max-width: 1000px;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
}

.contenido-seccion h2 {
    text-align: center;
    font-size: 2em;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.fila {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.col {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px
}

form label {
    font-weight: bold;
    color: #4a4a4a;
    margin-bottom: 5px;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f7f7f7;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #6c63ff;
    background-color: #fff;
}

form .btn {
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    background-color: #6c63ff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form .btn:hover {
    background-color: #5753d4;
}

.col h3 {
    font-size: 1.5em;
    color: #4a4a4a;
    margin-bottom: 15px;
}

.col iframe {
    width: 100%;
    border-radius: 10px;
    border: none;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .fila {
        flex-direction: column;
    }
    .col {
        min-width: 100%;
    }
    .contenido-seccion {
        padding: 1rem;
    }

    form input, form textarea {
        font-size: 1rem;
        width: 100%;
    }

    body {
        font-size: 0.8rem;
    }
}

.pie-pagina{

    padding: 15px;
    text-align: center;
    font-size: 14px;

}


