.hero {
    height: 100dvh;
    background: rgba(0,0,0,0.6);
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(transparent, rgba(0,0,0,0.6)), url('../assets/imgs/inicio/hero.webp');
    transition: opacity .5s ease;
    opacity: 1;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    margin-bottom: 6rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: end;
}

.hero-text h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-text p {
    color: #f0f0f0;
    margin-bottom: 0;
    max-width: 600px;
}

.hero-cta {
    justify-self: end;
    align-self: end;
}

.hero-cta .btn {
    background: var(--color-dorado);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }

    .hero-container {
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-cta {
        justify-self: center;
    }
}

.welcome-section {
    background: linear-gradient(222deg, #ffffff, #d9d9d9);
    padding: 60px 20px;
}

.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.subtitle {
    position: relative;
    color: #666;
    display: inline-block;
}

.subtitle::before,
.subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #ccc;
    transform: translateY(-50%);
}

.subtitle::before {
    left: -60px;
}

.subtitle::after {
    right: -60px;
}

.main-title {
    color: #000;
    margin: 20px 0;
}

.description {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    position: relative;
    height: 200px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(54, 54, 54, 0.5));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.feature-card.velacion {
    background-image: url('../assets/imgs/inicio/ins-1.webp');
    background-size: cover;
    background-position: center;
}

.feature-card.cementerio {
    background-image: url('../assets/imgs/cementerio/cementerio-4.webp');
    background-size: cover;
    background-position: center;
}

.feature-card.cremacion {
    background-image: url('../assets/imgs/cremapets/img-05.webp');
    background-size: cover;
    background-position: center;
}

.feature-card.recoleccion {
    background-image: url('../assets/imgs/inicio/serv_traslado.webp');
    background-size: cover;
    background-position: center;
}

.feature-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
}

.feature-title {
    color: #fff;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .feature-card {
        height: 180px;
    }

    .feature-content {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        height: 220px;
    }

    .feature-content {
        width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .feature-card {
        height: 200px;
    }

    .subtitle::before,
    .subtitle::after {
        width: 25px;
    }

    .subtitle::before {
        left: -35px;
    }

    .subtitle::after {
        right: -35px;
    }
}

.destacado-section {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 35%, #444444 70%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.destacado-container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.destacado-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    align-items: start;
}

.destacado-card {
    color: #ffffff;
    padding: 1rem 0.5rem;
}

.destacado-icon {
    font-size: 3rem;
    color: #cccc;
}

.destacado-card-title {
    margin: 20px 0;
    color: #ffffff;
}

.destacado-card-text {
    color: #cccccc;
}

