/* =========================================================
   ÍNDICE GENERAL (THE GYM)
   00. VARIABLES GLOBALES
   01. ESTRUCTURA GLOBAL Y ESPACIADOS
   02. COMPONENTES GLOBALES (Botones, Avisos, Formularios Base)
   03. HEADER Y NAVEGACIÓN PRINCIPAL
   04. FOOTER, LEGAL Y BANNER COOKIES
   05. LANDING PAGE Y HOME (Mapa, Servicios, Animaciones)
   06. MEMBRESÍA Y PAGOS (RCP, Tablas, Cancelación, Morosos)
   07. COMUNIDAD (BuddyPress, Perfiles, Muro, Ajustes)
   08. MASTER MEDIA QUERIES (Desktop, Tablet, Móvil)
   09. WIDGET CHAT FLOTANTE (BETTER MESSAGES) - DISEÑO PREMIUM
   10. FIXES Y AJUSTES DE ESPACIADOS GLOBALES (HEADER & GUTENBERG)
   ========================================================= */

/* =========================================================
   00. VARIABLES GLOBALES (THE GYM)
   ========================================================= */
:root {
    --gym-green: #2e5b3c;
    --gym-green-dark: #22452d;
    --gym-cream: #fdf9ee;
    --gym-dark: #0B0620;
    --gym-red: #dc2626;
    --gym-red-dark: #991b1b;
    --gym-red-bg: #fef2f2;
    --gym-success-bg: #f0fdf4;
    --gym-success-border: #bbf7d0;
    --gym-success-text: #166534;
    --gym-info-bg: #fdf9ee;
    --gym-info-border: #eedec1;
    --gym-info-accent: #fab91b;
    --gym-info-text: #854d0e;
    
    --shadow-sm: 0 2px 5px rgba(46, 91, 60, 0.1);
    --shadow-md: 0 4px 10px rgba(46, 91, 60, 0.15);
    --shadow-hover: 0 6px 15px rgba(46, 91, 60, 0.2);
    --shadow-card: 0 15px 35px rgba(0,0,0,0.06);
    
    --br-sm: 8px;
    --br-md: 12px;
    --br-lg: 16px;
    --br-xl: 24px;
    
    /* 🚀 OPTIMIZACIÓN: Transiciones específicas para evitar Repaints/Reflows masivos */
    --transition-smooth: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================
   01. ESTRUCTURA GLOBAL Y ESPACIADOS
   ========================================================= */

/* FIX iOS SAFARI: Evitar que el html cree un contexto de scroll aislado */
html, 
body { 
    height: auto !important; 
}

/* FIX iOS SAFARI: Prohibido aplicar overflow al 'html', rompe el position: fixed */
body { 
    overflow-x: clip !important; 
    padding-top: 100px !important; 
    width: 100% !important;
    position: relative !important;
}

/* FIX DEFINITIVO iOS SAFARI (CONTAINING BLOCK BUG) */
.wp-site-blocks, 
.wp-block-template-part {
    transform: none !important; 
    filter: none !important; 
    perspective: none !important;
    will-change: auto !important; 
    animation: none !important;
}

/* Forzar box-sizing global */
#buddypress.buddypress-wrap, 
.jt-header-container, 
.the-gym-map-container,
.gym-hero-section, 
.gym-users-block, 
.gym-intro-section, 
.gym-services-section,
.jt-internal-footer-container, 
.jt-container-align {
    box-sizing: border-box !important;
}

.jt-container-align { 
    max-width: 1000px !important; 
    width: 100% !important; 
    margin-left: auto !important; 
    margin-right: auto !important; 
    padding-left: 16px !important; 
    padding-right: 16px !important; 
}

/* Fix paddings de WordPress */
body.page-id-839 .entry-content, 
body.page-id-843 .entry-content,
body.buddypress main#wp--skip-link--target, 
body.buddypress .entry-content.wp-block-post-content { 
    margin-top: 0 !important; 
    padding-top: 0 !important; 
}

/* SEPARACIÓN UNIVERSAL CON EL FOOTER PARA TODAS LAS PÁGINAS */
main#wp--skip-link--target { 
    padding-top: 1rem !important; 
    padding-bottom: 4rem !important; 
}

main#wp--skip-link--target > *:last-child, 
main#wp--skip-link--target .entry-content > *:last-child { 
    margin-bottom: 0 !important; 
}

footer.wp-block-template-part .wp-block-spacer { 
    display: none !important; 
}

/* FIX: PREVENIR QUE EL BANNER DE MOROSOS TAPE EL CONTENIDO */
body:has(#gym-expired-banner) main#wp--skip-link--target { 
    margin-top: 75px !important; 
}

/* =========================================================
   02. COMPONENTES GLOBALES (Botones, Avisos, Inputs)
   ========================================================= */

/* --- Inputs Base Unificados --- */
.wpforms-form .wpforms-field input[type=text], 
.wpforms-form .wpforms-field input[type=email], 
.wpforms-form .wpforms-field textarea,
.rcp_form input[type="text"], 
.rcp_form input[type="email"], 
.rcp_form input[type="password"],
.buddypress-wrap #item-body input[type="email"], 
.buddypress-wrap #item-body input[type="password"], 
.buddypress-wrap #item-body input[type="text"], 
.buddypress-wrap #item-body textarea,
.onboarding-box input[type="text"], 
.onboarding-box select, 
.onboarding-box textarea, 
.buddypress-wrap .dir-search input[type="search"], 
#rcp-update-card-name {
    width: 100% !important; 
    padding: 16px 18px !important; 
    border-radius: var(--br-sm) !important;
    border: 1px solid rgba(0,0,0,0.12) !important; 
    background-color: #fcfcfc !important;
    font-family: inherit !important; 
    font-size: 15px !important; 
    color: var(--gym-dark) !important;
    transition: all 0.3s ease !important; 
    box-sizing: border-box !important;
}

/* Checkbox Base */
.rcp_form input[type="checkbox"] { 
    width: auto !important; 
    display: inline-block !important; 
    margin-right: 8px !important; 
    accent-color: var(--gym-green) !important; 
    transform: scale(1.2); 
}

.rcp_form input[type="checkbox"] + label { 
    display: inline-block !important; 
    text-transform: none !important; 
    font-weight: 500 !important; 
    font-size: 14px !important; 
    color: rgba(11, 6, 32, 0.7) !important; 
    margin-bottom: 0 !important; 
    cursor: pointer; 
}

/* Selects Unificados */
.buddypress-wrap select, 
.select-wrap select, 
.rcp_form select, 
.wpforms-form select, 
.onboarding-box select {
    appearance: none !important; 
    width: 100% !important; 
    max-width: 100% !important;
    padding: 12px 40px 12px 16px !important; 
    border-radius: var(--br-sm) !important;
    border: 1px solid rgba(0,0,0,0.12) !important; 
    background-color: #fcfcfc !important;
    color: var(--gym-dark) !important; 
    font-family: inherit !important; 
    font-size: 14px !important; 
    font-weight: 500 !important; 
    cursor: pointer !important; 
    transition: all 0.3s ease !important; 
    box-sizing: border-box !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232e5b3c%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important; 
    background-position: right 14px center !important; 
    background-size: 16px !important;
}

/* Focus States Unificados */
.wpforms-form .wpforms-field input:focus, 
.wpforms-form .wpforms-field textarea:focus,
.buddypress-wrap select:focus, 
.select-wrap select:focus, 
.rcp_form select:focus, 
.wpforms-form select:focus, 
.onboarding-box select:focus,
.rcp_form input[type="text"]:focus, 
.rcp_form input[type="email"]:focus, 
.rcp_form input[type="password"]:focus, 
.buddypress-wrap #item-body textarea:focus, 
.buddypress-wrap .dir-search input[type="search"]:focus, 
#rcp-update-card-name:focus {
    border-color: var(--gym-green) !important; 
    background-color: #ffffff !important; 
    outline: none !important; 
    box-shadow: 0 0 0 3px rgba(46, 91, 60, 0.1) !important;
}

.buddypress-wrap select:hover, 
.select-wrap select:hover { 
    border-color: rgba(0,0,0,0.25) !important; 
}

/* Labels */
.wpforms-form .wpforms-field-label, 
.rcp_form label:not([for="rcp_user_remember"]) { 
    display: block !important; 
    font-size: 12px !important; 
    font-weight: 700 !important; 
    color: var(--gym-dark) !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    margin-bottom: 8px !important; 
}

/* --- Botones --- */
.jt-animated-btn, 
.wpforms-form button.wpforms-submit, 
.rcp_form input[type="submit"], 
.rcp_form button.rcp-button,
.onboarding-box .rcp-button, 
.buddypress-wrap #item-body input[type="submit"], 
.buddypress-wrap #item-body button.button,
.jt-premium-chat-wrapper a, 
.jt-premium-chat-wrapper button { 
    transition: var(--transition-smooth) !important; 
    cursor: pointer !important; 
}

.jt-animated-btn:hover, 
.wpforms-form button.wpforms-submit:hover, 
.rcp_form input[type="submit"]:hover, 
.rcp_form button.rcp-button:hover,
.buddypress-wrap #item-body input[type="submit"]:hover, 
.buddypress-wrap #item-body button.button:hover,
.jt-premium-chat-wrapper a:hover, 
.jt-premium-chat-wrapper button:hover { 
    transform: translateY(-3px) !important; 
    box-shadow: var(--shadow-hover) !important; 
    filter: brightness(1.05) !important; 
}

.jt-animated-btn:active, 
.wpforms-form button.wpforms-submit:active, 
.rcp_form input[type="submit"]:active, 
.rcp_form button.rcp-button:active,
.buddypress-wrap #item-body input[type="submit"]:active, 
.buddypress-wrap #item-body button.button:active { 
    transform: translateY(0px) !important; 
    box-shadow: var(--shadow-sm) !important; 
    transition: all 0.1s ease !important; 
}

.wpforms-form button.wpforms-submit, 
.rcp_form input[type="submit"], 
.rcp_form button.rcp-button,
.onboarding-box .rcp-button, 
.buddypress-wrap #item-body input[type="submit"], 
.buddypress-wrap #item-body button.button {
    width: 100% !important; 
    max-width: 350px !important; 
    background-color: var(--gym-green) !important; 
    color: #ffffff !important;
    border-radius: var(--br-sm) !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    border: none !important;
    padding: 16px 24px !important; 
    font-size: 16px !important; 
    letter-spacing: 1px !important; 
    margin: 0 auto !important;
    text-align: center !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    box-shadow: var(--shadow-md) !important;
}

.wpforms-submit-container, 
.rcp_form .submit, 
.buddypress-wrap #item-body .submit { 
    text-align: center !important; 
    width: 100% !important; 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    margin-top: 24px !important; 
    margin-bottom: 24px !important; 
}

img.wpforms-submit-spinner { 
    margin: 15px auto 0 !important; 
    width: 26px !important; 
    height: 26px !important; 
}

.jt-animated-btn { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-weight: 600 !important; 
}

.jt-header-buttons .jt-animated-btn { 
    margin: 0 !important; 
    white-space: nowrap !important; 
}

.gym-btn-primary, 
.gym-btn-secondary { 
    border-radius: var(--br-sm) !important; 
    font-size: 16px !important; 
    padding: 12px 28px !important; 
    white-space: nowrap !important; 
    text-align: center !important; 
    text-decoration: none !important; 
}

.gym-btn-primary { 
    background-color: var(--gym-green) !important; 
    color: var(--gym-cream) !important; 
    border: 2px solid var(--gym-green) !important; 
}

.gym-btn-primary:hover { 
    background-color: var(--gym-green-dark) !important; 
    border-color: var(--gym-green-dark) !important; 
}

.gym-btn-secondary { 
    background-color: var(--gym-cream) !important; 
    color: var(--gym-green) !important; 
    border: 2px solid var(--gym-green) !important; 
}

.gym-btn-secondary:hover { 
    background-color: var(--gym-success-bg) !important; 
}

/* --- Avisos Globales (Errores, Éxito, Info) --- */
.wpforms-container .wpforms-confirmation-container-full, 
.wpforms-container .wpforms-confirmation-container, 
.rcp_success, 
div.rcp_message.success, 
.wpforms-container .wpforms-error-container, 
.rcp_error, 
div.rcp_message, 
.bp-feedback, 
.bp-template-notice, 
.buddypress-wrap .bp-avatar-status p {
    border-radius: var(--br-sm) !important; 
    padding: 24px !important; 
    text-align: left !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important; 
    margin: 24px auto !important; 
    max-width: 800px !important; 
    box-sizing: border-box !important; 
    display: flex !important; 
    align-items: center !important;
}

.wpforms-container .wpforms-confirmation-container-full p, 
.wpforms-container .wpforms-confirmation-container p, 
.wpforms-container .wpforms-error-container p, 
.rcp_success, 
.rcp_success p, 
.rcp_error, 
.rcp_error p, 
div.rcp_message p, 
div.rcp_message, 
div.rcp_message.success p, 
.bp-feedback p, 
.bp-template-notice p, 
.buddypress-wrap .bp-avatar-status p {
    font-family: inherit !important; 
    font-size: 16px !important; 
    font-weight: 500 !important; 
    line-height: 1.6 !important; 
    margin: 0 !important; 
    padding: 0 !important;
}

/* Éxito */
.wpforms-container .wpforms-confirmation-container-full, 
.wpforms-container .wpforms-confirmation-container, 
.rcp_success, 
div.rcp_message.success, 
.bp-feedback.success, 
.bp-template-notice.success, 
.buddypress-wrap .bp-avatar-status p.success { 
    background: var(--gym-success-bg) !important; 
    border: 1px solid var(--gym-success-border) !important; 
    border-left: 6px solid var(--gym-green) !important; 
}

.wpforms-container .wpforms-confirmation-container-full p, 
.wpforms-container .wpforms-confirmation-container p, 
.rcp_success, 
.rcp_success p, 
div.rcp_message.success p, 
.bp-feedback.success p, 
.bp-template-notice.success p, 
.buddypress-wrap .bp-avatar-status p.success { 
    color: var(--gym-success-text) !important; 
}

/* Error */
.wpforms-container .wpforms-error-container, 
.rcp_error, 
.bp-feedback.error, 
.bp-template-notice.error, 
.buddypress-wrap .bp-avatar-status p.error { 
    background: var(--gym-red-bg) !important; 
    border: 1px solid #fecaca !important; 
    border-left: 6px solid var(--gym-red) !important; 
}

.wpforms-container .wpforms-error-container p, 
.rcp_error, 
.rcp_error p, 
.bp-feedback.error p, 
.bp-template-notice.error p, 
.buddypress-wrap .bp-avatar-status p.error { 
    color: var(--gym-red-dark) !important; 
}

/* Info */
div.rcp_message, 
.bp-feedback.info, 
.bp-template-notice.info, 
.buddypress-wrap .bp-avatar-status p.warning { 
    background: var(--gym-info-bg) !important; 
    border: 1px solid var(--gym-info-border) !important; 
    border-left: 6px solid var(--gym-info-accent) !important; 
}

div.rcp_message p, 
.bp-feedback.info p, 
div.rcp_message, 
.bp-template-notice.info p, 
.buddypress-wrap .bp-avatar-status p.warning { 
    color: var(--gym-info-text) !important; 
}

.bp-feedback span.bp-icon, 
.bp-template-notice span.bp-icon { 
    display: none !important; 
}

/* Errores Inline */
em.wpforms-error, 
label.wpforms-error, 
span.wpforms-error, 
.rcp_error_field, 
.rcp-field-error { 
    color: var(--gym-red) !important; 
    font-family: inherit !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    font-style: normal !important; 
    margin-top: 6px !important; 
    display: block !important; 
    letter-spacing: 0.3px !important; 
    line-height: 1.4 !important; 
}

input.wpforms-error, 
textarea.wpforms-error, 
select.wpforms-error, 
input.rcp-error, 
.error input { 
    border-color: var(--gym-red) !important; 
    background-color: var(--gym-red-bg) !important; 
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important; 
}

input.wpforms-error:focus, 
textarea.wpforms-error:focus, 
select.wpforms-error:focus { 
    border-color: var(--gym-red-dark) !important; 
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important; 
}

div.rcp_message.error { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    display: block !important; 
}

/* Modal Onboarding General */
.gym-onboarding-overlay { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100vw !important; 
    height: 100vh !important; 
    background: rgba(11, 6, 32, 0.85) !important; 
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important; 
    z-index: 2147483647 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    padding: 20px !important; 
    box-sizing: border-box !important;
    /* 🚀 MAGIA GPU: Fuerza la renderización por hardware */
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    will-change: opacity, backdrop-filter !important;
}

.gym-onboarding-overlay .onboarding-box { 
    max-height: 95vh !important; 
    overflow-y: auto !important; 
    animation: popupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important; 
    position: relative !important; 
    z-index: 2147483647 !important; 
}

@keyframes popupFadeIn { 
    0% { opacity: 0; transform: translate3d(0, 20px, 0) scale(0.95); } 
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } 
}

.onboarding-box .onboarding-header { 
    text-align: center !important; 
    margin-bottom: 30px !important; 
}

.onboarding-box .onboarding-header h2 { 
    color: var(--gym-green) !important; 
    font-size: 28px !important; 
    font-weight: 700 !important; 
    margin: 0 0 10px 0 !important; 
    line-height: 1.2 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 8px !important; 
}

.onboarding-box .onboarding-header h2 img.emoji { 
    width: 28px !important; 
    height: 28px !important; 
}

.onboarding-box .onboarding-header p { 
    color: rgba(0,0,0,0.6) !important; 
    font-size: 15px !important; 
    line-height: 1.5 !important; 
    margin: 0 !important; 
}

.pac-container { 
    z-index: 2147483647 !important; 
    border-radius: 8px !important; 
    font-family: inherit !important; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important; 
    border: 1px solid rgba(0,0,0,0.08) !important; 
    padding: 4px 0 !important; 
}

.pac-item { 
    padding: 10px 16px !important; 
    font-size: 14px !important; 
    color: var(--gym-dark) !important; 
    cursor: pointer !important; 
    border-top: none !important; 
}

.pac-item:hover { 
    background-color: var(--gym-cream) !important; 
}

.pac-item-query { 
    font-size: 15px !important; 
    color: var(--gym-green) !important; 
    font-weight: 600 !important; 
}

/* =========================================================
   FIX: ESTILOS PREMIUM PARA FORMULARIOS DE BREVO
   ========================================================= */
.sib_signup_form { 
    width: 100%; 
    margin: 0 auto; 
    text-align: left; 
    font-family: inherit; 
}

.sib_signup_form p { 
    margin-bottom: 12px !important; 
}

/* Inputs (Cajas de texto) */
.sib_signup_form input[type="text"], 
.sib_signup_form input[type="email"] { 
    width: 100% !important; 
    padding: 16px 18px !important; 
    border-radius: var(--br-sm) !important;
    border: 1px solid rgba(0,0,0,0.12) !important; 
    background-color: #fcfcfc !important;
    font-family: inherit !important; 
    font-size: 15px !important; 
    color: var(--gym-dark) !important;
    transition: all 0.3s ease !important; 
    box-sizing: border-box !important; 
}

/* Efecto Focus (Al hacer clic para escribir) */
.sib_signup_form input[type="text"]:focus, 
.sib_signup_form input[type="email"]:focus {
    border-color: var(--gym-green) !important; 
    background-color: #ffffff !important; 
    outline: none !important; 
    box-shadow: 0 0 0 3px rgba(46, 91, 60, 0.1) !important;
}

/* Checkbox Legal */
.sib_signup_form input[type="checkbox"] { 
    accent-color: var(--gym-green) !important; 
    transform: scale(1.2); 
    margin-right: 10px !important;
    cursor: pointer;
}

/* Botón de Enviar (Estilo Premium The Gym) */
.sib_signup_form input[type="submit"] { 
    width: 100% !important; 
    background-color: var(--gym-dark) !important; 
    color: #ffffff !important;
    border-radius: 50px !important; 
    font-weight: 800 !important; 
    text-transform: uppercase !important; 
    border: none !important;
    padding: 16px 24px !important; 
    font-size: 16px !important; 
    letter-spacing: 0.5px !important; 
    cursor: pointer !important; 
    transition: all 0.3s ease !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    margin-top: 10px !important;
    line-height: normal !important; /* Centrado vertical perfecto */
    -webkit-appearance: none !important; /* Resetea el estilo feo de iOS */
}

.sib_signup_form input[type="submit"]:hover { 
    background-color: var(--gym-green) !important; 
    transform: translateY(-3px) !important; 
    box-shadow: 0 6px 15px rgba(46,91,60,0.25) !important; 
}
/* =========================================================
   03. HEADER Y NAVEGACIÓN PRINCIPAL
   ========================================================= */
.jt-clean-header {
    position: fixed; 
    top: 0 !important; 
    left: 0; 
    right: 0; 
    z-index: 9999999 !important;
    background-color: var(--gym-cream); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    height: 100px; 
    display: flex; 
    align-items: center;
    -webkit-transform: translateZ(0); 
    transform: translateZ(0); 
    will-change: transform, top;
}

.jt-header-logo { 
    display: flex; 
    align-items: center; 
    flex: 0 0 auto; 
    transition: var(--transition-smooth) !important; 
}

.jt-header-logo img { 
    height: 75px; 
    width: auto; 
    display: block; 
    transform: scale(1.1); 
    transform-origin: left center; 
    transition: var(--transition-smooth) !important; 
}

.jt-header-buttons { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
}

.jt-header-logo:hover img { 
    transform: translateY(-3px) scale(1.1) !important; 
    filter: drop-shadow(0 6px 10px rgba(46, 91, 60, 0.25)) brightness(1.05) !important; 
}

.jt-header-logo:active img { 
    transform: translateY(0px) scale(1.1) !important; 
    filter: drop-shadow(0 2px 4px rgba(46, 91, 60, 0.15)) !important; 
    transition: all 0.1s ease !important; 
}

.jt-header-container { 
    width: 100%; 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 0 16px; 
    box-sizing: border-box !important; 
}

.jt-clean-header .wp-block-navigation-item__content { 
    color: var(--gym-green) !important; 
    text-decoration: none !important; 
    font-weight: 600 !important; 
    text-transform: uppercase !important; 
    transition: all 0.2s ease !important; 
}

/* Estado Activo (Pastilla) */
.jt-clean-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
.jt-clean-header .wp-block-navigation-item.jt-nav-active .wp-block-navigation-item__content {
    background-color: var(--gym-green) !important; 
    color: var(--gym-cream) !important;
    border-radius: 50px !important; 
    padding: 8px 20px !important; 
    box-shadow: var(--shadow-sm) !important;
}

.jt-clean-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content:hover,
.jt-clean-header .wp-block-navigation-item.jt-nav-active .wp-block-navigation-item__content:hover {
    background-color: var(--gym-green-dark) !important; 
    opacity: 1 !important;
    transform: translateY(-2px) !important; 
    box-shadow: var(--shadow-md) !important;
}

