.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    height: 400px;
}

.card {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 0;
}

.card-jardin::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url('../assets/imgs/cementerio/cementerio-2.webp');
}

.card-ecologico::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url('../assets/imgs/cementerio/nicho-2.webp');
}

.card-columbario::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
        url('../assets/imgs/cementerio/col-0.webp');
}

.card:hover::before {
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.welcome-section {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    height: 100vh;
}

.logo-container {
    flex: 0 0 400px;
    margin-right: 60px;
}

.logo-container img {
    height: 300px;
}

.welcome-text {
    flex: 1;
}

.welcome-text h2 {
    margin-bottom: 20px;
}

.info-section {
    display: flex;
    min-height: 500px;
}

.info-image {
    flex: 0 0 50%;
    background-image: url('../assets/imgs/cementerio/cementerio-3.webp');
    background-size: cover;
    background-position: center;
}

.info-content {
    flex: 1;
    padding: 80px 60px;
    background-color: #f9f9f9;
}

.info-content h2 {
    margin-bottom: 30px;
}

.info-content p {
    margin-bottom: 20px;
}

.gallery-section {
    padding: 6rem 2rem;
}

.gallery-section h2 {
    margin-bottom: 50px;
    text-align: center;
}

.gallery-row {
    margin-bottom: 50px;
}

.gallery-row h3 {
    margin-bottom: 40px;
}

.gallery-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--dorado);
    border-radius: 4px;
}

.gallery-item {
    flex: 0 0 350px;
    height: 250px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border-radius: 8px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 100%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -20px;
    right: -40px;
    background: none;
    border: none;
    color: #000;
    font-size: 4rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
}

.lightbox-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #000;
    font-size: 4rem;
    cursor: pointer;
    padding: 20px;
}

.lightbox-prev {
    left: -50px;
}

.lightbox-next {
    right: -50px;
}

.location-section {
    display: flex;
    height: 600px;
}

.location-image {
    flex: 0 0 40%;
    background-image: url('../assets/imgs/cementerio/img_07.jpeg');
    background-size: cover;
    background-position: center;
}

.location-map {
    flex: 0 0 60%;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .hero-cards {
        grid-template-columns: 1fr;
        height: auto;
    }

    .card {
        height: 250px;
    }

    .welcome-section {
        flex-direction: column;
        padding: 40px 20px;
    }

    .logo-container {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .info-section {
        flex-direction: column;
    }

    .info-image {
        min-height: 300px;
    }

    .info-content {
        padding: 40px 20px;
    }

    .gallery-section {
        padding: 40px 20px;
    }

    .location-section {
        flex-direction: column;
    }

    .location-image {
        min-height: 200px;
    }

    .location-map {
        height: 800px;
    }
}