@media (max-width: 992px) {
    .destacado-section {
        background-attachment: scroll;
    }

    .destacado-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .destacado-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .destacado-card {
        padding: 1rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .destacado-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .destacado-card {
        padding: 1rem 2rem;
    }
}

.servicios-section {
    padding: 60px 20px;
}

.servicios-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.carousel-container {
    position: relative;
    margin: 50px 0;
}

.servicios-grid {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.servicios-grid::-webkit-scrollbar {
    display: none;
}

.servicios-card {
    min-width: 320px;
    max-width: 320px;
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px rgba(0, 0, 0, 0.1) solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
    flex-shrink: 0;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.servicios-img {
    width: 100%;
    height: 180px;
}

.servicios-img img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    display: block;
}

.servicios-card h3 {
    margin: 20px 0;
}

.servicios-card p {
    color: #666;
    flex-grow: 1;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background: #333;
    color: white;
    border-color: #333;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

.servicios-cta {
    text-align: center;
}

.servicios-btn {
    background: none;
    color: #666;
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    border: 1px solid #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.servicios-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: #000;
    border-color: #000;
}

@media (max-width: 768px) {
    .servicios-grid {
        padding: 20px 50px;
        gap: 20px;
    }

    .servicios-card {
        min-width: 280px;
        max-width: 280px;
        height: 420px;
        padding: 40px 25px;
    }

    .servicios-img {
        height: 160px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow.prev {
        left: 5px;
    }

    .carousel-arrow.next {
        right: 5px;
    }

    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .servicios-grid {
        padding: 20px 40px;
    }

    .servicios-card {
        min-width: 260px;
        max-width: 260px;
        height: 400px;
        padding: 35px 20px;
    }
}

.instalaciones-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 20px;
    background-image: linear-gradient(50deg,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(54, 54, 54, 0.7) 100%),
        url('../assets/imgs/inicio/fb-now.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.instalaciones-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-inline: clamp(20px, 5vw, 60px);
}

.instalaciones-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.instalaciones-header {
    margin-bottom: 4rem;
}

.dux {
    color: #ccc;
}

.instalaciones-title {
    color: #fff;
    margin: 20px 0;
}

.mapa-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .instalaciones-section {
        background-attachment: scroll;
        background-position: center;
    }
}

.faq-section {
    padding: 60px 20px;
    background: linear-gradient(60deg, #ffffff 0%, #e5e5e5 100%);
}

.faq-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.faq-contenido img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    align-self: start;
}

.faq-item {
    transition: transform 0.3s ease;
}

.faq-question {
    background: none;
    border: none;
    border-radius: 5px;
    border-bottom: 1px solid #ccc;
    width: 70%;
    padding: 10px 15px;
    text-align: left;
    color: #4d4d4d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #000;
    border-bottom: 1px solid #000000;
}

.faq-answer {
    width: 70%;
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.6s ease, padding 0.4s ease;
    font-family: var(--fuente-principal);
    font-size: 1rem;
}

.faq-answer a {
    color: var(--color-dorado);
}

.faq-item.active .faq-answer {
    max-height: 350px;
    padding: 20px 20px;
}

@media (max-width: 768px) {

    .faq-answer,
    .faq-question {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .servicios-header,
    .servicios-cta {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .servicios-header {
        text-align: center;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicios-card {
        padding: 30px 25px;
    }

    .info-container {
        padding: 60px 20px;
    }

    .image-container {
        order: -1;
        min-height: 300px;
    }

    .cta-button {
        margin: 0 auto;
    }

    .faq-contenido {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .faq-contenido img {
        display: none;
    }
}

.prevision-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 320px;
    background: linear-gradient(160deg, #000000 0%, #363636 50%);
    z-index: 9999;
    transform: translateX(-400px);
    opacity: 0;
    transition: all 1s ease;
}

.prevision-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.prevision-popup.hide {
    transform: translateX(-400px);
    opacity: 0;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.popup-close:hover {
    transform: rotate(90deg);
}

.popup-content {
    color: #fff;
    padding: 20px;
    text-align: center;
}

.popup-title {
    font-size: 1.35rem;
}

.popup-subtitle {
    margin: .5rem 0;
}

.popup-discount {
    font-size: 1.8rem;
    margin: 1rem 0;
}

.popup-cta {
    display: block;
    width: fit-content;
    padding: 10px 15px;
    margin: 0.5rem auto;
    border-radius: 30px;
    background: #e5e5e5;
    color: #000;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.popup-cta:hover {
    transform: translateY(-2px);
}

.popup-cta:active {
    transform: translateY(0);
}

.popup-phone {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 8px;
}


@media (max-width: 480px) {
    .prevision-popup {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        max-width: 300px;
    }

    .popup-content {
        padding: 18px 15px 15px;
    }

    .popup-cta {
        padding: 11px 18px;
        font-size: 0.85rem;
    }

    .popup-phone {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    .prevision-popup {
        width: calc(100vw - 30px);
        left: 15px;
        bottom: 15px;
    }

    .popup-content {
        padding: 15px 12px 12px;
    }

    .popup-discount {
        font-size: 1.4rem;
    }
}