:root {
    --primary-color: #1F1F1F;
    --secondary-color: #f9f3ee;
    --text-color: #F8F8F8;
    --background-color: #1F1F1F;
    --background-secondary-color: #D6E4C1;
    --hover-color: #FFD447;
    --buttons-color: #88AB75;
}/*Root*/
/*Globales*/
html {
    font-size: 62.5%;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}
*, *::before, *::after {
    box-sizing: inherit;
}
/*Scroll snap*/
.container,
.nav-principal,
.form {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

body {
    font-size: 16px; /* 1rem = 10px */
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings:
        "slnt" 0;
    color: var(--text-color);
    background-color: var(--background-color);
        
}
h1 {
    font-size: 4rem; /* 24px */
    color: var(--text-color);
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    text-align: center;
}
h2 {
    font-size: 3rem; /* 20px */
    font-weight: bold;
    font-optical-sizing: auto;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    text-align: center;
}
h3 {
    font-size: 2rem; /* 16px */
    text-align: center;    
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}
.button {
    background-color: var(--background-color);
    color: var(--secondary-color);
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    font-size: 3rem;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    text-decoration: none;
    appearance: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    border: none;
}
.button:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--buttons-color);
    background-color: var(--background-secondary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.container {
    max-width: 120rem; /* 1200px */
    margin: 0 auto;
    margin-top: 3rem;
}


/*Utils*/
.width-100 {
    width: 100%;
}
.flex {
    display: flex;
}
.aling-right {
    justify-content: flex-end;
}
.nav-backg {
    background-color: var(--background-color);
    
}

/*Titulos*/
h1.title {
    text-align: center;   
    font-size: 3.8rem;
    color: var(--text-color);
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    animation: fadeIn 1s ease-in-out;
}
.title span {
    font-size: 2rem;
    color: var(--text-color);
}
/*Barra de navegacion*/

.nav-principal {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    background-color: var(--background-color);
    padding: 1rem 2rem;
    border-radius: 10px;
}
.nav-principal a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 2rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    animation: slideIn 0.8s ease-out forwards;
    transform: scale(1.05);
    transition: all 0.3s ease;
    
}
.nav-principal a:hover {
    background-color: var(--background-secondary-color);
    color: var(--primary-color);
    padding: auto;
    border-radius: 5px;
    transform: scale(1.05);
    transition: all 0.3s ease;
    box-shadow: 0px 0px 10px 0px var(--buttons-color);
}

/*Hero container*/
.hero {
    text-align: center;
    background-image: url('../img/hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 550px;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.content-hero {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    
    box-shadow: 0px 0px 10px 0px var(--buttons-color);
    
}

.content-hero:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--secondary-color);
}

/*Ubicaion svg*/
.ubi {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
}
.ubi p{
    font-size: 2rem;
    margin-left: 1rem;
}
/*Servicios*/


.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 2rem;
    margin-bottom: 4rem;

}

.service {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service .icon {
    width: 15rem;
    height: 15rem;
    margin-bottom: 1rem;
    background-color: var(--buttons-color);
    padding: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    box-shadow: 0px 0px 10px 0px var(--buttons-color);
}
.service h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: bold;
}
.service p {
    line-height: 2;
}
.service:hover {
    transform: translateY(-10px);
    box-shadow: 0px 0px 20px 0px var(--buttons-color);
}
/* Experiencia*/
.experience {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.2rem;
}
.experience .job {
    position: relative;
    padding: 0.9rem 0.9rem;
    border-radius: 8px;
    background: rgba(31,31,31,0.55);
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 6px 18px rgba(0,0,0,0.55);
    overflow: hidden;
    transform: translateY(6px);
    opacity: 0;
    animation: jobEnter 360ms ease forwards;
}
.experience .job:nth-child(1){ animation-delay: .02s; }
.experience .job:nth-child(2){ animation-delay: .06s; }
.experience .job:nth-child(3){ animation-delay: .10s; }
.experience .job h3{
    margin: 0 0 0.25rem 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 600;
}
.experience .job h3::before{
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 0.8rem;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--buttons-color);
    box-shadow: 0 3px 8px rgba(136,171,117,0.15);
}
.experience .job ul{
    margin: 0;
    padding-left: 1rem;
    color: var(--text-color);
    line-height: 1.5;
    font-size: 1.5rem;
}
.experience .job li{
    margin-bottom: 0.35rem;
}
.experience .job:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.01);
}


