* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f7f3ee;
    color: #1f1f1f;
}

/* ====================== */
/* GENERAL */
/* ====================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-subtitle {
    color: #c44536;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #7f1d1d;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled .nav-links a {
    color: #1f1f1f;
}

.header.scrolled .nav-links a:hover {
    color: #c44536;
}

.navbar {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo {
    height: 200px;
    width: 200px;
}

#humedales {
    height: 200px;
    width: 200px;
}

/* ====================== */
/* LOGO */
/* ====================== */

.logo {
    position: relative;

    width: 220px;
    height: 60px;

    display: flex;
    align-items: center;
}

.logo img {
    position: absolute;

    height: 160px;
    width: auto;

    transition: 0.35s ease;

    left: 0;
}

/* LOGO BLANCO */

.logo-white {
    opacity: 1;
}

/* LOGO NEGRO */

.logo-dark {
    opacity: 0;
}

/* CUANDO SCROLLEA */

.header.scrolled .logo-white {
    opacity: 0;
}

.header.scrolled .logo-dark {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #f8d9d3;
}

.nav-links a:hover {
    color: #c44536;
}

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

/* HERO */
.hero {
    height: 100vh;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: url("imagenes/bitacora2.jpeg") center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(rgba(60, 20, 20, 0.60),
            rgba(20, 20, 20, 0.45));
}

.hero-content {
    position: relative;
    z-index: 2;

    width: 90%;
    max-width: 900px;

    color: white;
    text-align: center;
}

.hero-tag {
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #f8d9d3;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-note {

    margin-top: 22px;
    margin-bottom: 22px;
    font-size: .95rem;

    letter-spacing: 1px;

    opacity: .8;

    font-weight: 500;

    color: inherit;

}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* TIME LINEA */

.timeline {

    max-width: 1100px;

    margin: auto;

    padding: 100px 8%;

}


.entry {

    display: grid;

    grid-template-columns:

        140px 1fr 320px;

    gap: 40px;

    padding: 50px 0;

    border-bottom:

        1px solid rgba(0, 0, 0, .08);

    align-items: center;

}

.date {

    color: #D62839;

    font-weight: 700;

    min-width: 120px;

}

/* ========================= */
/* IMAGEN TIMELINE */
/* ========================= */

.entry-image {

    width: 100%;

    max-width: 320px;

    height: 180px;

    margin-left: auto;

    border-radius: 26px;

    overflow: hidden;

    background: #f8f8f8;

    box-shadow:

        0 18px 45px rgba(0, 0, 0, .06);

    display: flex;

    align-items: center;

    justify-content: center;

}


/* IMAGEN */

.entry-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: .35s;

}


.entry-image:hover img {

    transform: scale(1.03);

}




.footer {
    padding: 40px;
    text-align: center;

    background: linear-gradient(90deg,
            #1f1f1f,
            #7f1d1d);

    color: white;
}

.footer-open {

    text-align: center;

    font-size: .95rem;

    line-height: 1.8;

    opacity: .7;

    padding-bottom: 30px;

}
.person-link {

    color: #c44536;

    text-decoration: none;

    font-weight: 600;

    position: relative;

    transition: .25s;

}


/* línea inferior */

.person-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -3px;

    width: 100%;

    height: 1.5px;

    background: #c44536;

    transform: scaleX(.75);

    opacity: .7;

    transition: .25s;

}


.person-link:hover {

    color: #8d2418;

}


.person-link:hover::after {

    transform: scaleX(1);

    opacity: 1;

}


/* ================================= */
/* RESPONSIVE — TODOS LOS CELULARES */
/* ================================= */

@media (max-width:1100px) {

    .hero h1 {

        font-size: 4rem;

    }

    .entry {

        grid-template-columns:
            120px 1fr 260px;

    }

    .logo img {

        height: 130px;

    }

}


/* TABLET */

@media (max-width:850px) {

    .navbar {

        height: 80px;

    }

    .logo {

        width: 160px;

        height: 50px;

    }

    .logo img {

        height: 110px;

    }


    /* HERO */

    .hero {

        padding:
            0 24px;

        min-height: 100svh;

    }

    .hero-content {

        width: 100%;

    }

    .hero h1 {

        font-size: 3.4rem;

    }

    .hero-description {

        font-size: 1rem;

    }


    /* TIMELINE */

    .timeline {

        padding:

            70px 24px;

    }

    .entry {

        grid-template-columns:

            1fr;

        gap: 18px;

        padding: 42px 0;

    }


    .date {

        font-size: .95rem;

    }


    .entry-image {

        max-width: 100%;

        height: 220px;

        margin: 0;

    }


    /* DESTACADO */

    .featured {

        grid-template-columns:

            1fr;

        padding:

            90px 24px;

        gap: 40px;

    }


    .featured-image img {

        height: 320px;

    }

}


/* CELULARES */

@media (max-width:600px) {

    .header {

        padding: 0;

    }


    .navbar {

        width: 92%;

        height: 72px;

    }


    .logo {

        width: 120px;

        height: 40px;

    }


    .logo img {

        height: 88px;

    }


    /* HERO */

    .hero {

        height: 100svh;

        padding:
            0 18px;

    }


    .hero-tag {

        font-size: .75rem;

    }


    .hero h1 {

        font-size: 2.8rem;

        line-height: 1;

    }


    .hero-note {

        font-size: .8rem;

    }


    .hero-description {

        font-size: .95rem;

        line-height: 1.7;

    }


    /* TIMELINE */

    .timeline {

        padding:

            55px 18px;

    }


    .entry {

        padding: 35px 0;

    }


    .content h3 {

        font-size: 1.6rem;

    }


    .content p {

        font-size: .95rem;

        line-height: 1.7;

    }


    .entry-image {

        height: 180px;

        border-radius: 20px;

    }


    /* FOOTER */

    .footer {

        padding: 60px 24px;

    }


    .footer-open {

        font-size: .85rem;

        line-height: 1.6;

    }

}


/* CELULARES MUY CHICOS */

@media (max-width:380px) {

    .hero h1 {

        font-size: 2.2rem;

    }

    .logo img {

        height: 74px;

    }

    .entry-image {

        height: 150px;

    }

}