/* =======================================================================
   DEPORTES CDMX — Página de Testimonios
   Hero + Reviews (Trustindex) + Gallery slider + CTA final
   ======================================================================= */

body.cdmx-testimonios-page {
    --wp-teal:      #198E8B;
    --wp-teal-dark: #14746F;
    --wp-petrol:    #023D54;
    --wp-mint:      #94DEA5;
    --wp-bg:        #F2F4F7;
    --wp-border:    #E3E6EA;
    --wp-text:      #2D3436;
    --wp-muted:     #6B7379;
    --wp-radius:    14px;
    --wp-shadow-md: 0 12px 32px -12px rgba(2, 61, 84, 0.18);
    --wp-shadow-lg: 0 22px 50px -16px rgba(2, 61, 84, 0.28);
    background: var(--wp-bg) !important;
}
body.cdmx-testimonios-page h1,
body.cdmx-testimonios-page h2,
body.cdmx-testimonios-page h3 { color: inherit; }

/* =======================================================================
   HERO
   ======================================================================= */
body.cdmx-testimonios-page .cdmx-testim-hero {
    position: relative;
    background: #0B0C0C;
    overflow: hidden;
    padding: 70px 0 120px;
    color: #fff;
}
body.cdmx-testimonios-page .cdmx-testim-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(25, 142, 139, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(3, 94, 123, 0.4) 0%, transparent 55%),
        linear-gradient(135deg, #0B0C0C 0%, #042C3E 55%, #023D54 100%);
}
body.cdmx-testimonios-page .cdmx-testim-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(148, 222, 165, 0.08) 1px, transparent 0);
    background-size: 36px 36px;
    opacity: 0.55;
}
body.cdmx-testimonios-page .cdmx-testim-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}
body.cdmx-testimonios-page .cdmx-testim-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.cdmx-testimonios-page .cdmx-testim-breadcrumb a {
    color: rgba(255, 255, 255, 0.82) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
body.cdmx-testimonios-page .cdmx-testim-breadcrumb a:hover { color: var(--wp-mint) !important; }
body.cdmx-testimonios-page .cdmx-testim-breadcrumb__sep { opacity: 0.35; }
body.cdmx-testimonios-page .cdmx-testim-breadcrumb__current { color: var(--wp-mint); }

body.cdmx-testimonios-page .cdmx-testim-hero__head {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
body.cdmx-testimonios-page .cdmx-testim-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(148, 222, 165, 0.28) 0%, rgba(25, 142, 139, 0.22) 100%);
    border: 1px solid rgba(148, 222, 165, 0.28);
    color: var(--wp-mint);
    font-size: 1.75rem;
    box-shadow:
        0 12px 32px -10px rgba(25, 142, 139, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
body.cdmx-testimonios-page .cdmx-testim-hero__title {
    margin: 0;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.1;
    color: #fff !important;
}
body.cdmx-testimonios-page .cdmx-testim-hero__subtitle {
    margin: 8px 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.55;
    max-width: 640px;
}

/* =======================================================================
   CONTAINER + SECTION HEAD
   ======================================================================= */
body.cdmx-testimonios-page .cdmx-testim-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}
body.cdmx-testimonios-page .cdmx-testim-section-head {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 680px;
}
body.cdmx-testimonios-page .cdmx-testim-overline {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--wp-teal);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
body.cdmx-testimonios-page .cdmx-testim-title {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 900;
    color: var(--wp-petrol);
    margin: 0 0 14px;
    letter-spacing: -0.6px;
    line-height: 1.2;
}
body.cdmx-testimonios-page .cdmx-testim-subtitle {
    font-size: 0.98rem;
    color: var(--wp-muted);
    line-height: 1.6;
    margin: 0;
}

/* =======================================================================
   REVIEWS (Trustindex widget)
   ======================================================================= */
body.cdmx-testimonios-page .cdmx-testim-reviews {
    position: relative;
    padding: 0 20px 60px;
    margin-top: -72px;
    z-index: 3;
}
body.cdmx-testimonios-page .cdmx-testim-reviews .cdmx-testim-container {
    background: #fff;
    border-radius: 22px;
    padding: 56px 48px;
    box-shadow: var(--wp-shadow-lg);
    border: 1px solid rgba(2, 61, 84, 0.06);
}
body.cdmx-testimonios-page .cdmx-testim-reviews__widget {
    margin-top: 8px;
}
/* El widget de Trustindex se renderiza aquí — lo dejamos crecer natural */
body.cdmx-testimonios-page .cdmx-testim-reviews__widget .ti-widget,
body.cdmx-testimonios-page .cdmx-testim-reviews__widget .trustindex-widget {
    margin: 0 !important;
}

/* Placeholder cuando el plugin Trustindex no está instalado */
body.cdmx-testimonios-page .cdmx-testim-placeholder {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    background: linear-gradient(180deg, #F7F9FB 0%, #eff3f6 100%);
    border: 1px dashed var(--wp-border);
    border-radius: var(--wp-radius);
    max-width: 640px;
    margin: 0 auto;
}
body.cdmx-testimonios-page .cdmx-testim-placeholder > i {
    flex-shrink: 0;
    font-size: 1.4rem;
    color: var(--wp-teal);
    width: 48px; height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(25, 142, 139, 0.1);
}
body.cdmx-testimonios-page .cdmx-testim-placeholder strong {
    display: block;
    color: var(--wp-petrol);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
}
body.cdmx-testimonios-page .cdmx-testim-placeholder p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--wp-muted);
    line-height: 1.6;
}
body.cdmx-testimonios-page .cdmx-testim-placeholder code {
    background: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--wp-border);
    font-size: 0.82rem;
    color: var(--wp-teal);
}