@media (max-width: 768.98px) {
    .jt-clean-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content,
    .jt-clean-header .wp-block-navigation-item.jt-nav-active .wp-block-navigation-item__content { 
        display: inline-block !important; 
        width: auto !important; 
        padding: 12px 32px !important; 
    }
}

/* =========================================================
   04. FOOTER, LEGAL Y BANNER COOKIES
   ========================================================= */
.landing-footer { 
    background: transparent; 
    color: inherit; 
    max-width: 100% !important; 
    width: 100% !important; 
    margin: 0 !important; 
    padding: 40px 0 20px 0; 
    border-top: 1px solid rgba(0,0,0,0.08); 
    box-sizing: border-box !important; 
    overflow: hidden !important; 
}

.landing-footer .inner { 
    max-width: 1000px; 
    width: 100% !important; 
    margin: 0 auto; 
    padding: 0 24px !important; 
    box-sizing: border-box !important; 
}

.landing-footer h3 { 
    margin: 0 0 10px; 
    font-weight: 700; 
    font-size: 16px; 
    color: var(--gym-green); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.landing-footer .footer-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: grid; 
    gap: 6px; 
}

.landing-footer .footer-list a { 
    color: rgba(11, 6, 32, 0.7); 
    text-decoration: none; 
    font-size: 14px; 
    font-weight: 500; 
    transition: color 0.2s ease; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
}

.landing-footer .footer-list a:hover { 
    color: var(--gym-green); 
}

.landing-footer .footer-newsletter p { 
    color: rgba(11, 6, 32, 0.7); 
    font-size: 13px; 
    margin-bottom: 10px; 
    line-height: 1.4; 
}

.landing-footer .footer-newsletter form { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    width: 100% !important; 
    box-sizing: border-box !important; 
}

.landing-footer .footer-newsletter .wpforms-field-container, 
.landing-footer .footer-newsletter .wpforms-submit-container, 
.landing-footer .footer-newsletter .sib-form-block { 
    margin: 0 !important; 
    padding: 0 !important; 
    width: 100% !important; 
    margin-bottom: 6px !important; 
    box-sizing: border-box !important; 
}

.landing-footer .footer-newsletter label, 
.landing-footer .footer-newsletter .sib-form-message-panel { 
    display: none !important; 
}

.landing-footer .footer-newsletter input[type="email"], 
.landing-footer .footer-newsletter input[type="text"], 
.landing-footer .footer-newsletter button[type="submit"], 
.landing-footer .footer-newsletter input[type="submit"] { 
    display: block !important; 
    width: 100% !important; 
    max-width: 100% !important; 
    box-sizing: border-box !important; 
    border-radius: var(--br-sm) !important; 
    margin: 0 !important; 
    font-family: inherit !important; 
    font-size: 14px !important; 
}

.landing-footer .footer-newsletter input[type="email"], 
.landing-footer .footer-newsletter input[type="text"] { 
    padding: 10px 14px !important; 
    border: 1px solid rgba(0,0,0,0.15) !important; 
    background: #ffffff !important; 
    color: var(--gym-dark) !important; 
    outline: none !important; 
    transition: border-color 0.2s !important; 
}

.landing-footer .footer-newsletter input[type="email"]:focus, 
.landing-footer .footer-newsletter input[type="text"]:focus { 
    border-color: var(--gym-green) !important; 
}

.landing-footer .footer-newsletter button[type="submit"], 
.landing-footer .footer-newsletter input[type="submit"] { 
    border: none !important; 
    background: var(--gym-green) !important; 
    color: var(--gym-cream) !important; 
    font-weight: 700 !important; 
    cursor: pointer !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    transition: all 0.2s !important; 
    margin-top: 4px !important; 
    -webkit-appearance: none !important; 
}

.landing-footer .footer-newsletter button[type="submit"]:hover, 
.landing-footer .footer-newsletter input[type="submit"]:hover { 
    background: var(--gym-green-dark) !important; 
    transform: translateY(-2px) !important; 
    box-shadow: var(--shadow-md) !important; 
}

/* CSS ACTUALIZADO PARA 3 COLUMNAS */
.landing-footer .footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reducimos el ancho mínimo un poco */
    gap: 40px; /* Reducimos ligeramente el hueco para que respiren las 3 */
    align-items: start; 
    max-width: 1050px; /* Ampliamos para que quepan bien en escritorio */
    margin: 0 auto 40px auto; 
    box-sizing: border-box !important; 
}

/* --- BARRA INFERIOR (LEGAL + COPYRIGHT) --- */
.landing-footer .copyright-bar { 
    border-top: 1px solid rgba(0,0,0,0.06); 
    padding-top: 20px; 
    display: flex; 
    justify-content: center; /* Alinea los elementos al centro */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
}

.landing-footer .copyright-bar small {
    color: rgba(11, 6, 32, 0.5); 
    font-size: 13px;
    font-weight: 500;
    margin: 0 auto; 
    line-height: 1.6; /* Añadido para el interlineado */
}

.jt-footer-links { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.jt-footer-links a { 
    font-size: 13px; 
    color: rgba(11, 6, 32, 0.5); 
    text-decoration: none; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    transition: color 0.2s ease; 
}

.jt-footer-links a:hover { 
    color: var(--gym-green); 
}

/* --- ADAPTACIÓN MÓVIL (1 columna, alineación izquierda) --- */
@media (max-width: 768.98px) {
    .landing-footer .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
        text-align: left; 
    }
    .landing-footer .footer-widget p {
        margin-left: 0; 
        margin-right: 0;
    }
    .landing-footer .copyright-bar {
        flex-direction: column;
        align-items: center; 
        text-align: center;
        gap: 12px; 
    }
    .jt-footer-links {
        justify-content: flex-start; 
    }
}

/* --- FOOTER INTERNO (ZONA PRIVADA) --- */
.jt-internal-footer {
    width: 100% !important;
    padding: 30px 24px;
    border-top: 1px solid rgba(0,0,0,0.06); 
    background-color: transparent;
    box-sizing: border-box !important;
}

.jt-internal-footer-container {
    max-width: 1000px !important; 
    margin: 0 auto !important; 
    display: flex !important;
    justify-content: space-between !important; 
    align-items: center !important;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box !important;
}

/* Estilo para el texto del copyright para igualarlo al texto legal del footer externo */
.jt-footer-copy {
    color: rgba(11, 6, 32, 0.5) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
/* --- ENLACES PREMIUM "EXPLORA" (Alineados a The Gym) --- */
.footer-explore-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px; /* Un poco más de aire ya que las mayúsculas "pesan" más */
}

.gym-premium-link {
    display: inline-flex;
    align-items: center;
    color: rgba(11, 6, 32, 0.6); /* Un grisáceo sutil para no robar protagonismo */
    text-decoration: none;
    font-size: 13px; /* Igualamos al tamaño de tus footer-links antiguos */
    font-weight: 700; /* Fuerza y contundencia */
    text-transform: uppercase; /* ADN The Gym */
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* La flecha oculta a la izquierda */
.gym-premium-link::before {
    content: '→';
    color: var(--gym-green);
    position: absolute;
    left: -20px;
    opacity: 0;
    font-size: 15px; /* Flecha un pelín más grande que el texto */
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Efecto hover: Desplazamiento, color corporativo y flecha */
.gym-premium-link:hover {
    color: var(--gym-dark);
    transform: translateX(20px);
}

.gym-premium-link:hover::before {
    opacity: 1;
}
/* --- TEXTOS DEL FOOTER --- */
/* Párrafos legibles, amables y elegantes */
.footer-body-text {
    color: rgba(11, 6, 32, 0.7);
    font-size: 14px;
    font-weight: 500; /* Peso medio, sin llegar a bold */
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 20px;
    max-width: 350px;
}

/* Label del checkbox legal */
.footer-legal-label {
    font-size: 13px; /* Tamaño discreto */
    font-weight: 500;
    line-height: 1.4;
    color: rgba(11, 6, 32, 0.7);
    cursor: pointer;
    margin: 0;
}

.footer-legal-label a {
    color: var(--gym-dark);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-legal-label a:hover {
    color: var(--gym-green);
}

/* --- INPUTS PREMIUM (PLACEHOLDERS) --- */
/* Le damos a los placeholders el mismo diseño rudo/premium de los enlaces */
.premium-input::placeholder {
    color: rgba(11, 6, 32, 0.4);
    font-size: 12px; /* Un pelín más pequeño para que no compita con el texto escrito */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Y nos aseguramos de que el texto que escriba el usuario sea legible y oscuro */
.premium-input {
    color: var(--gym-dark) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}
/* --- Ocultar el badge flotante de reCAPTCHA de Google --- */
.grecaptcha-badge { 
    display: none !important; 
    visibility: hidden !important; 
    opacity: 0 !important;
}

/* =========================================================
   BANNER DE COOKIES Y BOTÓN FLOTANTE (COMPLIANZ)
   ========================================================= */

/* --- 1. BANNER PRINCIPAL (Tarjeta Premium Alineada al Contenedor) --- */
.cmplz-cookiebanner { 
    position: fixed !important; 
    bottom: 24px !important; 
    right: max(24px, calc(50vw - 484px)) !important; 
    left: auto !important; 
    top: auto !important;
    width: 100% !important; 
    max-width: 360px !important; 
    background-color: #ffffff !important; 
    border-radius: var(--br-xl) !important; 
    border: 1px solid rgba(0,0,0,0.06) !important; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important; 
    padding: 24px !important; 
    font-family: inherit !important; 
    box-sizing: border-box !important;
    z-index: 999999 !important; 
    flex-direction: column !important;
    gap: 16px !important;
}

/* El banner solo se muestra y se anima cuando el plugin le añade la clase .cmplz-show */
.cmplz-cookiebanner.cmplz-show {
    display: flex !important;
    animation: jtSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ⏪ FIX LEGAL: Mantenemos la animación en 2D. 
   La aceleración 3D en elementos fixed rompe el viewport en algunos móviles. */
@keyframes jtSlideUp {
    0% { transform: translateY(120%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Cabecera y Título */
.cmplz-cookiebanner .cmplz-header { 
    padding: 0 !important; 
    margin: 0 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
}

.cmplz-cookiebanner .cmplz-header .cmplz-title { 
    color: var(--gym-dark) !important; 
    font-weight: 800 !important; 
    font-size: 1.1rem !important; 
    margin: 0 !important; 
}

.cmplz-cookiebanner .cmplz-close { 
    color: rgba(11, 6, 32, 0.4) !important; 
    width: 24px !important; 
    height: 24px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    transition: color 0.2s !important; 
    cursor: pointer !important; 
}

.cmplz-cookiebanner .cmplz-close:hover { 
    color: var(--gym-red) !important; 
}

.cmplz-cookiebanner .cmplz-divider { 
    display: none !important; 
}

/* Texto descriptivo */
.cmplz-cookiebanner .cmplz-body { 
    padding: 0 !important; 
    margin: 0 !important; 
}

.cmplz-cookiebanner .cmplz-body .cmplz-message { 
    color: rgba(11, 6, 32, 0.6) !important; 
    font-size: 0.85rem !important; 
    line-height: 1.5 !important; 
    margin: 0 !important; 
}

/* Botones (Diseño vertical limpio y FIX OVERFLOW) */
.cmplz-cookiebanner .cmplz-buttons { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 8px !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    width: 100% !important;
    box-sizing: border-box !important;
}

/* FIX: Forzamos a que TODOS los botones, sean button o etiqueta 'a', respeten el ancho */
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn,
.cmplz-cookiebanner .cmplz-buttons a.cmplz-btn { 
    box-sizing: border-box !important;
    width: 100% !important; 
    max-width: 100% !important;
    margin: 0 !important; 
    border-radius: 50px !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    padding: 12px 20px !important; 
    font-size: 0.8rem !important; 
    transition: var(--transition-smooth) !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    white-space: normal !important; 
    text-align: center !important;
    line-height: 1.2 !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept { 
    background-color: var(--gym-green) !important; 
    color: #fff !important; 
    border: none !important; 
    order: 1 !important; 
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny { 
    background-color: transparent !important; 
    color: var(--gym-red) !important; 
    border: 1px solid rgba(220, 38, 38, 0.2) !important; 
    order: 2 !important; 
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences, 
.cmplz-cookiebanner .cmplz-buttons a.cmplz-btn.cmplz-manage-options { 
    background-color: transparent !important; 
    color: var(--gym-dark) !important; 
    border: 1px solid rgba(0,0,0,0.1) !important; 
    order: 3 !important; 
    text-decoration: none !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences { 
    background-color: var(--gym-green) !important; 
    color: #fff !important; 
    border: none !important; 
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn:hover,
.cmplz-cookiebanner .cmplz-buttons a.cmplz-btn:hover { 
    transform: translateY(-2px) !important; 
    box-shadow: var(--shadow-sm) !important; 
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover { 
    background-color: var(--gym-red-bg) !important; 
    border-color: var(--gym-red) !important; 
}

/* Enlaces del pie (Políticas) */
.cmplz-cookiebanner .cmplz-links.cmplz-information { 
    display: none !important; 
}

.cmplz-cookiebanner .cmplz-documents.cmplz-links { 
    margin-top: 0 !important; 
    padding-top: 0 !important; 
    border: none !important; 
}

.cmplz-cookiebanner .cmplz-documents.cmplz-links ul { 
    display: flex !important; 
    gap: 15px !important; 
    justify-content: center !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.cmplz-cookiebanner .cmplz-documents.cmplz-links a { 
    color: rgba(11, 6, 32, 0.5) !important; 
    font-weight: 600 !important; 
    text-decoration: underline !important; 
    font-size: 0.75rem !important; 
    transition: color 0.2s ease !important; 
}

.cmplz-cookiebanner .cmplz-documents.cmplz-links a:hover { 
    color: var(--gym-green) !important; 
}

/* Categorías */
.cmplz-cookiebanner .cmplz-categories { 
    margin-top: 10px !important; 
}

.cmplz-cookiebanner .cmplz-category { 
    border: 1px solid rgba(0,0,0,0.06) !important; 
    border-radius: var(--br-sm) !important; 
    margin-bottom: 8px !important; 
    background: #fafafa !important; 
}

.cmplz-cookiebanner .cmplz-category summary { 
    padding: 12px !important; 
    font-size: 0.85rem !important; 
}

.cmplz-cookiebanner .cmplz-category .cmplz-description { 
    font-size: 0.8rem !important; 
    padding: 0 12px 12px 12px !important; 
    color: rgba(11, 6, 32, 0.6) !important; 
}

/* --- ADAPTACIÓN MÓVIL COOKIES --- */
@media (max-width: 768.98px) {
    .cmplz-cookiebanner {
        bottom: 16px !important;
        right: 16px !important;
        left: 16px !important;
        max-width: calc(100vw - 32px) !important;
        width: auto !important;
    }
}
/* =========================================================
   ESTILOS BLOQUE UPSAL DE LOGIN
   ========================================================= */

.gym-login-upsell {
    max-width: 480px;
    margin: 0 auto 60px auto;
    padding: 40px 30px;
    background-color: var(--gym-info-bg); /* Tu fondo crema */
    border: 2px dashed var(--gym-info-border);
    border-radius: var(--br-xl);
    text-align: center;
    box-sizing: border-box;
}

.gym-login-upsell h3 {
    color: var(--gym-dark);
    font-weight: 800;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.gym-login-upsell .upsell-description {
    color: rgba(11, 6, 32, 0.7);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.gym-login-upsell .gym-btn-primary {
    display: inline-block;
    background-color: var(--gym-dark) !important;
    border-color: var(--gym-dark) !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gym-login-upsell .gym-btn-primary:hover {
    background-color: var(--gym-green) !important;
    border-color: var(--gym-green) !important;
}

.gym-login-upsell .upsell-proof {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Ajuste específico para que el contador se vea bien aquí dentro */
.gym-login-upsell .gym-trusted-wrapper {
    margin: 0 auto;
    gap: 12px;
}

.gym-login-upsell .gym-trusted-text {
    font-size: 0.95rem;
    color: var(--gym-dark);
    opacity: 0.8;
}

/* En móvil ocupamos casi todo el ancho */
@media (max-width: 768.98px) {
    .gym-login-upsell {
        width: calc(100% - 32px);
        padding: 30px 20px;
    }
}
/* =========================================================
   05. LANDING PAGE Y HOME
   ========================================================= */
body.page-id-13 main#wp--skip-link--target { 
    padding-top: 2rem !important; 
}

body.page-id-13 .entry-content.has-global-padding { 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
    max-width: 100% !important; 
}

/* --- NUEVO HERO (GRID Y CAPTACIÓN) --- */
.gym-hero-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 50px; 
    align-items: center; 
}

/* --- CARRUSEL DE TARJETAS EN EL HERO --- */
.gym-hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px; 
    display: flex;
    align-items: center;
    justify-content: center; 
}

.gym-carousel-container {
    position: relative;
    width: 100%;
    max-width: 520px; 
    height: 260px;    
    z-index: 1;
}

.hero-carousel-card {
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    box-sizing: border-box;
    opacity: 0;
    animation: heroCarouselCycle 12s infinite ease-in-out;
}

/* Tiempos de entrada para 3 tarjetas */
.hero-carousel-card.card-1 { animation-delay: 0s; }
.hero-carousel-card.card-2 { animation-delay: 4s; }
.hero-carousel-card.card-3 { animation-delay: 8s; }

@keyframes heroCarouselCycle {
    0%, 25% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        z-index: 2; 
    }
    30%, 95% { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.95); 
        z-index: 1; 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        z-index: 2; 
    }
}

/* --- ADAPTACIÓN MÓVIL PARA EL HERO (REEMPLAZA ESTO EN TU CSS) --- */
@media (max-width: 860px) {
    .gym-hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 20px;
    }
    
    .gym-hero-text { 
        text-align: center !important; 
        /* 1. Forzamos que el texto vaya primero */
        order: 1; 
    }
    
    .gym-hero-actions { 
        align-items: center !important; 
        justify-content: center !important;
    }
    
    .gym-carousel-container { 
        /* 2. Empujamos el carrusel abajo */
        order: 2; 
        margin-bottom: 1rem; 
    }
    
    .gym-hero-visual { 
        /* 3. Empujamos también el contenedor visual abajo por si acaso */
        order: 2; 
        margin-bottom: 1rem; 
        padding: 0 20px; 
    }
    
    .jt-ui-mockup { 
        transform: none; 
    }
    
    .jt-ui-mockup:hover { 
        transform: none; 
    }
}

/* --- EL MOCKUP HTML PREMIUM --- */
.jt-ui-mockup { 
    background: #fff; 
    border-radius: 16px; 
    border: 1px solid rgba(0,0,0,0.08); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    overflow: hidden; 
    font-family: system-ui, -apple-system, sans-serif; 
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); 
    transition: transform 0.4s ease; 
}

.jt-ui-mockup:hover { 
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.12); 
}

.mockup-header { 
    background: #f8f9fa; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    padding: 12px 16px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.mockup-dots { 
    display: flex; 
    gap: 6px; 
}

.mockup-dots span { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    display: block; 
}

.mockup-dots span:nth-child(1) { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }

.mockup-url { 
    background: #fff; 
    border: 1px solid rgba(0,0,0,0.05); 
    border-radius: 6px; 
    padding: 4px 12px; 
    font-size: 0.75rem; 
    color: #888; 
    flex: 1; 
    text-align: center; 
}

.mockup-body { 
    padding: 24px; 
    background: var(--gym-cream); 
}

.mockup-user { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 24px; 
}

.mockup-user .m-avatar { 
    width: 48px; 
    height: 48px; 
    background: #ccc; 
    border-radius: 50%; 
    border: 2px solid var(--gym-green); 
}

.mockup-user .m-info { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.mockup-user .m-name { 
    font-weight: 800; 
    color: var(--gym-dark); 
    font-size: 1.1rem; 
}

.mockup-user .m-badge { 
    background: #fab91b; 
    color: #000; 
    font-size: 0.65rem; 
    font-weight: 800; 
    padding: 2px 8px; 
    border-radius: 12px; 
}

.mockup-card { 
    background: #fff; 
    border-radius: 12px; 
    padding: 20px; 
    box-shadow: var(--shadow-sm); 
    border: 1px solid rgba(0,0,0,0.04); 
    margin-bottom: 16px; 
}

.m-card-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 12px; 
}

.m-tag { 
    background: #fef2f2; 
    color: #dc2626; 
    font-size: 0.7rem; 
    font-weight: 700; 
    padding: 3px 8px; 
    border-radius: 8px; 
    text-transform: uppercase; 
}

.m-timer { 
    font-family: monospace; 
    color: var(--gym-info-accent); 
    font-weight: 800; 
}

.m-title { 
    margin: 0 0 16px 0; 
    font-size: 1.1rem; 
    color: var(--gym-dark); 
    font-weight: 800; 
}

.m-progress-labels { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #888; 
    margin-bottom: 6px; 
}

.m-progress-bar { 
    background: #f0f0f0; 
    height: 8px; 
    border-radius: 4px; 
    overflow: hidden; 
}

.m-fill { 
    background: var(--gym-green); 
    height: 100%; 
    border-radius: 4px; 
    animation: loadBar 2s ease-out forwards; 
}

.mockup-action .m-btn { 
    background: var(--gym-dark); 
    color: #fff; 
    text-align: center; 
    padding: 12px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 0.9rem; 
}

@keyframes loadBar { 
    from { width: 0; } 
}

/* --- EL MÉTODO (3 PASOS) --- */
.gym-method-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
}

.method-step { 
    text-align: center; 
    padding: 20px; 
}

.method-step .step-num { 
    width: 48px; 
    height: 48px; 
    background: var(--gym-info-accent); 
    color: #000; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    font-weight: 900; 
    margin: 0 auto 16px auto; 
}

.method-step h3 { 
    color: var(--gym-dark); 
    font-size: 1.3rem; 
    font-weight: 800; 
    margin: 0 0 12px 0; 
}

.method-step p { 
    color: rgba(11, 6, 32, 0.7); 
    font-size: 1.05rem; 
    line-height: 1.6; 
    margin: 0; 
}

/* --- SECCIÓN DE BENEFICIOS (GRID) --- */
.gym-benefits-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    width: 100% !important; 
    max-width: 1000px !important; 
    margin: 0 auto !important; 
    box-sizing: border-box !important;
}

.gym-benefit-card { 
    background: #fff; 
    border: 1px solid rgba(0,0,0,0.08); 
    border-radius: var(--br-lg); 
    padding: 30px; 
    box-shadow: var(--shadow-sm); 
    transition: transform 0.3s, box-shadow 0.3s; 
}

.gym-benefit-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-card); 
    border-color: var(--gym-green); 
}

.gym-benefit-card .icon { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
}

.gym-benefit-card h3 { 
    color: var(--gym-dark); 
    font-size: 1.3rem; 
    font-weight: 800; 
    margin: 0 0 12px 0; 
}

.gym-benefit-card p { 
    color: rgba(11, 6, 32, 0.7); 
    font-size: 1.05rem; 
    line-height: 1.6; 
    margin: 0; 
}

.gym-benefit-card.highlight { 
    background: var(--gym-dark); 
    border-color: var(--gym-info-accent); 
}

.gym-benefit-card.highlight h3 { 
    color: #fff; 
}

.gym-benefit-card.highlight p { 
    color: rgba(255, 255, 255, 0.8); 
}

/* --- MAPA Y ACORDEONES FAQ --- */
.the-gym-map-container { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    max-width: 1100px; 
    width: 100%; 
    margin: 2rem auto; 
}

#gym-members-map { 
    width: 100%; 
    height: 450px; 
    min-height: 320px; 
    border-radius: var(--br-lg); 
    overflow: hidden; 
    box-shadow: 0 6px 20px rgba(0,0,0,.08); 
}

.the-gym-services-explained { 
    --wp--style--block-gap: 0 !important; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.the-gym-services-explained details { 
    border: 1px solid #ddd; 
    border-radius: var(--br-sm); 
    padding: 16px 20px; 
    background: #fff; 
    box-shadow: 0 2px 4px rgba(0,0,0,.02); 
    transition: box-shadow .2s ease; 
    cursor: pointer; 
}

.the-gym-services-explained details:hover { 
    box-shadow: 0 4px 10px rgba(0,0,0,.06); 
}

.the-gym-services-explained summary { 
    margin: 0; 
    font-size: 1.15rem; 
    font-weight: 700; 
    color: var(--gym-dark); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    list-style: none; 
    outline: none; 
}

.the-gym-services-explained summary::-webkit-details-marker { 
    display: none; 
}

.the-gym-services-explained summary::after { 
    content: "+"; 
    font-size: 1.5rem; 
    font-weight: 400; 
    color: var(--gym-green); 
    transition: transform .2s ease; 
}

.the-gym-services-explained details[open] summary::after { 
    content: "−"; 
}

.the-gym-services-explained details > *:not(summary) { 
    margin: 12px 0 0 0; 
    font-size: 1.05rem; 
    line-height: 1.6; 
    color: rgba(11,6,32,0.8); 
    animation: fadeIn .3s ease; 
}

/* --- ADAPTACIÓN MÓVIL PARA LA LANDING PAGE --- */
@media (max-width: 860px) {
    .gym-hero-grid { 
        grid-template-columns: 1fr; 
        text-align: center; 
        gap: 20px;
    }
    
    .gym-hero-text { 
        text-align: center !important; 
        order: 1; 
    }
    
    .gym-hero-actions { 
        align-items: center !important; 
        justify-content: center !important;
    }
    
    .gym-hero-visual { 
        order: 2; 
        margin-bottom: 1rem; 
        padding: 0 20px; 
        box-sizing: border-box !important; /* 👈 LA CLAVE 1: Evita que el padding sume ancho extra */
        width: 100%;
        overflow: hidden; /* Evita cualquier desbordamiento horizontal extra */
    }

    .gym-carousel-container { 
        margin: 0 auto !important; /* 👈 LA CLAVE 2: Fuerza el centrado absoluto */
        max-width: 100% !important; /* Asegura que quepa en pantallas muy estrechas como el iPhone SE */
    }
    
    .jt-ui-mockup { 
        transform: none; 
    }
    
    .jt-ui-mockup:hover { 
        transform: none; 
    }
}
/* =========================================================
   06. MEMBRESÍA Y PAGOS (RCP)
   ========================================================= */

/* Formularios Registro / Login RCP */
.registration-form-box {
    background-color: #ffffff !important; 
    border-radius: var(--br-xl) !important; 
    padding: 40px 50px !important;
    box-shadow: var(--shadow-card) !important; 
    border: 1px solid rgba(0,0,0,0.04) !important; 
    width: 100% !important;
    max-width: 480px !important; 
    margin: 20px auto 60px auto !important; 
    box-sizing: border-box !important;
}

.registration-form-box .rcp_header { 
    color: var(--gym-green) !important; 
    font-size: 26px !important; 
    font-weight: 700 !important; 
    text-align: center !important; 
    margin-top: 0 !important; 
    margin-bottom: 10px !important; 
}

.registration-form-box .rcp_description, 
.registration-form-box .rcp_login_link, 
.registration-form-box .rcp_lost_password { 
    text-align: center !important; 
    color: rgba(11, 6, 32, 0.6) !important; 
    font-size: 14px !important; 
    margin-bottom: 24px !important; 
}

.registration-form-box a { 
    color: var(--gym-green) !important; 
    font-weight: 600 !important; 
    text-decoration: none !important; 
    transition: color 0.2s ease !important; 
}

.registration-form-box a:hover { 
    color: var(--gym-info-accent) !important; 
}

.rcp_form p { 
    margin-bottom: 20px !important; 
}

.rcp_form p:last-child { 
    margin-bottom: 0 !important; 
}

/* Resumen RCP Premium */
.rcp_registration_total { 
    margin-top: 24px !important; 
    border-top: none !important; 
    padding-top: 0 !important; 
    display: block !important; 
    width: 100% !important; 
}

.rcp_registration_total_details { 
    width: 100% !important; 
    border-collapse: collapse !important; 
    font-size: 14px !important; 
    display: block !important; 
    background: #fcfcfc !important; 
    border-radius: var(--br-sm) !important; 
    border: 1px solid rgba(0,0,0,0.08) !important; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important; 
}

.rcp_registration_total_details thead, 
.rcp_registration_total_details th { 
    display: none !important; 
}

.rcp_registration_total_details tbody, 
.rcp_registration_total_details tfoot { 
    display: block !important; 
    width: 100% !important; 
    box-sizing: border-box !important; 
}

.rcp_registration_total_details tr { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    width: 100% !important; 
    border: none !important; 
    background: transparent !important; 
    margin: 0 !important; 
    padding: 12px 20px !important; 
    box-sizing: border-box !important; 
    box-shadow: none !important; 
}

.rcp_registration_total_details tfoot tr:not(:last-child) { 
    border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
}

.rcp_registration_total_details td { 
    display: block !important; 
    padding: 0 !important; 
    border: none !important; 
    color: rgba(11, 6, 32, 0.7) !important; 
    background: transparent !important; 
    width: auto !important; 
    text-align: left !important; 
}

.rcp_registration_total_details td::before { 
    content: none !important; 
    display: none !important; 
} 

.rcp_registration_total_details td:last-child { 
    text-align: right !important; 
    font-weight: 600 !important; 
    color: var(--gym-dark) !important; 
}

.rcp_registration_total_details .rcp-total { 
    background: #ffffff !important; 
    border-top: 1px solid rgba(0,0,0,0.08) !important; 
    border-radius: 0 0 var(--br-sm) var(--br-sm) !important; 
}

.rcp_registration_total_details .rcp-total td { 
    font-size: 16px !important; 
    color: var(--gym-green) !important; 
    padding-top: 0 !important; 
}

/* Checkbox Legal RCP */
.rcp_agree_to_terms_fieldset { 
    margin-top: 24px !important; 
    margin-bottom: 24px !important; 
    padding: 16px !important; 
    background-color: var(--gym-info-bg) !important; 
    border: 1px solid var(--gym-info-border) !important; 
    border-radius: var(--br-sm) !important; 
}

#rcp_agree_to_terms_wrap { 
    display: flex !important; 
    align-items: flex-start !important; 
    gap: 10px !important; 
    margin: 0 !important; 
}

#rcp_agree_to_terms_wrap input[type="checkbox"] { 
    margin-top: 4px !important; 
    flex-shrink: 0 !important; 
}

#rcp_agree_to_terms_wrap label { 
    font-size: 14px !important; 
    line-height: 1.5 !important; 
    color: rgba(11, 6, 32, 0.8) !important; 
}

/* Actualizar Tarjeta (Update Card) */
#rcp_update_card_form { 
    background-color: #ffffff !important; 
    border-radius: var(--br-xl) !important; 
    padding: 40px 50px !important; 
    box-shadow: var(--shadow-card) !important; 
    border: 1px solid rgba(0,0,0,0.04) !important; 
    width: 100% !important; 
    max-width: 550px !important; 
    margin: 20px auto 60px auto !important; 
    box-sizing: border-box !important; 
}

#rcp_update_card_form h3 { 
    color: var(--gym-dark) !important; 
    font-weight: 800 !important; 
    font-size: 1.5rem !important; 
    margin-bottom: 24px !important; 
    margin-top: 0 !important; 
    text-align: center !important; 
}

.rcp-gateway-saved-payment-methods { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 0 30px 0 !important; 
}

.rcp-gateway-saved-payment-methods li { 
    background: #fdf9ee !important; 
    border: 2px solid #eedec1 !important; 
    border-radius: var(--br-md) !important; 
    padding: 16px 20px !important; 
    margin-bottom: 12px !important; 
    transition: var(--transition-smooth) !important; 
    display: flex !important; 
    align-items: center !important; 
}

.rcp-gateway-saved-payment-methods li:hover { 
    border-color: var(--gym-info-accent) !important; 
    box-shadow: var(--shadow-sm) !important; 
}

.rcp-gateway-saved-payment-methods li label { 
    cursor: pointer !important; 
    width: 100% !important; 
    display: flex !important; 
    flex-wrap: wrap !important; 
    align-items: center !important; 
    gap: 8px !important; 
    font-size: 14px !important; 
    color: var(--gym-dark) !important; 
    font-weight: 600 !important; 
    margin: 0 !important; 
    text-transform: none !important; 
    letter-spacing: 0 !important; 
}

.rcp-gateway-saved-payment-methods li input[type="radio"] { 
    margin-right: 8px !important; 
    transform: scale(1.3) !important; 
    accent-color: var(--gym-green) !important; 
}

.rcp-gateway-saved-card-brand { 
    font-weight: 800 !important; 
    color: var(--gym-green) !important; 
    text-transform: uppercase !important; 
    font-size: 15px !important; 
}

.rcp-gateway-saved-card-last-4 { 
    font-family: monospace !important; 
    font-size: 15px !important; 
    background: #fff !important; 
    padding: 3px 8px !important; 
    border-radius: 6px !important; 
    border: 1px solid rgba(0,0,0,0.1) !important; 
    color: var(--gym-dark) !important; 
}

.rcp-gateway-saved-payment-method-sep { 
    color: rgba(0,0,0,0.2) !important; 
    margin: 0 4px !important; 
}

.rcp-gateway-saved-card-current { 
    background: var(--gym-success-bg) !important; 
    color: var(--gym-success-text) !important; 
    padding: 2px 8px !important; 
    border-radius: 12px !important; 
    font-size: 12px !important; 
    font-weight: 800 !important; 
    border: 1px solid var(--gym-success-border) !important; 
    text-transform: uppercase !important; 
}

.rcp-gateway-saved-card-delete { 
    margin-left: auto !important; 
}

.rcp-gateway-saved-card-delete a { 
    color: var(--gym-red) !important; 
    text-decoration: underline !important; 
    font-size: 13px !important; 
    font-weight: 700 !important; 
    transition: color 0.2s !important; 
}

.rcp-gateway-saved-card-delete a:hover { 
    color: var(--gym-red-dark) !important; 
}

.rcp-gateway-saved-payment-methods li.rcp-gateway-add-payment-method-wrap { 
    background: #f8f9fa !important; 
    border: 2px dashed #ccc !important; 
}

.rcp-gateway-saved-payment-methods li.rcp-gateway-add-payment-method-wrap:hover { 
    border-color: var(--gym-green) !important; 
    background: #f0fdf4 !important; 
}

.rcp-gateway-saved-payment-methods li.rcp-gateway-add-payment-method-wrap label { 
    color: var(--gym-green) !important; 
    font-weight: 700 !important; 
    font-size: 15px !important; 
}

#rcp-card-element { 
    width: 100% !important; 
    padding: 16px 18px !important; 
    border-radius: var(--br-sm) !important; 
    border: 1px solid rgba(0,0,0,0.12) !important; 
    background-color: #fcfcfc !important; 
    box-sizing: border-box !important; 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: center !important; 
    min-height: 52px !important; 
}

.StripeElement--focus { 
    border-color: var(--gym-green) !important; 
    background-color: #ffffff !important; 
    box-shadow: 0 0 0 3px rgba(46, 91, 60, 0.1) !important; 
}

/* Tablas Historial RCP (Escritorio) */
.rcp-table-wrapper { 
    background-color: #ffffff !important; 
    border-radius: var(--br-xl) !important; 
    padding: 40px !important; 
    box-shadow: var(--shadow-card) !important; 
    border: 1px solid rgba(0,0,0,0.04) !important; 
    width: 100% !important; 
    max-width: 900px !important; 
    margin: 40px auto 60px !important; 
    box-sizing: border-box !important; 
}

.rcp-table-wrapper h3 { 
    color: var(--gym-green) !important; 
    font-size: 22px !important; 
    font-weight: 700 !important; 
    margin: 0 0 20px 0 !important; 
    border-bottom: 2px solid var(--gym-cream) !important; 
    padding-bottom: 12px !important; 
    font-family: inherit !important; 
}

.rcp-table-wrapper h3:not(:first-child) { 
    margin-top: 40px !important; 
}

.rcp-table { 
    width: 100% !important; 
    border-collapse: collapse !important; 
    margin-bottom: 20px !important; 
    text-align: left !important; 
}

.rcp-table td button { 
    background-color: var(--gym-green) !important; 
    color: var(--gym-cream) !important; 
    border: 2px solid var(--gym-green) !important; 
    border-radius: var(--br-sm) !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    cursor: pointer !important; 
    transition: var(--transition-smooth) !important; 
    font-family: inherit !important; 
    padding: 10px 18px !important; 
    font-size: 12px !important; 
    letter-spacing: 0.5px !important; 
    white-space: nowrap !important; 
}

.rcp-table td button:hover { 
    transform: translateY(-3px) !important; 
    box-shadow: var(--shadow-hover) !important; 
    filter: brightness(1.05) !important; 
}

.rcp-table td button:active { 
    transform: translateY(0px) !important; 
    box-shadow: var(--shadow-sm) !important; 
    transition: all 0.1s ease !important; 
}

.jt-buddypress-rcp-container .rcp-table-wrapper { 
    background: transparent !important; 
    box-shadow: none !important; 
    border: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    max-width: 100% !important; 
}

.jt-buddypress-rcp-container h3 { 
    display: none !important; 
}

.jt-tab-resumen #rcp-payment-history, 
.jt-tab-resumen .jt-view-more-container, 
.jt-tab-historial #rcp-account-overview { 
    display: none !important; 
}