.experience .job {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 1.8rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));
    border: 1px solid rgba(136,171,117,0.08); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.55);
}
.experience .job h3 {
    margin: 0 0 0.4rem 0;
    color: var(--secondary-color);
    font-size: 1.8rem;
}
.experience .job ul {
    margin: 0;
    padding-left: 1.4rem;
    color: var(--text-color);
    line-height: 1.9;
}
.experience .job li {
    margin-bottom: 0.6rem;
}
/*Contacto*/
.form{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border-radius: 1rem;
    background-color: var(--background-secondary-color);
    box-shadow: 0px 0px 10px 0px var(--buttons-color);
    color: var(--primary-color);
    width: min(60rem, 100%);
    margin: auto;
}
.form legend {
    text-align: center;
    font-size: 2.4rem;
    text-transform: uppercase;
    font-weight: 700;
}
.form fieldset {
    border: none;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 600px;
}

.form-campos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.campo-form {
    margin-bottom: 1rem;
}

.campo-form label {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}
.campo-form textarea{
    height: 16rem;
    resize: none;
}



/*Proyectos*/

.proyectos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 2rem;
    margin-bottom: 4rem;
}
.proyectos-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-bottom: 2rem;
    background-color: var(--background-secondary-color);
    color: var(--secondary-color);
    width: min(30rem, 100%);
    box-shadow: 0px 0px 10px 0px var(--buttons-color);
}
.proyectos {
    gap: 1.2rem; 
    align-items: stretch;
    animation: proyectosFadeIn 520ms ease both;
}
.proyectos-item {
    padding: 1.2rem 1.4rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.03));
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 10px 28px rgba(0,0,0,0.45);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2,.9,.3,1), box-shadow 260ms, opacity 260ms;
}
.proyectos-item:nth-child(1){ animation: proyectoEnter 420ms ease .04s forwards; }
.proyectos-item:nth-child(2){ animation: proyectoEnter 420ms ease .08s forwards; }
.proyectos-item:nth-child(3){ animation: proyectoEnter 420ms ease .12s forwards; }
.proyectos-item:nth-child(4){ animation: proyectoEnter 420ms ease .16s forwards; }
.proyectos-item:nth-child(5){ animation: proyectoEnter 420ms ease .20s forwards; }
.proyectos-item:nth-child(6){ animation: proyectoEnter 420ms ease .24s forwards; }
.proyectos-item:hover{
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 22px 60px rgba(0,0,0,0.55), 0 6px 18px rgba(136,171,117,0.08);
}
.proyectos-img {
    width: 15rem;
    height: 15rem;
    margin-bottom: 1rem;
    background-color: var(--buttons-color);
    padding: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    box-shadow: 0px 0px 10px 0px var(--buttons-color);
}


.input-text {
    padding: 1.5rem;
    font-size: 1.6rem;
    border: 1px solid var(--buttons-color);
    border-radius: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    border: none;
}

/*Footer*/
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
    margin-top: 4rem;
    font-size: 1.4rem;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    box-shadow: 1px 0px 5px 0px var(--buttons-color);
}



/*Mobiles*/
@media(max-width: 480px) {
    .nav-principal {
        flex-direction: column;
    }
    .nav-backg {
        background-attachment: fixed;
    }
    .nav-principal a {
        margin: 0.5rem 0;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .hero {
    text-align: center;
    background-image: url('../img/hero2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 450px;
    }
}

@media(min-width:900px){
    .proyectos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
    .proyectos-item { width: auto; }
}
/*Desktop*/
@media (min-width: 768px) {
  .nav-principal {
    justify-content: space-between;
  }
  .width-100 {
    width: auto;
  }
  .form-campos {
    display: grid;
    grid-template-columns: 1fr 1fr ;
    grid-template-rows: auto auto 20rem;
    column-gap: 1rem;
  }
  .campo-form:nth-child(3), .campo-form:nth-child(4) {
    grid-column: 1 / 3;
  }
  .experience .job {
        grid-template-columns: 1fr 3fr;
        align-items: center;
    }
    .experience .job h3 { grid-column: 1 / 3; }
    .experience .job ul { grid-column: 1 / 3; }

}
/*Animaciones*/
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes jobEnter{
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes proyectoEnter{
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes proyectosFadeIn{
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.shadow {
    box-shadow: 3px 4px 10px 4px rgba(136,171,117,0.78);
    -webkit-box-shadow: 3px 4px 10px 4px rgba(136,171,117,0.78);
    -moz-box-shadow: 3px 4px 10px 4px rgba(136,171,117,0.78);
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 1rem;
    }