:root {
    --primary: #1a365d;
    --secondary: #3182ce;
    --accent: #dd6b20;
    --success: #38a169;
    --danger: #e53e3e;
    --vitalicio: #805ad5;
    --fallecido: #2d3748;
    --bg: #f7fafc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 0;
    color: #2d3748;
}

header {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a365d 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    object-fit: contain;
}

.logo-header h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
}

.logo-header p {
    margin: 3px 0 0 0;
    font-size: 14px;
    color: #cbd5e0;
    font-weight: bold;
}

nav {
    background: #2d3748;
    padding: 10px 0;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #4a5568;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.tab-btn:hover { background: #718096; }
.tab-btn.active { background: var(--secondary); }

.container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.section-content { display: none; }
.section-content.active { display: block; }

h2, h3 { 
    color: var(--primary); 
    border-bottom: 2px solid #e2e8f0; 
    padding-bottom: 8px; 
    margin-top: 0;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

.hero-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

.hero-title {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    color: #4a5568;
    max-width: 750px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 15px;
}

.card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--secondary);
    border-radius: 8px;
    padding: 20px;
}

.card h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 16px;
}

.card p {
    margin: 5px 0;
    font-size: 14px;
}

.publicacion-card {
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.publicacion-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #edf2f7;
}

/* Cursos: mostrar completa la imagen/logo sin recortarla */
#grid-cursos .publicacion-card img {
    object-fit: contain;
    padding: 10px;
    background: #ffffff;
}

.publicacion-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.publicacion-body h3 {
    border: none;
    margin-bottom: 10px;
    font-size: 20px;
}

.publicacion-body p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

.publicacion-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.subtab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.subtab-btn {
    background: #edf2f7;
    color: var(--primary);
    border: 1px solid #cbd5e0;
}

.subtab-btn.active {
    background: var(--primary);
    color: white;
}

.subseccion { display: none; }
.subseccion.active { display: block; }

.examen-config {
    background: #edf2f7;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.pregunta-examen {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--secondary);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.pregunta-examen .preg-num {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
}

.pregunta-examen .preg-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
}

.preg-cat.tecnica { background: var(--accent); }
.preg-cat.reglamentacion { background: var(--success); }

.pregunta-examen p.preg-texto {
    font-weight: bold;
    margin: 10px 0;
}

.opcion-examen {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
}

