/* ==========================================================
   RESET
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Montserrat',sans-serif;
    color:#222;
    background:#fff;
    overflow-x:hidden;

}

img{

    display:block;
    width:100%;

}

a{

    text-decoration:none;
    color:inherit;

}

/* ==========================================================
   VARIABLES
========================================================== */

:root{

    --primary:#1E1E1E;
    --gold:#C9A96A;
    --gray:#666;
    --light:#F8F8F8;
    --white:#FFFFFF;

    --container:1300px;

}

/* ==========================================================
   CONTENEDOR
========================================================== */

.container{

    width:90%;
    max-width:var(--container);
    margin:auto;

}

/* ==========================================================
   BOTON
========================================================== */

.btn{

    display:inline-block;

    padding:16px 35px;

    background:var(--gold);

    color:white;

    border-radius:50px;

    font-weight:600;

    transition:.35s;

}

.btn:hover{

    background:#b88d45;

    transform:translateY(-3px);

}

header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    transition:.35s;

    background:rgba(255,255,255,.94);

    backdrop-filter:blur(10px);

    border-bottom:1px solid transparent;

}

header.scrolled{

    border-color:var(--border);

    box-shadow:0 5px 25px rgba(0,0,0,.05);

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:90px;

}

.logo{

    display:flex;

    align-items:center;

    gap:15px;

}

.logo img{

    width: 100px;

}

.logo span{

    font-size:1.3rem;

    font-weight:700;

    letter-spacing:2px;

    color:#202020;

}

nav ul{

    display:flex;

    gap:45px;

}

nav a{

    font-weight:600;

    color:#404040;

    position:relative;

}

nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.35s;

}

nav a:hover::after{

    width:100%;

}

.menu-toggle{

    display:none;

}


/* ==========================================================
   HERO
========================================================== */

.hero{

    position:relative;

    width:100%;

    height:100vh;

    background:url("../assets/img/fondo.jpg") center center/cover;

    display:flex;

    align-items:center;

}

.overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.45)
    );

}

.hero-content{

    position:relative;

    width:90%;

    max-width:1300px;

    margin:auto;

    color:white;

}

.developer{

    display:inline-block;

    color:var(--gold);

    letter-spacing:4px;

    font-weight:700;

    margin-bottom:20px;

}

.hero h1{

    font-size:82px;

    margin-bottom:25px;

}

.hero p{

    max-width:650px;

    font-size:20px;

    line-height:1.8;

    margin-bottom:45px;

}

/* ==========================================================
   HISTORIA
========================================================== */

.history{

    padding:120px 0;

}

.history .container{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:80px;

    align-items:center;

}

.history-image{

    overflow:hidden;

    border-radius:20px;

}

.history-image img{

    transition:.5s;

}

.history-image:hover img{

    transform:scale(1.05);

}

.history-content span{

    color:var(--gold);

    font-weight:700;

    letter-spacing:3px;

}

.history-content h2{

    margin:20px 0;

    font-size:46px;

    line-height:1.3;

}

.history-content p{

    color:var(--gray);

    line-height:2;

    font-size:17px;

}

/* ==========================================================
   TITULO DE SECCIONES
========================================================== */

.section-title{

    text-align:center;

    max-width:800px;

    margin:0 auto 80px;

}

.section-title span{

    color:var(--gold);

    font-weight:700;

    letter-spacing:4px;

}

.section-title h2{

    margin:20px 0;

    font-size:48px;

}

.section-title p{

    color:var(--gray);

    line-height:1.8;

}

/* ==========================================================
   PROYECTOS
========================================================== */

.projects{

    padding:120px 0;

    background:#fafafa;

}

.project{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

    margin-bottom:120px;

}

.project.reverse .project-image{

    order:2;

}

.project.reverse .project-content{

    order:1;

}

.project-image{

    overflow:hidden;

    border-radius:25px;

}

.project-image img{

    transition:.5s;

}

.project-image:hover img{

    transform:scale(1.05);

}

.project-content span{

    color:var(--gold);

    font-weight:700;

    letter-spacing:3px;

}

.project-content h3{

    margin:20px 0;

    font-size:42px;

}

.project-content p{

    margin-bottom:35px;

    color:var(--gray);

    line-height:2;

}

/*==========================================================
FOOTER
==========================================================*/

footer{

    background:#1E1E1E;

    color:white;

    padding:80px 0 40px;

}

footer .container{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:25px;

}

.footer-logo{

    display:flex;

    align-items:center;

    gap:15px;

}

.footer-logo img{

    width: 100px;

}

.footer-logo span{

    font-size:1.4rem;

    font-weight:700;

    letter-spacing:3px;

}

footer p{

    color:#BDBDBD;

    text-align:center;

    max-width:700px;

    line-height:1.9;

}

footer nav{

    display:flex;

    gap:35px;

}

footer nav a{

    transition:.3s;

}

footer nav a:hover{

    color:var(--primary);

}

footer small{

    color:#8A8A8A;

}