@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'); /*importo la fuente que voy a usar en la web*/


/*características generales*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; 
    scroll-padding-top: 70px;

}
:root {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #6B7280;
    --color-titles: black;
    --space-large: 2rem;
    --color-border: #e0e0e0; 
    --fs-sm: clamp(0.8rem, 0.18vi + 0.75rem, 0.89rem);
    --fs-base: clamp(1rem, 0.38vi + 0.91rem, 1.19rem);

}
body {
    font-size: var(--fs-base);
}

/*edición de la cabecera:logo, título y menú*/

.header-horizontal {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky;
    top: 0;
    width: 100%; 
    z-index: 100; 
    background-color: rgba(255, 255, 255, 0.84);
    padding: 10px 20px; 
    border: 0.75px solid #e0e0e0;
    border-right: none;
    margin: 0px;
}
    
.logo-title {
    display:flex;
    align-items: center;
    gap: 10px;
}

#logo {
    width: 6%;
    height: 6%;
}

#title {
    font-family: 'Inter', sans-serif;
    color: var(--color-titles);
}

nav ul {
    display:flex;
    list-style: none;
    text-decoration: none;
    gap: 30px;
    padding-right: 10px;
}

.menu a{
    text-decoration: none;
    color: #6B7280;
    text-align: center;
    white-space: nowrap;
}

.menu a:hover {
    color:#111827;
}

/*edición de la Hero Section*/

.hero-section{
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding-top: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-picture img{
    width: 100%;
    height: auto;
    border-radius: 20px;
}

h1{
    color: var(--color-titles);
    margin-bottom: 0.5rem;
    font-size: 2.5em;
}

#profesion{
    font-size: 1.5rem;
    color: #6B7280;
}

h2{
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--color-titles);
}

.descripcion{
    margin-bottom: 1rem;
    line-height: 1.75;
}

.contenedor-botones{
    display: flex;
    gap:20px;
}

.boton1, .boton2{
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px; 
    transition: all 0.3s ease; 
    text-align: center;
}

.contenedor-botones a{
    text-decoration: none;
    
}

.boton1 {
    background-color: #05070a; 
    border: 2px solid #05070a;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.boton2 {
    background-color: white;
    border: 1px solid #e5e7eb;
    color: black;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/*edición del apartado dedicado a Proyectos*/

#proyectos {
    margin-top:2rem;
    
    background-color:#F5F6F7;
    padding-top: 5rem;
    padding-bottom:2rem;
}

#proyectos h2{
    color: var(--color-titles);
    margin-bottom:1rem;
    display:flex;
    align-items: center;
    justify-content: center;
}

#proyectos p{
    display:flex;
    justify-content: center;
   
}

.caja-proyectos{
    margin: var(--space-large);
    padding: 20px 0 20px 0;
    border: 2px  solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.proyectos{
    
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    flex: 1 1 calc(50% - 20px);
    
}

.caja-proyectos img {
    width: 100%;    
    display: block; 
    height:fit-content;  
}

.caja-proyectos h3, 
.caja-proyectos p, 
.caja-proyectos  {
    padding-left: 20px;   
    padding-right: 20px;  
}

.caja-proyectos p {
    line-height: 1.5;
    
}

.caja-proyectos h3{
    color: black;
    margin: 20px 0 20px 0;
}

.botones-alineacion{
    display:flex;
    justify-content: center;
}

.boton-proyecto{
   
    margin:20px 10px 20px 10px;
    padding: 6px 8px 6px 8px;
    color: var(--color-titles);
    background-color: #ebeff7;
    border-radius:10px;
    font-family: 'Inter', sans-serif;

}

/*edición de la sección 'Sobre mí'*/

.about-container {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 80px;
    margin-top:40px;
    max-width: 1200px;
    margin: 0 auto;
}

.marco-imagen {
    width: 100%;       
    height: 650px;     
    overflow: hidden;  
    border-radius: 15px;
    align-items:center;
    justify-content: center; 
}

.marco-imagen img {
    width: 100%;       
    height: 100%;      
    object-fit: cover;
    object-position: center;
    display: block;
}

#about p{
    line-height: 2;
    text-align: left;
    margin-bottom: 1em;
}

.tecnologias-titulo{
    color: var(--color-titles);
    font-family: 'Inter', sans-serif;
    font-weight: bold;
}

