header,
nav {
    display: flex
}

.card,
body.modal-open {
    overflow: hidden
}

#eqAlbumia,
.limite-aviso,
.mobile-nav a,
nav a {
    font-weight: 700
}

#modalContent,
.card-body,
.limite-aviso,
body,
footer {
    text-align: center
}

#eqAlbumia a,
.card-body a,
.mobile-nav a,
footer a,
nav a {
    text-decoration: none
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif
}

body {
    background-color: #f5f5f5;
    color: #333
}

#eqAlbumia {
    font-size: 1rem;
    color: #11c04b;
    cursor: pointer
}

#eqAlbumia a {
    color: #096114;
    font-size: .95rem
}

header {
    background: #fff;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #838383;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000
}

nav {
    gap: 1rem
}

nav a {
    color: #555;
    font-size: .9rem
}

nav span {
    color: #858585
}

.music-separator {
    display: block;
    width: 70%;
    border-top: 1px solid #747474;
    margin: 10px auto 0
}

nav a:hover {
    text-shadow: 1px 2px 6px #838181;
    transition: .5s;
    color: #535050
}

.imagenes {
    border-bottom: .2rem solid #7a7a7a;
    border-radius: 4px
}

.menu-toggle {
    display: none
}

#image-gallery,
#imageModal.active,
.hero {
    display: flex
}

.hero {
    background-image: url('Leonardo_Phoenix_10_1_Atardecer_en_una_ciudad_estilo_anime_Una_0.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #c2c2c2;
    text-shadow: 0 0 10px rgba(0, 0, 0, .7);
    padding: 1rem
}

.hero h1 {
    font-size: 1.6rem;
    margin-bottom: .1rem
}

@media (max-width:750px) {
    .hero {
        height: 50vh;
        padding: 1rem
    }

    .hero h1 {
        display: none
    }

    .hero p {
        margin-top: 2%
    }
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1rem .2rem
}

.section {
    padding: 1.5rem .9rem
}

.section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    width: 100%
}

#imageModal,
.overlay {
    position: fixed;
    display: none
}

.card {
    background: 0 0/cover #fff;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1)
}

.card-body {
    padding: 1rem;
    background-size: cover
}

.card-body h3 {
    color: #cbd4d0;
    margin-bottom: .5rem;
    font-size: 1rem
}

.card-body a {
    display: inline-block;
    margin-top: .5rem;
    background-color: #6c63ff;
    color: #fff;
    padding: .2rem .5rem;
    border-radius: 45px;
    font-size: .8rem
}

.card-body a:hover {
    background-color: #514ad1;
    padding: .25rem .85rem;
    transition: 350ms
}

.hr_top_imagenes_aleactorias {
    border: 1px solid #a8aba8;
    margin: 0 45% 10px
}

h2.imagenes_aleactorias {
    font-size: 1.2rem
}

p.imagenes_aleactorias_p {
    font-size: 1rem
}

.mobile-nav a {
    margin: 1rem 0;
    color: #333
}

.mobile-nav.active {
    right: 0
}

.overlay {
    inset: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1050
}

.overlay.active {
    cursor: pointer;
    display: block
}

#image-gallery {
    justify-content: center;
    padding: 1rem
}

.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1400px;
    padding: .5rem
}

.image-container img {
    width: 95%;
    height: auto;
    aspect-ratio: 0.9/1.8;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: transform .35s, box-shadow .35s;
    cursor: pointer
}

.image-container img:hover {
    transform: scale(1.02) rotate(.5deg);
    box-shadow: 1px 4px 10px #000
}

#imageModal {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .75);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem 3rem
}

#modalContent {
    background: #d3d3d3;
    border-radius: 10px;
    max-width: 90%;
    max-height: 95%;
    padding: 1rem;
    position: relative
}

#modalContent img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 15px
}

#modalContent .modal-buttons {
    margin-top: .7rem;
    display: flex;
    justify-content: center;
    gap: .7rem
}

#modalContent .modal-buttons button {
    padding: .4rem .8rem;
    border: none;
    border-radius: 10px;
    background-color: #11c04b;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: background-color .5s;
    font-size: .7rem
}

#modalContent .modal-buttons button:hover {
    background-color: #0a8934
}

#closeModal {
    position: relative;
    top: 0;
    left: 45%;
    bottom: 90%;
    font-size: 1.1rem;
    color: #333;
    cursor: pointer
}

#closeModal:hover {
    padding: .2rem;
    color: #f1f1f1;
    background-color: #ff0000e5;
    transition: 350ms
}

#imageModal .modal-description {
    font-size: min(1.5vw, .8rem);
    word-wrap: break-word;
    text-align: center;
    color: #3a3939;
    margin: .5rem
}

.limite-aviso {
    background: #ffd75f;
    color: #000;
    padding: 10px;
    font-size: medium
}

.divider {
    margin: 15px 40%
}

.gracias {
    margin: 25px .1rem;
    font-size: .9rem
}

footer {
    border-top: 1px solid #9b9191;
    background: #eee;
    padding: 1rem
}