#rcp-payment-history.jt-has-hidden-rows tbody tr:nth-child(n+4) { 
    display: none !important; 
}

#rcp-payment-history.jt-has-hidden-rows.jt-show-all-rows tbody tr:nth-child(n+4) { 
    display: block !important; 
    animation: jtFadeInRow 0.3s ease; 
}

@keyframes jtFadeInRow { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.jt-view-more-container { 
    text-align: center; 
    margin-top: -10px; 
    margin-bottom: 30px; 
}

.jt-view-more-btn { 
    background-color: transparent !important; 
    color: var(--gym-green) !important; 
    border: none !important; 
    font-weight: 700 !important; 
    font-size: 14px !important; 
    text-transform: uppercase; 
    cursor: pointer; 
    padding: 10px 20px; 
    letter-spacing: 0.5px; 
    text-decoration: underline; 
}

.jt-view-more-btn:active { 
    opacity: 0.6; 
}

#rcp-account-overview, 
#rcp-payment-history { 
    border-collapse: separate !important; 
    border-spacing: 0 15px !important; 
    margin-top: -15px !important; 
    width: 100% !important; 
}

#rcp-account-overview thead th, 
#rcp-payment-history thead th { 
    border: none !important; 
    background: transparent !important; 
    color: rgba(11, 6, 32, 0.5) !important; 
    font-size: 12px !important; 
    letter-spacing: 1px !important; 
    padding: 0 24px 8px 24px !important; 
    text-align: left !important; 
}

#rcp-account-overview tbody tr, 
#rcp-payment-history tbody tr { 
    background-color: #ffffff !important; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important; 
    transition: var(--transition-smooth) !important; 
}

#rcp-account-overview tbody tr:hover, 
#rcp-payment-history tbody tr:hover { 
    box-shadow: var(--shadow-hover) !important; 
    transform: translateY(-2px) !important; 
}

#rcp-account-overview tbody td, 
#rcp-payment-history tbody td { 
    border-top: 1px solid rgba(0,0,0,0.04) !important; 
    border-bottom: 1px solid rgba(0,0,0,0.04) !important; 
    padding: 24px !important; 
    vertical-align: middle !important; 
    text-align: left !important; 
}

#rcp-account-overview tbody td:first-child, 
#rcp-payment-history tbody td:first-child { 
    border-radius: var(--br-md) 0 0 var(--br-md) !important; 
    border-left: 4px solid var(--gym-green) !important; 
}

#rcp-account-overview tbody td:last-child, 
#rcp-payment-history tbody td:last-child { 
    border-radius: 0 var(--br-md) var(--br-md) 0 !important; 
    border-right: 1px solid rgba(0,0,0,0.04) !important; 
    width: 220px !important; 
    text-align: right !important; 
}

#rcp-account-overview tbody td:first-child, 
#rcp-payment-history tbody td:first-child, 
#rcp-account-overview td[data-th="Estado"], 
#rcp-account-overview td[data-th="Estado de pago"], 
#rcp-payment-history td[data-th="Estado de pago"], 
#rcp-payment-history td[data-th="Cantidad"] { 
    font-weight: 800 !important; 
    font-size: 17px !important; 
    color: var(--gym-dark) !important; 
}

#rcp-account-overview td:last-child br, 
#rcp-payment-history td:last-child br { 
    display: none !important; 
}

#rcp-account-overview td:last-child a, 
#rcp-payment-history td:last-child a { 
    display: inline-block !important; 
    width: auto !important; 
    margin: 0 !important; 
}

#rcp-account-overview td:last-child a:last-of-type, 
#rcp-payment-history td:last-child a:last-of-type { 
    margin-bottom: 0 !important; 
}

#rcp-account-overview td:last-child button, 
#rcp-payment-history td:last-child button { 
    width: auto !important; 
    padding: 10px 24px !important; 
    white-space: nowrap !important; 
    box-sizing: border-box !important; 
    display: inline-flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
}

/* Modal Cancelación RCP */
.gym-cancel-modal-overlay { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100vw !important; 
    height: 100vh !important; 
    background: rgba(11, 6, 32, 0.85) !important; 
    backdrop-filter: blur(12px) !important; 
    -webkit-backdrop-filter: blur(12px) !important; 
    z-index: 2147483647 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    padding: 20px !important; 
    box-sizing: border-box !important; 
    animation: fadeIn 0.3s ease;
    /* 🚀 MAGIA GPU: Fuerza la renderización por hardware */
    transform: translateZ(0) !important;
    backface-visibility: hidden !important;
    will-change: opacity, backdrop-filter !important; 
}

.gym-cancel-modal-box { 
    background: #fff; 
    padding: 40px 30px; 
    border-radius: 24px; 
    text-align: center; 
    max-width: 450px; 
    width: 100%; 
    border: 4px solid var(--gym-red, #dc2626); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    animation: popupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.gym-cancel-modal-box h2 { 
    margin-top: 0; 
    font-weight: 900; 
    font-size: 2rem; 
    color: var(--gym-dark); 
    letter-spacing: -0.5px; 
    margin-bottom: 15px; 
}

.gym-cancel-modal-box p { 
    color: rgba(11, 6, 32, 0.8); 
    font-weight: 500; 
    font-size: 1.05rem; 
    line-height: 1.5; 
    margin-bottom: 30px; 
}

.gym-cancel-modal-buttons { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.gym-cancel-btn-confirm { 
    background: var(--gym-red, #dc2626) !important; 
    color: #fff !important; 
    border: none !important; 
    padding: 14px 20px !important; 
    font-size: 1.15rem !important; 
    font-weight: 800 !important; 
    border-radius: 50px !important; 
    cursor: pointer !important; 
    width: 100% !important; 
    transition: transform 0.2s ease !important; 
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3) !important; 
}

.gym-cancel-btn-confirm:hover { 
    background: var(--gym-red-dark, #991b1b) !important; 
    transform: translateY(-2px) !important; 
}

.gym-cancel-btn-abort { 
    background: transparent !important; 
    color: rgba(11, 6, 32, 0.6) !important; 
    border: 2px solid rgba(0,0,0,0.1) !important; 
    padding: 14px 20px !important; 
    font-size: 1rem !important; 
    font-weight: 700 !important; 
    border-radius: 50px !important; 
    cursor: pointer !important; 
    width: 100% !important; 
    transition: all 0.2s ease !important; 
}

.gym-cancel-btn-abort:hover { 
    background: var(--gym-cream) !important; 
    color: var(--gym-dark) !important; 
}
/* =========================================================
   NUEVO CHECKOUT PREMIUM THE GYM (60/40)
   ========================================================= */

/* 1. Layout Principal */
.gym-checkout-container {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr; /* Proporción 60/40 aproximada */
    gap: 50px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 5rem auto;
}

/* 2. Columna Izquierda (Acción) */
/* Limpiamos la caja del registro para que ocupe el 100% de su columna */
.gym-clean-registration-box {
    background: #ffffff;
    border-radius: var(--br-xl);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
}

/* Ocultar basura nativa de RCP (títulos duplicados) */
.gym-clean-registration-box h3.rcp_header,
.gym-clean-registration-box .rcp_description,
.gym-clean-registration-box .rcp_login_link {
    display: none !important;
}

/* -------------------------------------------
   A. MAGIA DE ETIQUETAS (Micro-copy Premium)
   ------------------------------------------- */
.gym-clean-registration-box label {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: rgba(11, 6, 32, 0.6) !important;
    margin-bottom: 6px !important;
    display: block !important;
}


/* -------------------------------------------
   C. "ASESINAR" LA TABLA FEA DE RCP
   ------------------------------------------- */
.gym-clean-registration-box .rcp_registration_total {
    margin: 0 0 25px 0 !important;
}
.gym-clean-registration-box .rcp_registration_total_details {
    display: block !important;
    width: 100% !important;
    background: #fdf9ee !important;
    border: 2px dashed #eedec1 !important;
    border-radius: var(--br-md) !important;
    padding: 16px 20px !important;
    box-shadow: none !important;
}
/* Ocultamos thead y tbody (Donde sale el "Detalles de membresía") */
.gym-clean-registration-box .rcp_registration_total_details thead,
.gym-clean-registration-box .rcp_registration_total_details tbody {
    display: none !important;
}
.gym-clean-registration-box .rcp_registration_total_details tfoot {
    display: block !important;
}
/* Convertimos el "Total Hoy" en un flexbox elegante */
.gym-clean-registration-box .rcp_registration_total_details tfoot tr.rcp-total {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}
.gym-clean-registration-box .rcp_registration_total_details tfoot tr.rcp-total td {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}
.gym-clean-registration-box .rcp_registration_total_details tfoot tr.rcp-total td:first-child {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--gym-dark) !important;
    text-transform: none !important;
}
.gym-clean-registration-box .rcp_registration_total_details tfoot tr.rcp-total td:last-child {
    color: var(--gym-green) !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
}
/* --- INYECCIÓN DEL TEXTO RECURRENTE (/ MES) --- */
.gym-clean-registration-box .rcp_registration_total_details tfoot tr.rcp-total td:last-child::after {
    content: " / mes" !important;
    font-size: 0.95rem !important; /* Más pequeño para no restar impacto al número */
    font-weight: 600 !important; /* Menos peso que el 900 del precio principal */
    color: rgba(11, 6, 32, 0.5) !important; /* Gris elegante, el mismo que usas para micro-copy */
    margin-left: 6px !important; /* Separación sutil */
    white-space: nowrap !important; /* EVITA QUE SE ROMPA EN MÓVIL: Mantiene el número y el texto en la misma línea */
}
/* Ocultamos los totales recurrentes y fechas que ensucian */
.gym-clean-registration-box .rcp_registration_total_details tfoot tr:not(.rcp-total) {
    display: none !important;
}

/* Ocultar zona de cupones (elimina distracciones) */
fieldset.rcp_discounts_fieldset { display: none !important; }

/* Botón de Pagar */
#rcp_submit_wrap { margin-top: 24px !important; }
#rcp_submit {
    width: 100% !important;
    padding: 18px !important;
    font-size: 1.15rem !important;
    font-weight: 900 !important;
    border-radius: 50px !important;
    box-shadow: 0 6px 15px rgba(46,91,60,0.25) !important;
}

/* 3. Columna Derecha (Refuerzo) y Sticky */
.gym-checkout-summary-col {
    position: sticky;
    top: 120px; /* Hace que baje con el usuario, respetando tu header de 100px */
}

.gym-checkout-benefits-card {
    background-color: var(--gym-info-bg);
    border: 1px solid var(--gym-info-border);
    border-radius: var(--br-xl);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.gym-checkout-benefits-card h3 {
    color: var(--gym-dark);
    font-weight: 800;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gym-info-border);
}
.gym-checkout-benefits-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gym-checkout-benefits-card li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: rgba(11, 6, 32, 0.8);
    line-height: 1.4;
}
.gym-checkout-benefits-card li:last-child { margin-bottom: 0; }
.gym-checkout-benefits-card li strong { color: var(--gym-dark); font-weight: 700; }

