<turbo-stream action="update" target="remote_modal_sec"><template><turbo-frame id="remote_modal_sec">
  <div class="modal fade" id="standard-modal" tabindex="-1" role="dialog" data-controller="modal">
    <div class="modal-dialog modal-dialog-centered modal-lg"> 
      <div class="modal-content border-0 shadow-lg rounded-4 overflow-hidden">

        <div class="modal-header border-0 p-4 bg-dark text-white">
          <div class="d-flex align-items-center">
            <div class="bg-white bg-opacity-10 p-3 rounded-3 me-3 border border-white border-opacity-25">
              <i class='bx bx-spreadsheet fs-2 text-warning'></i>
            </div>
            <div>
              <h4 class="modal-title fw-bold mb-0 text-white">Reglamento del Curso</h4>
              <p class="mb-0 opacity-75 small">
                Gestión de la Empresa Agropecuaria • Ciclo 2026
              </p>
            </div>
          </div>
          <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
        </div>

        <div class="modal-body p-0 bg-white">
          <div class="bg-light border-bottom px-4 py-2 d-flex align-items-center gap-2">
            <i class='bx bx-check-shield text-success'></i>
            <span class="text-muted fw-medium" style="font-size: 0.75rem; letter-spacing: 0.5px;">
              ESTADO DEL ALUMNO: <strong>INSCRIPTO / ACTIVO</strong>
            </span>
          </div>

          <div class="p-4 p-md-5">
            <div class="ia-response-container">
                <div class="markdown-body text-dark" style="font-size: 0.95rem; line-height: 1.6;">
                  <p><strong>RÉGIMEN DE CURSADO Y EVALUACIÓN - CICLO 2026</strong></p>

<p>La cátedra utiliza el sistema de <strong>Índice de Rendimiento Académico (IRA)</strong> para determinar la condición final del alumno.</p>

<p><strong>1. CONDICIONES DE APROBACIÓN</strong><br>
  • <strong>PROMOCIÓN DIRECTA:</strong> Cumplir Mínimos + <strong>IRA ≥ 70.0</strong><br>
  • <strong>REGULARIDAD:</strong> Cumplir Mínimos + <strong>IRA ≥ 50.0</strong><br>
  • <strong>LIBRE:</strong> IRA &lt; 50.0 o incumplimiento de cualquier Mínimo.</p>

<p><strong>2. FÓRMULA DEL ÍNDICE DE RENDIMIENTO ACADÉMICO (IRA)</strong><br>
  <strong>IRA = (Exámenes * 0.85) + (Controles * 0) + (Asistencia * 0.15)</strong></p>

<p><strong>3. COMPOSICIÓN Y MÍNIMOS OBLIGATORIOS (FUSIBLES)</strong><br>
  A. <strong>EXÁMENES (85%):</strong> Mínimo <strong>50%</strong> en CADA parcial o su recuperatorio.<br>
     <em>(Nota: Se computa siempre la última nota obtenida).</em></p>

<p>B. <strong>CONTROLES DE LECTURA (0%):</strong> Mínimo <strong>0%</strong> de promedio general.</p>

<p>C. <strong>ASISTENCIA (15.0%):</strong> Mínimo <strong>50.0%</strong> de presencialidad.</p>

<p><strong>4. EJEMPLO DE CÁLCULO (Simulación)</strong><br>
  Si un alumno obtiene:</p>

<ul>
<li><strong>Exámenes:</strong> 65% (Supera el mínimo de 50%)</li>
<li><strong>Asistencia:</strong> 100% (Presencialidad total)</li>
</ul>

<p><strong>Cálculo:</strong> (65 * 0.85) +  (100 * 0.15)<br>
  <strong>Resultado:</strong> <strong>IRA = 70.25</strong><br>
  <strong>Condición:</strong> <strong>PROMOCIONADO</strong></p>

<p><strong>IMPORTANTE:</strong> El sistema de &quot;Mínimos&quot; actúa como <strong>fusible</strong>. Si un alumno tiene IRA 90 pero no alcanzó el 50% en uno de los parciales, su condición será <strong>LIBRE</strong>.</p>

                </div>
            </div>
          </div>
        </div>

        <div class="modal-footer border-0 p-4 bg-light d-flex justify-content-between align-items-center">
          <div class="d-none d-md-block">
            <span class="badge bg-white text-dark border shadow-xs rounded-pill px-3 py-2">
              <i class='bx bx-info-circle text-primary me-1'></i> Consulta con tu docente ante dudas
            </span>
          </div>
          <button type="button" class="btn btn-secondary rounded-pill px-5 fw-bold shadow-sm" data-bs-dismiss="modal">
            Entendido
          </button>
        </div>
      </div>
    </div>
  </div>

  <style>
    /* Estilo para que el markdown se vea impecable dentro del modal */
    .ia-response-container .markdown-body {
      color: #334155;
    }
    .ia-response-container .markdown-body h1,
    .ia-response-container .markdown-body h2,
    .ia-response-container .markdown-body h3 {
      color: #0f172a;
      margin-top: 1.5rem;
      border-bottom: 1px solid #f1f5f9;
      padding-bottom: 0.5rem;
    }
    .ia-response-container .markdown-body strong {
      color: #1e40af; /* Azul para resaltar los mínimos e IRT */
    }
    .ia-response-container .markdown-body ul {
      padding-left: 1.2rem;
    }
    .ia-response-container .markdown-body blockquote {
      border-left: 4px solid #e2e8f0;
      padding-left: 1rem;
      color: #64748b;
      font-style: italic;
    }
  </style>
</turbo-frame></template></turbo-stream>