@font-face {
    font-family: "Nimbus Sans";
    src: url("fonts/NimbusSanL-Reg.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Nimbus Sans";
    src: url("fonts/NimbusSanL-Bol.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

body {
    margin: 0;
    font-family: Nimbus Sans, sans-serif;
    background-color: #f5f5f5;
    color: #111;
}

/* HEADER */

.site-header {
    padding: 45px 70px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    letter-spacing: 2px;
}

.logo:hover {
    opacity: 0.6;
}

/* HERO */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero img {
    width: 67%;
    height: 89%;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 10px;
    left: 520px;
    color: black;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-text p {
    margin: 2px 0;
    font-size: 0.97rem;
}

/* POSTS */

.posts-section {
    padding: 30px 40px 60px; /* fixed: was "40 px" */
    max-width: 1100px;
    margin: auto;
}

.posts-section h2 {
    margin-bottom: 20px;
}

.posts-section h1 {
    font-size: 1.5rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.post-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.post-card h3 {
    margin: 15px 0 5px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

a:hover {
    opacity: 0.7;
}

.date {
    color: #666;
    font-size: 0.9rem;
}



/* MOBILE */

@media (max-width: 768px) {


    .site-header {
        padding: 20px 16px;
    }

    /* Hero: imagen arriba, texto debajo (sin posiciĆ³n absoluta) */
    .hero {
        height: auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }

    .hero img {
        width: 100%;
        height: auto;
        max-height: 60vw;
        object-fit: cover;
    }

    .hero-text {
        position: static; /* deja de ser absoluto */
        left: auto;
        max-width: 100%;
        padding: 12px 16px 16px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .posts-section {
        padding: 20px 16px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-card h3,
    .post-card .date {
        padding: 0 4px;
    }


    }
}