.gym-checkout-proof-card {
    background-color: #ffffff;
    border: 2px dashed #e5e3df;
    border-radius: var(--br-xl);
    padding: 30px;
}
.gym-proof-header {
    text-align: center;
    margin-bottom: 20px;
}
.gym-proof-header .lock-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 5px;
    line-height: 1;
}
.gym-proof-header span:last-child {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--gym-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.gym-proof-community .gym-trusted-wrapper {
    margin: 0 auto;
    justify-content: center;
}
.gym-proof-community .gym-trusted-text {
    font-size: 0.95rem;
}
.gym-proof-guarantee {
    font-size: 0.85rem;
    color: rgba(11, 6, 32, 0.6);
    text-align: center;
    margin: 20px 0 0 0;
    line-height: 1.5;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
/* -------------------------------------------
   B. ESTRUCTURA DE INPUTS (ALINEACIÓN CON STRIPE)
   ------------------------------------------- */
#rcp_registration_form .rcp_user_fieldset {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    border: none !important;
}

#rcp_registration_form .rcp_user_fieldset p {
    display: block !important;
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Alineación exacta con la tarjeta de crédito */
#rcp_registration_form .rcp_user_fieldset p input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* (Opcional) Si sigues teniendo el truco para cambiar el texto de "Repetir Contraseña", puedes dejarlo debajo de esto */

/* =========================================================
   UNIFICACION DE TAMANO: BOTONES ACTUALIZAR, CANCELAR Y RENOVAR
   ========================================================= */

/* Matamos el salto de linea invisible nativo de RCP que rompe el diseno */
#rcp-account-overview td:last-child br {
    display: none !important;
}

/* Estilos base en Escritorio */
#rcp-account-overview td:last-child a.rcp_sub_details_update_card,
#rcp-account-overview td:last-child a.rcp_sub_details_cancel,
#rcp-account-overview td:last-child a.rcp_sub_details_renew {
    display: block !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 0 12px auto !important;
}

#rcp-account-overview td:last-child a.rcp_sub_details_update_card button,
#rcp-account-overview td:last-child a.rcp_sub_details_cancel button,
#rcp-account-overview td:last-child a.rcp_sub_details_renew button {
    width: 100% !important; 
    min-width: 100% !important; 
    padding: 14px 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

/* OVERRIDE ESTRICTO PARA MOVILES - ALINEACION PERFECTA A LA DERECHA */
@media (max-width: 768.98px) {
    /* 1. EL ORIGEN DEL PROBLEMA: Matamos el ancho fijo de 220px que venia del escritorio */
    .buddypress-wrap #rcp-account-overview tbody td:last-child,
    .buddypress-wrap #rcp-payment-history tbody td:last-child {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        display: grid !important;
        grid-template-columns: 40% 1fr !important; /* 40% para ACCIONES, 60% para los botones */
        gap: 12px 0px !important;
        align-items: start !important;
        padding: 16px 20px !important;
        box-sizing: border-box !important;
    }
    
    /* 2. Etiqueta ACCIONES a la izquierda CENTRADA VERTICALMENTE */
    .buddypress-wrap #rcp-account-overview tbody td:last-child::before,
    .buddypress-wrap #rcp-payment-history tbody td:last-child::before {
        grid-column: 1 !important;
        grid-row: 1 / 10 !important; /* Para que abarque la altura de todos los botones */
        align-self: center !important; /* LA MAGIA: Centrado vertical matemático */
        margin: 0 !important;
        text-align: left !important;
        padding-top: 0 !important; /* Quitamos el relleno superior para que el centrado sea perfecto */
        width: 100% !important;
    }
    
    /* 3. Forzamos a los botones a vivir en la columna derecha y estirarse al maximo */
    .buddypress-wrap #rcp-account-overview tbody td:last-child a,
    .buddypress-wrap #rcp-payment-history tbody td:last-child a {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 12px 0 !important;
    }
    
    .buddypress-wrap #rcp-account-overview tbody td:last-child a:last-of-type {
        margin-bottom: 0 !important;
    }
}

/* Estilo advertencia (rojo) para el de Cancelar */
#rcp-account-overview td:last-child a.rcp_sub_details_cancel button {
    background-color: transparent !important;
    color: var(--gym-red) !important;
    border: 2px solid var(--gym-red) !important;
}

#rcp-account-overview td:last-child a.rcp_sub_details_cancel button:hover {
    background-color: var(--gym-red-bg) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-hover) !important;
}

/* Estilo destacado (amarillo) para el de Renovar */
#rcp-account-overview td:last-child a.rcp_sub_details_renew button {
    background-color: var(--gym-info-accent) !important; 
    color: #000 !important;
    border: 2px solid var(--gym-info-accent) !important;
}

#rcp-account-overview td:last-child a.rcp_sub_details_renew button:hover {
    filter: brightness(1.05) !important;
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-hover) !important;
}

/* =========================================================
   FIX DEFINITIVO: CELDA FECHA DE VENCIMIENTO Y RENOVACION
   ========================================================= */
@media (max-width: 768.98px) {
    /* Mantenemos el contenedor flexible */
    .buddypress-wrap #rcp-account-overview tbody td[data-th="Fecha de vencimiento/renovación"],
    .buddypress-wrap #rcp-account-overview tbody td[data-th="Expiration/Renewal Date"] {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        padding: 16px 20px !important;
    }

    /* Configuracion base para la etiqueta izquierda */
    .buddypress-wrap #rcp-account-overview tbody td[data-th="Fecha de vencimiento/renovación"]::before,
    .buddypress-wrap #rcp-account-overview tbody td[data-th="Expiration/Renewal Date"]::before {
        flex: 0 0 45% !important;
        max-width: 45% !important;
        margin-right: auto !important;
        text-align: left !important;
        line-height: 1.4 !important;
        align-self: flex-start !important;
        
        /* LA CLAVE: Activamos el soporte para saltos de linea manuales */
        white-space: pre-wrap !important; 
    }

    /* Sobrescribimos el texto nativo en ESPANOL inyectando el salto (\A) despues de la barra */
    .buddypress-wrap #rcp-account-overview tbody td[data-th="Fecha de vencimiento/renovación"]::before {
        content: "Fecha de vencimiento/ \A renovación" !important;
    }

    /* Sobrescribimos el texto nativo en INGLES inyectando el salto (\A) despues de la barra */
    .buddypress-wrap #rcp-account-overview tbody td[data-th="Expiration/Renewal Date"]::before {
        content: "Expiration/ \A Renewal Date" !important;
    }

    /* El aviso de auto-renovacion se mantiene en su propia linea abajo a la derecha */
    .buddypress-wrap .rcp-membership-auto-renew-notice {
        flex: 0 0 100% !important;
        width: 100% !important;
        text-align: right !important;
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        color: rgba(11, 6, 32, 0.6) !important;
        margin-top: 8px !important;
        display: block !important;
    }
}
/* =========================================================
   FIX: DISEÑO PREMIUM LOGIN (RCP)
   ========================================================= */

/* Convertimos el formulario en un Grid para alinear elementos perfectamente */
#rcp_login_form .rcp_login_data {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
}

/* Anulamos los márgenes de los párrafos nativos que ensucian el diseño */
#rcp_login_form .rcp_login_data p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Las cajas de Usuario, Contraseña y el Botón ocupan todo el ancho (las 2 columnas) */
#rcp_login_form .rcp_login_data p:nth-child(1),
#rcp_login_form .rcp_login_data p:nth-child(2),
#rcp_login_form .rcp_login_data p:nth-child(5) {
    grid-column: 1 / -1 !important;
}

/* El Checkbox de "Recuérdame" se queda anclado a la izquierda */
#rcp_login_form .rcp_login_data p:nth-child(3) {
    grid-column: 1 / 2 !important;
    display: flex !important;
    align-items: center !important;
}

/* El enlace de "Perdí mi contraseña" se ancla a la derecha, en la misma línea */
#rcp_login_form .rcp_lost_password {
    grid-column: 2 / 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: right !important;
}

/* Estilo premium para el enlace de recuperar contraseña */
#rcp_login_form .rcp_lost_password a {
    color: var(--gym-green) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

#rcp_login_form .rcp_lost_password a:hover {
    color: var(--gym-info-accent) !important;
}

/* Un botón "Entrar" mucho más contundente y con forma de píldora */
#rcp_login_form input[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    border-radius: 50px !important; 
    margin-top: 10px !important;
    font-size: 16px !important;
}

/* Adaptación móvil: Si la pantalla es muy pequeña, apilamos el checkbox y el enlace */
@media (max-width: 480px) {
    #rcp_login_form .rcp_login_data {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    #rcp_login_form .rcp_lost_password {
        justify-content: flex-start !important;
        margin-top: -8px !important;
    }
}
/* =========================================================
   ESTILOS BLOQUE UPSELL DE LOGIN
   ========================================================= */

.gym-login-upsell {
    max-width: 480px;
    margin: 0 auto 60px auto;
    padding: 40px 30px;
    background-color: var(--gym-info-bg);
    border: 2px dashed var(--gym-info-border);
    border-radius: var(--br-xl);
    text-align: center;
    box-sizing: border-box;
}

.gym-login-upsell h3 {
    color: var(--gym-dark);
    font-weight: 800;
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.gym-login-upsell .upsell-description {
    color: rgba(11, 6, 32, 0.7);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.gym-login-upsell .gym-btn-primary {
    display: inline-block;
    background-color: var(--gym-dark) !important;
    border-color: var(--gym-dark) !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gym-login-upsell .gym-btn-primary:hover {
    background-color: var(--gym-green) !important;
    border-color: var(--gym-green) !important;
}

.gym-login-upsell .upsell-proof {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Ajuste específico para que el contador se vea bien aquí dentro */
.gym-login-upsell .gym-trusted-wrapper {
    margin: 0 auto;
    gap: 12px;
}

.gym-login-upsell .gym-trusted-text {
    font-size: 0.95rem;
    color: var(--gym-dark);
    opacity: 0.8;
}

/* En móvil ocupamos casi todo el ancho */
@media (max-width: 768.98px) {
    .gym-login-upsell {
        width: calc(100% - 32px);
        padding: 30px 20px;
    }
}
/* =========================================================
   07. COMUNIDAD Y ZONA PRIVADA (BUDDYPRESS)
   ========================================================= */
body.buddypress .entry-content { 
    max-width: 100% !important; 
    padding-left: 0 !important; 
    padding-right: 0 !important; 
}

.entry-content { 
    /* Cambiamos hidden por clip para que el efecto sticky de las cartas funcione */
    overflow-x: clip !important; 
    overflow-y: visible !important;
}

.buddypress-wrap { 
    display: block !important; 
}

.buddypress-wrap .bp-wrap { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 0 !important; 
    margin: 0 !important; 
}

/* Perfil Cabecera */
.buddypress-wrap #item-header { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    text-align: center !important; 
    gap: 15px !important; 
    padding: 0 !important; 
    border: none !important; 
    background: transparent !important; 
    margin-bottom: 32px !important; 
    width: 100% !important; 
    box-sizing: border-box !important; 
}

.buddypress-wrap #item-header-avatar, 
.buddypress-wrap #item-header-content { 
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    width: 100% !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.buddypress-wrap #item-header-avatar a { 
    display: block !important; 
    margin: 0 auto !important; 
    padding: 0 !important; 
}

.buddypress-wrap #item-header-avatar img.avatar { 
    width: 120px !important; 
    height: 120px !important; 
    border-radius: 50% !important; 
    object-fit: cover !important; 
    border: 2px solid var(--gym-green) !important; 
    box-shadow: none !important; 
    margin: 0 auto !important; 
    display: block !important; 
}

.buddypress-wrap #item-header-content { 
    flex-direction: column !important; 
}

.buddypress-wrap #item-header-content h2.user-nicename { 
    font-size: 24px !important; 
    font-weight: 600 !important; 
    margin: 0 0 4px 0 !important; 
    padding: 0 !important; 
    width: 100% !important; 
    text-align: center !important; 
    display: block !important; 
}

.buddypress-wrap #item-header-content .item-meta, 
.buddypress-wrap #item-header-content .activity { 
    font-size: 13px !important; 
    color: rgba(0,0,0,0.65) !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    text-align: center !important; 
}

.buddypress-wrap .member-header-actions { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    justify-content: center !important; 
    width: 100% !important; 
    gap: 10px !important; 
    margin-top: 15px !important; 
}

.buddypress-wrap .member-header-actions .generic-button { 
    margin: 0 !important; 
    padding: 0 !important; 
}

.buddypress-wrap .member-header-actions a, 
.buddypress-wrap .member-header-actions button { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    white-space: nowrap !important; 
    padding: 10px 20px !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    border-radius: 24px !important; 
    background-color: #f4f4f4 !important; 
    color: var(--gym-dark) !important; 
    border: 1px solid transparent !important; 
    transition: all 0.2s ease !important; 
    height: 40px !important; 
    box-sizing: border-box !important; 
    text-decoration: none !important; 
    box-shadow: none !important; 
}

.buddypress-wrap .member-header-actions a:hover, 
.buddypress-wrap .member-header-actions button:hover { 
    background-color: #e5e5e5 !important; 
    transform: translateY(-2px) !important; 
}

.buddypress-wrap .member-header-actions .add { 
    background-color: var(--gym-green) !important; 
    color: #ffffff !important; 
}

.buddypress-wrap .member-header-actions .add:hover { 
    background-color: var(--gym-green-dark) !important; 
    transform: translateY(-2px) !important; 
}

/* Menús Navegación BuddyPress */
.buddypress-wrap .bp-wrap > #object-nav, 
.buddypress-wrap #item-body #subnav, 
.buddypress-wrap .activity-type-navs ul { 
    display: flex !important; 
    flex-direction: row !important; 
    flex-wrap: nowrap !important; 
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch !important; 
    scrollbar-width: none !important; 
    width: 100% !important; 
    padding: 5px 0 15px 0 !important; 
    margin: 0 0 16px 0 !important; 
    background: transparent !important; 
    border: none !important; 
    position: relative !important; 
    z-index: 50 !important; 
    justify-content: center !important; 
}

.buddypress-wrap #object-nav::-webkit-scrollbar, 
.buddypress-wrap #item-body #subnav::-webkit-scrollbar, 
.buddypress-wrap .activity-type-navs ul::-webkit-scrollbar { 
    display: none !important; 
}

.buddypress-wrap button.submenu-expand, 
.buddypress-wrap .bp-priority-nav-more-toggle, 
.buddypress-wrap .primary-nav-more, 
.buddypress-wrap .secondary-nav-more { 
    display: none !important; 
}

.buddypress-wrap #object-nav ul, 
.buddypress-wrap #object-nav li, 
.buddypress-wrap #item-body #subnav ul, 
.buddypress-wrap #item-body #subnav li, 
.buddypress-wrap .activity-type-navs li { 
    display: contents !important; 
}

.buddypress-wrap #object-nav a, 
.buddypress-wrap #item-body #subnav a, 
.buddypress-wrap .activity-type-navs a { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    white-space: nowrap !important; 
    padding: 10px 20px !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    border-radius: 24px !important; 
    background-color: #f4f4f4 !important; 
    color: var(--gym-dark) !important; 
    border: 1px solid transparent !important; 
    transition: all 0.2s ease !important; 
    height: 40px !important; 
    margin-right: 8px !important; 
    box-sizing: border-box !important; 
    text-decoration: none !important; 
    position: relative !important; 
    z-index: 100 !important;
}

.buddypress-wrap #object-nav a:hover, 
.buddypress-wrap #item-body #subnav a:hover, 
.buddypress-wrap .activity-type-navs a:hover { 
    background-color: #e5e5e5 !important; 
}

.buddypress-wrap #object-nav li.current > a, 
.buddypress-wrap #object-nav li.selected > a, 
.buddypress-wrap #item-body #subnav li.current > a, 
.buddypress-wrap #item-body #subnav li.selected > a, 
.buddypress-wrap .activity-type-navs li.selected > a, 
.buddypress-wrap .activity-type-navs li.current > a { 
    background-color: var(--gym-green) !important; 
    color: #ffffff !important; 
    box-shadow: var(--shadow-md) !important; 
}

.buddypress-wrap .activity-type-navs span.count { 
    background: rgba(0,0,0,0.1) !important; 
    color: inherit !important; 
    padding: 2px 6px !important; 
    border-radius: 10px !important; 
    font-size: 11px !important; 
    margin-left: 6px !important; 
}

.buddypress-wrap .activity-type-navs li.selected span.count { 
    background: rgba(255,255,255,0.2) !important; 
    color: #ffffff !important; 
}

/* Ocultar pestaña de mensajes (redundante por el Bubble de Better Messages) */
li#messages-personal-li,
li#bp_better_messages_tab-personal-li,
a#user-messages,
a#user-bp_better_messages_tab {
    display: none !important;
}

/* Contenedores y Tablas Internas */
.buddypress-wrap #item-body #subnav-filters, 
.buddypress-wrap #item-body #subsubnav, 
.buddypress-wrap #item-body .profile .bp-widget, 
.buddypress-wrap #item-body form.standard-form { 
    border: 1px solid rgba(0,0,0,0.08) !important; 
    border-radius: 14px !important; 
    background: #fff !important; 
    padding: 20px !important; 
    margin: 0 0 14px !important; 
}

.buddypress-wrap #item-body .bp-screen-title, 
.buddypress-wrap #item-body .screen-heading, 
.buddypress-wrap #item-body .bp-heading { 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    color: rgba(0,0,0,0.65) !important; 
    margin: 0 0 14px 4px !important; 
    display: block !important; 
}

.buddypress-wrap #item-body, 
.buddypress-wrap #item-body p, 
.buddypress-wrap #item-body span, 
.buddypress-wrap #item-body label, 
.buddypress-wrap #item-body table, 
.buddypress-wrap #item-body td, 
.buddypress-wrap #item-body th { 
    font-family: inherit !important; 
    font-size: 14px !important; 
    font-weight: 400 !important; 
}

/* Directorio Miembros & Filtros */
.buddypress-wrap .subnav-filters, 
.buddypress-wrap .dir-filters { 
    display: flex !important; 
    justify-content: flex-end !important; 
    align-items: center !important; 
    margin-bottom: 20px !important; 
    border: none !important; 
    background: transparent !important; 
    padding: 0 !important; 
    box-shadow: none !important; 
}

.buddypress-wrap .subnav-filters label, 
.buddypress-wrap .dir-filters label { 
    display: none !important; 
}

.buddypress-wrap .select-wrap { 
    position: relative !important; 
    display: inline-flex !important; 
    margin: 0 !important; 
    padding: 0 !important; 
    border: none !important; 
    background: transparent !important; 
    box-shadow: none !important; 
    max-width: 100% !important; 
}

.buddypress-wrap .select-wrap .select-arrow { 
    display: none !important; 
}

.buddypress-wrap .select-wrap select { 
    min-width: 230px !important; 
    text-overflow: ellipsis !important; 
    white-space: nowrap !important; 
}

.bp-wrap .subnav-filters .select-wrap select {
    appearance: none !important; 
    -webkit-appearance: none !important; 
    width: 100% !important; 
    min-width: 220px !important;
    padding: 10px 40px 10px 20px !important; 
    border-radius: 24px !important; 
    border: 1px solid rgba(0,0,0,0.08) !important;
    background-color: #f4f4f4 !important; 
    color: var(--gym-dark) !important; 
    font-family: inherit !important; 
    font-size: 13px !important;
    font-weight: 600 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232e5b3c%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important; 
    background-position: right 14px center !important; 
    background-size: 16px !important;
}

.bp-wrap .subnav-filters .select-wrap select:hover { 
    background-color: #e5e5e5 !important; 
    border-color: rgba(46, 91, 60, 0.3) !important; 
    transform: translateY(-2px) !important; 
    box-shadow: var(--shadow-sm) !important; 
}

.bp-wrap .subnav-filters .select-wrap select:focus { 
    background-color: #ffffff !important; 
    border-color: var(--gym-green) !important; 
    outline: none !important; 
    box-shadow: 0 0 0 3px rgba(46, 91, 60, 0.1) !important; 
}

.bp-wrap .subnav-filters .select-wrap .select-arrow { 
    display: none !important; 
}

.gym-members-directory { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    justify-content: center; 
    gap: 24px; 
    width: 100%; 
    max-width: 1000px; 
    margin: 2rem auto 4rem auto; 
    padding: 0 16px; 
    box-sizing: border-box; 
}

.gym-user-card { 
    background-color: #ffffff; 
    border-radius: var(--br-md); 
    padding: 30px 20px; 
    text-align: center; 
    box-shadow: var(--shadow-card); 
    border: 1px solid rgba(0,0,0,0.04); 
    transition: var(--transition-smooth); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start; 
}

.gym-user-card:hover { 
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--gym-success-border); 
}

.gym-member-photo-container a { 
    display: block; 
}

