body{
    margin:0;
    padding: 0;
    font-family: 'Poppins', serif;
}
.container {
    max-width: 100vw;
    margin: 0 auto;
}
.header{
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,40,0.3),rgba(0,0,40,0.3)), url(Images/Background.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
.header p{
    font-weight: 400;
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links{
    padding:2% 2%;
}
nav img{
    width: 150px;
    padding:10% 10%;
}
.nav-links{
    flex: 1; 
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: white;
    text-decoration: none;
    font-size: 18px;
}
.nav-links ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: red;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover::after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
   font-size: 62px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: white;
}
nav.fa{
    display:none;
}
 .fa-times {
        display: none;
    }
.fa-times{
    opacity:0;
}


@media screen and (min-width: 700px) {
    .fa-bars {
        display: none;
    }
    .fa-times{
        display: none;
        opacity: 0;
    }
}


@media screen and (max-width: 700px) {
    nav img{
        width:80px;
    }
    .fa-bars {
        display: inline-block;
        margin-right: 25px;
    }
    .fa-times {
        display: none;
    }
    .nav-links {
        display: none;
        position: fixed;
        background: red;
        opacity: 0;
        height: 100vh;
        width: 150px;
        top: 0;
        right: -100%;
        text-align: left;
        z-index: 2;
        transition: right 0.5s ease;
    }
    .nav-links.active {
        right: 0;
        opacity: 1;
        display: flex;
    }
    #timesIcon.active {
        display: inline-block;
        position: absolute;
        top: 20px;
        left:10px;
    }
    .nav-links ul {
        padding: 30px;
    }
    .nav-links ul li a{
    color: black;
    text-decoration: none;
    font-size: 15px;
}
    nav.fa {
        display: block;
        color: black;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
}


/*------Projects-----*/
.projects{
    width: 80%;
    margin:auto;
    text-align: center;
    padding-top: 40px;
}
h1{
    font-size: 36px;
    font-weight: 600 ;
}
p{
    color:#777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
}

.projects-col {
    flex-basis: 31%; 
    background: #F0F8FF;
    border-radius: 10px;
    margin-bottom: 5%;
    box-sizing: border-box;
    padding: 20px 12px;
    transition: 0.5s;
    text-align: justify;
}
h3{
    text-align:center;
    font-weight:600;
    margin: 10px 0;
}
.projects-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
@media(max-width:700px){
    .row{
        flex-direction:column;
    }
}

/*------Experience-----*/
.experience{
    width: 80%;
    margin:auto;
    text-align: center;
    padding-top: 40px;
}

/*------About Me------*/
.about-me{
    width: 80%;
    margin:auto;
    text-align:center;
    padding-top: 50px;
}
.about-me-col{
    flex-basis: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.about-me-col img{
    width:100%;
    height: auto;
    max-height: 520px;
    display:block;
    object-fit: contain;
    border-radius: 10px;
}
.layer{
    background: transparent;
    height:100%;
    width:100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    background:rgba(226,0,0,0.7);
}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
    
}
.layer:hover h3{
    bottom:49%;
    opacity:1;
}


/*------footer------*/
.footer{
    width: 100%;
    text-align:center;
    padding-top: 90px;
    padding-bottom: 30px;
}

.footer h2{
    margin-bottom:10px;
    margin-top: 20px;
    font-weight: 600;
}
.icons .fa{
    color:#fff;
    margin:0 10px;
    cursor: pointer;
    padding:18px 0;
}
.fa-heart-o{
    color:#f44336;
}
.icons .fa-linkedin, .icons .fa-github {
    font-size: 2.5em; 
    color: black;
}
.experiences-col {
    border: 2px solid #ddd;       /* Borde del recuadro */
    padding: 20px;                /* Espacio interno */
    border-radius: 10px;          /* Bordes redondeados */
    background-color: #fafafa;    /* Fondo suave */
    margin: 15px;                 /* Separación entre recuadros */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Sombra ligera */
    text-align: justify;
}

/* Center embedded PDFs inside experience cards */
.experiences-col iframe{
    display: block;
    margin: 16px auto;
    width: 100%;
    max-width: 560px;
    height: 360px;
    border: none;
}

/* Para que las dos columnas se vean lado a lado */
.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.experiences-col {
    flex: 1;
    min-width: 300px; /* Para que no se rompa en pantallas pequeñas */
}
/* margen para la sección About Me */
section.about-me {
    margin: 2.5rem auto 1.5rem;         /* reduce bottom spacing so section is closer to footer */
    padding: 2rem 1rem;        /* espacio interior */
    max-width: 1100px;
    box-sizing: border-box;
}

/* si alguna regla está anulando el margin, prueba esta versión */
section.about-me.override {
    margin: 4rem auto !important;
    padding: 2rem 1rem !important;
}

/* Smaller specific photo in About Me and spacing */
.about-me-col.photo-small{
    max-width: 280px; /* container narrower for the small photo */
}
.about-me-col.photo-small img{
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}