.opcion-examen:hover { background: #edf2f7; }
.opcion-examen input { margin-top: 3px; }

.pregunta-examen.correcta { border-left-color: var(--success); background: #f0fff4; }
.pregunta-examen.incorrecta { border-left-color: var(--danger); background: #fff5f5; }

.opcion-examen.marcada-correcta { background: #c6f6d5; font-weight: bold; }
.opcion-examen.marcada-incorrecta { background: #fed7d7; text-decoration: line-through; }

.resultado-examen {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group { display: flex; flex-direction: column; }
label { font-weight: 600; font-size: 13px; margin-bottom: 5px; }
input, select, textarea { padding: 10px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 14px; }

button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

button:hover { background-color: #2b6cb0; }
.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { background-color: #c53030; }
.btn-success { background-color: var(--success); color: white; }
.btn-success:hover { background-color: #2f855a; }
.btn-edit { background-color: var(--accent); color: white; padding: 5px 10px; font-size: 12px; border-radius: 4px; border: none; cursor: pointer; }
.btn-edit:hover { background-color: #c05621; }
.btn-dark { background-color: #4a5568; color: white; padding: 5px 10px; font-size: 12px; border-radius: 4px; border: none; cursor: pointer; }
.btn-dark:hover { background-color: #2d3748; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}

th, td { border: 1px solid #e2e8f0; padding: 10px; text-align: left; }
th { background-color: #edf2f7; color: var(--primary); border-bottom: 2px solid #cbd5e0; }

/* Credencial */
.carnet-container { display: flex; flex-direction: column; align-items: center; margin-top: 20px; }
.carnet {
    width: 440px; height: 285px;
    background: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
    color: white; border-radius: 15px; padding: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex; flex-direction: column; justify-content: space-between; box-sizing: border-box;
}
.carnet-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 8px; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-area img { width: 42px; height: 42px; object-fit: contain; background: white; border-radius: 50%; padding: 2px; }
.carnet-header h3 { margin: 0; font-size: 12px; border: none; color: white; letter-spacing: 0.5px; }
.socio-numero { background: #e53e3e; padding: 4px 8px; border-radius: 4px; font-weight: bold; font-size: 12px; }
.carnet-body { display: grid; grid-template-columns: 2.2fr 1fr; gap: 10px; font-size: 12px; align-items: center; }
.carnet-body p { margin: 2px 0; }
.qr-box { display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); padding: 6px; border-radius: 8px; }

#qrcode {
    background: white;
    padding: 4px;
    border-radius: 6px;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#qrcode img, #qrcode canvas {
    width: 100% !important;
    height: 100% !important;
}

.carnet-footer { font-size: 10px; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 6px; display: flex; justify-content: center; opacity: 0.9; font-weight: 600; text-align: center; }
.badge { padding: 4px 8px; border-radius: 4px; font-weight: bold; font-size: 11px; display: inline-block; }
.badge.pagado { background: #c6f6d5; color: #22543d; }
.badge.deuda { background: #fed7d7; color: #742a2a; }
.badge.vitalicio { background: var(--vitalicio); color: white; }
.badge.fallecido { background: var(--fallecido); color: white; }
.badge.proximo-vencer { background: #feebc8; color: #c05621; }

/* Banner Alertas Portal de Socios */
.alerta-licencia {
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.alerta-licencia.vencida {
    background-color: #fed7d7;
    color: #9b2c2c;
    border: 1px solid #feb2b2;
}
.alerta-licencia.proxima {
    background-color: #feebc8;
    color: #9c4221;
    border: 1px solid #fbd38d;
}

.btn-ws { display: inline-block; background-color: #25d366; color: white; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 12px; text-align: center; }
.btn-ws:hover { background-color: #128c7e; }
.btn-email { display: inline-block; background-color: #3182ce; color: white; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-weight: bold; font-size: 12px; text-align: center; }
.btn-email:hover { background-color: #2b6cb0; }

.pago-box {
    width: 100%; max-width: 440px; margin-top: 20px;
    background: #fffaf0; border: 1px solid #feebc8; border-left: 5px solid #dd6b20;
    border-radius: 8px; padding: 15px; box-sizing: border-box;
}
.monto-destacado { background: #e53e3e; color: white; padding: 10px; border-radius: 6px; font-size: 15px; font-weight: bold; text-align: center; margin: 10px 0; }
.tarifas-box { background: #edf2f7; border: 1px solid #cbd5e0; border-radius: 8px; padding: 15px; margin-bottom: 25px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.stat-card h4 { margin: 0 0 5px 0; color: #4a5568; font-size: 14px; }
.stat-card .stat-val { font-size: 22px; font-weight: bold; color: var(--primary); }

.filter-container { display: flex; gap: 15px; align-items: center; background: #f7fafc; padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; margin-top: 15px; flex-wrap: wrap; }

.info-institucional-bloque {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

@media print {
    body * { visibility: hidden; }
    .carnet-container, .carnet-container * { visibility: visible; }
    .carnet-container { position: absolute; left: 0; top: 0; margin: 0; }
    .btn-print, .pago-box, .alerta-licencia, #btnCerrarSesionSocio { display: none !important; }
}
/* Formación */
.formacion-grid {
    margin-top: 25px;
}
.formacion-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 250px;
}
.formacion-card h3 {
    border: 0;
    margin: 8px 0 10px;
}
.formacion-card p {
    flex-grow: 1;
    line-height: 1.5;
}
.formacion-icono {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 8px;
}


/* Pie institucional común */
.site-footer {
    margin-top: 35px;
    background: #1a365d;
    color: white;
    text-align: center;
    padding: 24px 20px;
    border-top: 4px solid #c53030;
    font-size: 14px;
}
.site-footer p { margin: 7px 0; }

/* ===== Simulador: selector categoría / modo ===== */
.examen-selector-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.selector-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.selector-item label { margin: 0; }
.selector-item select { padding: 7px 9px; }
.btn-examen-reiniciar {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
}
.btn-examen-reiniciar:hover { filter: brightness(0.9); }
.nota-banco-examen {
    font-size: 12px;
    color: #4a5568;
    margin: -5px 0 18px;
    text-align: center;
}
.btn-finalizar-examen {
    display: block;
    margin: 24px auto;
    padding: 12px 26px;
    font-size: 16px;
}
.resultado-aprobado { background: #c6f6d5 !important; color: #22543d !important; }
.resultado-reprobado { background: #fed7d7 !important; color: #742a2a !important; }
@media (max-width: 700px) {
    .examen-selector-principal { align-items: stretch; }
    .selector-item { width: 100%; justify-content: space-between; }
    .selector-item select { flex: 1; max-width: 70%; }
    .btn-examen-reiniciar { width: 100%; }
}


/* Panel de Administración modular */
.admin-modulo { display: none; }
.admin-modulo.active { display: block; }
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin: 18px 0 10px;
}
.admin-menu-card {
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    padding: 24px 18px;
    min-height: 155px;
    cursor: pointer;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.admin-menu-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    box-shadow: 0 7px 18px rgba(0,0,0,0.10);
}
.admin-menu-card strong { font-size: 18px; }
.admin-menu-card small { color: #718096; font-size: 13px; text-align: center; line-height: 1.35; }
.admin-menu-icon { font-size: 34px; line-height: 1; }
.admin-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}
.admin-module-header h4 { margin: 0; font-size: 21px; color: var(--primary); }
.admin-bottom-back { margin-top: 28px; text-align: center; }

/* Carnet de socio responsive para celulares */
@media (max-width: 520px) {
  .carnet-container { width:100%; overflow:visible; }
  .carnet {
    width:100%;
    max-width:440px;
    height:auto;
    min-height:285px;
    padding:14px;
  }
  .carnet-header { gap:8px; }
  .logo-area { min-width:0; gap:7px; }
  .logo-area img { width:36px; height:36px; flex:0 0 36px; }
  .carnet-header h3 { font-size:10px; line-height:1.15; }
  .socio-numero { font-size:10px; padding:4px 6px; white-space:nowrap; }
  .carnet-body {
    grid-template-columns:minmax(0,1fr) 78px;
    gap:7px;
    font-size:10px;
  }
  .carnet-body p { overflow-wrap:anywhere; }
  .qr-box { padding:4px; }
  #qrcode { width:58px; height:58px; }
}

/* ABM Administradores */
.admin-permisos-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:10px;
  margin-top:8px;
}
.admin-permisos-grid label {
  background:#fff;
  border:1px solid #d7dee8;
  border-radius:7px;
  padding:10px;
  cursor:pointer;
}


/* v22n - Situación e historial del socio */
.socio-estado-resumen { max-width: 520px; }
.socio-estado-linea { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-height:38px; }
.socio-estado-desde { font-size:13px; color:#4a5568; }
.socio-estado-botones { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.socio-estado-panel { margin-top:10px; padding:12px; background:#fff; border:1px solid #cbd5e0; border-radius:8px; }
.socio-estado-cambio-grid { display:grid; grid-template-columns:minmax(160px,1fr) 150px; gap:8px; }
.socio-estado-panel textarea { width:100%; box-sizing:border-box; min-height:54px; margin:8px 0; padding:8px; border:1px solid #cbd5e0; border-radius:6px; }
.socio-historial-titulo { font-size:13px; font-weight:700; color:#4a5568; margin-bottom:9px; }
.socio-timeline { border-left:2px solid #cbd5e0; margin-left:7px; padding-left:15px; }
.socio-timeline-item { position:relative; padding:0 0 12px; }
.socio-timeline-item:last-child { padding-bottom:0; }
.socio-timeline-item:before { content:""; position:absolute; width:9px; height:9px; border-radius:50%; background:#718096; left:-20px; top:4px; }
.socio-timeline-item strong { font-size:13px; }
.socio-timeline-item small { display:block; color:#718096; margin-top:2px; }
@media (max-width:600px) { .socio-estado-cambio-grid { grid-template-columns:1fr; } }

/* v23b - Portal Socios: estado de cuotas basado en Cuotas/Caja */
.cuotas-situacion-resumen {
    font-size: 13px;
    line-height: 1.45;
    margin: 4px 0 12px;
}
.cuotas-anio-titulo {
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    margin: 8px 0 6px;
}
.cuotas-grilla-anual {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3px;
}
.cuotas-mes {
    min-width: 0;
    padding: 6px 2px;
    border-radius: 5px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    background: #f7fafc;
    color: #4a5568;
}
.cuotas-mes.pagado {
    background: #c6f6d5;
    color: #22543d;
    border-color: #9ae6b4;
}
.cuotas-mes.pendiente {
    background: #fed7d7;
    color: #742a2a;
    border-color: #feb2b2;
}
.cuotas-mes.futuro {
    background: #edf2f7;
    color: #718096;
}
.cuotas-leyenda {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 6px 0 12px;
    font-size: 10px;
    color: #718096;
}
.cuotas-pendientes-detalle {
    font-size: 12px;
    background: #fffaf0;
    border-left: 3px solid #ed8936;
    padding: 8px 10px;
    margin: 10px 0;
    border-radius: 4px;
}
.cuotas-sin-base {
    background: #fffaf0;
    border: 1px solid #fbd38d;
    color: #7b341e;
    padding: 10px;
    border-radius: 6px;
}
@media (max-width: 760px) {
    .cuotas-grilla-anual {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* v23u corrección 02: controles de cambio de estado sin desbordamiento */
.socio-estado-resumen, .socio-estado-panel { min-width:0; box-sizing:border-box; }
.socio-estado-cambio-grid { grid-template-columns:minmax(0,1fr); min-width:0; }
.socio-estado-cambio-grid select, .socio-estado-cambio-grid input[type="date"] { display:block; width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
.socio-estado-panel { width:100%; }

/* v23u corrección 04: acciones administrativas en una sola fila adaptable */
.socio-estado-resumen {max-width:none;}
.socio-acciones-unificadas {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;}
.socio-acciones-unificadas .socio-estado-botones {display:flex;gap:8px;flex-wrap:wrap;margin:0;}
.socio-acciones-unificadas button {white-space:nowrap;}

/* v23u corrección 05: barra de acciones compacta, alineada a la izquierda. */
.socio-acciones-unificadas {display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;max-width:100%;overflow-x:auto;padding-bottom:3px;}
.socio-acciones-unificadas .socio-estado-botones {display:flex;gap:6px;flex-wrap:nowrap;margin:0;}
.socio-acciones-unificadas button {font-size:12px!important;padding:7px 9px!important;white-space:nowrap!important;flex-shrink:0;}
.socio-acciones-unificadas #adm-intercambio-control {flex-shrink:0;}
.socio-historial-tabs {display:flex;gap:6px;margin:0 0 12px;flex-wrap:wrap;}
.socio-historial-tabs [aria-selected="true"] {background:#286c4a!important;}

/* v23u corrección 07: no usar display:contents, que anulaba display:none de los grupos
   y permitía que las acciones aparecieran en escalera o simultáneamente. */
.socio-acciones-unificadas {
  display:flex; flex-wrap:nowrap; justify-content:flex-start; align-items:center;
  width:100%; min-width:0; max-width:100%; box-sizing:border-box;
  gap:7px; overflow-x:auto; overflow-y:hidden; padding:4px 0;
}
.socio-acciones-unificadas .socio-estado-botones {
  display:flex !important; flex-wrap:nowrap; align-items:center; gap:7px; margin:0;
  width:auto; flex:0 0 auto;
}
.socio-acciones-unificadas .socio-estado-botones[style*="display: none"],
.socio-acciones-unificadas[style*="display: none"] { display:none !important; }
.socio-acciones-unificadas button {white-space:nowrap;flex:0 0 auto;}
/* Los botones individuales ocultos mediante JS respetan su display:none. */
.socio-acciones-unificadas button[style*="display: none"] {display:none !important;}
.socio-estado-panel, .socio-estado-panel * {min-width:0;box-sizing:border-box;}
.socio-estado-panel {overflow-wrap:anywhere;word-break:normal;max-width:100%;}
.socio-estado-panel small, .socio-estado-panel p, .socio-timeline-item {
  overflow-wrap:anywhere;word-break:normal;max-width:100%;
}

/* v23u corrección 08: .form-group define flex-direction:column.
   La barra también tiene esa clase: forzar dirección horizontal explícitamente. */
#adm-acciones-unificadas.socio-acciones-unificadas {
  display:flex;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  align-items:center !important;
  gap:7px;
  grid-column:1 / -1;
  width:100%;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
  overflow-x:auto;
  overflow-y:hidden;
}
#adm-acciones-unificadas.socio-acciones-unificadas[style*="display: none"] {display:none !important;}
#adm-acciones-unificadas > .socio-estado-botones,
#adm-acciones-unificadas > #adm-intercambio-control {
  flex:0 0 auto;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center;
}
#adm-acciones-unificadas > .socio-estado-botones[style*="display: none"],
#adm-acciones-unificadas > #adm-intercambio-control[style*="display: none"] {display:none !important;}