.gym-member-photo { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid var(--gym-green); 
    margin-bottom: 16px; 
    transition: var(--transition-smooth); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.gym-user-card:hover .gym-member-photo { 
    transform: scale(1.05); 
    box-shadow: 0 6px 14px rgba(46, 91, 60, 0.2); 
}

.gym-member-name { 
    margin: 0 0 12px 0 !important; 
    font-size: 18px !important; 
    line-height: 1.3 !important; 
}

.gym-member-name a { 
    color: var(--gym-dark); 
    text-decoration: none; 
    font-weight: 700; 
    transition: color 0.2s; 
}

.gym-member-name a:hover { 
    color: var(--gym-green); 
}

.gym-member-detail { 
    font-size: 13px; 
    color: rgba(11, 6, 32, 0.7); 
    margin-bottom: 8px; 
    display: flex; 
    align-items: flex-start; 
    justify-content: center; 
    gap: 6px; 
    line-height: 1.4; 
}

.gym-detail-icon { 
    font-size: 14px; 
}

/* Contador Miembros Superpuestos */
.gym-trusted-wrapper { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    margin: 2rem auto; 
    font-family: inherit; 
}

.gym-trusted-avatars { 
    display: flex; 
    align-items: center; 
}

.gym-trusted-photo { 
    width: 54px; 
    height: 54px; 
    border-radius: 50%; 
    background-size: cover; 
    background-position: center; 
    border: none !important; 
    box-shadow: -3px 0 8px rgba(0,0,0,0.15); 
    margin-left: -15px; 
    position: relative; 
    transition: transform 0.2s ease, z-index 0s; 
}

.gym-trusted-photo:first-child { 
    margin-left: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.gym-trusted-photo:hover { 
    transform: translateY(-5px); 
    z-index: 10 !important; 
}

.gym-trusted-text { 
    font-size: 16px; 
    line-height: 1.4; 
    color: var(--gym-dark); 
    text-align: left; 
}

.gym-trusted-text strong { 
    color: var(--gym-green); 
    font-weight: 800; 
    font-size: 18px; 
}

/* Muro de Actividad */
.buddypress-wrap #item-body h2.bp-screen-title, 
.buddypress-wrap #item-body h2.bp-screen-reader-text { 
    display: none !important; 
}

.buddypress-wrap #bp-nouveau-activity-form, 
.buddypress-wrap #subnav-filters, 
.buddypress-wrap #activity-stream { 
    max-width: 900px !important; 
    margin-left: auto !important; 
    margin-right: auto !important; 
}

.buddypress-wrap .activity-update-form, 
.buddypress-wrap #activity-stream li.activity-item { 
    background-color: #ffffff !important; 
    border-radius: var(--br-xl) !important; 
    box-shadow: var(--shadow-card) !important; 
    border: 1px solid rgba(0,0,0,0.04) !important; 
    padding: 30px !important; 
    margin-bottom: 30px !important; 
}

.buddypress-wrap #whats-new-form { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    align-items: flex-start !important; 
}

.buddypress-wrap #whats-new-avatar { 
    display: block !important; 
    margin-right: 16px !important; 
    flex: 0 0 auto !important; 
}

.buddypress-wrap #whats-new-avatar img, 
.buddypress-wrap .activity-item .activity-avatar img { 
    width: 50px !important; 
    height: 50px !important; 
    border-radius: 50% !important; 
    object-fit: cover !important; 
    border: 2px solid var(--gym-green) !important; 
    box-shadow: var(--shadow-sm) !important; 
}

.buddypress-wrap #whats-new-content { 
    flex: 1 1 0% !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.buddypress-wrap #whats-new-textarea textarea { 
    min-height: 80px !important; 
    resize: none !important; 
    background: #f8f9fa !important; 
    border: 1px solid rgba(0,0,0,0.08) !important; 
    border-radius: var(--br-md) !important; 
    padding: 16px !important; 
    font-size: 15px !important; 
    transition: all 0.3s ease !important; 
    color: var(--gym-dark) !important; 
}

.buddypress-wrap #whats-new-textarea textarea:focus { 
    background: #fff !important; 
    border-color: var(--gym-green) !important; 
    box-shadow: 0 0 0 3px rgba(46, 91, 60, 0.1) !important; 
}

.buddypress-wrap #whats-new-options { 
    display: flex !important; 
    justify-content: flex-end !important; 
    width: 100% !important; 
    margin-top: 16px !important; 
}

.buddypress-wrap #whats-new-submit { 
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    flex-direction: row-reverse !important; 
}

.buddypress-wrap #whats-new-options input[type="submit"] { 
    background-color: var(--gym-green) !important; 
    color: var(--gym-cream) !important; 
    border: 2px solid var(--gym-green) !important; 
    border-radius: 24px !important; 
    padding: 10px 24px !important; 
    font-size: 13px !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    cursor: pointer !important; 
    transition: var(--transition-smooth) !important; 
    margin: 0 !important; 
    box-shadow: none !important; 
    width: auto !important; 
    min-width: fit-content !important; 
    white-space: nowrap !important; 
}

.buddypress-wrap #whats-new-options input[type="submit"]:hover { 
    background-color: var(--gym-green-dark) !important; 
    border-color: var(--gym-green-dark) !important; 
    transform: translateY(-2px) !important; 
    box-shadow: var(--shadow-hover) !important; 
}

.buddypress-wrap #whats-new-options input[type="reset"] { 
    background-color: transparent !important; 
    color: rgba(11, 6, 32, 0.5) !important; 
    border: 2px solid transparent !important; 
    border-radius: 24px !important; 
    padding: 10px 16px !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    cursor: pointer !important; 
    transition: var(--transition-smooth) !important; 
    margin: 0 !important; 
}

.buddypress-wrap #whats-new-options input[type="reset"]:hover { 
    color: var(--gym-red) !important; 
    background-color: var(--gym-red-bg) !important; 
    transform: translateY(-2px) !important; 
}

.buddypress-wrap .subnav-filters { 
    display: flex !important; 
    flex-direction: row !important; 
    justify-content: flex-end !important; 
    align-items: center !important; 
    gap: 16px !important; 
    margin-bottom: 24px !important; 
    padding: 0 !important; 
    border: none !important; 
    background: transparent !important; 
}

.buddypress-wrap .feed { 
    display: none !important; 
}

.buddypress-wrap .dir-search form { 
    display: flex !important; 
    align-items: center !important; 
    position: relative !important; 
    width: 100% !important; 
    max-width: 400px !important; 
    margin: 0 !important; 
}

.buddypress-wrap .dir-search input[type="search"] { 
    padding: 12px 20px 12px 45px !important; 
    border-radius: 24px !important; 
}

.buddypress-wrap .dir-search button { 
    position: absolute !important; 
    left: 15px !important; 
    background: transparent !important; 
    border: none !important; 
    color: rgba(0,0,0,0.4) !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    cursor: pointer !important; 
}

.buddypress-wrap .dir-search button:hover { 
    color: var(--gym-green) !important; 
}

.buddypress-wrap .activity-item .activity-avatar { 
    margin-right: 16px !important; 
    flex: 0 0 auto !important;
}

.buddypress-wrap .activity-item .activity-content { 
    flex: 1 !important; 
    min-width: 0 !important; 
    margin: 0 !important; 
}

.buddypress-wrap .activity-item .activity-header { 
    font-size: 14px !important; 
    color: rgba(0,0,0,0.5) !important; 
    margin-bottom: 12px !important; 
    line-height: 1.4 !important; 
}

.buddypress-wrap .activity-item .activity-header a { 
    color: var(--gym-dark) !important; 
    font-weight: 700 !important; 
    text-decoration: none !important; 
}

.buddypress-wrap .activity-item .activity-header a.view { 
    font-weight: 400 !important; 
    color: rgba(0,0,0,0.4) !important; 
    font-size: 12px !important; 
}

.buddypress-wrap .activity-item .activity-inner { 
    font-size: 15.5px !important; 
    color: var(--gym-dark) !important; 
    line-height: 1.6 !important; 
    margin-bottom: 16px !important; 
}

.buddypress-wrap .bp-member-activity-preview { 
    background-color: #fdf9ee !important; 
    border: 1px solid #eedec1 !important; 
    border-radius: var(--br-md) !important; 
    padding: 16px !important; 
    display: flex !important; 
    align-items: center !important; 
    gap: 16px !important; 
    margin-top: 10px !important; 
}

.buddypress-wrap .bp-member-activity-preview img.profile-photo { 
    width: 60px !important; 
    height: 60px !important; 
    border-radius: 50% !important; 
    border: 2px solid var(--gym-info-accent) !important; 
}

.buddypress-wrap .bp-member-short-description-title { 
    margin: 0 0 4px 0 !important; 
    font-size: 16px !important; 
    font-weight: 700 !important; 
}

.buddypress-wrap .bp-profile-button a { 
    margin-top: 8px !important; 
    padding: 6px 14px !important; 
    font-size: 12px !important; 
}

.buddypress-wrap .activity-meta { 
    display: flex !important; 
    gap: 8px !important; 
    border-top: 1px solid rgba(0,0,0,0.05) !important; 
    padding-top: 16px !important; 
    margin-top: 16px !important; 
    width: 100% !important; 
}

.buddypress-wrap .activity-meta .generic-button a { 
    background-color: transparent !important; 
    border: none !important; 
    color: rgba(0,0,0,0.5) !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    padding: 8px 16px !important; 
    border-radius: 24px !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    text-decoration: none !important; 
    transition: var(--transition-smooth) !important;
}

.buddypress-wrap .activity-meta .generic-button a:hover { 
    background-color: #f4f4f4 !important; 
    color: var(--gym-green) !important; 
}

/* Comentarios Muro */
.buddypress-wrap .activity-comments { 
    width: 100% !important; 
    margin-top: 16px !important; 
    background-color: #f8f9fa !important; 
    border-radius: var(--br-md) !important; 
    padding: 20px !important; 
    border: 1px solid rgba(0,0,0,0.03) !important; 
    box-sizing: border-box !important; 
}

.buddypress-wrap .ac-form { 
    display: flex !important; 
    gap: 16px !important; 
    width: 100% !important; 
}

.buddypress-wrap .ac-reply-avatar img { 
    width: 40px !important; 
    height: 40px !important; 
    border-radius: 50% !important; 
}

.buddypress-wrap .ac-reply-content { 
    flex: 1 !important; 
    display: flex !important; 
    flex-wrap: wrap !important; 
    justify-content: flex-end !important; 
    align-items: center !important; 
}

.buddypress-wrap .ac-textarea { 
    width: 100% !important; 
    flex: 0 0 100% !important; 
    margin-bottom: 12px !important; 
    text-align: left !important; 
}

.buddypress-wrap .ac-textarea textarea { 
    min-height: 50px !important; 
    width: 100% !important; 
    box-sizing: border-box !important; 
    background-color: #ffffff !important; 
    border: 1px solid rgba(0,0,0,0.1) !important; 
    border-radius: var(--br-sm) !important; 
    padding: 12px !important; 
    font-family: inherit !important; 
    outline: none !important; 
    resize: none !important; 
    transition: all 0.3s ease !important; 
}

.buddypress-wrap .ac-textarea textarea:focus { 
    border-color: var(--gym-green) !important; 
    box-shadow: 0 0 0 3px rgba(46, 91, 60, 0.1) !important; 
}

.buddypress-wrap .ac-reply-content input[type="submit"] { 
    order: 2 !important; 
    background-color: var(--gym-green) !important; 
    color: var(--gym-cream) !important; 
    border: 2px solid var(--gym-green) !important; 
    border-radius: 24px !important; 
    padding: 8px 24px !important; 
    font-size: 13px !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    cursor: pointer !important; 
    transition: var(--transition-smooth) !important; 
    margin: 0 0 0 10px !important; 
    box-shadow: none !important; 
    width: auto !important; 
    min-width: 0 !important; 
    flex: 0 0 auto !important; 
    white-space: nowrap !important; 
}

.buddypress-wrap .ac-reply-content input[type="submit"]:hover { 
    background-color: var(--gym-green-dark) !important; 
    border-color: var(--gym-green-dark) !important; 
    transform: translateY(-2px) !important; 
    box-shadow: var(--shadow-hover) !important; 
}

.buddypress-wrap .ac-reply-cancel { 
    order: 1 !important; 
    background-color: transparent !important; 
    color: rgba(11, 6, 32, 0.5) !important; 
    border: 2px solid transparent !important; 
    border-radius: 24px !important; 
    padding: 8px 20px !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    cursor: pointer !important; 
    transition: var(--transition-smooth) !important; 
    margin: 0 !important; 
    width: auto !important; 
    min-width: 0 !important; 
    flex: 0 0 auto !important; 
    white-space: nowrap !important; 
}

.buddypress-wrap .ac-reply-cancel:hover { 
    color: var(--gym-red) !important; 
    background-color: var(--gym-red-bg) !important; 
    transform: translateY(-2px) !important; 
}

/* Perfil Layout Premium Universal */
.buddypress-wrap #item-body h2.bp-screen-title, 
.buddypress-wrap #item-body h2.bp-screen-reader-text, 
.buddypress-wrap #item-body h2.screen-heading:not(.data-settings-screen), 
.buddypress-wrap #item-body > p.info.email-pwd-info, 
.buddypress-wrap #item-body > p.bp-help-text, 
.buddypress-wrap #item-body > p.info:not(.bp-messages), 
.buddypress-wrap #item-body > p:first-of-type:not(.bp-messages p):not(.buddypress-wrap #item-body > p) { 
    display: none !important; 
}

.buddypress-wrap #item-body .profile, 
.buddypress-wrap #item-body .notifications, 
.buddypress-wrap #item-body .members.friends, 
.buddypress-wrap #item-body form.standard-form { 
    max-width: 900px !important; 
    margin-left: auto !important; 
    margin-right: auto !important; 
    box-sizing: border-box !important; 
}

.buddypress-wrap #item-body .profile .bp-widget, 
.buddypress-wrap #item-body form.standard-form, 
.buddypress-wrap #item-body .notifications.dir-list > ul > li, 
.buddypress-wrap #item-body .members.friends > ul > li, 
.buddypress-wrap #item-body .bp-avatar, 
.buddypress-wrap #item-body .bp-avatar-nav, 
.buddypress-wrap #item-body .bp-feedback { 
    background-color: #ffffff !important; 
    border-radius: var(--br-xl) !important; 
    box-shadow: var(--shadow-card) !important; 
    border: 1px solid rgba(0,0,0,0.04) !important; 
    padding: 30px !important; 
    margin-bottom: 30px !important; 
}

.buddypress-wrap #item-body form#avatar-upload-form { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

/* Exportar / Eliminar Datos */
.buddypress-wrap #item-body h2.data-settings-screen { 
    display: block !important; 
    font-size: 1.5rem !important; 
    font-weight: 800 !important; 
    color: var(--gym-green) !important; 
    margin: 30px auto 15px auto !important; 
    text-align: center !important; 
    max-width: 900px !important; 
    border: none !important; 
}

.buddypress-wrap #item-body > p:not(.bp-feedback):not(.info) { 
    background: #fff !important; 
    padding: 24px 30px !important; 
    border-radius: var(--br-lg) !important; 
    border: 1px solid rgba(0,0,0,0.08) !important; 
    margin: 0 auto 15px auto !important; 
    color: var(--gym-dark) !important; 
    font-size: 1.05rem !important; 
    text-align: center !important; 
    max-width: 900px !important; 
    box-shadow: var(--shadow-sm) !important; 
}

.buddypress-wrap #item-body > ul { 
    background: #fff !important; 
    padding: 30px 30px 30px 60px !important; 
    border: 1px solid rgba(0,0,0,0.08) !important; 
    border-radius: var(--br-lg) !important; 
    margin: 0 auto 30px auto !important; 
    color: rgba(11, 6, 32, 0.8) !important; 
    font-size: 1.05rem !important; 
    max-width: 900px !important; 
    box-shadow: var(--shadow-sm) !important; 
}

.buddypress-wrap #item-body > ul li { 
    margin-bottom: 8px !important; 
    font-weight: 500 !important; 
    list-style: disc !important; 
}

.buddypress-wrap #item-body:has(#bp-data-export) > p + p { 
    border-radius: var(--br-lg) !important; 
    border-bottom: 1px solid rgba(0,0,0,0.08) !important; 
    margin-bottom: 30px !important; 
    box-shadow: var(--shadow-sm) !important; 
}

.buddypress-wrap #item-body:has(#bp-data-export) form#bp-data-export { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
    margin: 0 auto 40px auto !important; 
    max-width: 900px !important; 
}

.buddypress-wrap #bp-data-export button { 
    background-color: var(--gym-green) !important; 
    color: #ffffff !important; 
    border-radius: 50px !important; 
    font-weight: 800 !important; 
    text-transform: uppercase !important; 
    border: none !important; 
    padding: 16px 24px !important; 
    font-size: 16px !important; 
    cursor: pointer !important; 
    transition: var(--transition-smooth) !important; 
    box-shadow: var(--shadow-md) !important; 
    display: block !important; 
    margin: 0 auto 30px auto !important; 
    max-width: 400px !important; 
    width: 100% !important; 
}

.buddypress-wrap #bp-data-export button:hover { 
    transform: translateY(-3px) !important; 
    box-shadow: var(--shadow-hover) !important; 
    background-color: var(--gym-green-dark) !important; 
}

/* Pestaña Perfil Detalles */
.buddypress-wrap .profile .profile-group-title { 
    font-size: 1.4rem !important; 
    color: var(--gym-green) !important; 
    font-weight: 800 !important; 
    margin: 0 0 20px 0 !important; 
    padding-bottom: 15px !important; 
    border-bottom: 2px solid var(--gym-cream) !important; 
    display: block !important; 
    text-transform: none !important; 
    letter-spacing: normal !important; 
}

.buddypress-wrap .profile-fields { 
    width: 100% !important; 
    border-collapse: collapse !important; 
}

/* FIX: Fondos transparentes obligatorios para matar el gris en filas alternas */
.buddypress-wrap .profile-fields tr, 
.buddypress-wrap .profile-fields tr.alt, 
.buddypress-wrap .profile-fields tr:nth-child(odd), 
.buddypress-wrap .profile-fields tr:nth-child(even) { 
    display: flex !important; 
    flex-direction: column !important; 
    padding: 16px 0 !important; 
    border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
    background: transparent !important; 
    box-shadow: none !important; 
}

.buddypress-wrap .profile-fields td { 
    background: transparent !important; 
}

.buddypress-wrap .profile-fields tr:last-child { 
    border-bottom: none !important; 
    padding-bottom: 0 !important; 
}

.buddypress-wrap .profile-fields tr:first-child { 
    padding-top: 0 !important; 
}

.buddypress-wrap .profile-fields td.label { 
    font-size: 12px !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
    color: rgba(11,6,32,0.5) !important; 
    font-weight: 700 !important; 
    padding: 0 0 6px 0 !important; 
    width: 100% !important; 
    display: block !important; 
    border: none !important; 
}

.buddypress-wrap .profile-fields td.data { 
    font-size: 16px !important; 
    color: var(--gym-dark) !important; 
    font-weight: 600 !important; 
    padding: 0 !important; 
    display: block !important; 
    border: none !important; 
}

.buddypress-wrap .profile-fields td.data p { 
    margin: 0 !important; 
}

.buddypress-wrap .profile-fields td.data a { 
    color: var(--gym-green) !important; 
    text-decoration: none !important; 
}

/* Ajustes General y Contraseña */
.buddypress-wrap form.standard-form label { 
    font-weight: 700 !important; 
    font-size: 13px !important; 
    color: var(--gym-dark) !important; 
    margin-bottom: 8px !important; 
    display: block !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.5px !important; 
}

.buddypress-wrap form.standard-form label span { 
    font-weight: 400 !important; 
    font-size: 12px !important; 
    color: rgba(11,6,32,0.6) !important; 
    text-transform: none !important; 
    letter-spacing: 0 !important; 
    display: block !important; 
    margin-top: 4px !important; 
}

.buddypress-wrap form.standard-form input[type="password"], 
.buddypress-wrap form.standard-form input[type="email"], 
.buddypress-wrap form.standard-form input[type="text"] { 
    margin-bottom: 12px !important; 
    width: 100% !important; 
    box-sizing: border-box !important;
}

.buddypress-wrap form.standard-form input#pwd + a { 
    display: block !important; 
    text-align: left !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    color: var(--gym-green) !important; 
    text-decoration: underline !important; 
    margin-bottom: 24px !important; 
}

.buddypress-wrap form.standard-form > .info.bp-feedback { 
    display: none !important; 
}

.buddypress-wrap form.standard-form .submit { 
    margin-top: 30px !important; 
    padding-top: 24px !important; 
    border-top: 1px solid rgba(0,0,0,0.05) !important; 
    display: flex !important; 
    justify-content: center !important; 
}

.buddypress-wrap form.standard-form .submit input { 
    width: 100% !important; 
    max-width: 350px !important; 
}

.buddypress-wrap form.standard-form .user-pass1-wrap { 
    background: #f8f9fa !important; 
    border: 1px solid rgba(0,0,0,0.06) !important; 
    padding: 24px !important; 
    border-radius: var(--br-md) !important; 
    margin: 10px 0 24px 0 !important; 
}

.buddypress-wrap form.standard-form .user-pass1-wrap > .button { 
    background: transparent !important; 
    border: 2px solid var(--gym-green) !important; 
    color: var(--gym-green) !important; 
    border-radius: 50px !important; 
    padding: 12px 24px !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    transition: var(--transition-smooth) !important; 
    font-size: 13px !important; 
    cursor: pointer !important; 
    width: 100% !important; 
    box-shadow: none !important; 
    margin: 0 !important; 
}

.buddypress-wrap form.standard-form .user-pass1-wrap > .button:hover { 
    background: var(--gym-green) !important; 
    color: #fff !important; 
    transform: translateY(-2px) !important; 
    box-shadow: var(--shadow-hover) !important; 
}

.buddypress-wrap form.standard-form .wp-pwd { 
    margin-top: 16px !important; 
}

.buddypress-wrap form.standard-form .wp-pwd:not([style*="display"]) { 
    display: none !important; 
}

.buddypress-wrap form.standard-form .wp-pwd .password-input-wrapper { 
    display: block !important; 
    width: 100% !important; 
}

.buddypress-wrap form.standard-form .wp-pwd .password-input-wrapper input { 
    background-color: #fff !important; 
    font-family: monospace !important; 
    font-size: 16px !important; 
    letter-spacing: 1px !important; 
    color: var(--gym-green) !important; 
    text-align: center !important; 
}

.buddypress-wrap form.standard-form .wp-pwd .button { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 6px !important; 
    border-radius: 50px !important; 
    padding: 10px 20px !important; 
    font-weight: 700 !important; 
    font-size: 12px !important; 
    text-transform: uppercase !important; 
    cursor: pointer !important; 
    margin-right: 8px !important; 
    margin-bottom: 8px !important; 
    transition: var(--transition-smooth) !important; 
    border: 2px solid rgba(0,0,0,0.1) !important; 
    background: transparent !important; 
    color: rgba(11,6,32,0.6) !important; 
}

