/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    font-family: 'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6
}

a {
    text-decoration: none;
    color: inherit
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: 32px
}

h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 500;
    padding-bottom: 12px
}

p {
    font-size: 1rem;
    margin: 10px 0;
    line-height: 1.7
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px
}

.large {
    font-size: 1.125rem
}

/* ===== Botones ===== */
.btn {
    display: inline-block;
    font-size: .95rem;
    padding: 12px 28px;
    letter-spacing: .5px;
    border-radius: 8px
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #fff;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500
}

.btn-outline:hover {
    background: #fff;
    color: #111
}

/* ===== Navbar con menú hamburguesa ===== */
#navbar {
    background: #111927;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000
}

#navbar .nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0
}

#navbar .logo img {
    height: 56px;
    width: 56px;
    object-fit: cover;
    border-radius: 8px
}

#navbar ul,
#navbar ul li {
    float: none !important
}

#navbar ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none
}

.nav-toggle {
    display: none
}

.burger {
    display: none;
    font-size: 28px;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer
}

#navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px
}

#navbar .nav-links li a {
    color: #fff;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px
}

#navbar .nav-links li a:hover {
    background: rgba(255, 255, 255, .1)
}

@media(max-width:768px) {
    .burger {
        display: block
    }

    #navbar .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #111927;
        border-top: 1px solid rgba(255, 255, 255, .08);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease
    }

    #navbar .nav-links li a {
        display: block;
        padding: 14px 12px;
        text-align: center;
        border-radius: 0
    }

    .nav-toggle:checked~.nav-links {
        max-height: 320px
    }
}

/* ===== Showcase / Hero ===== */
#showcase {
    min-height: 60svh;
    display: grid;
    place-items: center;
    text-align: center;
    background: url('background.jpeg') center/cover no-repeat;
    padding: 40px 0
}

/* ===== Projects ===== */
#projects {
    padding: 56px 0
}

.projects-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px
}

.projects-row-details {
    border-radius: 14px;
    overflow: hidden;
    background: #fff
}

.projects-row-details img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transition: transform .25s ease, box-shadow .25s ease
}

.projects-row-details img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18)
}

/* ===== About ===== */
#about {
    padding: 56px 0;
    background: #f9f9f9
}

.about-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px
}

.about-row-experience,
.about-row-me {
    padding: 0
}

.about-row h4 {
    color: #128554
}

/* ===== Contact ===== */
#contact {
    padding: 56px 0
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center
}

.contact-row-icon {
    padding: 8px 12px
}

.contact-row-icon img {
    height: 44px;
    margin-bottom: 8px
}

/* ===== Footer ===== */
#mainfooter {
    background: #fff;
    text-align: center;
    padding: 24px;
    border-top: 1px solid #eee
}

/* ===== Breakpoints ===== */
@media(min-width:600px) {
    #showcase {
        min-height: 62svh
    }

    .projects-row {
        grid-template-columns: repeat(2, 1fr)
    }

    .projects-row-details img {
        height: 280px
    }

    .about-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px
    }

    .about-row-experience,
    .about-row-me {
        padding: 0 12px
    }

    .contact-row {
        grid-template-columns: repeat(3, 1fr);
        text-align: left
    }
}

@media(min-width:900px) {
    .projects-row {
        grid-template-columns: repeat(3, 1fr)
    }

    .projects-row-details img {
        height: 320px
    }

    .about-row-experience,
    .about-row-me {
        padding: 0 20px
    }
}