/* EliteLab — light motion & interaction (prefers-reduced-motion safe) */

.section-reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .index-location-card.ubicacion-pulse-once {
        animation: none;
    }

    .ofrecemos-card {
        transition: none;
    }

    .ofrecemos-card:hover {
        transform: none;
    }
}

.ofrecemos-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (min-width: 992px) {
    .ofrecemos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Collapse only on mobile (1 column), where the full list is a long scroll. */
@media (max-width: 767px) {
    .ofrecemos-grid.is-collapsed .ofrecemos-card:nth-child(n + 6) {
        display: none;
    }
}

.ofrecemos-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ofrecemos-card:hover,
.ofrecemos-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(102, 173, 226, 0.45);
    box-shadow: 0 8px 20px rgba(69, 119, 165, 0.18);
}

.ofrecemos-card-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.35rem;
}

.ofrecemos-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: #66ade2;
    transition: width 0.25s ease;
}

.ofrecemos-card:hover .ofrecemos-card-title::after,
.ofrecemos-card:focus-within .ofrecemos-card-title::after {
    width: 100%;
}

.ofrecemos-toggle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: none;
    text-align: center;
    border-style: dashed;
    border-color: rgba(69, 119, 165, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.ofrecemos-toggle-card:hover,
.ofrecemos-toggle-card:focus {
    transform: translateY(-4px);
    border-color: #66ade2;
    box-shadow: 0 8px 20px rgba(69, 119, 165, 0.18);
    outline: none;
}

.ofrecemos-toggle-card-label {
    margin: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .ofrecemos-toggle-card {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ofrecemos-toggle-card {
        transition: none;
    }

    .ofrecemos-toggle-card:hover,
    .ofrecemos-toggle-card:focus {
        transform: none;
    }
}

@keyframes ubicacion-soft-pulse-once {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 173, 226, 0.45);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(102, 173, 226, 0);
    }
    100% {
        box-shadow: 0px 0px 4px 3px rgba(69, 119, 165, 0.12);
    }
}

.index-location-card.ubicacion-pulse-once {
    animation: ubicacion-soft-pulse-once 1.1s ease-out 1;
}

.mobile-wa-sticky {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 9998;
    transform: translateX(-50%) translateY(120%);
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
}

.mobile-wa-sticky.is-shown {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mobile-wa-sticky .fa {
    font-size: 1.35rem;
}

@media (min-width: 768px) {
    .mobile-wa-sticky {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .mobile-wa-sticky {
        display: inline-flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-wa-sticky {
        transition: none;
    }
}