.buddypress-wrap form.standard-form .wp-pwd .button:hover { 
    background: var(--gym-cream) !important; 
    color: var(--gym-dark) !important; 
    border-color: rgba(0,0,0,0.2) !important; 
}

.buddypress-wrap form.standard-form .wp-pwd .button.wp-cancel-pw { 
    color: var(--gym-red) !important; 
    border-color: rgba(220,38,38,0.2) !important; 
}

.buddypress-wrap form.standard-form .wp-pwd .button.wp-cancel-pw:hover { 
    background: var(--gym-red-bg) !important; 
    border-color: var(--gym-red) !important; 
}

#pass-strength-result { 
    display: block !important; 
    margin-top: 16px !important; 
    padding: 12px !important; 
    border-radius: var(--br-sm) !important; 
    font-size: 13px !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    text-align: center !important; 
    letter-spacing: 0.5px !important; 
    border: 1px solid transparent !important; 
}

#pass-strength-result:empty { 
    display: none !important; 
}

#pass-strength-result.short, 
#pass-strength-result.bad { 
    background: var(--gym-red-bg) !important; 
    color: var(--gym-red-dark) !important; 
    border-color: #fecaca !important; 
}

#pass-strength-result.good, 
#pass-strength-result.strong { 
    background: var(--gym-success-bg) !important; 
    color: var(--gym-success-text) !important; 
    border-color: var(--gym-success-border) !important; 
}

.buddypress-wrap form.standard-form .pw-weak { 
    margin-top: 16px !important; 
    background: var(--gym-info-bg) !important; 
    padding: 16px !important; 
    border-radius: var(--br-sm) !important; 
    border: 1px solid var(--gym-info-border) !important; 
}

.buddypress-wrap form.standard-form .pw-weak label { 
    display: flex !important; 
    align-items: center !important; 
    gap: 10px !important; 
    margin: 0 !important; 
    font-size: 13px !important; 
    text-transform: none !important; 
    font-weight: 600 !important; 
    color: var(--gym-info-text) !important; 
    cursor: pointer !important; 
}

.buddypress-wrap form.standard-form .pw-weak input[type="checkbox"] { 
    margin: 0 !important; 
    transform: scale(1.2); 
    accent-color: var(--gym-info-accent) !important; 
}

/* Tablas Ajustes BuddyPress */
.buddypress-wrap table.notification-settings { 
    width: 100% !important; 
    border-collapse: collapse !important; 
    margin-bottom: 30px !important; 
    background: transparent !important;
}

.buddypress-wrap table.notification-settings th.icon, 
.buddypress-wrap table.notification-settings th.yes, 
.buddypress-wrap table.notification-settings th.no { 
    display: none !important; 
}

.buddypress-wrap table.notification-settings th.title { 
    display: block !important; 
    width: 100% !important; 
    text-align: left !important; 
    font-size: 13px !important; 
    font-weight: 800 !important; 
    color: var(--gym-green) !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important; 
    padding: 10px 0 15px 0 !important; 
    border-bottom: 2px solid var(--gym-cream) !important; 
}

/* FIX: Fondos transparentes obligatorios para matar el gris en filas alternas */
.buddypress-wrap table.notification-settings tbody tr, 
.buddypress-wrap table.notification-settings tbody tr.alt, 
.buddypress-wrap table.notification-settings tbody tr:nth-child(odd), 
.buddypress-wrap table.notification-settings tbody tr:nth-child(even) { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    padding: 20px 0 !important; 
    border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
    gap: 15px !important; 
    background: transparent !important; 
    box-shadow: none !important; 
}

.buddypress-wrap table.notification-settings td { 
    background: transparent !important; 
}

.buddypress-wrap table.notification-settings tbody tr:last-child { 
    border-bottom: none !important; 
}

.buddypress-wrap table.notification-settings td:first-child:empty, 
.buddypress-wrap table.notification-settings td.icon { 
    display: none !important; 
}

.buddypress-wrap table.notification-settings td:not(.yes):not(.no) { 
    flex: 1 1 auto !important; 
    font-size: 15px !important; 
    color: var(--gym-dark) !important; 
    padding: 0 !important; 
    border: none !important; 
    line-height: 1.5 !important; 
}

.buddypress-wrap table.notification-settings td.yes { 
    margin-left: auto !important; 
}

.buddypress-wrap table.notification-settings td.yes, 
.buddypress-wrap table.notification-settings td.no { 
    flex: 0 0 auto !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    background: #f8f9fa !important; 
    border: 2px solid rgba(0,0,0,0.06) !important; 
    border-radius: 50px !important; 
    padding: 10px 24px !important; 
    cursor: pointer !important; 
    transition: all 0.2s ease !important; 
    min-width: 90px !important; 
    box-sizing: border-box !important; 
}

.buddypress-wrap table.notification-settings label.bp-screen-reader-text { 
    display: none !important; 
}

.buddypress-wrap table.notification-settings td.yes::after { 
    content: 'Sí' !important; 
    font-size: 14px !important; 
    font-weight: 800 !important; 
    color: rgba(11,6,32,0.6) !important; 
    margin-left: 8px !important; 
    transition: color 0.2s ease !important; 
}

.buddypress-wrap table.notification-settings td.no::after { 
    content: 'No' !important; 
    font-size: 14px !important; 
    font-weight: 800 !important; 
    color: rgba(11,6,32,0.6) !important; 
    margin-left: 8px !important; 
    transition: color 0.2s ease !important; 
}

.buddypress-wrap table.notification-settings input[type="radio"] { 
    margin: 0 !important; 
    transform: scale(1.2) !important; 
    pointer-events: none !important; 
}

.buddypress-wrap table.notification-settings td.yes:hover { 
    border-color: rgba(46,91,60,0.4) !important; 
}

.buddypress-wrap table.notification-settings td.no:hover { 
    border-color: rgba(220,38,38,0.4) !important; 
}

.buddypress-wrap table.notification-settings td.yes:has(input:checked) { 
    background: var(--gym-success-bg) !important; 
    border-color: var(--gym-green) !important; 
    box-shadow: 0 4px 10px rgba(46,91,60,0.15) !important; 
}

.buddypress-wrap table.notification-settings td.yes:has(input:checked)::after { 
    color: var(--gym-green) !important; 
}

.buddypress-wrap table.notification-settings td.no:has(input:checked) { 
    background: var(--gym-red-bg) !important; 
    border-color: var(--gym-red) !important; 
    box-shadow: 0 4px 10px rgba(220,38,38,0.15) !important; 
}

.buddypress-wrap table.notification-settings td.no:has(input:checked)::after { 
    color: var(--gym-red) !important; 
}

/* Visibilidad Perfil */
.buddypress-wrap table.profile-settings { 
    width: 100% !important; 
    border-collapse: collapse !important; 
    margin-bottom: 30px !important; 
    background: transparent !important;
}

.buddypress-wrap table.profile-settings thead tr { 
    display: flex !important; 
    justify-content: space-between !important; 
    padding: 10px 20px !important; 
    border-bottom: 2px solid var(--gym-cream) !important; 
    margin-bottom: 10px !important; 
    background: transparent !important; 
}

.buddypress-wrap table.profile-settings th { 
    display: block !important; 
    font-size: 13px !important; 
    font-weight: 800 !important; 
    color: var(--gym-green) !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important; 
    border: none !important; 
    padding: 0 !important; 
    background: transparent !important; 
}

.buddypress-wrap table.profile-settings th.field-group-name { 
    flex: 1 1 auto !important; 
    text-align: left !important; 
}

.buddypress-wrap table.profile-settings th:not(.field-group-name) { 
    flex: 0 0 auto !important; 
    text-align: right !important; 
}

/* FIX: Fondos transparentes obligatorios para matar el gris en filas alternas */
.buddypress-wrap table.profile-settings tbody tr, 
.buddypress-wrap table.profile-settings tbody tr.alt, 
.buddypress-wrap table.profile-settings tbody tr:nth-child(odd), 
.buddypress-wrap table.profile-settings tbody tr:nth-child(even) { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    padding: 20px !important; 
    border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
    background: #fff !important; 
    border-radius: var(--br-md) !important; 
    margin-bottom: 10px !important; 
    box-shadow: var(--shadow-sm) !important; 
}

.buddypress-wrap table.profile-settings td { 
    background: transparent !important; 
}

.buddypress-wrap table.profile-settings td.field-name { 
    flex: 1 1 auto !important; 
    font-size: 15px !important; 
    color: var(--gym-dark) !important; 
    font-weight: 700 !important; 
    padding: 0 !important; 
    border: none !important; 
    margin: 0 !important; 
}

.buddypress-wrap table.profile-settings td.field-visibility { 
    flex: 0 0 auto !important; 
    text-align: right !important; 
    padding: 0 !important; 
    border: none !important; 
}

.buddypress-wrap table.profile-settings td.field-visibility span.field-visibility-settings-notoggle { 
    display: inline-block !important; 
    background: #f8f9fa !important; 
    padding: 8px 20px !important; 
    border-radius: 50px !important; 
    border: 1px solid rgba(0,0,0,0.08) !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    color: rgba(11,6,32,0.7) !important; 
}

/* FIX AVATARES CIRCULARES */
.buddypress-wrap .activity-item .activity-avatar, 
.buddypress-wrap .activity-item .activity-avatar a, 
.buddypress-wrap .bp-member-avatar-content, 
.buddypress-wrap .bp-member-avatar-content a { 
    display: block !important; 
    flex: 0 0 auto !important; 
    width: 48px !important; 
    height: 48px !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.buddypress-wrap .activity-item .activity-avatar { 
    margin-right: 14px !important; 
}

.buddypress-wrap .activity-item .activity-avatar img.avatar, 
.buddypress-wrap .bp-member-activity-preview img.profile-photo { 
    width: 48px !important; 
    height: 48px !important; 
    min-width: 48px !important; 
    min-height: 48px !important; 
    max-width: 48px !important; 
    max-height: 48px !important; 
    aspect-ratio: 1 / 1 !important; 
    border-radius: 50% !important; 
    object-fit: cover !important; 
    object-position: center !important; 
    display: block !important; 
    border: 2px solid var(--gym-green) !important; 
    box-shadow: var(--shadow-sm) !important; 
    box-sizing: border-box !important; 
}
/* =========================================================
   08. MASTER MEDIA QUERIES (Desktop, Tablet, Móvil)
   ========================================================= */

/* --- ESCRITORIO (>= 1200px) --- */
@media (min-width: 1200px) {
    .the-gym-map-container { 
        max-width: min(1100px, 92vw); 
    }
}

/* --- ESCRITORIO BASE (>= 769px) --- */
@media (min-width: 769px) {
    .jt-clean-header .wp-block-navigation-item.hide-desktop, 
    .hide-desktop { 
        display: none !important; 
    }
    
    .buddypress-wrap .subnav-filters { 
        flex-direction: row !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
    }
    
    .jt-header-container { 
        display: grid !important; 
        grid-template-columns: 1fr auto 1fr !important; 
        align-items: center; 
    }
    
    .jt-header-logo { 
        justify-self: start !important; 
    } 
    
    .jt-header-actions { 
        display: contents !important; 
    }
    
    .jt-clean-header .wp-block-navigation { 
        justify-self: center !important; 
        grid-column: 2 !important; 
    }
    
    .jt-clean-header .user-dropdown-container, 
    .jt-header-buttons, 
    .jt-user-actions-group { 
        justify-self: end !important; 
        grid-column: 3 !important; 
    }
    
    .jt-header-buttons .jt-animated-btn { 
        height: 44px !important; 
        padding: 0 24px !important; 
        box-sizing: border-box !important; 
        display: inline-flex !important; 
        align-items: center !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container { 
        display: block !important; 
        position: static !important; 
        visibility: visible !important; 
        opacity: 1 !important; 
        background: transparent !important; 
        transform: none !important; 
        clip-path: none !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container-open, 
    .jt-clean-header .wp-block-navigation__responsive-container-close { 
        display: none !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-dialog { 
        position: static !important; 
        padding: 0 !important; 
    }
    
    .jt-clean-header .wp-block-navigation__container { 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: center !important; 
        gap: 12px !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        list-style: none !important; 
    }
    
    .jt-clean-header .wp-block-navigation-item { 
        padding: 0 !important; 
        margin: 0 !important; 
        display: block !important; 
        background: transparent !important; 
    }
    
    .jt-clean-header .wp-block-navigation-item__content { 
        display: inline-block !important; 
        width: auto !important; 
        font-size: 14px !important; 
        font-weight: 600 !important; 
        letter-spacing: 0.5px !important; 
        padding: 10px 22px !important; 
        border-radius: 50px !important; 
        background: transparent !important; 
        transition: all 0.2s ease !important; 
    }
    
    .jt-clean-header .wp-block-navigation-item__content:hover { 
        background-color: rgba(46, 91, 60, 0.08) !important; 
        opacity: 1 !important; 
        transform: translateY(-1px) !important; 
    }
    
    .jt-clean-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content, 
    .jt-clean-header .wp-block-navigation-item.jt-nav-active .wp-block-navigation-item__content { 
        background-color: var(--gym-green) !important; 
        color: var(--gym-cream) !important; 
        box-shadow: var(--shadow-sm) !important; 
    }
    
    .jt-clean-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content:hover, 
    .jt-clean-header .wp-block-navigation-item.jt-nav-active .wp-block-navigation-item__content:hover { 
        background-color: var(--gym-green-dark) !important; 
        transform: translateY(-2px) !important; 
        box-shadow: var(--shadow-md) !important; 
    }
    
    .jt-mobile-avatar-title { 
        display: none !important; 
    } 
    
    .user-dropdown-menu { 
        position: absolute; 
        top: 120%; 
        left: 50%; 
        background: #fff; 
        box-shadow: 0 8px 24px rgba(0,0,0,0.1); 
        border-radius: 12px; 
        padding: 8px 0; 
        min-width: 180px; 
        z-index: 99999; 
        border: 1px solid rgba(0,0,0,0.05); 
        visibility: hidden; 
        opacity: 0; 
        transform: translate(-50%, -10px); 
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; 
    }
    
    .user-dropdown-container:hover .user-dropdown-menu { 
        visibility: visible; 
        opacity: 1; 
        transform: translate(-50%, 0); 
    }
    
    .user-dropdown-menu .dropdown-item { 
        display: block; 
        padding: 12px 20px; 
        color: var(--gym-green); 
        text-decoration: none; 
        font-weight: 600; 
        font-size: 13px; 
        transition: all 0.2s; 
        text-transform: uppercase; 
        letter-spacing: 0.5px; 
    }
    
    .user-dropdown-menu .dropdown-item:hover { 
        background: var(--gym-cream); 
        color: var(--gym-green); 
    }
    
    #rcp-payment-history td:last-child { 
        text-align: right !important; 
    }
    
    #rcp-payment-history td:last-child a { 
        display: inline-block !important; 
        width: auto !important; 
        margin: 0 !important; 
    }
    
    #rcp-payment-history td:last-child button { 
        width: auto !important; 
        padding: 10px 24px !important; 
        white-space: nowrap !important; 
    }
}

/* --- TABLETS (<= 900px) --- */
@media (max-width: 900px) {
    .buddypress-wrap #item-header { 
        flex-direction: column !important; 
        align-items: center !important; 
        text-align: center !important; 
        gap: 12px !important; 
    }
    
    .buddypress-wrap #item-header-content { 
        align-items: center !important; 
    }
    
    .buddypress-wrap .bp-wrap > #object-nav, 
    .buddypress-wrap #item-body #subnav { 
        width: calc(100% + 32px) !important; 
        padding: 5px 16px 15px 16px !important; 
        margin: 0 -16px 8px -16px !important; 
        justify-content: flex-start !important; 
    }
    
    .buddypress-wrap .bp-wrap > #object-nav::before, 
    .buddypress-wrap #item-body #subnav::before { 
        content: ''; 
        margin-left: auto !important; 
        pointer-events: none !important; 
    }
    
    .buddypress-wrap .bp-wrap > #object-nav::after, 
    .buddypress-wrap #item-body #subnav::after { 
        content: ''; 
        margin-right: auto !important; 
        pointer-events: none !important; 
    }
    
    .gym-benefits-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .landing-footer .footer-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

/* --- MÓVILES GRANDES / PHABLETS (<= 600px) --- */
@media (max-width: 600px) {
    .gym-benefits-grid { 
        grid-template-columns: 1fr; 
    }
    
    .landing-footer .footer-grid { 
        grid-template-columns: 1fr; 
    }
}

