/* =================================================
   LAYOUT — Header, Hero, Sections, Footer, Grid, Responsive
   ================================================= */

/* ---- Section & Container ---- */
section { padding: 110px 8%; }

.container { max-width: 1300px; margin: auto; }

/* ---- Section Titles ---- */
.section-title { text-align: center; margin-bottom: 70px; }
.section-title h2 { color: var(--blue); font-size: 3rem; margin-bottom: 18px; }
.section-title p { max-width: 700px; margin: auto; line-height: 1.9; }

/* ---- Header ---- */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 999;
    backdrop-filter: blur(14px);
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: var(--shadow);
}

header .logo { display: flex; align-items: center; width: 145px; }
header .logo img { width: 100%; }

header nav { display: flex; align-items: center; gap: 34px; }
header nav ul { list-style-type: none; gap: 1.5rem; }
header nav ul li { display: flex; align-items: center; justify-content: center; }
header nav a { text-decoration: none; color: var(--carbon); font-weight: 500; transition: .3s; }
header nav a:hover { color: var(--blue); }

#nav ul { display: flex; gap: 1.5rem; }

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform-origin: center;
}
/* ---- Hamburger states ---- */
.hamburger.open .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


.mobile-btn { display: none; font-size: 2rem; cursor: pointer; }

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .45)), url("../Assets/fondoMural.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.hero-content { max-width: 720px; }

.hero-label {
    display: inline-block;
    margin-bottom: 26px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #d7fff2;
}

.hero h1 { font-size: 5rem; line-height: 90px; margin-bottom: 28px; }
.hero p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 40px; max-width: 650px; }
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- About ---- */
.about { background: white; }
.work{background-color: white;}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-grid-new { display: flex; flex-direction: column; gap: 60px; }
.about-text p { line-height: 1.9; max-width: 900px; margin: 18px auto; }
.about-text p span { color: var(--green); font-weight: 500; }

/* ---- Stats Grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue) 0%, #085882 50%, var(--green) 100%);
    box-shadow: 0 30px 60px rgba(11, 120, 179, .25);
}

/* ---- Team Grid ---- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }

/* ---- Footer ---- */
footer { background: #1d1d1b; color: white; padding: 80px 8%; }

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }

footer h3 { margin-bottom: 20px; }
footer p, footer a { color: #ccc; text-decoration: none; line-height: 1.9; }
footer a:hover { color: white; }

.copyright {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    color: #888;
}

.dev-credit {
    color: #555;
    font-size: .8rem;
}

.dev-credit a {
    color: #555;
    text-decoration: none;
    transition: color .3s;
}

.dev-credit a:hover {
    color: white;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {

    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    #nav {
        position: absolute;
        top: 90px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 420px;
        background: rgb(255, 255, 255);
        box-shadow:
            0 10px 30px rgba(0,0,0,.12);

        display: none;
        overflow: hidden;
        opacity: 0;
        transform:
            translateX(-50%)
            translateY(-10px);

        transition:
            opacity .25s ease,
            transform .25s ease;

        padding: 1rem;
    }

    #nav.active {
        display: block;
        opacity: 1;

        transform:
            translateX(-50%)
            translateY(0);
    }

    #nav ul {
        display: flex;
        flex-direction: column;
        gap: .6rem;

        padding: 0;
        margin: 0;
        list-style: none;
    }

    #nav li {
        width: 100%;
    }

    #nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem;
        border-radius: 14px;
        text-decoration: none;
        font-weight: 600;

        /* color: #222; */

        transition:
            background .2s ease,
            transform .15s ease;
    }

    #nav a:hover,
    #nav a:active {
        background: rgba(0,0,0,.06);
        transform: scale(.98);
    }

    .mobile-btn {
        display: block;
    }

    .hero h1 {
        font-size: clamp(3rem,12vw,5rem);
    }

    .hero p{
        line-height: 1.5;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero{
        background-attachment: unset !important;
        min-height: 100svh !important;
        min-height: 100dvh !important;

    }

    .hero-content{
        padding-top: 100px;
    }



}

@media (max-width: 768px) {
    section { padding: 90px 7%; }
    .section-title h2 { font-size: 2.3rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}