footer p {
    font-size: .75rem;
    margin-bottom: .5rem
}

footer a {
    margin: 0 .5rem;
    color: #696969;
    font-size: .65rem
}

@media (max-width:480px) {
    .image-container {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 15px
    }

    #modalContent .modal-buttons button {
        padding: .3rem .9rem
    }

    #modalContent .modal-buttons {
        gap: .5rem
    }
}

@media (max-width:460px) {
    nav {
        display: none
    }

    .menu-toggle {
        display: block
    }
}

@media (min-width:510px) {

    body,
    header {
        background-color: #d3d3d3
    }

    * {
        font-family: 'Lucida Sans';
        font-size: large
    }

    header {
        padding: .7rem
    }

    .mobile-nav {
        display: none
    }

    .imagenes_aleactorias {
        font-size: 1.5rem
    }

    .imagenes_aleactorias_p {
        margin: 5px 5%;
        font-size: 1.1rem
    }

    .gracias {
        margin: 5px 5%
    }

    footer a {
        color: #696969;
        font-weight: 700
    }

    footer a:hover {
        text-shadow: 1px 2px 7px #5e5e5e;
        transition: 350ms
    }

    footer {
        background-color: #9a9a9a
    }
}

@media (max-width:510px) {

    .hero p,
    nav a {
        font-size: .8rem
    }

    body {
        background-color: #000;
        color: #c3c3c3
    }

    #eqAlbumia a {
        font-size: .9rem;
        cursor: pointer;
        color: #0e811d;
        text-decoration: none;
        margin-left: auto 0
    }

    header {
        background: #000;
        padding: .6rem .5rem;
        justify-content: space-between;
        border-bottom: 1px solid #373535
    }

    nav {
        gap: .6rem
    }

    nav a {
        color: #8d8c8c
    }

    nav a:hover {
        text-shadow: 1px 2px 6px #151414
    }

    .imagenes {
        border-bottom: 1px solid #4e514f;
        border-radius: 3px;
        box-shadow: 0 1px 0 #5c5a5a
    }

    .menu-toggle {
        font-size: 1.6rem;
        cursor: pointer;
        color: #a8a4a4
    }

    .hero p {
        margin-bottom: 1.2rem;
        color: #d2d7d3
    }

    .section {
        padding: 1rem
    }

    .section h2 {
        color: #b1b0b0;
        font-size: 1.1rem;
        margin: 1rem
    }

    .card {
        border-radius: 1.5rem;
        overflow: hidden;
        margin: 0 1.3rem;
        box-shadow: 0 0 5px #fff
    }

    .card-body {
        padding: 1rem .2rem
    }

    #modalContent,
    .mobile-nav {
        border-radius: 10px;
        padding: 1rem
    }

    .card-body h3 {
        margin-bottom: .4rem;
        font-size: .95rem;
        font-weight: 700;
        color: #b6bbb8
    }

    .card-body a {
        display: inline-block;
        margin-top: .2rem;
        background-color: #023f07;
        color: #c3c0c0;
        padding: .3rem .6rem;
        font-size: .75rem
    }

    .mobile-nav {
        position: fixed;
        display: flex;
        flex-direction: column;
        transition: right .3s;
        z-index: 1100;
        right: -100%;
        height: 14.5rem;
        top: 8%;
        width: 45%;
        background: #030303;
        box-shadow: -2px 0 10px rgba(215, 212, 212, .2)
    }

    .mobile-nav a {
        color: #cdcccc;
        font-size: .8rem
    }

    .mobile-nav a:hover {
        border-radius: 15px;
        box-shadow: 2px 4px 5px #d4d4d4
    }

    .hr_top_imagenes_aleactorias {
        margin: 15px 40%
    }

    .mobile-nav_imagen {
        border-left: 3px solid #06a445
    }

    h2.imagenes_aleactorias {
        color: #aca9a9;
        font-size: 1.1rem
    }

    p.imagenes_aleactorias_p {
        margin-top: 8px;
        font-size: .7rem;
        color: #707271
    }

    #modalContent {
        background: #000;
        max-width: 90%;
        max-height: 95%;
        text-align: center;
        position: relative
    }

    #imageModal .modal-buttons button {
        color: #e2e2e2;
        font-weight: 700
    }

    #imageModal .modal-description {
        color: #707070;
        margin-bottom: 5px;
        font-weight: 700;
        font-size: min(1.9vw, .8rem);
        word-wrap: break-word;
        text-align: center;
        padding-bottom: 9px;
        border: none
    }

    #closeModal {
        color: #ddd
    }

    .limite-aviso {
        font-size: smaller
    }

    .divider {
        border: 1px solid #303130
    }

    .gracias {
        font-weight: 700;
        color: #9c9a9a;
        font-size: .65rem;
        margin: 13px
    }

    footer {
        border-top: 1px solid #303130;
        background-color: #242424;
        padding: .8rem
    }

    footer a {
        margin: 0 .4rem;
        color: #5c5c5c;
        border: none
    }

    footer p {
        font-size: .6rem;
        font-weight: 700;
        color: #767272;
        margin-bottom: 10px
    }
}