/* =======================================================================
   GALLERY SLIDER
   ======================================================================= */
body.cdmx-testimonios-page .cdmx-testim-gallery {
    padding: 60px 20px 80px;
}
body.cdmx-testimonios-page .cdmx-tgallery {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
body.cdmx-testimonios-page .cdmx-tgallery__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--wp-shadow-md);
    background: #0B0C0C;
}
body.cdmx-testimonios-page .cdmx-tgallery__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
body.cdmx-testimonios-page .cdmx-tgallery__slide {
    flex: 0 0 100%;
    margin: 0;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
body.cdmx-testimonios-page .cdmx-tgallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
body.cdmx-testimonios-page .cdmx-tgallery__slide:hover img { transform: scale(1.04); }
body.cdmx-testimonios-page .cdmx-tgallery__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(2, 61, 84, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
body.cdmx-testimonios-page .cdmx-tgallery__slide:hover::after { opacity: 1; }
/* Cursor zoom-in e icono de expandir en hover (indica que se puede ampliar) */
body.cdmx-testimonios-page .cdmx-tgallery__slide { cursor: zoom-in; }
body.cdmx-testimonios-page .cdmx-tgallery__slide::before {
    content: "\f065"; /* expand */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--wp-petrol);
    border-radius: 50%;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 2;
    box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
body.cdmx-testimonios-page .cdmx-tgallery__slide:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* =======================================================================
   LIGHTBOX — visor fullscreen con navegación
   ======================================================================= */
body.cdmx-testimonios-page .cdmx-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
body.cdmx-testimonios-page .cdmx-lightbox.is-open { display: flex; animation: cdmxLbFade 0.25s ease; }
@keyframes cdmxLbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
body.cdmx-testimonios-page .cdmx-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 12, 12, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: zoom-out;
}

body.cdmx-testimonios-page .cdmx-lightbox__stage {
    position: relative;
    z-index: 2;
    max-width: min(1280px, 92vw);
    max-height: 88vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: cdmxLbZoom 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes cdmxLbZoom {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}
body.cdmx-testimonios-page .cdmx-lightbox__stage img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.7);
    background: #0B0C0C;
    display: block;
}
body.cdmx-testimonios-page .cdmx-lightbox__caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 0 16px;
}
body.cdmx-testimonios-page .cdmx-lightbox__count {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--wp-mint);
    letter-spacing: 0.4px;
}

/* Botón cerrar × */
body.cdmx-testimonios-page .cdmx-lightbox__close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.cdmx-testimonios-page .cdmx-lightbox__close:hover {
    background: #DC3545;
    border-color: #DC3545;
    transform: scale(1.08);
}

/* Flechas izquierda/derecha */
body.cdmx-testimonios-page .cdmx-lightbox__arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.22s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.cdmx-testimonios-page .cdmx-lightbox__arrow--prev { left: 24px; }
body.cdmx-testimonios-page .cdmx-lightbox__arrow--next { right: 24px; }
body.cdmx-testimonios-page .cdmx-lightbox__arrow:hover {
    background: var(--wp-teal);
    border-color: var(--wp-teal);
    transform: translateY(-50%) scale(1.08);
}

/* Body lock cuando lightbox abierto */
body.cdmx-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    body.cdmx-testimonios-page .cdmx-lightbox { padding: 12px; }
    body.cdmx-testimonios-page .cdmx-lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
    body.cdmx-testimonios-page .cdmx-lightbox__arrow { width: 44px; height: 44px; }
    body.cdmx-testimonios-page .cdmx-lightbox__arrow--prev { left: 8px; }
    body.cdmx-testimonios-page .cdmx-lightbox__arrow--next { right: 8px; }
    body.cdmx-testimonios-page .cdmx-lightbox__stage img { max-height: 72vh; border-radius: 10px; }
    body.cdmx-testimonios-page .cdmx-lightbox__caption { font-size: 0.78rem; }
    body.cdmx-testimonios-page .cdmx-tgallery__slide::before {
        width: 36px; height: 36px; font-size: 0.78rem; bottom: 12px; right: 12px; opacity: 1; transform: scale(1);
    }
}

