
body {
    background-image: url("../img/matias.jfif"); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    
    color: #333;
}
    


.menu {
    list-style: none; /* quita los puntos de la lista */
    display: flex; /* pone los elementos en fila */
    justify-content: center; /* centra los enlaces */
    gap: 30px; /* espacio entre cada opción */
    
    position: fixed; /* fija el menú arriba */
    top: 0; /* lo pega al borde superior */
    left: 0;
    width: 100%; /* ocupa todo el ancho */

    background: #1e3a8a; /* fondo azul */
    padding: 15px 0; /* espacio interno */
    z-index: 1000; /* se asegura de estar por encima */
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s; /* animación suave */
}

.menu a:hover {
    color: #60a5fa; /* color al pasar el mouse */
}


header {
    text-align: center;
    padding: 30px;
    background: white;
}


#Mifoto {
    width: 150px;
    border-radius: 50%; 
    margin-bottom: 15px;
}


section {
    margin: 20px auto; 
    width: 90%;
    max-width: 1000px; 
    background: rgb(243, 239, 239);
    padding: 20px;
    border-radius: 10px;
}


h2 {
    margin-bottom: 15px;
    color: #1e3a8a;
}


.dos-cols {
    display: flex;
    gap: 20px;
}


.tres-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}


.padre-experiencia {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
/*carta*/
figure {
    background: #c5c8cb;
    border-radius: 10px;
    overflow: hidden; 
   text-align:center;
}


figure img {
    width: 100%;
}


figcaption {
    padding: 10px;
}


footer {
    background: #1e3a8a;
    color: white;
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-around;
    padding: 20px;
}


.col-footer {
    width: 300px;
    margin-bottom: 15px;
}


input, textarea {
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
    border: none;
}


#btn-enviar {
    background: #60a5fa;
    color: white;
    cursor: pointer;
}


#btn-enviar:hover {
    background: #2563eb;
}


#return {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e3a8a;
    color: white;
    padding: 10px;
    border-radius: 50%;
}
/* ========================= */
/* COMPUTADOR */
/* ========================= */
@media screen and (min-width: 992px){

    figure img{
        transition: transform .6s ease;
    }

    figure:hover img{
        transform: scale(1.15) rotate(3deg);
    }

}
   

    .menu{
        background: linear-gradient(90deg,#1e3a8a,#2563eb);
        padding: 18px 0;
        box-shadow: 0 4px 15px rgba(0,0,0,.4);
    }

    .menu a{
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    section{
        width: 85%;
    }

    #Mifoto{
        width: 180px;
    }

    figure:hover{
        transform: translateY(-10px);
        transition: .4s;
    }


/* ========================= */
/* TABLET */
/* ========================= */
@media screen and (min-width:701px) and (max-width:991px){
   figure img{
        transition: transform .5s ease;
    }

    figure:hover img{
        transform: scale(1.1);
    }

    body{
        background-attachment: scroll;
    }

    .menu{
        background: linear-gradient(90deg,#4f46e5,#7c3aed);
        border-radius: 0 0 20px 20px;
        padding: 12px 0;
    }

    .menu ul{
        gap: 15px;
    }

    .menu a{
        font-size: .9rem;
    }

    header{
        margin-top: 70px;
    }

    .dos-cols{
        flex-direction: column;
    }

    #Mifoto{
        width: 130px;
    }

    section{
        background: #ffffffee;
    }

    figure{
        transition: .4s;
    }

    figure:hover{
        transform: scale(1.05);
    }
}

/* ========================= */
/* CELULAR */
/* ========================= */
@media screen and (max-width:700px){
     

    body{
        background-attachment: scroll;
    }

    .menu{
        background: linear-gradient(90deg,#dc2626,#f97316);
        padding: 10px;
    }

    .menu ul{
        flex-wrap: wrap;
        gap: 8px;
    }

    .menu a{
        font-size: .8rem;
        background: rgba(255,255,255,.15);
        padding: 6px 10px;
        border-radius: 20px;
    }

    header{
        margin-top: 90px;
    }

    #Mifoto{
        width: 100px;
    }

    .dos-cols{
        flex-direction: column;
    }

    section{
        width: 95%;
        padding: 15px;
        border-radius: 15px;
    }

    .tres-cols{
        grid-template-columns: 1fr;
    }

    .padre-experiencia{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    figure{
        width: 90%;
    }

    footer{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .col-footer{
        width: 100%;
    }

    #return{
        bottom: 10px;
        right: 10px;
    }
}
.gear-icon {
  animation: spin 3s linear infinite;
  will-change: transform;
}