/* --- MÓVILES (<= 768.98px) - MASTER BLOCK FUSIONADO --- */
@media (max-width: 768.98px) {
/* ---------------------------------------------------
       MÁRGENES PREMIUM PARA TARJETAS EN LA LANDING Y CHECKOUT
       Evita que los bloques destacados toquen los bordes
       --------------------------------------------------- */
    .gym-bio-newsletter[style*="max-width: 800px"],
    .the-gym-map-container,
    section.jt-container-align[style*="background: var(--gym-dark)"] {
        width: calc(100% - 40px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Le damos un poco de aire lateral también al título de "Únete a The Gym" */
    .gym-rcp-global-header {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* Ajuste fino: Reducimos un pelín el relleno interno en móvil 
       para que, al añadir márgenes fuera, el texto no quede muy apretado */
    .gym-bio-newsletter[style*="max-width: 800px"] {
        padding: 2rem 1.5rem !important;
    }
    section.jt-container-align[style*="background: var(--gym-dark)"] {
        padding: 3rem 1.5rem !important;
    }
    /* 1. Base y Header */
    body { 
        padding-top: 85px !important; 
    }
    
    .hide-mobile, 
    .jt-clean-header .hide-mobile, 
    div.hide-mobile { 
        display: none !important; 
    }
    
    #wpadminbar { 
        display: none !important; 
    }
    
    html { 
        margin-top: 0 !important; 
    }
    
    html, body { 
        background-color: var(--gym-cream) !important; 
    }
    
    body:has(#gym-expired-banner) main#wp--skip-link--target { 
        margin-top: 140px !important; 
    }

    .jt-clean-header { 
        height: 85px; 
    } 
    
    .jt-header-logo img { 
        height: 60px; 
    } 
    
    .jt-header-buttons { 
        gap: 8px; 
    }
    
    .jt-header-buttons .wp-block-button__link, 
    .wp-block-button .jt-animated-btn { 
        padding: 8px 18px !important; 
        font-size: 14px !important; 
        height: auto !important; 
        line-height: 1.2 !important; 
    }
    
    .jt-header-container { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
    }
    
    .jt-header-actions { 
        gap: 16px; 
        display: flex; 
        align-items: center; 
    }
    
    .jt-header-actions .user-dropdown-container { 
        order: 1 !important; 
    }
    
    .jt-header-actions .wp-block-navigation { 
        order: 2 !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container { 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        width: 100% !important; 
        height: 100dvh !important; 
        background-color: var(--gym-cream) !important; 
        transform: translateX(100%) !important; 
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important; 
        z-index: 99999 !important; 
        display: flex !important; 
        flex-direction: column !important; 
        opacity: 1 !important; 
        visibility: visible !important; 
        clip-path: none !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container.jt-modal-open { 
        transform: translateX(0) !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container-open svg, 
    .jt-clean-header .wp-block-navigation__responsive-container-close { 
        display: none !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container-open { 
        background: transparent !important; 
        border: none !important; 
        width: 44px !important; 
        height: 44px !important; 
        display: flex !important; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        gap: 6px; 
        padding: 0 !important; 
        position: relative !important; 
        z-index: 999999 !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container-open::before, 
    .jt-clean-header .wp-block-navigation__responsive-container-open::after { 
        content: ''; 
        display: block; 
        width: 22px; 
        height: 2px; 
        background-color: var(--gym-green); 
        border-radius: 2px; 
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container-open.jt-active::before { 
        transform: translateY(4px) rotate(45deg) !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container-open.jt-active::after { 
        transform: translateY(-4px) rotate(-45deg) !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-dialog { 
        background: transparent !important; 
        border: none !important; 
        padding: 0 !important; 
        width: 100% !important; 
        height: 100% !important; 
        display: flex !important; 
        flex-direction: column !important; 
    }
    
    .jt-clean-header .wp-block-navigation__responsive-container-content { 
        margin-top: 100px !important; 
        padding: 0 24px !important; 
    }
    
    .jt-clean-header .wp-block-navigation__container { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 0 !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        list-style: none !important; 
    }
    
    .jt-clean-header .wp-block-navigation-item { 
        display: block !important; 
        width: 100% !important; 
        padding: 18px 0 !important; 
        border-bottom: 1px solid rgba(46, 91, 60, 0.15) !important; 
        background: transparent !important; 
        margin: 0 !important; 
        text-align: center !important; 
    }
    
    .jt-clean-header .wp-block-navigation-item:last-child { 
        border-bottom: none !important; 
    }
    
    .jt-clean-header .wp-block-navigation-item__content { 
        display: block !important; 
        width: 100% !important; 
        text-align: center !important; 
        padding: 0 !important; 
        font-size: 22px !important; 
        font-weight: 500 !important; 
        background-color: transparent !important; 
        border: none !important; 
        border-radius: 0 !important; 
    }

/* 2. Formularios y Cajas (Unificadas con el Checkout) */
    .registration-form-box, 
    .onboarding-box, 
    .rcp-table-wrapper,
    .gym-clean-registration-box,
    .gym-checkout-benefits-card,
    .gym-checkout-proof-card { 
        padding: 30px 20px !important; 
        border-radius: var(--br-lg) !important; 
        margin: 0 auto 24px auto !important; 
        width: 100% !important; 
        max-width: calc(100vw - 32px) !important; 
        box-sizing: border-box !important; 
    }
    
    .wpforms-form button.wpforms-submit, 
    .rcp_form input[type="submit"], 
    .rcp_form button.rcp-button, 
    .onboarding-box .rcp-button { 
        white-space: normal !important; 
        height: auto !important; 
        line-height: 1.3 !important; 
        padding: 14px 20px !important; 
    }
    
    .onboarding-box .onboarding-header h2, 
    .rcp-table-wrapper h3 { 
        font-size: 22px !important; 
    }
    
    .onboarding-box .onboarding-header p { 
        font-size: 14px !important; 
    }
    
    p.rcp_error, 
    p.rcp_success, 
    div.rcp_message { 
        margin: 24px auto !important; 
        width: 100% !important; 
        max-width: calc(100vw - 32px) !important; 
        padding: 12px 16px !important; 
        font-size: 13px !important; 
        box-sizing: border-box !important; 
    }
    
    .rcp_form input[type="text"], 
    .rcp_form input[type="email"], 
    .rcp_form input[type="password"], 
    .onboarding-box input[type="text"], 
    .onboarding-box select, 
    .onboarding-box textarea { 
        padding: 12px 14px !important; 
        font-size: 16px !important; 
    }
/* --- EFECTO STICKY STACKING (CARTAS APILABLES) PARA MÓVIL --- */
@media (max-width: 768.98px) {
    .gym-benefits-grid {
        /* Pasamos de Grid a Flex column para un mejor control del scroll */
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        position: relative;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }

    .gym-benefit-card {
        position: sticky !important;
        /* Proyectamos una sombra hacia arriba para crear profundidad cuando se solapan */
/* ... resto del código ... */
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.06) !important;
        background-color: #ffffff; /* Asegura que no se transparente el texto de abajo */
        /* Transición suave para cuando la tarjeta llega a su punto de anclaje */
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
        /* 🚀 MAGIA GPU: Prepara al navegador para el scroll pegajoso */
        will-change: transform, top !important;
    }

    /* * EL ESCALONAMIENTO
     * Cabecera (85px) + Margen de seguridad + Escalón de 25px por carta
     */
    .gym-benefit-card:nth-child(1) { top: 95px !important;  z-index: 11; }
    .gym-benefit-card:nth-child(2) { top: 120px !important; z-index: 12; }
    .gym-benefit-card:nth-child(3) { top: 145px !important; z-index: 13; }
    .gym-benefit-card:nth-child(4) { top: 170px !important; z-index: 14; }
    .gym-benefit-card:nth-child(5) { top: 195px !important; z-index: 15; }
    .gym-benefit-card:nth-child(6) { 
        top: 220px !important; 
        z-index: 16; 
        background-color: var(--gym-dark) !important; 
    }
}

    /* 3. Tablas RCP Tarjetas Premium */
    .rcp-table thead { 
        display: none !important; 
    }
    
    #rcp-account-overview tbody tr, 
    #rcp-payment-history tbody tr { 
        display: flex !important; 
        flex-direction: column !important; 
        border: 1px solid rgba(0,0,0,0.08) !important; 
        border-left: 4px solid var(--gym-green) !important; 
        border-radius: var(--br-md) !important; 
        padding: 0 !important; 
        box-shadow: var(--shadow-sm) !important; 
        margin-bottom: 24px !important; 
        background-color: #ffffff !important; 
    }
    
    #rcp-account-overview tbody td, 
    #rcp-payment-history tbody td { 
        border: none !important; 
        border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
        padding: 16px 20px !important; 
        border-radius: 0 !important; 
        display: flex !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        text-align: right !important; 
    }
    
    #rcp-account-overview tbody td:first-child, 
    #rcp-payment-history tbody td:first-child { 
        border-left: none !important; 
    }
    
    #rcp-account-overview tbody td::before, 
    #rcp-payment-history tbody td::before { 
        content: attr(data-th) !important; 
        color: rgba(11, 6, 32, 0.5) !important; 
        font-size: 12px !important; 
        font-weight: 700 !important; 
        margin-right: auto !important; 
        text-transform: uppercase !important; 
        text-align: left !important; 
    }
    
    #rcp-account-overview tbody td[data-th="Fecha de vencimiento/renovación"]::before, 
    #rcp-account-overview tbody td[data-th="Expiration/Renewal Date"]::before { 
        max-width: 130px !important; 
        white-space: normal !important; 
        line-height: 1.3 !important; 
        margin-right: 15px !important; 
    }
    
    #rcp-account-overview tbody td:last-child, 
    #rcp-payment-history tbody td:last-child { 
        border-bottom: none !important; 
        padding: 20px !important; 
        background: #ffffff !important; 
        border-radius: 0 0 var(--br-md) var(--br-md) !important; 
        display: grid !important; 
        grid-template-columns: min-content 1fr !important; 
        gap: 10px 20px !important; 
        align-items: center !important; 
    }
    
    #rcp-account-overview tbody td:last-child::before, 
    #rcp-payment-history tbody td:last-child::before { 
        grid-column: 1 !important; 
        grid-row: 1 / 2 !important; 
        margin: 0 !important; 
        white-space: nowrap !important; 
    }
    
    #rcp-account-overview tbody td:last-child:has(a:nth-of-type(2))::before, 
    #rcp-payment-history tbody td:last-child:has(a:nth-of-type(2))::before { 
        grid-row: 1 / 3 !important; 
    }
    
    #rcp-account-overview tbody td:last-child:has(a:nth-of-type(3))::before, 
    #rcp-payment-history tbody td:last-child:has(a:nth-of-type(3))::before { 
        grid-row: 1 / 4 !important; 
    }
    
    #rcp-account-overview td:last-child a, 
    #rcp-payment-history td:last-child a { 
        grid-column: 2 !important; 
        margin-bottom: 0 !important; 
        width: 100% !important; 
        justify-self: end !important; 
        width: max-content !important; 
    }
    
    #rcp-payment-history td:last-child button { 
        padding: 12px 24px !important; 
    }

    /* 4. Footer */
    .jt-internal-footer { 
        padding: 30px 0 40px 0; 
        margin-top: 40px; 
    }
    
    .jt-internal-footer-container { 
        flex-direction: column-reverse; 
        justify-content: center; 
        gap: 24px; 
    }

    /* 5. Muro y Actividad BP */
    .buddypress-wrap .bp-wrap > #object-nav, 
    .buddypress-wrap #item-body #subnav, 
    .buddypress-wrap .activity-type-navs ul { 
        justify-content: flex-start !important; 
    }
    
    .buddypress-wrap #activity-stream li.activity-item { 
        padding: 16px !important; 
        margin-bottom: 16px !important; 
        border-radius: var(--br-md) !important; 
    }
    
    .buddypress-wrap .activity-item .activity-avatar { 
        margin-right: 12px !important; 
        flex: 0 0 auto !important; 
    }
    
    .buddypress-wrap .activity-item .activity-avatar img { 
        width: 44px !important; 
        height: 44px !important; 
        aspect-ratio: 1/1 !important; 
        border-radius: 50% !important; 
        object-fit: cover !important; 
    }
    
    .buddypress-wrap .activity-item .activity-header { 
        font-size: 13px !important; 
        margin-bottom: 8px !important; 
    }
    
    .buddypress-wrap .activity-item .activity-inner { 
        font-size: 14px !important; 
        margin-bottom: 12px !important; 
    }
    
    .buddypress-wrap .activity-meta { 
        padding-top: 12px !important; 
        margin-top: 12px !important; 
        justify-content: space-between !important; 
        gap: 4px !important; 
    }
    
    .buddypress-wrap .activity-meta .generic-button a { 
        padding: 6px 12px !important; 
        font-size: 12px !important; 
    }
    
    .buddypress-wrap .activity-comments { 
        padding: 12px !important; 
        margin-top: 12px !important; 
    }
    
    .buddypress-wrap .ac-form { 
        gap: 10px !important; 
    }
    
    .buddypress-wrap .ac-reply-avatar { 
        flex: 0 0 auto !important; 
    }
    
    .buddypress-wrap .ac-reply-avatar img { 
        width: 32px !important; 
        height: 32px !important; 
        aspect-ratio: 1/1 !important; 
        border-radius: 50% !important; 
        object-fit: cover !important; 
    }
    
    .buddypress-wrap .ac-reply-content input[type="submit"] { 
        padding: 8px 20px !important; 
        font-size: 12px !important; 
    }
    
    .buddypress-wrap .ac-reply-cancel { 
        padding: 8px 16px !important; 
        font-size: 12px !important; 
        margin: 0 !important; 
    }
    
    .buddypress-wrap .activity-update-form, 
    .buddypress-wrap #activity-stream li.activity-item { 
        padding: 20px !important; 
        border-radius: var(--br-lg) !important; 
    }

    /* 6. Utilidades Extra */
    .gym-trusted-wrapper { 
        flex-direction: column; 
        text-align: center; 
        gap: 12px; 
    }
    
    .gym-trusted-text { 
        font-size: 15px; 
        text-align: center; 
    }
    
    .gym-trusted-text strong { 
        font-size: 17px; 
    }
    
    #jt-custom-chat-widget { 
        bottom: 20px !important; 
    }
    
    .burbuja-chat-flotante { 
        padding: 12px 20px !important; 
        font-size: 15px !important; 
    }

    /* WOD & Tests */
    .gym-current-wod-content { 
        padding: 0 16px !important; 
        margin-top: 1.5rem !important; 
        box-sizing: border-box !important; 
    }
    
    .gym-current-wod-content header { 
        margin-bottom: 2rem !important; 
    }
    
    .gym-current-wod-content section:not(:has(iframe)), 
    section:has(.gym-test-wrapper) { 
        padding: 24px 16px !important; 
    }
    
    div:has(> .gym-test-wrapper), 
    .gym-current-wod-content section > div[style*="padding: 2rem"] { 
        padding: 20px 16px !important; 
        width: 100% !important; 
        box-sizing: border-box !important; 
    }
    
    .gym-test-start-screen { 
        padding: 24px 16px !important; 
    }
    
    .gym-test-start-screen h4 { 
        font-size: 1.25rem !important; 
    }
    
    .gym-test-start-screen p { 
        font-size: 1rem !important; 
        margin-bottom: 20px !important; 
    }
    
    .gym-start-test-btn { 
        padding: 12px 20px !important; 
        font-size: 1.05rem !important; 
        width: 100% !important; 
        box-sizing: border-box !important; 
    }
    
    .gym-native-test p { 
        font-size: 1.05rem !important; 
        margin-top: 20px !important; 
    }
    
    .gym-native-test label { 
        padding: 10px 12px !important; 
    }
    
    .gym-native-test label span { 
        font-size: 1rem !important; 
    }
    
    .gym-native-test button[type="submit"] { 
        padding: 12px !important; 
        font-size: 1.05rem !important; 
        width: 100% !important; 
        box-sizing: border-box !important; 
    }
    
    .gym-current-wod-content > div[style*="max-width: 600px"] { 
        margin: 2rem auto !important; 
        gap: 12px !important; 
    }
    
    .gym-current-wod-content > div > div[style*="background: #111"] { 
        padding: 20px 16px !important; 
    }
    
    .gym-current-wod-content > div[style*="margin-top: 3rem"], 
    .gym-current-wod-content > div[style*="margin-top: 2rem"] { 
        margin-top: 1.5rem !important; 
    }

    /* Upsell */
    .gym-upsell-block { 
        padding: 2.5rem 1.2rem !important; 
        margin-left: 16px !important; 
        margin-right: 16px !important; 
        width: auto !important; 
        border-radius: var(--br-lg) !important; 
    }
    
    .gym-upsell-block > p { 
        font-size: 1.05rem !important; 
        margin-bottom: 2rem !important; 
    }
    
    .gym-upsell-inner { 
        padding: 2rem 1.2rem !important; 
    }
    
    .gym-upsell-inner p { 
        font-size: 0.95rem !important; 
        margin-bottom: 1.5rem !important; 
    }
    
    .gym-upsell-inner .jt-animated-btn { 
        width: 100% !important; 
        box-sizing: border-box !important; 
        padding: 14px 20px !important; 
        font-size: 1.05rem !important; 
    }

    /* 7. Data Export & Settings Buddypress */
    .buddypress-wrap #item-body:has(#bp-data-export) { 
        background: transparent !important; 
        border: none !important; 
        box-shadow: none !important; 
        padding: 0 !important; 
    }
    
    .buddypress-wrap #item-body:has(#bp-data-export) > nav, 
    .buddypress-wrap #item-body:has(#bp-data-export) > #subnav { 
        max-width: none !important; 
        padding: 5px 0 15px 0 !important; 
        margin-bottom: 16px !important; 
    }
    
    .buddypress-wrap #item-body h2.data-settings-screen { 
        display: block !important; 
        font-size: 1.5rem !important; 
        font-weight: 800 !important; 
        color: var(--gym-green) !important; 
        margin: 30px 0 15px 0 !important; 
        text-align: center !important; 
    }
    
    .buddypress-wrap #item-body:has(#bp-data-export) > p:not(.bp-feedback) { 
        background: #fff !important; 
        padding: 24px 20px !important; 
        border-radius: var(--br-lg) var(--br-lg) 0 0 !important; 
        border: 1px solid rgba(0,0,0,0.08) !important; 
        border-bottom: none !important; 
        margin: 0 !important; 
        color: var(--gym-dark) !important; 
        font-size: 1.05rem !important; 
        text-align: center !important; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important; 
        line-height: 1.5 !important; 
    }
    
    .buddypress-wrap #item-body:has(#bp-data-export) > ul { 
        background: #fff !important; 
        padding: 0 20px 20px 40px !important; 
        border-left: 1px solid rgba(0,0,0,0.08) !important; 
        border-right: 1px solid rgba(0,0,0,0.08) !important; 
        margin: 0 !important; 
        color: rgba(11, 6, 32, 0.8) !important; 
        font-size: 1rem !important; 
    }
    
    .buddypress-wrap #item-body > ul li { 
        margin-bottom: 10px !important; 
        font-weight: 500 !important; 
    }
    
    .buddypress-wrap #item-body > p + p { 
        border-radius: 0 0 var(--br-lg) var(--br-lg) !important; 
        border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
        margin-bottom: 24px !important; 
    }
    
    .buddypress-wrap #item-body h2 + p:last-of-type { 
        border-radius: var(--br-lg) !important; 
        border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
        margin-bottom: 24px !important; 
    }
    
    .buddypress-wrap #bp-data-export button { 
        width: 100% !important; 
        border-radius: 50px !important; 
        padding: 16px !important; 
        font-size: 1.05rem !important; 
        white-space: normal !important; 
        line-height: 1.3 !important; 
    }
    
    /* Separamos el comportamiento: Widgets, Export y Avatar quedan transparentes */
    .buddypress-wrap #item-body .profile .bp-widget, 
    .buddypress-wrap #item-body:has(#bp-data-export), 
    .buddypress-wrap #item-body .bp-avatar { 
        padding: 20px !important; 
        border-radius: var(--br-lg) !important; 
        background: transparent !important; 
        border: none !important; 
        box-shadow: none !important; 
    }

    /* Formulario General (Settings y Password) con formato Tarjeta Premium en Móvil */
    .buddypress-wrap #item-body form.standard-form {
        background-color: #ffffff !important;
        border-radius: var(--br-lg) !important;
        box-shadow: var(--shadow-sm) !important;
        border: 1px solid rgba(0,0,0,0.08) !important;
        padding: 24px 20px !important;
        margin-bottom: 24px !important;
        box-sizing: border-box !important;
    }

    /* Ajustes extra para botones de cambio de contraseña en móvil para que no se apelotonen */
    .buddypress-wrap form.standard-form .user-pass1-wrap { 
        padding: 20px !important; 
    }
    
    .buddypress-wrap form.standard-form .wp-pwd .button { 
        width: 100% !important; 
        margin-right: 0 !important; 
        margin-bottom: 10px !important; 
        justify-content: center !important; 
    }
    
    /* Tablas de Ajustes BP (Notificaciones / Perfil) */
    .buddypress-wrap table.notification-settings, 
    .buddypress-wrap table.profile-settings { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 15px !important; 
    }
    
    .buddypress-wrap table.notification-settings thead, 
    .buddypress-wrap table.profile-settings thead { 
        display: block !important; 
    }
    
    /* Configuración NOTIFICACIONES (Grid 2 columnas para Sí/No) */
    .buddypress-wrap table.notification-settings thead tr { 
        display: block !important; 
        background: transparent !important; 
        border: none !important; 
        box-shadow: none !important; 
        padding: 0 !important; 
        margin-bottom: 0 !important; 
    }
    
    .buddypress-wrap table.notification-settings th:not(.title) { 
        display: none !important; 
    }
    
    .buddypress-wrap table.notification-settings th.title { 
        display: block !important; 
        width: 100% !important; 
        text-align: center !important; 
        background: var(--gym-green) !important; 
        color: #ffffff !important; 
        border-radius: var(--br-md) !important; 
        padding: 14px 20px !important; 
        font-size: 1.1rem !important; 
        font-weight: 800 !important; 
        text-transform: uppercase !important; 
        letter-spacing: 1px !important; 
        box-sizing: border-box !important; 
        margin-bottom: 15px !important; 
        box-shadow: 0 4px 10px rgba(46,91,60,0.2) !important; 
    }
    
    /* FIX: Fondos transparentes obligatorios para matar el gris en filas alternas */
    .buddypress-wrap table.notification-settings tbody { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 15px !important; 
    }
    
    .buddypress-wrap table.notification-settings tbody tr, 
    .buddypress-wrap table.notification-settings tbody tr.alt, 
    .buddypress-wrap table.notification-settings tbody tr:nth-child(odd), 
    .buddypress-wrap table.notification-settings tbody tr:nth-child(even) { 
        display: grid !important; 
        grid-template-columns: 1fr 1fr !important; 
        gap: 15px 10px !important; 
        background: #ffffff !important; 
        border: 1px solid rgba(0,0,0,0.08) !important; 
        border-radius: var(--br-lg) !important; 
        padding: 24px 20px !important; 
        box-shadow: var(--shadow-sm) !important; 
        margin: 0 !important; 
        align-items: center !important; 
    }
    
    .buddypress-wrap table.notification-settings td { 
        background: transparent !important; 
    }

    .buddypress-wrap table.notification-settings tbody td:first-child:empty, 
    .buddypress-wrap table.notification-settings tbody td.icon { 
        display: none !important; 
    }
    
    .buddypress-wrap table.notification-settings tbody td:nth-child(2) { 
        grid-column: 1 / -1 !important; 
        text-align: center !important; 
        margin-bottom: 5px !important; 
        font-weight: 700 !important; 
        font-size: 1.05rem !important; 
        border: none !important; 
        padding: 0 !important; 
        line-height: 1.4 !important; 
        color: var(--gym-dark) !important; 
    }
    
    .buddypress-wrap table.notification-settings td.yes { 
        grid-column: 1 !important; 
    }
    
    .buddypress-wrap table.notification-settings td.no { 
        grid-column: 2 !important; 
    }
    
    .buddypress-wrap table.notification-settings td.yes, 
    .buddypress-wrap table.notification-settings td.no { 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        background: #f8f9fa !important; 
        border: 2px solid rgba(0,0,0,0.06) !important; 
        border-radius: 50px !important; 
        padding: 14px 10px !important; 
        box-sizing: border-box !important; 
        position: relative !important; 
        transition: all 0.2s ease !important; 
        margin: 0 !important; 
        width: 100% !important; 
    }
    
    .buddypress-wrap table.notification-settings label.bp-screen-reader-text { 
        display: none !important; 
    }
    
    .buddypress-wrap table.notification-settings td.yes::after { 
        content: 'Sí' !important; 
        font-size: 1rem !important; 
        font-weight: 800 !important; 
        color: rgba(11,6,32,0.6) !important; 
        margin-left: 8px !important; 
    }
    
    .buddypress-wrap table.notification-settings td.no::after { 
        content: 'No' !important; 
        font-size: 1rem !important; 
        font-weight: 800 !important; 
        color: rgba(11,6,32,0.6) !important; 
        margin-left: 8px !important; 
    }
    
    .buddypress-wrap table.notification-settings input[type="radio"] { 
        margin: 0 !important; 
        transform: scale(1.4) !important; 
        pointer-events: none !important; 
    }
    
    .buddypress-wrap table.notification-settings td.yes:has(input:checked) { 
        background: var(--gym-success-bg) !important; 
        border-color: var(--gym-green) !important; 
        box-shadow: 0 4px 10px rgba(46,91,60,0.15) !important; 
    }
    
    .buddypress-wrap table.notification-settings td.yes:has(input:checked)::after { 
        color: var(--gym-green) !important; 
    }
    
    .buddypress-wrap table.notification-settings td.no:has(input:checked) { 
        background: var(--gym-red-bg) !important; 
        border-color: var(--gym-red) !important; 
        box-shadow: 0 4px 10px rgba(220,38,38,0.15) !important; 
    }
    
    .buddypress-wrap table.notification-settings td.no:has(input:checked)::after { 
        color: var(--gym-red) !important; 
    }
    
    .buddypress-wrap #bp-webcam-avatar, 
    .buddypress-wrap .bp-avatar:has(.avatar-crop-management) { 
        flex-direction: column !important; 
        gap: 24px !important; 
    }
    
    .buddypress-wrap #avatar-crop-actions button { 
        width: 100% !important; 
        text-align: center !important; 
    }
    
    .buddypress-wrap .bp-avatar-nav { 
        display: none !important; 
    }
    
    /* Configuración PERFIL (Flex side-by-side) */
    .buddypress-wrap table.profile-settings thead tr { 
        display: flex !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        background: var(--gym-green) !important; 
        border-radius: var(--br-md) !important; 
        padding: 14px 20px !important; 
        margin-bottom: 15px !important; 
        box-shadow: 0 4px 10px rgba(46,91,60,0.2) !important; 
    }
    
    .buddypress-wrap table.profile-settings th { 
        display: block !important; 
        color: #ffffff !important; 
        font-size: 0.9rem !important; 
        font-weight: 800 !important; 
        text-transform: uppercase !important; 
        letter-spacing: 1px !important; 
        background: transparent !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        border: none !important; 
        text-align: left !important; 
        flex: 1 !important; 
        box-shadow: none !important; 
    }
    
    .buddypress-wrap table.profile-settings th:last-child { 
        text-align: right !important; 
    }
    
    /* FIX: Fondos transparentes obligatorios para matar el gris en filas alternas */
    .buddypress-wrap table.profile-settings tbody { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 15px !important; 
    }
    
    .buddypress-wrap table.profile-settings tbody tr, 
    .buddypress-wrap table.profile-settings tbody tr.alt, 
    .buddypress-wrap table.profile-settings tbody tr:nth-child(odd), 
    .buddypress-wrap table.profile-settings tbody tr:nth-child(even) { 
        display: flex !important; 
        justify-content: space-between !important; 
        align-items: center !important; 
        background: #ffffff !important; 
        border: 1px solid rgba(0,0,0,0.08) !important; 
        border-radius: var(--br-lg) !important; 
        padding: 16px 20px !important; 
        box-shadow: var(--shadow-sm) !important; 
        margin: 0 !important; 
    }
    
    .buddypress-wrap table.profile-settings td { 
        background: transparent !important; 
    }

    .buddypress-wrap table.profile-settings tbody td.field-name { 
        text-align: left !important; 
        font-weight: 700 !important; 
        font-size: 1.05rem !important; 
        border: none !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        color: var(--gym-dark) !important; 
        flex: 1 !important; 
    }
    
    .buddypress-wrap table.profile-settings td.field-visibility { 
        text-align: right !important; 
        border: none !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        flex: 0 0 auto !important; 
    }
    
    .buddypress-wrap table.profile-settings td.field-visibility span.field-visibility-settings-notoggle { 
        display: inline-block !important; 
        background: #f8f9fa !important; 
        padding: 8px 16px !important; 
        border-radius: 50px !important; 
        border: 1px solid rgba(0,0,0,0.08) !important; 
        font-size: 13px !important; 
        font-weight: 600 !important; 
        color: rgba(11,6,32,0.7) !important; 
    }
    
    /* 8. Alertas / Notificaciones */
    .buddypress-wrap table.notifications { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 15px !important; 
        border: none !important; 
    }
    
    .buddypress-wrap table.notifications thead { 
        display: none !important; 
    }
    
    .buddypress-wrap table.notifications tbody { 
        display: contents !important; 
    }
    
    .buddypress-wrap table.notifications tbody tr { 
        display: grid !important; 
        grid-template-columns: 35px 1fr !important; 
        background: #ffffff !important; 
        border: 1px solid rgba(0,0,0,0.08) !important; 
        border-radius: var(--br-lg) !important; 
        padding: 20px !important; 
        box-shadow: var(--shadow-sm) !important; 
        align-items: center !important; 
        gap: 12px 10px !important; 
        margin: 0 !important; 
    }
    
    .buddypress-wrap table.notifications tbody td:first-child { 
        display: none !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.bulk-select-check { 
        grid-column: 1 !important; 
        grid-row: 1 / 3 !important; 
        display: flex !important; 
        align-items: flex-start !important; 
        padding: 0 !important; 
        border: none !important; 
        margin-top: 4px !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.bulk-select-check input[type="checkbox"] { 
        transform: scale(1.4) !important; 
        accent-color: var(--gym-green) !important; 
        margin: 0 !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-description { 
        grid-column: 2 !important; 
        grid-row: 1 !important; 
        padding: 0 !important; 
        border: none !important; 
        font-size: 1.05rem !important; 
        font-weight: 700 !important; 
        line-height: 1.4 !important; 
        text-align: left !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-description a { 
        color: var(--gym-dark) !important; 
        text-decoration: none !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-since { 
        grid-column: 2 !important; 
        grid-row: 2 !important; 
        padding: 0 !important; 
        border: none !important; 
        font-size: 0.85rem !important; 
        color: rgba(11,6,32,0.5) !important; 
        text-transform: uppercase !important; 
        letter-spacing: 0.5px !important; 
        font-weight: 600 !important; 
        text-align: left !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-actions { 
        grid-column: 1 / -1 !important; 
        grid-row: 3 !important; 
        display: flex !important; 
        gap: 10px !important; 
        margin-top: 10px !important; 
        padding: 15px 0 0 0 !important; 
        border-top: 1px solid rgba(0,0,0,0.05) !important; 
        border-bottom: none !important; 
        border-left: none !important; 
        border-right: none !important; 
        justify-content: flex-end !important; 
        color: transparent !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-actions a { 
        display: inline-flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        padding: 10px 16px !important; 
        border-radius: 50px !important; 
        font-size: 12px !important; 
        font-weight: 700 !important; 
        text-transform: uppercase !important; 
        letter-spacing: 0.5px !important; 
        text-decoration: none !important; 
        color: var(--gym-dark) !important; 
        background: #f4f4f4 !important; 
        transition: background 0.2s ease !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-actions a:hover { 
        background: #e5e3df !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-actions a.mark-read, 
    .buddypress-wrap table.notifications tbody td.notification-actions a.mark-unread { 
        background: var(--gym-success-bg) !important; 
        color: var(--gym-green) !important; 
        border: 1px solid var(--gym-success-border) !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-actions a.delete { 
        background: var(--gym-red-bg) !important; 
        color: var(--gym-red) !important; 
        border: 1px solid #fecaca !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-actions a .dashicons { 
        display: none !important; 
    }
    
    .buddypress-wrap table.notifications tbody td.notification-actions a .bp-screen-reader-text { 
        display: inline !important; 
        position: static !important; 
        width: auto !important; 
        height: auto !important; 
        clip: auto !important; 
    }
    
    .buddypress-wrap .notifications-options-nav { 
        background: #fff !important; 
        border-radius: var(--br-lg) !important; 
        padding: 20px !important; 
        border: 1px solid rgba(0,0,0,0.08) !important; 
        box-shadow: var(--shadow-sm) !important; 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 15px !important; 
        margin-top: 30px !important; 
    }
    
    .buddypress-wrap .notifications-options-nav .select-wrap { 
        width: 100% !important; 
        margin: 0 !important; 
    }
    
    .buddypress-wrap .notifications-options-nav select { 
        width: 100% !important; 
        text-align: center !important; 
    }
    
    .buddypress-wrap .notifications-options-nav input[type="submit"] { 
        width: 100% !important; 
        background: var(--gym-green) !important; 
        color: #fff !important; 
        padding: 14px !important; 
        border-radius: 50px !important; 
        font-size: 14px !important; 
        font-weight: 700 !important; 
        text-transform: uppercase !important; 
    }
    
    .buddypress-wrap .notifications-options-nav input[type="submit"]:disabled { 
        opacity: 0.5 !important; 
        background: #ccc !important; 
    }
}

/* =========================================================
   09. WIDGET CHAT FLOTANTE (BETTER MESSAGES) - DISEÑO PREMIUM
   ========================================================= */

/* 1. Burbuja del Chat (Botón Flotante Escritorio) */
body .bm-widget-bubble .bm-bubble-button {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: var(--gym-green) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 6px 20px rgba(46, 91, 60, 0.4) !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    bottom: 30px !important; 
    right: max(16px, calc(50vw - 484px)) !important; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 2. Posición y Forma de la Ventana del Chat (Escritorio) */
@media (min-width: 769px) {
    body .bm-widget-bubble .bm-bubble-panel {
        bottom: 110px !important; 
        right: max(16px, calc(50vw - 484px)) !important; 
        max-height: calc(100vh - 130px) !important;
        border-radius: var(--br-xl) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
        border: 1px solid rgba(0,0,0,0.06) !important;
        overflow: hidden !important; 
    }
}

/* 3. AJUSTE Y BOTÓN FLOTANTE PARA MÓVILES */
@media (max-width: 768.98px) {
    /* Ocultar elementos de escritorio que puedan estorbar */
    body .bm-widget-bubble .bm-bubble-button {
        display: none !important;
    }
    
    /* FIX OVERLAP & SAFARI: El panel debe ser 100% pantalla completa y opaco */
    body .bm-widget-bubble .bm-bubble-panel,
    body #bp-better-messages-mini-mobile-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important; /* dvh se adapta dinámicamente a la barra de Safari */
        max-height: 100dvh !important;
        max-width: 100vw !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        background-color: #ffffff !important;
        z-index: 99999999 !important; /* Tapamos el header de la web */
        padding-bottom: env(safe-area-inset-bottom) !important; /* Espacio de seguridad iOS */
        box-sizing: border-box !important;
    }

    /* Diseño Premium del Botón Nativo Móvil */
    body #bp-better-messages-mini-mobile-open {
        width: 56px !important;
        height: 56px !important;
        border-radius: 50% !important;
        background-color: var(--gym-green) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 6px 20px rgba(46, 91, 60, 0.4) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        bottom: 24px !important; 
        right: 16px !important;  
        z-index: 99999 !important;
        transition: transform 0.2s ease !important;
    }
    
    body #bp-better-messages-mini-mobile-open:active {
        transform: scale(0.95) !important;
    }

    body #bp-better-messages-mini-mobile-open .bp-better-messages-mini-mobile-open-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body #bp-better-messages-mini-mobile-open svg {
        width: 26px !important;
        height: 26px !important;
        fill: #ffffff !important;
    }

    /* Globo de Notificaciones (Mensajes sin leer) en Móvil */
    body #bp-better-messages-mini-mobile-open .count {
        position: absolute !important;
        top: -2px !important;
        right: -2px !important;
        background-color: var(--gym-info-accent) !important;
        color: var(--gym-dark) !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
        border: 2px solid #ffffff !important;
        line-height: 1 !important;
    }
    
    body #bp-better-messages-mini-mobile-open .count.no-count {
        display: none !important;
    }
}

/* =========================================================
   10. FIXES Y AJUSTES DE ESPACIADOS GLOBALES (HEADER & GUTENBERG)
   ========================================================= */

/* 1. Eliminar márgenes fantasma debajo de la cabecera personalizada */
.jt-clean-header,
.jt-header-container {
    margin-bottom: 0 !important;
}

/* 2. Sobrescribir el "margin-top: 3rem;" inline que tienen los shortcodes (Home, Arena, Vault, etc.) */
.jt-container-align,
.gym-current-wod-content {
    margin-top: 1rem !important; /* Espaciado óptimo para el nuevo diseño */
}

/* 3. Matar el espaciado nativo que Gutenberg mete siempre al primer bloque de la página */
.entry-content > .jt-container-align:first-child,
.entry-content > .gym-current-wod-content:first-child {
    margin-top: 0.5rem !important; 
}

/* 4. Ajuste para móviles si el menú o la cabecera se solapan */
@media (max-width: 768.98px) {
    .jt-container-align,
    .gym-current-wod-content {
        margin-top: 1.5rem !important; 
    }
	/* --- FIX CHECKOUT MÓVIL: APILAMIENTO Y MÁRGENES PREMIUM --- */
    
    /* 1. Respiro al título y márgenes de la cabecera */
    .gym-rcp-global-header {
        margin-top: 2.5rem !important; 
        padding: 0 16px !important; 
        box-sizing: border-box !important;
    }

    /* 2. Contenedor Maestro: Rompe el Grid, se apila y establece el margen de seguridad lateral */
    .gym-checkout-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important; /* Separación entre el Form y los Beneficios */
        width: 100% !important;
        padding: 0 16px !important; /* Margen premium de 16px por cada lado */
        box-sizing: border-box !important;
    }

    /* 3. Matar el Sticky y anchos de columnas */
    .gym-checkout-summary-col,
    .gym-checkout-form-col {
        position: static !important;
        width: 100% !important;
    }
    
    /* 4. Aseguramos que las cajas interiores ocupen su espacio sin desbordar */
    .gym-clean-registration-box,
    .gym-checkout-benefits-card,
    .gym-checkout-proof-card {
        width: 100% !important;
        max-width: 100% !important; 
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 24px !important;
        box-sizing: border-box !important;
    }
}
/* =========================================================
   NUEVOS ESTILOS CRO PARA LA LANDING /MEMBERS
   ========================================================= */

/* 1. Glassmorphism en los pines del mapa público */
.alt-member-pin { 
    background: rgba(255, 255, 255, 0.85) !important; 
    backdrop-filter: blur(10px) !important; 
    -webkit-backdrop-filter: blur(10px) !important; 
    border-radius: 12px !important; 
    padding: 12px !important; 
    border: 1px solid rgba(255,255,255,0.5) !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important; 
}

/* 2. Animación en cascada suave al hacer scroll hacia el directorio */
.gym-members-directory .gym-user-card {
    animation: gymFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes gymFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Botón Flotante (Sticky) del Upsell en Móvil para maximizar clics */
@media (max-width: 768.98px) {
    .gym-mobile-sticky-cta {
        position: fixed !important;
        bottom: 24px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        z-index: 9999 !important;
        box-shadow: 0 15px 35px rgba(46,91,60,0.4) !important;
        animation: gymPopUp 0.5s ease forwards;
        text-align: center;
    }
}

@keyframes gymPopUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* =========================================================
   FIX DEFINITIVO 4.0: ENCUADRE DE LOS FILTROS
   ========================================================= */

/* 1. Usamos el selector de alta especificidad para matar el margin: 0 */
.buddypress-wrap #item-body #subnav-filters {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important; /* Mata el space-between y lo tira a la derecha */
    align-items: center !important;
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto 24px auto !important; /* Recuperamos el centrado absoluto */
    padding: 0 16px !important; /* Margen interior igual que la caja de publicar */
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Destruimos la caja inútil del RSS y los clearfix nativos */
.buddypress-wrap #item-body #subnav-filters .subnav-search,
.buddypress-wrap #item-body #subnav-filters::before,
.buddypress-wrap #item-body #subnav-filters::after {
    display: none !important;
    content: none !important;
}

/* 3. Aseguramos el tamaño y flotación del desplegable */
.buddypress-wrap #item-body #subnav-filters .component-filters {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
}

/* 4. En móviles: igualamos el padding a 20px (como en tus tarjetas) */
@media (max-width: 768.98px) {
    .buddypress-wrap #item-body #subnav-filters {
        padding: 0 20px !important;
    }
}
/* =========================================================
   FIX 4.1: UNIFICAR TAMAÑO DE LOS DESPLEGABLES (ACTIVIDAD Y AVISOS)
   ========================================================= */

/* 1. Forzamos un ancho exacto e idéntico para la caja contenedora de ambos filtros */
.buddypress-wrap #item-body #subnav-filters .select-wrap {
    width: 280px !important; /* Este es un tamaño ideal, pero puedes subirlo o bajarlo a tu gusto */
    max-width: 100% !important; /* Evita que se desborde en pantallas de móviles muy pequeños */
}

