body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 100px;
    background-color: whitesmoke;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #8b2222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 100px;
    box-sizing: border-box;
    z-index: 1000;
}

.logo {
    height: 90px;
    width: auto;
    padding: 16px;
    border-radius: 16px;
    background-color: white;
    box-sizing: border-box;
}

.menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    padding: 0.5em 1em;
    border-radius: 8px;
    transition: 0.3s;
}

.menu li a:hover {
    background-color: white;
    color: #8b2222;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.seccion {
    background-color: white;
    padding: 60px 20px;
    text-align: center;
}

.seccion h2 {
    color: #8b2222;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.seccion p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: auto;
    color: #555;
}

.boton-pdf {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background-color: #8b2222;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: bold;
}

.boton-pdf:hover {
    background-color: #6f1a1a;
}

.comic-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.comic-container img {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #8b2222;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .menu.show {
        padding: 1rem 0;
        max-height: 300px;
        opacity: 1;
    }

    nav {
        flex-wrap: wrap;
        height: auto;
    }

    .logo {
        height: 80px;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .comic-container {
        padding: 10px;
    }
}