/* ==========================
   1S. BASE
========================== */

html{

    scroll-behavior:smooth;

}

body{

    font-family:var(--font-main);

    color:var(--color-primary);

    background:var(--color-white);

    line-height:var(--line-height);

}

body.menu-open {
    overflow: hidden;
}

a{

    color:inherit;

    text-decoration:none;

}

ul{

    list-style:none;

}

button{

    border:none;

    background:none;

    font:inherit;

    cursor:pointer;

}

.section{

    padding:var(--space-xl) 0;

}

/* ==========================
   2S. LAYOUT
========================== */

.container{

    width:min(90%, var(--container-width));

    margin-inline:auto;

}

.grid-2{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:3rem;

    align-items:center;

}

.grid-3{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:2rem;

}

.grid-4{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:2rem;

}

.flex{

    display:flex;

}

.flex-center{

    display:flex;

    justify-content:center;

    align-items:center;

}

/* ==================================================
   3S. IMATGES + LOGO
================================================== */

.img-cover{

    width:100%;

    height:100%;

    object-fit:cover;

}

.img-rounded{

    border-radius:var(--radius);

}

/* ==========================
   4S. MENÚ
========================== */

.nav-list{

    display:flex;

    gap:2rem;

}

.nav-list a{

    font-weight:500;

    transition:var(--transition);

}

.nav-list a:hover{

    color:var(--color-accent);

}

/* ==========================
   5S. BOTÓ HAMBURGUESA
========================== */

.menu-toggle{

    display:none;

    width:48px;

    height:48px;

    position:relative;

    cursor:pointer;

}

.menu-toggle span{

    position:absolute;

    left:10px;

    width:28px;

    height:3px;

    background:var(--color-primary);

    transition:.3s ease;

}

/* Primera línia */

.menu-toggle span:nth-child(1){

    top:14px;

}

/* Segona línia */

.menu-toggle span:nth-child(2){

    top:22px;

}

/* Tercera línia */

.menu-toggle span:nth-child(3){

    top:30px;

}

/* ==========================
   6S. HAMBURGUESA ACTIVA
========================== */

.menu-toggle.active span:nth-child(1){

    transform:rotate(45deg);

    top:22px;

}

.menu-toggle.active span:nth-child(2){

    opacity:0;

}

.menu-toggle.active span:nth-child(3){

    transform:rotate(-45deg);

    top:22px;

}

/* ==========================
   7S. HERO
========================== */

.hero{

    position:relative;

    overflow:hidden;

    min-height:calc(100vh - 90px);

    display:flex;

    align-items:center;

    padding:4rem 0;

}

.hero-background{

    position:absolute;

    inset:0;

    pointer-events:none;

    overflow:hidden;

}

.hero-circle{

    position:absolute;

    border-radius:50%;

    filter:blur(90px);

    opacity:.08;

}

.hero-circle-1{

    width:380px;

    height:380px;

    background:var(--color-accent);

    top:-120px;

    right:-100px;

}

.hero-circle-2{

    width:280px;

    height:280px;

    background:#4F46E5;

    bottom:-120px;

    left:-80px;

}

.hero .container{

    position:relative;

    z-index:2;

}

.hero-content{

    max-width:650px;

}

.hero-grid{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:4rem;

    align-items:center;

}

.hero-image{

    position:relative;

    height:650px;

    overflow:hidden;

    border-radius:24px;

    box-shadow:

        0 25px 60px rgba(0,0,0,.08);

}

.hero-image img{

    transition:transform .6s ease;

}

.hero-image:hover img{

    transform:scale(1.03);

}

/* ==========================
   EMPRESA
========================== */

.empresa-content{

    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:1.5rem;

}

.empresa-content p{

    color:var(--color-secondary);

    line-height:1.8;

}

.empresa-image{

    min-height:500px;

}

.empresa-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    box-shadow:0 20px 50px rgba(0,0,0,.08);

}

/*.hero-card{

    position:absolute;

    bottom:30px;

    left:-30px;

    background:white;

    padding:1.5rem;

    border-radius:18px;

    box-shadow:0 20px 40px rgba(0,0,0,.12);

    max-width:280px;

    animation:float 5s ease-in-out infinite;
/* 
    display:flex;

    flex-direction:column;

    justify-content:center;

    gap:1rem;
/*
    font-size:1.8rem;

    font-weight:700;

    line-height:1.2;

    margin:0;
}

.hero-card-tag{

    display:inline-block;

    margin-bottom:.8rem;

    padding:.35rem .8rem;

    border-radius:999px;

    background:rgba(0,110,255,.08);

    color:var(--color-accent);

    font-size:.85rem;

    font-weight:600;

}

.hero-card h3{

    margin-bottom:.5rem;

    font-size:1.2rem;

}

.hero-card p{

    color:var(--color-secondary);

    line-height:1.6;

    font-size:.95rem;

    margin:0;

} */