/* Sondeo EFAN de Aikido, Kendo y Wu-Shu (26/11/2026). Se carga después de sondeo.css. */

.sd-page .sondeo-title { justify-content: center; }
.sd-h2 { font-size: 1.15rem; margin: 0 0 .75rem; color: var(--color-text); }
.sd-plazo { margin-top: 1rem; padding: .75rem 1rem; border-left: 4px solid var(--color-accent); background: #fbf7ee; border-radius: 6px; }
.sd-plazo i { color: var(--color-accent-dark); margin-right: .4rem; }

/* Avisos */
.sd-gracias { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; border-radius: 10px; background: #eaf7ef; border: 1px solid #b9e2c8; }
.sd-gracias > i { font-size: 1.8rem; color: var(--color-success); }
.sd-gracias h2, .sd-cerrado h2, .sd-errores h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.sd-gracias p { margin: .25rem 0; }
.sd-cerrado { padding: 1.25rem 1.5rem; border-radius: 10px; background: #f4f6f7; border: 1px solid var(--color-border); text-align: center; }
.sd-errores { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-radius: 10px; background: #fdecea; border: 1px solid #f5b7b1; }
.sd-errores ul { margin: .25rem 0 0 1.1rem; padding: 0; }
.sd-errores a { color: #922b21; }
.sd-error { color: #b03a2e; font-size: .9rem; margin: .35rem 0 0; font-weight: 600; }
[aria-invalid="true"] { border-color: #b03a2e !important; }

/* Tabla comparativa desplegable */
.sd-tabla-caja { margin: 0 0 1.75rem; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.sd-tabla-caja > summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--color-secondary); list-style-position: inside; }
.sd-tabla-caja > summary i { color: var(--color-accent-dark); margin: 0 .35rem; }
.sd-tabla-caja[open] > summary { border-bottom: 1px solid var(--color-border); }
.sd-aclaracion, .sd-normativa { margin: 1rem 1.25rem; font-size: .92rem; line-height: 1.55; }
.sd-aclaracion { padding: .75rem 1rem; background: #fdf3e1; border-radius: 6px; }
.sd-normativa { color: var(--color-text-light); }
.sd-tabla { width: calc(100% - 2.5rem); margin: 0 1.25rem; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.sd-tabla th, .sd-tabla td { padding: .65rem .75rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.sd-tabla thead th { background: #2c3e50; color: #fff; font-weight: 600; }
.sd-tabla thead small { font-weight: 400; opacity: .85; }
.sd-tabla tbody th { width: 22%; color: var(--color-secondary); }
.sd-tabla .sd-destacada { background: #fbf7ee; }
.sd-tabla .sd-destacada td { font-weight: 600; }

/* Formulario */
.sd-form fieldset { border: 0; margin: 0; min-width: 0; }
.sd-legend { display: block; font-size: 1.15rem; font-weight: 700; color: var(--color-text); margin: 0 0 .75rem; padding: 0; }
.sd-legend label { font: inherit; color: inherit; margin: 0; }
.sd-ayuda { color: var(--color-text-light); margin: -.25rem 0 1rem; }
.sd-ayuda-linea { color: var(--color-text-light); font-weight: 400; }
.sd-form input[type="text"], .sd-form input[type="email"], .sd-form select, .sd-form textarea { width: 100%; box-sizing: border-box; }
.sd-form select, .sd-form textarea { padding: .875rem 1rem; border: 2px solid var(--color-border); border-radius: var(--radius-md, 8px); font-size: 1rem; font-family: inherit; color: var(--color-text); background: #fff; }
.sd-form select:focus, .sd-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26, 26, 26, .08); }
.sd-form textarea { resize: vertical; line-height: 1.5; }
.sd-form > .form-section { margin-bottom: 2rem; }
.sd-form :focus-visible { outline: 3px solid var(--color-accent-dark); outline-offset: 2px; }
.sd-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sd-disciplinas { display: flex; flex-wrap: wrap; gap: .75rem; }
.sd-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; min-height: 44px; box-sizing: border-box; border: 2px solid var(--color-border); border-radius: 999px; cursor: pointer; font-weight: 600; background: #fff; }
.sd-chip:has(input:checked) { border-color: var(--color-accent-dark); background: #fbf7ee; }
.sd-chip input, .sd-opcion input, .sd-rgpd input { width: 1.15rem; height: 1.15rem; accent-color: var(--color-accent-dark); flex: none; }

.sd-bloque { margin: 0 0 1.25rem !important; padding: 1rem 1.25rem 1.25rem !important; border: 1px solid var(--color-border) !important; border-left: 4px solid var(--color-accent) !important; border-radius: 8px; }
.sd-bloque > legend { font-weight: 700; font-size: 1.05rem; padding: 0 .4rem; }
.sd-pregunta { margin-bottom: 1rem; }
.sd-enunciado { font-weight: 600; margin: 0 0 .5rem; }
.sd-opciones { display: flex; flex-direction: column; gap: .5rem; }
.sd-opciones-fila { flex-direction: row; gap: 1.5rem; }
.sd-opcion { display: flex; align-items: center; gap: .55rem; min-height: 40px; cursor: pointer; font-weight: 400; }
.sd-nota { font-size: .92rem; color: var(--color-text-light); line-height: 1.55; }
.sd-rgpd { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.sd-rgpd input { margin-top: .2rem; }

/* Con JavaScript, solo se ven los bloques de las disciplinas marcadas */
.sd-js .sd-sin-js { display: none; }
.sd-js .sd-bloque[hidden], .sd-js .sd-cual[hidden] { display: none !important; }

/* Panel */
.sd-admin-contenedor { max-width: 1280px; }
.sd-admin-titulo { font-size: 1.6rem; margin: 1.5rem 0 .5rem; }
.sd-resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.sd-resumen-caja { border: 1px solid var(--color-border); border-top: 4px solid var(--color-accent); border-radius: 8px; padding: 1rem 1.25rem; background: #fff; }
.sd-resumen-caja h2 { font-size: 1.05rem; margin: 0; }
.sd-resumen-num { font-size: 2rem; font-weight: 700; margin: .25rem 0 .5rem; }
.sd-resumen-num small { font-size: .9rem; font-weight: 400; color: var(--color-text-light); }
.sd-resumen-caja ul { list-style: none; margin: 0; padding: 0; line-height: 1.8; }
.sd-filtros { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1rem; }
.sd-filtros label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
.sd-btn-pequeno { padding: .55rem 1.1rem !important; }
.sd-btn-secundario { padding: .55rem 1rem; border: 1px solid var(--color-border); border-radius: 6px; text-decoration: none; color: var(--color-secondary); background: #fff; }
.sd-tabla-admin td { vertical-align: top; }
.sd-gris { color: var(--color-text-muted); }
.sd-vacio { padding: 2rem; text-align: center; color: var(--color-text-light); }
.sd-admin button.btn-delete { border: 0; background: none; cursor: pointer; font: inherit; }
.sd-admin button.btn-delete:hover { background: #ffebee; }
.sd-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 700px) {
    .sd-tabla, .sd-tabla tbody, .sd-tabla tr, .sd-tabla th, .sd-tabla td { display: block; width: auto; }
    .sd-tabla { margin: 0 1rem; }
    .sd-tabla thead { display: none; }
    .sd-tabla tr { padding: .75rem 0; border-bottom: 2px solid var(--color-border); }
    .sd-tabla tbody th { width: auto; border: 0; padding: 0 0 .35rem; font-size: 1rem; }
    .sd-tabla td { border: 0; padding: .3rem 0; }
    .sd-tabla td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--color-accent-dark); }
    .sd-opciones-fila { gap: 1rem; }
}