/* 2. Obligamos al select a no crecer más de ese ancho y a cortar el texto largo con "..." */
.buddypress-wrap #item-body #subnav-filters .select-wrap select {
    width: 100% !important;
    min-width: 0 !important; /* Anulamos cualquier mínimo anterior que estorbe */
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}
/* =========================================================
   FIX: ENCUADRE DE TABLAS DE MEMBRESÍA EN BUDDYPRESS
   ========================================================= */

/* 1. Forzamos el mismo ancho y centrado que tienen las pestañas de Perfil y Ajustes */
.buddypress-wrap #item-body .jt-buddypress-rcp-container {
    display: block !important;
    width: 100% !important;
    max-width: 900px !important; /* Mismo límite visual que el resto del contenido */
    margin: 0 auto 40px auto !important; /* Centrado absoluto respecto al menú superior */
    box-sizing: border-box !important;
}

/* 2. En móviles, aplicamos el mismo margen de seguridad (20px) para que no toque la pantalla */
@media (max-width: 768.98px) {
    .buddypress-wrap #item-body .jt-buddypress-rcp-container {
        padding: 0 20px !important;
    }
}
/* =========================================================
   09. NUEVO DIRECTORIO COMUNIDAD (COMMAND BAR, MAPA Y TARJETAS)
   ========================================================= */

/* --- COMMAND BAR (Buscador y Filtros Premium) --- */
.gym-directory-controls {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 50px;
    padding: 8px 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gym-search-form {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    align-items: center;
}

.gym-filter-separator {
    width: 1px;
    height: 30px;
    background-color: rgba(0,0,0,0.08);
    margin: 0 10px;
}

.gym-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.gym-search-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(11,6,32,0.4);
}

.gym-search-wrapper input {
    width: 100% !important;
    padding: 12px 12px 12px 44px !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--gym-dark) !important;
    outline: none !important;
    box-shadow: none !important;
}

.gym-filter-wrapper select {
    padding: 12px 30px 12px 12px !important;
    border: none !important;
    background-color: transparent !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--gym-dark) !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
}

/* 3. Botón Open to Talk (Etiqueta interactiva) */
.gym-toggle-talk {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 50px;
    background: #f4f4f4; /* Fondo gris claro cuando está inactivo */
    border: 1px solid transparent; /* Borde invisible para que no salte el tamaño */
    transition: all 0.2s ease;
    user-select: none;
    height: auto;
    margin: 0;
}

.gym-toggle-talk:hover {
    background: #e5e3df; /* Gris un poco más oscuro al pasar el ratón */
}

.gym-toggle-talk input {
    display: none;
}

.gym-toggle-talk span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(11, 6, 32, 0.6);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 🔥 ESTADO ACTIVADO (PULSADO) 🔥 */
.gym-toggle-talk:has(input:checked) {
    background: var(--gym-success-bg) !important; /* Fondo verde muy suave */
    border: 1px solid var(--gym-green) !important; /* Borde verde The Gym */
    box-shadow: 0 4px 10px rgba(46, 91, 60, 0.15) !important; /* Resplandor verde sutil */
}

.gym-toggle-talk:has(input:checked) span {
    color: var(--gym-green);
    font-weight: 800; /* Texto más contundente */
}

.gym-btn-search {
    background: var(--gym-green) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 24px !important;
    height: 44px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gym-btn-search:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 91, 60, 0.2) !important;
    background: var(--gym-dark) !important; 
}

.gym-btn-clear {
    background: #fef2f2 !important;
    color: var(--gym-red) !important;
    border: none !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: all 0.2s !important;
}

.gym-btn-clear:hover { 
    background: var(--gym-red) !important; 
    color: #fff !important;
}

/* --- MAPA SINCRONIZADO --- */
.gym-synced-map-section {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--br-xl);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
}

#gym-private-map {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    background-color: rgb(229, 227, 223);
    overflow: hidden;
    position: relative;
}
/* --- PINES DEL MAPA Y POPUP --- */
.gym-avatar-marker-priv { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    border: 2px solid #ffffff; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3); 
    object-fit: cover; 
    transform: translateY(50%); 
    cursor: pointer; 
    transition: transform 0.2s ease; 
}

.gym-avatar-marker-priv:hover { 
    transform: translateY(50%) scale(1.1); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.4); 
}

.alt-member-pin-private { 
    text-align: center; 
    min-width: 120px; 
    padding: 10px; 
}

.alt-member-pin-private a { 
    display: block; 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition-smooth); 
    cursor: pointer; 
    pointer-events: auto; 
}

.alt-member-pin-private a:hover img { 
    transform: scale(1.05); 
    box-shadow: 0 6px 12px rgba(46, 91, 60, 0.2); 
}

.alt-member-pin-private a:hover p { 
    color: var(--gym-green); 
}

.alt-member-pin-private img { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 8px; 
    border: 2px solid var(--gym-green); 
    transition: var(--transition-smooth); 
}

.alt-member-pin-private p { 
    font-weight: 700; 
    margin-bottom: 4px; 
    color: var(--gym-dark); 
    font-size: 16px; 
    transition: color 0.2s ease; 
}

.alt-member-pin-private span.view-profile { 
    font-size: 12px; 
    color: var(--gym-green); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    opacity: 0.8; 
}

/* --- TOOLBAR (TÍTULO Y MI ESTADO COMPACTO) --- */
.gym-grid-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 5px;
}

.gym-grid-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--gym-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.gym-my-status-panel {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 50px;
    padding: 6px 8px 6px 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin: 0;
}

.gym-my-status-panel:has(input:checked) {
    border-color: rgba(46,91,60,0.2);
    background: #f0fdf4;
}

.gym-my-status-info h4, .gym-my-status-info p {
    display: none; 
}

.gym-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 12px;
}

.gym-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.gym-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 34px;
}

.gym-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gym-switch input:checked + .gym-slider {
    background-color: var(--gym-green);
}

.gym-switch input:checked + .gym-slider:before {
    transform: translateX(20px);
}

/* --- TARJETAS DE USUARIOS --- */
.gym-members-directory { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    justify-content: center; 
    gap: 24px; 
    width: 100%; 
    max-width: 1000px; 
    margin: 0 auto 4rem auto; 
    padding: 0; 
    box-sizing: border-box; 
}

.gym-user-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gym-user-card {
    flex: 1; 
    background-color: #ffffff;
    border-radius: var(--br-md);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    border-bottom: none;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0 !important;
    text-decoration: none;
}

.gym-user-card-wrapper:hover .gym-user-card {
    transform: translateY(-5px); 
    box-shadow: var(--shadow-hover); 
    border-color: var(--gym-success-border); 
}

.gym-member-photo-container { position: relative; }
.gym-member-photo { 
    width: 100px; 
    height: 100px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid var(--gym-green); 
    margin-bottom: 16px; 
    transition: var(--transition-smooth); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.gym-user-card-wrapper:hover .gym-member-photo { 
    transform: scale(1.05); 
    box-shadow: 0 6px 14px rgba(46, 91, 60, 0.2); 
}

.gym-status-dot.online {
    position: absolute;
    bottom: 12px;
    right: 2px;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
    animation: gymPulseOnline 2s infinite;
}

@keyframes gymPulseOnline {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.gym-open-talk-badge {
    display: inline-block;
    margin-top: 10px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.gym-member-name { 
    margin: 0 0 12px 0 !important; 
    font-size: 18px !important; 
    line-height: 1.3 !important; 
    color: var(--gym-dark); 
    font-weight: 800;
    letter-spacing: -0.3px;
}

.gym-member-detail { 
    font-size: 13px; 
    color: rgba(11, 6, 32, 0.7); 
    margin-bottom: 8px; 
    display: flex; 
    align-items: flex-start; 
    justify-content: center; 
    gap: 6px; 
    line-height: 1.4; 
}

/* --- BOTÓN DE MENSAJE PREMIUM --- */
.gym-card-actions {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom-left-radius: var(--br-md);
    border-bottom-right-radius: var(--br-md);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.gym-user-card-wrapper:hover .gym-card-actions {
    box-shadow: 0 10px 30px rgba(46,91,60,0.08);
    border-color: rgba(46,91,60,0.1);
}

.gym-dm-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 24px !important;
    background: linear-gradient(135deg, var(--gym-dark) 0%, #1a152e 100%);
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 6px 15px rgba(11, 6, 32, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box !important;
}

.gym-dm-btn svg {
    flex-shrink: 0 !important;
    display: block !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gym-dm-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, var(--gym-green) 0%, var(--gym-green-dark) 100%);
    box-shadow: 0 10px 25px rgba(46, 91, 60, 0.3);
    color: #ffffff !important;
}

.gym-dm-btn:hover svg {
    transform: scale(1.15) rotate(-8deg); 
}

.gym-dm-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(46, 91, 60, 0.15);
    transition: all 0.1s ease;
}

.gym-dm-btn.gym-dm-disabled {
    background: #f8f9fa !important;
    color: rgba(11, 6, 32, 0.4) !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* --- PAGINACIÓN --- */
.gym-pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.gym-pagination .page-numbers {
    padding: 10px 18px;
    background: #fff;
    border: 2px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    color: var(--gym-dark);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.gym-pagination .page-numbers:hover {
    background: var(--gym-cream);
    border-color: var(--gym-info-border);
    color: var(--gym-green);
    transform: translateY(-2px);
}

.gym-pagination .page-numbers.current {
    background: var(--gym-green);
    color: #fff;
    border-color: var(--gym-green);
    pointer-events: none;
}

/* --- ADAPTACIÓN MÓVIL --- */
@media (max-width: 768.98px) {
    .gym-directory-controls {
        border-radius: 24px;
        padding: 16px;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    
    .gym-search-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .gym-filter-separator {
        display: none;
    }

    .gym-search-wrapper {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gym-search-wrapper input {
        background: #f4f4f4 !important;
        border-radius: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gym-filter-wrapper select {
        background: #f4f4f4 !important;
        border-radius: 12px !important;
        width: 100% !important;
    }

    .gym-toggle-talk {
        justify-content: center;
        background: #f4f4f4;
        border-radius: 12px;
        padding: 14px;
    }
    
    .gym-btn-search {
        width: 100% !important;
        border-radius: 12px !important;
        margin-left: 0;
    }

    .gym-btn-clear {
        width: 100% !important;
        border-radius: 12px !important;
        margin-left: 0;
    }

    .gym-grid-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .gym-my-status-panel {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
}

/* =========================================================
   ESPACIADO CABECERA LOGIN Y REGISTRO (SOLO ESCRITORIO)
   ========================================================= */
@media (min-width: 769px) {
    .gym-rcp-global-header {
        margin-top: 4rem !important; /* Ajusta este valor si quieres más o menos espacio */
    }
}