/*==========================================================
GOOGLE VARIABLES
==========================================================*/

:root{

    --primary:#C32026;

    --primary-dark:#981C20;

    --secondary:#5F5F5F;

    --secondary-light:#A5A5A5;

    --background:#F8F8F8;

    --white:#FFFFFF;

    --text:#4F4F4F;

    --border:#E5E5E5;

    --shadow:0 15px 40px rgba(0,0,0,.08);

    --radius:6px;

}


/*==========================================================
RESET
==========================================================*/

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Montserrat',sans-serif;

    background:var(--background);

    color:var(--text);

    overflow-x:hidden;

}

img{

    width:100%;

    display:block;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}


/*==========================================================
CONTAINER
==========================================================*/

.container{

    width:90%;

    max-width:1280px;

    margin:auto;

}


/*==========================================================
HEADER
==========================================================*/

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{

    min-height:100vh;

    display:flex;

    align-items:center;

    position:relative;

    overflow:hidden;

    background:white;

}

.hero::before{

    content:"";

    position:absolute;

    width:700px;

    height:700px;

    right:-250px;

    top:-200px;

    background:linear-gradient(

        135deg,

        rgba(195,32,38,.08),

        rgba(195,32,38,0)

    );

    transform:rotate(45deg);

}

.hero::after{

    content:"";

    position:absolute;

    width:450px;

    height:450px;

    left:-180px;

    bottom:-180px;

    background:linear-gradient(

        135deg,

        rgba(95,95,95,.05),

        rgba(95,95,95,0)

    );

    transform:rotate(45deg);

}

.hero .container{

    display:grid;

    grid-template-columns:1.2fr .8fr;

    align-items:center;

    gap:80px;

    position:relative;

    z-index:2;

}

.hero-content span{

    display:inline-block;

    color:var(--primary);

    letter-spacing:5px;

    font-weight:700;

    margin-bottom:25px;

}

.hero-content h1{

    font-size:5rem;

    color:#222;

    line-height:1;

    margin-bottom:30px;

    font-weight:800;

}

.hero-content p{

    font-size:1.1rem;

    line-height:2;

    max-width:620px;

    margin-bottom:45px;

}

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;

}

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:18px 38px;

    background:var(--primary);

    color:white;

    font-weight:600;

    transition:.35s;

}

.btn:hover{

    background:var(--primary-dark);

}

.btn-outline{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:18px 38px;

    border:2px solid var(--primary);

    color:var(--primary);

    font-weight:600;

    transition:.35s;

}

.btn-outline:hover{

    background:var(--primary);

    color:white;

}

.hero-image{

    display:flex;

    justify-content:center;

    align-items:center;

}

.hero-image img{

    width:100%;

    max-width:480px;

    animation:float 6s ease-in-out infinite;

}

/*==========================================================
SECTION HEADER
==========================================================*/

section{

    padding:120px 0;

}

.section-header{

    max-width:800px;

    margin:0 auto 80px;

    text-align:center;

}

.section-header span{

    display:inline-block;

    color:var(--primary);

    font-size:.9rem;

    font-weight:700;

    letter-spacing:4px;

    text-transform:uppercase;

    margin-bottom:20px;

}

.section-header h2{

    font-size:3rem;

    color:#202020;

    margin-bottom:25px;

    font-weight:800;

    line-height:1.2;

}

.section-header p{

    color:var(--text);

    line-height:2;

    max-width:700px;

    margin:auto;

}

/*==========================================================
ABOUT
==========================================================*/

.about{

    background:white;

}

.about-content{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:80px;

    align-items:start;

    margin-bottom:70px;

}

.about-text{

    display:flex;

    flex-direction:column;

    gap:30px;

}

.about-text p{

    line-height:2;

    color:var(--text);

}

.about-data{

    display:flex;

    flex-direction:column;

    gap:35px;

}

.about-data div{

    border-left:4px solid var(--primary);

    padding-left:25px;

}

.about-data h3{

    margin-bottom:10px;

    color:#222;

    font-size:1.2rem;

}

.about-data p{

    line-height:1.8;

}

.about-image{

    margin-top:70px;

    display:flex;

    justify-content:center;

}

.about-image img{

    width:100%;

    max-width:420px;

    object-fit:contain;

}

/*==========================================================
PHILOSOPHY
==========================================================*/

.philosophy{

    background:#FAFAFA;

}

.philosophy-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.philosophy-card{

    background:white;

    border:1px solid var(--border);

    padding:45px;

    transition:.35s;

}

.philosophy-card:hover{

    transform:translateY(-8px);

    border-color:var(--primary);

    box-shadow:var(--shadow);

}

.philosophy-card i{

    font-size:2.6rem;

    color:var(--primary);

    margin-bottom:25px;

}

.philosophy-card h3{

    margin-bottom:15px;

    font-size:1.4rem;

    color:#222;

}

.philosophy-card p{

    line-height:1.9;

}

/*==========================================================
PROJECTS
==========================================================*/

.projects{

    background:white;

}

.projects-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:45px;

}

.project-card{

    background:white;

    border:1px solid var(--border);

    transition:.4s;

    overflow:hidden;

    position:relative;

}

.project-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:5px;

    height:0;

    background:var(--primary);

    transition:.4s;

}

.project-card:hover::before{

    height:100%;

}

.project-card:hover{

    transform:translateY(-10px);

    box-shadow:var(--shadow);

}

.project-card img{

    width:100%;

    height:280px;

    object-fit:cover;

    transition:.5s;

}

.project-card:hover img{

    transform:scale(1.05);

}

.project-info{

    padding:35px;

}

.project-info h3{

    font-size:1.8rem;

    color:#222;

    margin-bottom:18px;

    font-weight:700;

}

.project-info p{

    line-height:1.9;

    color:var(--text);

    margin-bottom:35px;

}

.project-info a{

    display:inline-flex;

    align-items:center;

    gap:12px;

    color:var(--primary);

    font-weight:700;

    transition:.35s;

}

.project-info a:hover{

    gap:20px;

}

/*==========================================================
CONTACT
==========================================================*/

.contact{

    background:#F5F5F5;

}

.contact-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}

.contact-card{

    background:white;

    border:1px solid var(--border);

    text-align:center;

    padding:50px 30px;

    transition:.35s;

}

.contact-card:hover{

    border-color:var(--primary);

    transform:translateY(-8px);

    box-shadow:var(--shadow);

}

.contact-card i{

    font-size:2.4rem;

    color:var(--primary);

    margin-bottom:25px;

}

.contact-card h3{

    margin-bottom:15px;

    color:#222;

}

.contact-card p{

    color:var(--text);

    line-height:1.8;

}

/*==========================================================
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:45px;

}

.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;

}

/*==========================================================
GENERAL
==========================================================*/

section{

    overflow:hidden;

}

img{

    user-select:none;

}

::selection{

    background:var(--primary);

    color:white;

}

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#F5F5F5;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}


/*==========================================================
ANIMACIONES
==========================================================*/

@keyframes float{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-12px);

    }

    100%{

        transform:translateY(0);

    }

}