
body{
    background-color: purple;
    text-align: center;
    color: white;
}

.main_header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.menu {
    display: grid;
    grid-template-columns: repeat(2, 350px);
    gap: 40px;
    justify-content: center;
    align-content: center;

    opacity: 0;
    transition: opacity .8s;
}

.menu.visible {
    opacity: 1;
}

.card {
    height: 220px;
    border-radius: 20px;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    color: white;
    font-size: 2rem;

    background-size: cover;
    background-position: center;

    opacity: 0;
    transform: translateY(30px) scale(.8);
    transition: all .6s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    transform: scale(1.05);
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform .2s;
}

.card-img:hover {
    transform: scale(1.03);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: opacity .3s ease;
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;

    transform: scale(.8);
    transition: transform .3s ease;
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

#lightbox img,
#lightbox video {
    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

#back-button {
    position: fixed;
    top: 20px;
    left: 20px;

    padding: 10px 16px;

    border: none;
    border-radius: 10px;

    background: rgba(0, 0, 0, 0.6);
    color: white;

    font-size: 16px;
    cursor: pointer;

    z-index: 1000;

    transition: background 0.2s;
}

#back-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.hero-img {

    width: 300px;
    border-radius: 20px;

    opacity: 0;
    transform: translateY(80px) scale(.8);

    transition:
        opacity .8s ease,
        transform .8s ease;

    z-index: 1;
}

.hero-img.visible {
    opacity: 1;      /* Puedes poner 1 si quieres que destaque más */
    transform: translateY(0) scale(1);
}