.section-grid-services {
    margin-top: 120px;
    margin-bottom: -100px;
    position: relative;
    z-index: 10000;
}

.section-grid-services h3 {
    color: var(--primary);
    font-weight: 500;
    font-size: 25px;
}

.section-grid-services a {
    border-color: var(--primary);
    color: var(--primary);
    transition: all 0.3s ease;
}

.section-grid-services a:hover {
    background-color: var(--primary);
    color: #fff;
}

.section-grid-services p {
    color: var(--gray-600);
    font-size: 12px !important;
}

.card_services_grid {
    border-radius: 3px;
    background: var(--gray-100);
    transition: all 0.3s ease;
}

.card_services_grid:hover {
    box-shadow: 0px 0px 10px 0px #00000040;
}

/* ============================================
   Section: La huella que dejamos
   ============================================ */

.section-huella__line {
    width: 60px;
    height: 3px;
    background: #fff;
}


/* ============================================
   Section: Preguntas frecuentes (FAQ)
   ============================================ */

.section-faq__line {
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-faq__summary::-webkit-details-marker {
    display: none;
}

.section-faq__item[open] .section-faq__summary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

.section-faq__item[open] .section-faq__icon {
    color: #fff;
}

.section-faq__icon {
    color: var(--gray-600);
}

.section-faq__icon .section-faq__icon-plus {
    display: block;
}

.section-faq__icon .section-faq__icon-minus {
    display: none;
}

.section-faq__item[open] .section-faq__icon .section-faq__icon-plus {
    display: none;
}

.section-faq__item[open] .section-faq__icon .section-faq__icon-minus {
    display: block;
}

.section-faq__answer {
    background: #fff;
    border: 1px solid #fff;
    box-shadow: 0px 0px 5px 0px #00000040;
}

.section-faq__item[open] .section-faq__answer {
    border-color: var(--gray-200);
}

@media (max-width: 1024px) {
    .section-huella {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .section-faq {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .section-huella__title,
    .section-faq__title {
        font-size: 1.5rem;
    }

    .section-huella__stat span {
        font-size: 2rem;
    }
}

@media (max-width: 425px) {
    .section-huella__line,
    .section-faq__line {
        width: 40px;
    }
}

.section-galeria__line {
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-galeria__grid .galeria-item {
    cursor: pointer;
}

/* Lightbox modal + slider */
.galeria-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(6px);
}

.galeria-lightbox.is-open {
    display: flex !important;
}

.galeria-lightbox__backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.galeria-lightbox__panel {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.galeria-lightbox__close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.galeria-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.galeria-lightbox__prev,
.galeria-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

.galeria-lightbox__prev {
    left: -3rem;
}

.galeria-lightbox__next {
    right: -3rem;
}

.galeria-lightbox__prev:hover,
.galeria-lightbox__next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.galeria-lightbox__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80vw;
    max-width: 900px;
    height: 70vh;
    max-height: 600px;
}

.galeria-lightbox__img-wrap {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.galeria-lightbox__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.galeria-lightbox__footer {
    flex-shrink: 0;
    margin-top: 1rem;
    text-align: center;
    color: #fff;
}

.galeria-lightbox__counter {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.galeria-lightbox__caption {
    font-size: 0.875rem;
    margin: 0;
    max-width: 400px;
}

@media (max-width: 768px) {
    .galeria-lightbox__prev {
        left: 0.5rem;
    }

    .galeria-lightbox__next {
        right: 0.5rem;
    }

    .galeria-lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 425px) {
    .section-galeria__line {
        width: 40px;
    }

    .section-galeria__grid {
        gap: 0.5rem;
    }
}

footer {
    margin-top: -400px !important;
}

.formulario-contacto::before  {
    background: none !important;
}

.dividder::after {
    background: url('../images/divider.png') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    bottom: -22px !important;
}

.section-huella  {
    background: url('../images/fondo_services.png') no-repeat center center !important;
    height: 1500px !important;
}

.section-huella__icon {
    width: 185px;
    height: 185px;
    border-radius: 50%;
    opacity: 1;
    background-color: var(--primary-500);
}

.section-huella .title-primary::after {
    background-color: #fff;
}

.section-faq {
    margin-top: -6rem;
}

.section-faq__content {
    margin-top: 1.4rem !important;
    border-radius: 3px !important;
}

.section-faq__answer {
    font-size: 14px !important;
    color: var(--gray-600);
}

.wpcf7 input.wpcf7-form-control:not([type=submit]), .wpcf7 textarea.wpcf7-form-control {
    background: var(--gray-100);
}

.section-faq__summary span {
    font-size: 16px  !important;
}

/* Estructura: Before (arriba) → Contenido (centro) → After (abajo) */
.section-galeria {
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-galeria .fondo {
    background-color: #f2f2f2;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.section-galeria > .cubaemprende_max_content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.section-galeria::before,
.section-galeria::after {
    flex-shrink: 0;
    width: 100%;
    content: '';
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% auto;
    pointer-events: none;
}

.section-galeria::before {
    background-image: url('../images/before-services.png');
    background-position: center top;
    height: 340px;
}

.section-galeria::after {
    background-image: url('../images/after-services.png');
    background-position: center bottom;
    height: 320px;
}
