/* ============================================================
   UTC Socios · CSS SOCIO (frontend). Scopeado a .utc-socio-app.
   Textos con font inherit (heredan del tema). Independiente del CSS admin.
   ============================================================ */

.utc-socio-app {
	--red: #C8102E; --red-dark: #8B0000; --gold: #D4A843; --gold-lt: #F5E6C8;
	--black: #1A1A1A; --gray: #F5F5F5; --gray-med: #E0E0E0; --gray-dark: #757575; --white: #FFF;
	--ok: #2E7D32; --warn: #F57C00; --err: #C62828;
	color: var(--black);
}
.utc-socio-app, .utc-socio-app * { font-family: inherit; box-sizing: border-box; } /* hereda del tema */

/* App fija a pantalla completa: cubre el tema, sin scroll de documento (evita scroll vertical/horizontal). */
.utc-socio-app { position: fixed; inset: 0; z-index: 9998; background: var(--gray); overflow: hidden; }
.utc-s-layout { display: flex; gap: 0; align-items: stretch; padding: 0; height: 100vh; }
.utc-s-main { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; padding: 28px 34px 40px; }

/* Colores de títulos (NO forzamos tamaño: lo da la jerarquía del tema — usa h2/h3/h4). */
.utc-socio-app h2, .utc-socio-app h3, .utc-socio-app h4 { color: var(--black) !important; }
.utc-socio-app .utc-s-h1 span { color: var(--red) !important; }
.utc-socio-app .utc-s-membername { color: var(--black) !important; }
/* Carnet (fondo oscuro): textos claros — ganan a la regla negra por especificidad. */
.utc-socio-app .utc-s-carnet-info h4, .utc-socio-app .utc-s-carnet-name, .utc-socio-app .utc-s-carnet-plan { color: #fff !important; }

/* Sidebar (full-height, flush como el mockup) */
.utc-s-sidebar { width: 262px; flex-shrink: 0; background: var(--black); padding: 26px 18px; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.utc-s-navlabel { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.32); font-weight: 600; padding: 0 12px; margin: 16px 0 6px; }
.utc-s-nav > .utc-s-navlabel:first-child { margin-top: 0; }
.utc-s-useremail { font-size: 11px; color: rgba(255,255,255,.42); margin: 1px 0 4px; word-break: break-all; }
/* Marca / logo */
.utc-s-brand { text-align: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.utc-s-brand-logo { max-width: 150px; max-height: 60px; margin: 0 auto; display: block; }
.utc-s-brand-name { font-size: 26px; font-weight: 800; color: #fff !important; letter-spacing: -.5px; }
.utc-s-brand-sub { font-size: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-top: 4px; }
.utc-s-burger { display: none; }
.utc-s-userstatus { display: inline-block; margin-top: 4px; padding: 2px 12px; border-radius: 30px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.utc-s-userstatus.active { background: var(--gold); color: var(--black); }
.utc-s-userstatus.pending { background: #FFF3E0; color: #E65100; }
.utc-s-userstatus.expired { background: #FBE9E7; color: #BF360C; }
.utc-s-nav { display: flex; flex-direction: column; gap: 2px; }
.utc-s-navitem { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 10px; color: rgba(255,255,255,.6); font-size: 14px; font-weight: 500; background: none; border: none; width: 100%; text-align: left; cursor: pointer; transition: all .2s; }
.utc-s-navitem i { font-size: 17px; width: 20px; text-align: center; }
.utc-s-navitem:hover { background: rgba(200,16,46,.15); color: #fff; }
.utc-s-navitem.active { background: var(--red); color: #fff; box-shadow: 0 4px 16px rgba(200,16,46,.3); }
.utc-s-userbox { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; }
.utc-s-useravatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.utc-s-useravatar img { width: 100%; height: 100%; object-fit: cover; }
.utc-s-username { color: #fff; font-size: 14px; font-weight: 600; }
.utc-s-userplan { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

/* Main (topbar retirado; se conserva la clase por compatibilidad) */
.utc-s-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--white); padding: 16px 22px; border-radius: 16px; border: 1px solid var(--gray-med); margin-bottom: 20px; }
.utc-s-h1 { font-weight: 800; margin: 0; letter-spacing: -.5px; }
.utc-s-h1 span { color: var(--red); }
.utc-s-sub { font-size: 13px; color: var(--gray-dark); margin: 2px 0 0; }
.utc-s-badge { padding: 6px 16px; border-radius: 30px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.utc-s-badge.active { background: var(--gold-lt); color: #8B6914; }
.utc-s-badge.pending { background: #FFF3E0; color: #E65100; }
.utc-s-badge.expired { background: #FBE9E7; color: #BF360C; }

/* Vistas (alternadas por JS) */
.utc-s-view { display: none; animation: utcFade .3s ease; }
.utc-s-view.active { display: block; }
@keyframes utcFade { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Cards y grids */
.utc-s-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.utc-s-card { background: var(--white); border: 1px solid var(--gray-med); border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; }
.utc-s-cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gray); }
.utc-s-cardhead h4 { font-weight: 700; margin: 0; }
.utc-s-tag { font-size: 11px; font-weight: 600; color: var(--gray-dark); background: var(--gray); padding: 4px 12px; border-radius: 30px; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.utc-s-muted { color: var(--gray-dark); font-size: 13px; }
.utc-s-accent { color: var(--red); }
.utc-s-ok { color: var(--ok); }

.utc-s-membername { font-size: 26px; font-weight: 800; }
.utc-s-memberid { font-size: 14px; color: var(--gray-dark); }
.utc-s-divider { border: 0; height: 1px; background: var(--gray-med); margin: 16px 0; }
.utc-s-info { display: flex; gap: 32px; flex-wrap: wrap; }
.utc-s-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-dark); font-weight: 600; }
.utc-s-info strong { font-size: 17px; }

.utc-s-benefits { list-style: none; padding: 0; margin: 8px 0 0; }
.utc-s-benefits li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--gray); }
.utc-s-benefits li:last-child { border-bottom: none; }
.utc-s-benefits li::before { content: "◆"; color: var(--gold); font-size: 9px; }

.utc-s-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--gray); font-size: 14px; }
.utc-s-rows > div:last-child { border-bottom: none; }
.utc-s-rows > div strong { text-align: right; }
.utc-s-total { border-top: 2px solid var(--red) !important; margin-top: 4px; padding-top: 12px !important; font-size: 16px; }
.utc-s-total strong { color: var(--red); font-size: 20px; }

/* Detalle del plan (contenido WYSIWYG): ul/li como lista de beneficios; p/negrita tal cual. */
.utc-s-detalle { font-size: 14px; line-height: 1.6; color: var(--black); }
.utc-s-detalle > *:first-child { margin-top: 0; }
.utc-s-detalle > *:last-child { margin-bottom: 0; }
.utc-s-detalle h1, .utc-s-detalle h2, .utc-s-detalle h3, .utc-s-detalle h4 { margin: 14px 0 6px; }
.utc-s-detalle p { margin: 0 0 10px; }
.utc-s-detalle strong, .utc-s-detalle b { font-weight: 700; }
.utc-s-detalle em, .utc-s-detalle i { font-style: italic; }
.utc-s-detalle a { color: var(--red); }
.utc-s-detalle img { max-width: 100%; height: auto; border-radius: 8px; }
/* Listas con viñeta de diamante dorado (igual que los beneficios) */
.utc-s-detalle ul { list-style: none; padding: 0; margin: 0 0 10px; }
/* OJO: nada de flex aquí — con <strong> dentro del li, flex parte la frase en columnas y desborda en móvil. */
.utc-s-detalle ul li { display: block; position: relative; padding: 7px 0 7px 18px; border-bottom: 1px solid var(--gray); }
.utc-s-detalle ul li:last-child { border-bottom: none; }
.utc-s-detalle ul li::before { content: "◆"; color: var(--gold); font-size: 9px; position: absolute; left: 0; top: 13px; }
.utc-s-detalle ol { margin: 0 0 10px; padding-left: 20px; }
.utc-s-detalle ol li { padding: 3px 0; }
/* En las tarjetas de "Cambiar plan" (compacto, alineado a la izquierda) */
.utc-s-plan-detalle { text-align: left; font-size: 13px; color: var(--gray-dark); margin: 12px 0 16px; }
.utc-s-plan-detalle ul li { font-size: 13px; padding: 5px 0 5px 16px; }
.utc-s-plan-detalle ul li::before { top: 10px; }

.utc-s-pago { background: var(--gray); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.utc-s-pago-top { display: flex; justify-content: space-between; font-weight: 600; }

/* Acciones / botones */
.utc-s-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.utc-s-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 30px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: all .2s; }
.utc-s-btn-primary { background: var(--red); color: #fff; }
.utc-s-btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.utc-s-btn-outline { background: transparent; color: var(--black); border-color: var(--gray-med); }
.utc-s-btn-outline:hover { border-color: var(--red); color: var(--red); }
.utc-s-btn-gold { background: var(--gold); color: var(--black); }
.utc-s-btn-gold:hover { background: #C49A3A; transform: translateY(-2px); }
.utc-s-btn-danger { background: var(--err); color: #fff; }
.utc-s-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Override de Elementor/tema: fuerza estilos de botones (misma especificidad element+clase en todas las variantes). */
.utc-socio-app a.utc-s-btn, .utc-socio-app button.utc-s-btn {
	display: inline-flex !important; align-items: center; gap: 7px;
	border-width: 2px !important; border-style: solid !important; border-color: transparent !important;
	border-radius: 30px !important; font-weight: 700 !important; text-decoration: none !important; box-shadow: none !important;
}
.utc-socio-app a.utc-s-btn-primary, .utc-socio-app button.utc-s-btn-primary { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.utc-socio-app a.utc-s-btn-primary:hover, .utc-socio-app button.utc-s-btn-primary:hover { background: var(--red-dark) !important; color: #fff !important; }
.utc-socio-app a.utc-s-btn-outline, .utc-socio-app button.utc-s-btn-outline { background: transparent !important; color: var(--black) !important; border-color: var(--gray-med) !important; }
.utc-socio-app a.utc-s-btn-outline:hover, .utc-socio-app button.utc-s-btn-outline:hover { border-color: var(--red) !important; color: var(--red) !important; }
.utc-socio-app a.utc-s-btn-gold, .utc-socio-app button.utc-s-btn-gold { background: var(--gold) !important; color: var(--black) !important; border-color: var(--gold) !important; }
.utc-socio-app a.utc-s-btn-danger, .utc-socio-app button.utc-s-btn-danger { background: var(--err) !important; color: #fff !important; border-color: var(--err) !important; }
.utc-socio-app .utc-login-foot a { color: var(--red) !important; }

/* Espaciados forzados: Elementor resetea márgenes de h/p/hr y aplasta el layout. */
.utc-socio-app .utc-s-h1, .utc-socio-app .utc-s-cardhead h4 { margin: 0 !important; }
.utc-socio-app .utc-s-sub { margin: 3px 0 0 !important; }
.utc-socio-app .utc-s-membername { margin: 0 0 3px !important; line-height: 1.2 !important; }
.utc-socio-app .utc-s-memberid { margin: 0 !important; }
.utc-socio-app .utc-s-divider { margin: 16px 0 18px !important; border: 0 !important; height: 1px !important; background: var(--gray-med) !important; }
.utc-socio-app .utc-s-info strong { margin: 3px 0 0 !important; display: block; }
.utc-socio-app .utc-s-actions { margin-top: 18px !important; }
.utc-socio-app .utc-s-benefits, .utc-socio-app .utc-s-detalle { margin-top: 4px !important; }
.utc-socio-app .utc-s-benefits li, .utc-socio-app .utc-s-detalle p { margin: 0 0 0 !important; }
.utc-socio-app .utc-s-detalle p { margin-bottom: 10px !important; }

/* Topbar (título + estado + Mi perfil) */
.utc-s-topactions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Carnet mini (dashboard) */
.utc-s-carnet-mini { background: var(--black); border: 2px solid var(--gold); border-radius: 16px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.utc-s-carnet-info { display: flex; align-items: center; gap: 14px; }
.utc-s-carnet-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; border: 2px solid var(--gold); overflow: hidden; flex-shrink: 0; }
.utc-s-carnet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.utc-s-carnet-info h4 { color: #fff; font-size: 19px; margin: 0; }
.utc-s-qrbox { background: #fff; padding: 8px; border-radius: 10px; border: 2px solid var(--gold); line-height: 0; }

/* Carnet completo */
.utc-s-carnet-wrap { display: flex; flex-direction: column; align-items: center; padding: 12px; }
.utc-s-carnet-card { background: var(--black); border: 3px solid var(--gold); border-radius: 20px; padding: 30px 34px; max-width: 460px; width: 100%; }
.utc-s-carnet-row { display: flex; justify-content: space-between; }
.utc-s-carnet-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); }
.utc-s-carnet-plan { font-size: 20px; font-weight: 800; color: #fff; }
.utc-s-carnet-titular { display: flex; align-items: center; gap: 16px; margin: 20px 0 16px; }
.utc-s-carnet-av { width: 68px; height: 68px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; border: 2px solid var(--gold); overflow: hidden; flex-shrink: 0; }
.utc-s-carnet-av img { width: 100%; height: 100%; object-fit: cover; }
.utc-s-carnet-name { font-size: 23px; font-weight: 700; color: #fff; }
.utc-s-carnet-foot { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 12px; }
.utc-s-carnet-foot > div > div { color: #fff; font-weight: 600; }
.utc-s-carnet-estado { color: var(--gold) !important; font-weight: 700 !important; }
.utc-s-carnet-qr { display: flex; justify-content: center; margin-top: 20px; }
.utc-s-carnet-qr > div { background: #fff; padding: 12px; border-radius: 14px; border: 2px solid var(--gold); }

/* Planes */
.utc-s-plangrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 14px; }
.utc-s-plan { border: 2px solid var(--gray-med); border-radius: 16px; padding: 22px 18px; text-align: center; transition: all .3s; min-width: 0; }
.utc-s-plan:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(200,16,46,.08); }
.utc-s-plan.current { border-color: var(--gold); background: var(--gold-lt); }
.utc-s-plan-name { font-size: 17px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.utc-s-plan-price { font-size: 26px; font-weight: 800; color: var(--red); margin: 8px 0; }
.utc-s-plan-price span { font-size: 13px; font-weight: 400; color: var(--gray-dark); }
.utc-s-plan-badge { display: inline-block; background: var(--gold); color: var(--black); padding: 2px 14px; border-radius: 30px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.utc-s-plan-feats { list-style: none; padding: 0; margin: 12px 0 16px; font-size: 13px; color: var(--gray-dark); }
.utc-s-plan-feats li { padding: 4px 0; border-bottom: 1px solid var(--gray); }
.utc-s-plan-feats li:last-child { border-bottom: none; }
.utc-s-plan .utc-s-btn { width: 100%; justify-content: center; }

.utc-s-renew-box { background: var(--gray); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.utc-s-renew-box > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; }
.utc-s-renew-box > div strong { text-align: right; }

/* Perfil */
.utc-s-avatar-up { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.utc-s-avatar-up > div { min-width: 0; max-width: 100%; }
.utc-s-avatar-up input[type="file"] { max-width: 100%; }
.utc-s-avatar-prev { width: 90px; height: 90px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; border: 3px solid var(--gold); overflow: hidden; flex-shrink: 0; }
.utc-s-avatar-prev img { width: 100%; height: 100%; object-fit: cover; }
.utc-s-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.utc-s-field { margin-bottom: 16px; }
.utc-s-field label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 5px; }
.utc-s-field input { width: 100%; padding: 10px 13px; border: 2px solid var(--gray-med); border-radius: 10px; font-size: 14px; background: #fff; }
.utc-s-field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.08); }
.utc-s-field input[readonly] { background: var(--gray); color: var(--gray-dark); }
/* Ojito ver/ocultar contraseña */
.utc-pass-wrap { position: relative; display: block; }
.utc-pass-wrap input { width: 100%; padding-right: 44px !important; }
.utc-socio-app .utc-pass-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); -webkit-appearance: none; appearance: none; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; min-width: 0; width: auto; height: auto; cursor: pointer; color: var(--gray-dark) !important; font-size: 18px; line-height: 1; padding: 6px; display: flex; }
.utc-socio-app .utc-pass-eye:hover { color: var(--red) !important; background: transparent !important; }
.utc-socio-app .utc-pass-eye i { color: inherit; }

/* Mensajes de validación debajo del input */
.utc-field-msg { display: none; font-size: 12px; color: var(--err); margin-top: 5px; }
.utc-field-msg.show { display: block; }
.utc-socio-app .utc-s-field input.invalid, .utc-login .utc-s-field input.invalid { border-color: var(--err) !important; box-shadow: 0 0 0 3px rgba(198,40,40,.08) !important; }

/* Avisos */
.utc-s-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.utc-s-notice.ok { background: #E8F5E9; color: var(--ok); border: 1px solid #c8e6c9; }
.utc-s-notice.error { background: #FBE9E7; color: var(--err); border: 1px solid #ffcdd2; }

/* ============ LOGIN PERSONALIZADO ============ */
/* Fixed a pantalla completa: cubre header/footer del tema, sin márgenes ni padding laterales. */
.utc-login { position: fixed; inset: 0; z-index: 99990; display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--white); }
.utc-login-aside { background: linear-gradient(150deg, #1A1A1A 0%, #2a1416 60%, var(--red-dark) 130%); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.utc-login-brand { text-align: left; }
.utc-login-brand img { max-width: 160px; max-height: 64px; }
.utc-login-name { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.utc-login-sub { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-top: 4px; }
.utc-login-tagline h2 { font-size: 30px; font-weight: 800; color: #fff !important; line-height: 1.2; margin: 0 0 10px; }
.utc-login-tagline p { color: rgba(255,255,255,.65); font-size: 15px; margin: 0; }
.utc-login-form { background: var(--white); padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.utc-login-form h1 { font-size: 26px; font-weight: 800; color: var(--black) !important; margin: 0 0 4px; }
.utc-login-hint { color: var(--gray-dark); font-size: 14px; margin: 0 0 24px; }
.utc-login-form .utc-s-field input { width: 100%; }
.utc-login-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-dark); margin: 4px 0 18px; cursor: pointer; }
.utc-login-foot { margin-top: 18px; text-align: center; font-size: 13px; }
.utc-login-foot a { color: var(--red); text-decoration: none; }
.utc-login-foot a:hover { text-decoration: underline; }
/* Aceptación obligatoria de las Políticas de privacidad en el registro. */
.utc-login-terms { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--gray-dark); margin: 14px 0 2px; cursor: pointer; line-height: 1.45; }
.utc-login-terms input { margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }
.utc-login-terms a { color: var(--red); text-decoration: underline; }

/* Honeypot: invisible y fuera del foco para humanos; un bot que lo rellena se autodelata. */
.utc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.utc-ts { margin: 14px 0 4px; }
@media (max-width: 820px) {
	/* En móvil se apilan aside+form; el contenido puede pasar del alto de pantalla → el contenedor scrollea.
	   Alto acotado al viewport REAL (100dvh) + form alineado arriba para no cortar el final del formulario. */
	.utc-login { grid-template-columns: 1fr; height: 100dvh; align-content: start; }
	.utc-login-aside { padding: 32px 28px; gap: 28px; }
	.utc-login-tagline h2 { font-size: 24px; }
	.utc-login-form { padding: 32px 28px 48px; justify-content: flex-start; }
}

/* ============ MODAL CHECKOUT ============ */
.utc-s-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 99999; justify-content: center; align-items: center; padding: 16px; backdrop-filter: blur(3px); }
.utc-s-modal-overlay.active { display: flex; }
.utc-s-modal { background: var(--white); border-radius: 18px; padding: 26px 28px; max-width: 600px; width: 100%; max-height: 92vh; overflow-y: auto; }

/* Scrollbar con colores de marca (modal + contenido principal). */
.utc-s-modal, .utc-s-main, .utc-s-sidebar { scrollbar-width: thin; scrollbar-color: var(--red) var(--gray); }
.utc-s-modal::-webkit-scrollbar, .utc-s-main::-webkit-scrollbar, .utc-s-sidebar::-webkit-scrollbar { width: 10px; }
.utc-s-modal::-webkit-scrollbar-track, .utc-s-main::-webkit-scrollbar-track { background: var(--gray); border-radius: 10px; }
.utc-s-sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,.06); }
.utc-s-modal::-webkit-scrollbar-thumb, .utc-s-main::-webkit-scrollbar-thumb, .utc-s-sidebar::-webkit-scrollbar-thumb { background: var(--red); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
.utc-s-modal::-webkit-scrollbar-thumb:hover, .utc-s-main::-webkit-scrollbar-thumb:hover, .utc-s-sidebar::-webkit-scrollbar-thumb:hover { background: var(--gold); background-clip: padding-box; }
.utc-s-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--gray); }
.utc-s-modal-head h3 { font-size: 18px; font-weight: 700; margin: 0; }
/* Cerrar del modal: reset total (el tema/Elementor le mete fondo y borde de botón) */
.utc-socio-app .utc-s-modal-close {
	-webkit-appearance: none; appearance: none;
	background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important;
	padding: 0 !important; margin: 0; min-width: 0; width: 36px; height: 36px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center; border-radius: 50%;
	font-size: 26px; line-height: 1; cursor: pointer; color: var(--gray-dark) !important;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.utc-socio-app .utc-s-modal-close:hover { color: var(--red) !important; background: var(--gray) !important; transform: rotate(90deg); }
.utc-s-testbadge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 10px; border-radius: 30px; background: #FFF3E0; color: #E65100; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.utc-s-co-plan { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.utc-s-co-total { font-size: 20px; font-weight: 800; color: var(--red); margin: 8px 0 4px; }
.utc-s-modal .utc-s-field select { width: 100%; padding: 10px 13px; border: 2px solid var(--gray-med); border-radius: 10px; font-size: 14px; background: #fff; }

/* ============ RESPONSIVE ============ */
/* Planes: 3 columnas por defecto; 2 desde 1024 hacia abajo; 1 en móvil. */
@media (max-width: 1024px) { .utc-s-plangrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .utc-s-plangrid { grid-template-columns: 1fr; } }

/* Grids de 2 columnas del panel colapsan antes (con el sidebar queda poco ancho). */
@media (max-width: 992px) { .utc-s-grid2 { grid-template-columns: 1fr; } }

@media (max-width: 768px) {
	.utc-s-layout { flex-direction: column; height: 100vh; }
	.utc-s-sidebar { width: 100%; height: auto; overflow: visible; flex-shrink: 0; padding: 14px 16px; }
	.utc-s-main { height: auto; flex: 1; min-height: 0; padding: 20px 16px 32px; }
	.utc-s-navlabel { display: none; }
	.utc-s-brand { margin-bottom: 0; padding-bottom: 14px; }
	.utc-s-userbox { display: none; }
	.utc-s-form-row { grid-template-columns: 1fr; }
	.utc-s-carnet-mini { flex-direction: column; align-items: flex-start; }
	.utc-s-carnet-card { padding: 24px 20px; }

	/* Hamburguesa branded + cambio a X al abrir */
	.utc-s-burger { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: var(--red); color: #fff; border: none; border-radius: 12px; font-size: 22px; cursor: pointer; position: absolute; right: 0; top: 50%; transform: translateY(-50%); transition: background .2s ease; }
	.utc-s-burger:hover { background: var(--red-dark); }
	.utc-s-sidebar.open .utc-s-burger { background: var(--gold); color: var(--black); }
	.utc-s-burger .utc-ico-close { display: none; }
	.utc-s-sidebar.open .utc-s-burger .utc-ico-open { display: none; }
	.utc-s-sidebar.open .utc-s-burger .utc-ico-close { display: inline; }

	/* Menú con apertura suave (max-height + opacity) en vez de aparición brusca */
	.utc-s-nav { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; transition: max-height .32s ease, opacity .25s ease, margin-top .2s ease; }
	.utc-s-sidebar.open .utc-s-nav { max-height: 520px; opacity: 1; margin-top: 14px; }
}

/* ===== Carruseles de contenidos (Beneficios / Experiencias) en la pestaña Membresía ===== */
.utc-s-valuecard .utc-s-cardhead h4 { display: inline-flex; align-items: center; gap: 8px; }
.utc-s-valuecard .utc-s-cardhead h4 i { color: var(--gold); font-size: 20px; }

.utc-s-carwrap { position: relative; display: flex; align-items: center; gap: 8px; }
.utc-s-car-track { --per: 3; --gap: 18px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(1, auto); grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; flex: 1 1 auto; min-width: 0; padding: 6px 2px 10px; scrollbar-width: none; }
.utc-s-car-track::-webkit-scrollbar { display: none; }
.utc-s-carwrap[data-rows="2"] .utc-s-car-track { grid-template-rows: repeat(2, auto); }
.utc-s-car-item { scroll-snap-align: start; }

/* Flechas: reset total del botón (evita el borde/box del tema) — solo el SVG */
.utc-socio-app .utc-s-car-nav { flex: 0 0 auto; width: 26px; height: 26px; -webkit-appearance: none; appearance: none; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; padding: 0 !important; margin: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.utc-s-car-nav img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.utc-s-car-nav:hover { transform: scale(1.1); }
.utc-s-car-nav:active { transform: scale(.95); }

/* Beneficio: solo la imagen del arte, COMPLETA (sin recorte). El título va en alt/title. */
.utc-s-ben { display: flex; flex-direction: column; }
.utc-s-ben-img { border-radius: 14px; overflow: hidden; background: var(--gray); box-shadow: 0 3px 12px rgba(0,0,0,.08); transition: transform .2s ease, box-shadow .2s ease; }
.utc-s-ben-img img { width: 100%; height: auto; display: block; }
.utc-s-ben:hover .utc-s-ben-img { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }

/* Experiencia: card imagen + título + texto */
.utc-s-exp { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-med); border-radius: 16px; overflow: hidden; height: 100%; box-shadow: 0 3px 14px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.utc-s-exp:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.13); }
.utc-s-exp-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.utc-s-exp-body { padding: 16px 18px 20px; }
.utc-s-exp-body h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--black); line-height: 1.25; }
.utc-s-exp-body p { margin: 0; font-size: 13px; color: var(--gray-dark); line-height: 1.5; }
.utc-s-exp-btn { margin-top: 14px; }

/* Empty-state (se muestra igual la sección aunque no haya contenido) */
.utc-s-empty { text-align: center; padding: 36px 20px; color: var(--gray-dark); }
.utc-s-empty i { font-size: 36px; color: var(--gold); display: block; margin-bottom: 12px; }
.utc-s-empty p { margin: 0; font-size: 13.5px; max-width: 340px; margin-inline: auto; line-height: 1.5; }

@media (max-width: 1024px) { .utc-s-car-track { --per: 2; } }
@media (max-width: 580px) { .utc-s-car-track { --per: 1; } }

/* ===== Air Datepicker — tema marca (dorado/rojo). Se monta en <body>; el año es texto (no input) → sin conflicto con el tema. ===== */
.air-datepicker {
	--adp-accent-color: #D4A843;
	--adp-color-current-date: #C8102E;
	--adp-cell-background-color-selected: #D4A843;
	--adp-cell-background-color-selected-hover: #C49A3A;
	--adp-cell-background-color-in-range: #F5E6C8;
	--adp-cell-border-radius: 8px;
	--adp-border-radius: 14px;
	--adp-day-name-color: #757575;
	--adp-nav-arrow-color: #757575;
	--adp-btn-color: #C8102E;
	font-family: inherit; box-shadow: 0 14px 44px rgba(0,0,0,.16); z-index: 999999 !important;
}
.air-datepicker-nav--title:hover { color: #C8102E; }

/* Input de fecha visible: fondo blanco + ícono de calendario + cursor */
.utc-socio-app input.utc-date, .utc-wrap input.utc-date {
	background-color: #fff !important; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 42px !important;
}

/* ===== Checkout: estado de carga / error del Brick de MercadoPago (su API a veces devuelve 503) ===== */
.utc-s-co-load { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px 16px; color: var(--gray-dark); font-size: 14px; }
.utc-s-co-spin { width: 20px; height: 20px; border: 2px solid var(--gray-med); border-top-color: var(--gold); border-radius: 50%; animation: utc-co-rot .8s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes utc-co-rot { to { transform: rotate(360deg); } }
.utc-s-co-err { text-align: center; padding: 30px 16px; color: var(--err); font-size: 14px; line-height: 1.5; }
.utc-s-co-err i { display: block; font-size: 38px; line-height: 1; margin-bottom: 10px; }
.utc-s-co-err p { margin: 0 auto; max-width: 360px; }
.utc-s-co-err .utc-s-btn { margin-top: 16px; }

/* ===== Carnet bloqueado: motivo + acción según el estado real de la membresía ===== */
.utc-socio-app .utc-s-lock { text-align: center; padding: 40px 24px; }
.utc-socio-app .utc-s-lock i { font-size: 46px; line-height: 1; color: var(--gold); display: block; margin-bottom: 14px; }
.utc-socio-app .utc-s-lock h4 { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.utc-socio-app .utc-s-lock p { color: var(--gray-dark); font-size: 14px; line-height: 1.55; margin: 0 auto 20px; max-width: 420px; }

/* ===== Checkout: pantalla de resultado del pago (reemplaza el formulario) ===== */
.utc-s-co-done { text-align: center; padding: 34px 20px 8px; }
.utc-s-co-done i { font-size: 58px; line-height: 1; display: block; margin-bottom: 14px; }
.utc-s-co-done.ok i { color: #2E7D32; }
.utc-s-co-done.pend i { color: #F57C00; }
.utc-s-co-done.err i { color: var(--err); }
.utc-s-co-done h4 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.utc-s-co-done p { color: var(--gray-dark); font-size: 14px; line-height: 1.55; margin: 0 auto 22px; max-width: 400px; }
.utc-s-co-done-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Aviso del checkout con icono (va arriba del Brick, visible sin scroll). */
#utc-co-result { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; }
#utc-co-result i { font-size: 18px; line-height: 1.3; flex-shrink: 0; }

/* ===== Cambio de plan programado: entra al vencer el ciclo actual (ya pagado) ===== */
.utc-socio-app .utc-s-sched { display: flex; align-items: flex-start; gap: 14px; border-left: 4px solid var(--gold); }
.utc-socio-app .utc-s-sched i { font-size: 28px; line-height: 1; color: var(--gold); flex-shrink: 0; }
.utc-socio-app .utc-s-sched h4 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.utc-socio-app .utc-s-sched p { color: var(--gray-dark); font-size: 14px; line-height: 1.55; margin: 0; }

/* Aviso dentro del checkout cuando el plan nuevo arranca al terminar el ciclo actual. */
.utc-s-co-sched { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(212, 168, 67, .1); border: 1px solid rgba(212, 168, 67, .35); font-size: 13px; line-height: 1.5; }
.utc-s-co-sched i { font-size: 18px; line-height: 1.3; color: var(--gold); flex-shrink: 0; }

/* ===== Foco y pulsado de los botones. El tema/Elementor inyecta su propio outline: lo anulamos
   y marcamos el foco con nuestro anillo, solo por teclado (focus-visible), sin perder accesibilidad. ===== */
.utc-socio-app .utc-s-btn:focus,
.utc-socio-app button:focus,
.utc-socio-app a.utc-s-btn:focus { outline: none !important; box-shadow: none !important; }
.utc-socio-app .utc-s-btn:focus-visible,
.utc-socio-app button:focus-visible { outline: none !important; box-shadow: 0 0 0 3px rgba(200, 16, 46, .28) !important; }
.utc-socio-app .utc-s-btn-gold:focus-visible { box-shadow: 0 0 0 3px rgba(212, 168, 67, .4) !important; }
.utc-socio-app .utc-s-btn:active { transform: translateY(0); }
.utc-socio-app .utc-s-btn-outline:active { border-color: var(--red) !important; color: var(--red) !important; background: rgba(200, 16, 46, .06) !important; }

/* Avisos del panel con icono (incluye la vuelta desde Checkout Pro). */
.utc-socio-app .utc-s-notice:has(i) { display: flex; align-items: flex-start; gap: 9px; }
.utc-socio-app .utc-s-notice i { font-size: 18px; line-height: 1.35; flex-shrink: 0; }

/* Plan destacado (★ en el CPT): borde dorado y badge "Recomendado". */
.utc-socio-app .utc-s-plan.featured { border-color: var(--gold); box-shadow: 0 4px 18px rgba(212, 168, 67, .18); }
.utc-socio-app .utc-s-plan-badge.gold { background: var(--gold); color: var(--black); }

/* ===== Grilla de planes: "Plan" como antetítulo y el destacado al centro, MÁS GRANDE que el resto.
   Mismos colores de siempre: la jerarquía la da el tamaño, no el color.
   Todas las tarjetas estiran a la altura de la más alta (sin importar cuántos beneficios tenga cada una)
   y el destacado DESBORDA la fila con margen negativo, así siempre sobresale arriba y abajo. ===== */
.utc-s-plangrid { align-items: stretch; padding: 26px 0; } /* aire vertical para el desborde del destacado */
.utc-s-plan-eyebrow { font-size: 13px; font-weight: 500; color: var(--gray-dark); margin-bottom: 2px; }

/* Tarjeta en columna: el detalle empuja el botón al fondo → botones alineados entre tarjetas. */
.utc-socio-app .utc-s-plan { display: flex; flex-direction: column; }
.utc-socio-app .utc-s-plan .utc-s-plan-detalle { flex: 1; }

.utc-socio-app .utc-s-plan.featured { margin-top: -26px; margin-bottom: -26px; padding: 34px 22px; }
.utc-socio-app .utc-s-plan.featured .utc-s-plan-eyebrow { font-size: 15px; }
.utc-socio-app .utc-s-plan.featured .utc-s-plan-name { font-size: 21px; }
.utc-socio-app .utc-s-plan.featured .utc-s-plan-price { font-size: 32px; }

/* En columnas apiladas no hay fila que desbordar: el destacado vuelve al flujo normal. */
@media (max-width: 1024px) { .utc-socio-app .utc-s-plan.featured { margin-top: 0; margin-bottom: 0; } }
@media (max-width: 600px)  { .utc-socio-app .utc-s-plan.featured { padding: 26px 18px; } }