#about button {
    margin:0 10px 0 10px;
    padding: 15px;
    border-radius:10px;
    color: var(--color-titles);
    background-color: #ebeff7; 
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border:none;
}

/*edición de la sección Contacto*/

#contacto {
    padding-top: 80px;
    background-color:#F5F6F7;
    border-bottom: 1px solid var(--color-border);
}

.contact-header{
    display:flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    margin-bottom: 1rem;
}

form {
    padding: 0 3rem 3rem 3rem;
}

form fieldset {
    padding:3rem;
    border-radius:10px;
    border: 0.75px solid #e0e0e0;
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    grid-template-rows: auto auto auto; 
    max-width: 800px;
    margin: 0 auto;
}

.texto-form {
    grid-column: span 2;
}

.datos-form, .texto-form {
    display: flex;
    flex-direction: column;
}

.datos-form label, .texto-form label {
  margin-bottom: 10px;
  color: var(--color-titles);
  font-weight: bold;
}

.texto-form button {
    margin: 25px 0 0 0;
    padding: 12px 16px 12px 16px;
    border-radius:10px;
    background-color: var(--color-titles);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    font-size: 1rem;
}

#nombre, #email, #mensaje {
    padding: 12px 16px 12px 16px;
    border: 0.66px solid #e0e0e0;
    background-color: #F5F6F7;
    font-size: 1rem;
}

#mensaje {
    width: 100%;       
    height: 200px;     
    padding: 12px;
    border-radius: 8px;
    resize: vertical;  
    vertical-align: top;
}

.linea-horizontal {
    border:0 0 2px 0;
    padding: 10px 0 10px 0;
}

.divisor {
    grid-column: span 2;
    border: 0;
    border-top: 0.66px solid var(--color-border); 
    margin-top: 5px;           
    width: 100%;               
}

.contacto-autor{
    grid-column: span 2;
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    text-decoration: none;
    color: #6B7280;
}

.contacto-autor a:hover{
    transform: translateY(-3px);
    color: #494e59; 
}

.datos-autor{
    display: flex;
    align-items: center;
}

/*edición del footer*/
footer{
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer a{
    text-decoration: none;
    color: #6B7280;
}

footer a:hover {
    color: #494e59;        
    transform: translateY(-3px); 
    display: inline-block;  
}

.enlace {
    display: flex;
    gap:20px;
}

/*configuración de las características responsive de la web*/

@media (max-width: 1200px){
    .menu {
        width:100%;
        flex-wrap: wrap;
        text-align: center;
    }
    nav ul li {
        margin-left: 20px;
    }

    .hero-section, .about-container, #proyectos, .caja-proyectos {
        padding-left: 5%;
        padding-right: 5%;
    }

}

@media (max-width: 900px){ 
    h1 { font-size: 2rem; }
    .hero-section, .about-container { 
        gap: 20px; 
    }
     
    form fieldset {
        grid-template-columns: 1fr;
    }

    .texto-form, .divisor, .contacto-autor {
        grid-column: span 1;
    }
}


@media (max-width: 768px){

    .menu ul li a {
        white-space: nowrap; 
    }

    nav ul {
        gap: 10px; 
        justify-content: center;
        flex-wrap: nowrap; /
    }

    .menu a {
        font-size: 0.9rem;
    }
   
    .hero-section, .about-container, .caja-proyectos {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-picture img {
        width: 70%;
        margin: 0 auto;
    }

    .contenedor-botones {
        justify-content: center;
    }

    .about-container {
        display: flex;
        flex-direction: column;
    }

    .marco-imagen {
        height: 350px; 
        width:100%;
        margin-bottom: 20px;
    }

    .marco-imagen img{
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center calc(25%);
    }
    
    #about p {
        text-align: center;
    }
}


@media (max-width:575px){

    body{
        font-size: var(--fs-sm);
    }

    .header-horizontal {
        flex-direction: column;
        justify-content: center;
        align-items: center; 
        text-align: center;
        gap: 15px;
    }

    .logo-title {
        flex-direction: column; 
        justify-content: center;
        width: 100%;
    }

    #logo {
        width:80px;
        height: 80px;
    }

    #title{
        display: none;
    }

    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contenedor-botones {
        flex-direction: column;
        width: 100%;
    }
    
    .boton1, .boton2 {
        width: 100%;
    }


    .proyectos img {
        height: auto;
    }
    
    footer {
        flex-direction: column;
        gap: 10px;
    }
}






