/* Formulario «Hazte socio/a» con los colores y letras de la web del club */
.bbx-socio {
	--s-ink: var(--wp--preset--color--noche, #1E0838);
	--s-muted: var(--wp--preset--color--texto-suave, #4A3863);
	--s-line: var(--wp--preset--color--borde, #E6DCF3);
	--s-accent: var(--wp--preset--color--morado, #5B1F96);
	--s-soft: var(--wp--preset--color--lila-claro, #EFE6FA);
	--s-yellow: var(--wp--preset--color--amarillo, #F6CF1E);
	--s-danger: #a3322c;
	--s-danger-soft: #f7e5e3;
	max-width: 820px;
	margin: 0 auto;
	color: var(--s-ink);
	font-size: 1.0625rem;
	line-height: 1.55;
}
.bbx-socio [hidden] { display: none !important; }
.bbx-socio *, .bbx-socio *::before, .bbx-socio *::after { box-sizing: border-box; }

.bbx-socio .eyebrow { font-style: italic; color: var(--s-accent); margin: 0 0 4px; font-size: 1.125rem; }
.bbx-socio__titulo { margin: 0; font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
.bbx-socio .lead { font-size: 1.125rem; margin: 14px 0 0; max-width: 62ch; }
.bbx-socio .nojs { background: var(--s-danger-soft); color: var(--s-danger); padding: 14px; border-radius: 12px; margin-top: 16px; }

/* Requisitos y pasos */
.bbx-socio .reqs { margin: 26px 0 0; border-block: 1px solid var(--s-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bbx-socio .reqs > div { padding: 14px 16px 14px 0; display: flex; gap: 10px; align-items: baseline; font-size: 0.9375rem; }
.bbx-socio .reqs > div + div { padding-left: 16px; border-left: 1px solid var(--s-line); }
.bbx-socio .reqs .k { font-weight: 700; font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--s-muted); display: block; margin-bottom: 4px; }
.bbx-socio .sq { width: 10px; height: 10px; background: var(--s-yellow); border: 2px solid var(--s-accent); flex: none; display: inline-block; }
.bbx-socio .steps { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--s-muted); }
.bbx-socio .steps b { color: var(--s-ink); }
.bbx-socio .steps .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--s-yellow); color: var(--s-ink); font-size: 0.8125rem; font-weight: 800; margin-right: 6px; }
@media (max-width: 640px) {
	.bbx-socio .reqs { grid-template-columns: 1fr; }
	.bbx-socio .reqs > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--s-line); }
}

/* Estatutos */
.bbx-socio .est { margin: 22px 0 0; border: 1px solid var(--s-line); border-radius: 16px; background: #fff; }
.bbx-socio .est > summary { cursor: pointer; padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; list-style: none; min-height: 44px; }
.bbx-socio .est > summary::-webkit-details-marker { display: none; }
.bbx-socio .est > summary::before { content: "＋"; font-weight: 800; color: var(--s-accent); margin-right: 8px; }
.bbx-socio .est[open] > summary::before { content: "－"; }
.bbx-socio .est-t { font-weight: 700; color: var(--s-accent); flex: 1; }
.bbx-socio .est-m { font-size: 0.875rem; color: var(--s-muted); }
.bbx-socio .est-body { padding: 0 20px 20px; max-height: 70vh; overflow-y: auto; border-top: 1px solid var(--s-line); font-size: 0.9375rem; }
.bbx-socio .est-intro { color: var(--s-muted); }
.bbx-socio .est-idx { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.bbx-socio .est-idx a { font-size: 0.8125rem; padding: 4px 10px; border-radius: 999px; background: var(--s-soft); text-decoration: none; }
.bbx-socio .est-body h3 { font-size: 1.25rem; margin: 26px 0 8px; }
.bbx-socio .est-body h3 span { display: block; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--s-accent); font-family: var(--wp--preset--font-family--dm-sans); }
.bbx-socio .est-body h4 { font-size: 1rem; margin: 18px 0 6px; }
.bbx-socio .est-body .art { color: var(--s-accent); }
.bbx-socio .est-fin { color: var(--s-muted); font-style: italic; }

/* Puerta de mayoría de edad */
.bbx-socio .gate { margin: 32px 0 0; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--s-soft); }
.bbx-socio .gate h3 { margin: 0 0 8px; font-size: 1.5rem; }
.bbx-socio .gate-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.bbx-socio .gate-no { margin-top: 18px; padding: 16px; border-radius: 14px; background: #fff; border: 2px solid var(--s-accent); }
.bbx-socio .gate-no p { margin: 0 0 6px; }

/* Secciones del formulario */
.bbx-socio fieldset { border: 0; padding: 0; margin: 40px 0 0; min-width: 0; }
.bbx-socio legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; width: 100%; padding: 0 0 10px; border-bottom: 2px solid var(--s-line); margin-bottom: 20px; }
.bbx-socio legend .num { align-self: center; width: 30px; height: 30px; display: grid; place-items: center; background: var(--s-accent); color: #fff; font-weight: 800; font-size: 0.875rem; border-radius: 50%; }
.bbx-socio legend .tt { font-family: var(--wp--preset--font-family--bricolage); font-weight: 800; font-size: 1.25rem; }
.bbx-socio legend .eu { font-style: italic; color: var(--s-muted); }
.bbx-socio .note { font-size: 0.875rem; color: var(--s-muted); }

.bbx-socio .grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bbx-socio .c2 { grid-column: span 2; } .bbx-socio .c3 { grid-column: span 3; } .bbx-socio .c4 { grid-column: span 4; } .bbx-socio .c6 { grid-column: span 6; }
@media (max-width: 640px) { .bbx-socio .grid > * { grid-column: span 6; } .bbx-socio .grid > .m3 { grid-column: span 3; } }

.bbx-socio .field { min-width: 0; display: flex; flex-direction: column; }
.bbx-socio .field label, .bbx-socio .lbl { font-weight: 700; font-size: 0.9375rem; margin-bottom: 6px; }
.bbx-socio .req { color: var(--s-accent); }
.bbx-socio .opt { font-weight: 400; color: var(--s-muted); font-size: 0.8125rem; }
.bbx-socio input[type="text"], .bbx-socio input[type="email"], .bbx-socio input[type="tel"], .bbx-socio select {
	font: inherit; font-size: 1.0625rem; color: var(--s-ink); background: #fff;
	border: 1.5px solid var(--wp--preset--color--lila, #C9A8F0); border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%;
}
.bbx-socio input:focus, .bbx-socio select:focus { outline: 3px solid var(--s-yellow); outline-offset: 1px; border-color: var(--s-accent); }
.bbx-socio .mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.bbx-socio .doc-row { display: flex; gap: 8px; }
.bbx-socio .doc-row select { width: 96px; flex: none; }
.bbx-socio .hint { font-size: 0.8125rem; color: var(--s-muted); margin: 6px 0 0; }
.bbx-socio [aria-invalid="true"] { border-color: var(--s-danger) !important; background: var(--s-danger-soft) !important; }
.bbx-socio .err { color: var(--s-danger); font-size: 0.875rem; font-weight: 600; margin: 6px 0 0; }

/* Cuota */
.bbx-socio .pay { background: #fff; border: 1px solid var(--s-line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.bbx-socio .pay .k { display: block; font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--s-muted); font-weight: 700; }
.bbx-socio .pay strong { font-size: 1.125rem; }
.bbx-socio .pay p { margin: 6px 0 0; font-size: 0.9375rem; color: var(--s-muted); }

/* Casillas */
.bbx-socio .checks { display: flex; flex-direction: column; gap: 6px; }
.bbx-socio .check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--s-line); cursor: pointer; }
.bbx-socio .check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--s-accent); }
.bbx-socio .check small { display: block; color: var(--s-muted); font-size: 0.8125rem; margin-top: 2px; }
.bbx-socio .check-err { margin: 0 0 6px 4px; }

/* Protección de datos */
.bbx-socio dl.info { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 0.9375rem; margin: 0; }
.bbx-socio dl.info dt { font-weight: 700; }
.bbx-socio dl.info dd { margin: 0; color: var(--s-muted); }
@media (max-width: 640px) { .bbx-socio dl.info { grid-template-columns: 1fr; } .bbx-socio dl.info dd { margin-bottom: 8px; } }
.bbx-socio fieldset details { margin-top: 12px; }
.bbx-socio fieldset details > summary { cursor: pointer; color: var(--s-accent); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.bbx-socio .consent { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--s-line); }
.bbx-socio .consent p { margin: 0; font-size: 0.9375rem; }
.bbx-socio .consent small { display: block; color: var(--s-muted); font-size: 0.8125rem; }
.bbx-socio .yn { display: flex; gap: 6px; flex: none; }
.bbx-socio .yn label { position: relative; min-width: 56px; min-height: 44px; display: grid; place-items: center; border: 1.5px solid var(--wp--preset--color--lila, #C9A8F0); border-radius: 999px; font-weight: 700; cursor: pointer; background: #fff; }
.bbx-socio .yn input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bbx-socio .yn label:has(input:checked) { background: var(--s-accent); color: #fff; border-color: var(--s-accent); }
.bbx-socio .yn label:has(input:focus-visible) { outline: 3px solid var(--s-yellow); }

/* Firma */
.bbx-socio .sigpad { position: relative; height: 200px; border: 2px dashed var(--wp--preset--color--lila, #C9A8F0); border-radius: 16px; background: #fff; touch-action: none; }
.bbx-socio .sigpad.invalid { border-color: var(--s-danger); background: var(--s-danger-soft); }
.bbx-socio .sigpad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.bbx-socio .sig-guide { position: absolute; left: 36px; right: 20px; bottom: 44px; border-bottom: 1px solid var(--s-line); pointer-events: none; }
.bbx-socio .sig-x { position: absolute; left: 16px; bottom: 44px; color: var(--s-muted); pointer-events: none; }
.bbx-socio .sig-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--s-muted); pointer-events: none; font-size: 1.0625rem; }
.bbx-socio .sig-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--s-muted); margin-top: 8px; }

/* Botones */
.bbx-socio .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; border: 2px solid transparent; }
.bbx-socio .btn.primary { background: var(--s-accent); color: #fff; }
.bbx-socio .btn.primary:hover { background: var(--s-ink); }
.bbx-socio .btn.ghost { background: #fff; color: var(--s-accent); border-color: var(--s-accent); }
.bbx-socio .btn.ghost:hover { background: var(--s-soft); }
.bbx-socio .btn.small { min-height: 44px; padding: 8px 16px; font-size: 0.875rem; }
.bbx-socio .btn:disabled { opacity: .6; cursor: progress; }
.bbx-socio .btn svg { width: 20px; height: 20px; }

/* Envío */
.bbx-socio .submit { margin-top: 36px; padding: 24px; border-radius: 24px; background: var(--s-yellow); }
.bbx-socio .submit .btn.primary { width: 100%; font-size: 1.125rem; min-height: 56px; }
.bbx-socio .summary-err { background: #fff; color: var(--s-danger); font-weight: 700; padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; }
.bbx-socio .privacy-line { font-size: 0.875rem; margin: 12px 0 0; text-align: center; }
.bbx-socio .bbx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Resultado */
.bbx-socio .result { margin-top: 32px; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: #fff; border: 2px solid var(--s-accent); }
.bbx-socio .result h3 { margin: 0 0 6px; font-size: 1.75rem; }
.bbx-socio .result .meta { font-size: 0.875rem; color: var(--s-muted); margin: 0 0 12px; word-break: break-word; }
.bbx-socio .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.bbx-socio .addr { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.bbx-socio .addr code { background: var(--s-soft); padding: 10px 14px; border-radius: 10px; font-size: 1rem; }
.bbx-socio .status { font-size: 0.9375rem; color: var(--s-muted); margin: 12px 0 0; }
.bbx-socio__pie { margin-top: 40px; font-size: 0.8125rem; color: var(--s-muted); text-align: center; }

/* ---------- Registro de alumnos/as ---------- */
.bbx-socio .opciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bbx-socio .op { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1.5px solid var(--wp--preset--color--lila, #C9A8F0); border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
.bbx-socio .op input { width: 18px; height: 18px; margin: 0; accent-color: var(--s-accent); }
.bbx-socio .op:has(input:checked) { background: var(--s-accent); color: #fff; border-color: var(--s-accent); }
.bbx-socio .op:has(input:checked) input { accent-color: var(--s-yellow); }
.bbx-socio .op:has(input:focus-visible) { outline: 3px solid var(--s-yellow); }
.bbx-socio textarea { font: inherit; font-size: 1.0625rem; color: var(--s-ink); background: #fff; border: 1.5px solid var(--wp--preset--color--lila, #C9A8F0); border-radius: 12px; padding: 12px 14px; width: 100%; resize: vertical; }
.bbx-socio input[type="date"] { font: inherit; font-size: 1.0625rem; color: var(--s-ink); background: #fff; border: 1.5px solid var(--wp--preset--color--lila, #C9A8F0); border-radius: 12px; padding: 11px 14px; min-height: 50px; width: 100%; }
.bbx-socio .aviso-menor { background: var(--s-yellow); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 0.9375rem; }
.bbx-socio .lopivi { background: var(--wp--preset--color--morado-oscuro, #2B0E4D); color: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; font-size: 0.9375rem; line-height: 1.55; }
.bbx-socio .lopivi strong { display: block; color: var(--s-yellow); margin-bottom: 4px; font-size: 1rem; }
.bbx-socio .lopivi a { color: var(--s-yellow); font-weight: 700; }