/* Flechas */
body.cdmx-testimonios-page .cdmx-tgallery__arrow {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--wp-petrol);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: var(--wp-shadow-md);
    transition: background 0.22s, color 0.22s, transform 0.22s;
}
body.cdmx-testimonios-page .cdmx-tgallery__arrow:hover {
    background: var(--wp-teal);
    color: #fff;
    transform: scale(1.08);
}
body.cdmx-testimonios-page .cdmx-tgallery__arrow:active { transform: scale(0.96); }
body.cdmx-testimonios-page .cdmx-tgallery__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Dots */
body.cdmx-testimonios-page .cdmx-tgallery__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}
body.cdmx-testimonios-page .cdmx-tgallery__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(2, 61, 84, 0.2);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
body.cdmx-testimonios-page .cdmx-tgallery__dot:hover { background: rgba(25, 142, 139, 0.5); }
body.cdmx-testimonios-page .cdmx-tgallery__dot.is-active {
    background: var(--wp-teal);
    width: 28px;
    border-radius: 5px;
}

/* =======================================================================
   CTA final
   ======================================================================= */
body.cdmx-testimonios-page .cdmx-testim-cta {
    padding: 0 20px 80px;
}
body.cdmx-testimonios-page .cdmx-testim-cta__inner {
    background:
        radial-gradient(circle at 20% 50%, rgba(148, 222, 165, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, var(--wp-petrol) 0%, #035E7B 100%);
    border-radius: 22px;
    padding: 56px 48px;
    text-align: center;
    color: #fff;
    box-shadow: var(--wp-shadow-lg);
    position: relative;
    overflow: hidden;
    max-width: 1240px;
    margin: 0 auto;
}
body.cdmx-testimonios-page .cdmx-testim-cta__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
}
body.cdmx-testimonios-page .cdmx-testim-cta__inner h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 900;
    color: #fff !important;
    margin: 0 0 12px;
    letter-spacing: -0.6px;
    position: relative;
}
body.cdmx-testimonios-page .cdmx-testim-cta__inner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 26px;
    position: relative;
}
body.cdmx-testimonios-page .cdmx-testim-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    border-radius: 50px;
    box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.5);
    transition: all 0.25s;
    position: relative;
}
body.cdmx-testimonios-page .cdmx-testim-cta__btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -6px rgba(37, 211, 102, 0.7);
    color: #fff;
}

/* =======================================================================
   RESPONSIVE
   ======================================================================= */
@media (max-width: 1024px) {
    body.cdmx-testimonios-page .cdmx-testim-reviews .cdmx-testim-container { padding: 42px 32px; }
    body.cdmx-testimonios-page .cdmx-testim-cta__inner { padding: 42px 28px; }
}

@media (max-width: 768px) {
    body.cdmx-testimonios-page .cdmx-testim-hero { padding: 40px 0 90px; }
    body.cdmx-testimonios-page .cdmx-testim-hero__inner { padding: 0 20px; }
    body.cdmx-testimonios-page .cdmx-testim-hero__icon { width: 54px; height: 54px; font-size: 1.28rem; border-radius: 14px; }
    body.cdmx-testimonios-page .cdmx-testim-hero__title { font-size: 1.55rem !important; }
    body.cdmx-testimonios-page .cdmx-testim-hero__subtitle { font-size: 0.86rem; }
    body.cdmx-testimonios-page .cdmx-testim-breadcrumb { font-size: 0.7rem; padding: 5px 11px; margin-bottom: 18px; }

    body.cdmx-testimonios-page .cdmx-testim-container { padding: 0 16px; }
    body.cdmx-testimonios-page .cdmx-testim-reviews { padding: 0 12px 48px; margin-top: -64px; }
    body.cdmx-testimonios-page .cdmx-testim-reviews .cdmx-testim-container {
        padding: 32px 20px;
        border-radius: 18px;
    }
    body.cdmx-testimonios-page .cdmx-testim-section-head { margin-bottom: 32px; }
    body.cdmx-testimonios-page .cdmx-testim-title { font-size: 1.4rem; }
    body.cdmx-testimonios-page .cdmx-testim-subtitle { font-size: 0.88rem; }

    body.cdmx-testimonios-page .cdmx-testim-gallery { padding: 44px 12px 56px; }
    body.cdmx-testimonios-page .cdmx-tgallery { gap: 8px; }
    body.cdmx-testimonios-page .cdmx-tgallery__arrow {
        width: 40px; height: 40px; font-size: 0.82rem;
    }
    body.cdmx-testimonios-page .cdmx-tgallery__slide { aspect-ratio: 4 / 3; }

    body.cdmx-testimonios-page .cdmx-testim-cta { padding: 0 12px 56px; }
    body.cdmx-testimonios-page .cdmx-testim-cta__inner {
        padding: 36px 22px;
        border-radius: 18px;
    }
    body.cdmx-testimonios-page .cdmx-testim-placeholder {
        flex-direction: column;
        padding: 22px;
    }
}

@media (max-width: 480px) {
    body.cdmx-testimonios-page .cdmx-tgallery__arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }
    body.cdmx-testimonios-page .cdmx-tgallery__arrow--prev { left: 8px; }
    body.cdmx-testimonios-page .cdmx-tgallery__arrow--next { right: 8px; }
    body.cdmx-testimonios-page .cdmx-tgallery__arrow:hover { transform: translateY(-50%) scale(1.08); }
    body.cdmx-testimonios-page .cdmx-tgallery { gap: 0; }
}
