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

        <div class="modal-header border-0 p-4 text-white" style="background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);">
          <div class="d-flex align-items-center w-100">
            <div class="bg-white bg-opacity-20 p-3 rounded-circle me-3 shadow-sm">
              <i class='bx bx-paperclip fs-2 text-warning'></i>
            </div>
            <div class="flex-grow-1">
              <h4 class="modal-title fw-bold mb-0 text-white">Materiales Extras</h4>
              <p class="small mb-0 text-white-50">
                2 archivos adjuntos
              </p>
            </div>
            <button type="button" class="btn-close btn-close-white ms-auto" data-bs-dismiss="modal" aria-label="Close"></button>
          </div>
        </div>

        <div class="modal-body p-3 p-md-4 bg-light bg-opacity-50">
            <div class="row g-3">
                <div class="col-12">
                  <div class="card border-0 shadow-sm rounded-4 hover-translate-y transition-all">
                    <div class="card-body p-3">
                      <div class="d-flex align-items-center w-100">

                        <div class="flex-shrink-0 bg-white shadow-sm p-2 rounded-4 me-3 d-flex align-items-center justify-content-center"
                             style="width: 60px; height: 60px; border: 1px solid #f0f0f0;">
                            <i class='bx bxs-file-pdf fs-1 text-danger'></i>
                        </div>

                        <div class="flex-grow-1 min-w-0">
                          <h6 class="text-dark fw-bold mb-1 lh-base text-wrap" style="word-break: break-word;">
                            Ejercitación Números Índices_2026.pdf
                          </h6>
                          <div class="d-flex align-items-center">
                            <span class="badge bg-warning bg-opacity-10 text-warning-emphasis border border-warning border-opacity-25 rounded-pill px-2 py-1" style="font-size: 0.65rem; font-weight: 700; text-transform: uppercase;">
                              ADJUNTO • 562 KB
                            </span>
                          </div>
                        </div>

                        <div class="flex-shrink-0 ms-3 d-flex gap-2">

                          <a class="btn btn-primary rounded-circle d-flex align-items-center justify-content-center shadow-sm" style="width: 42px; height: 42px;" title="Descargar" href="/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6NTgxLCJwdXIiOiJibG9iX2lkIn19--0e758aa7984e0a74727f054cc538b8a46a73a99c/Ejercitaci%C3%B3n%20N%C3%BAmeros%20%C3%8Dndices_2026.pdf?disposition=attachment">
                            <i class='bx bx-download fs-4'></i>
</a>                        </div>

                      </div>
                    </div>
                  </div>
                </div>
                <div class="col-12">
                  <div class="card border-0 shadow-sm rounded-4 hover-translate-y transition-all">
                    <div class="card-body p-3">
                      <div class="d-flex align-items-center w-100">

                        <div class="flex-shrink-0 bg-white shadow-sm p-2 rounded-4 me-3 d-flex align-items-center justify-content-center"
                             style="width: 60px; height: 60px; border: 1px solid #f0f0f0;">
                            <i class='bx bxs-file-pdf fs-1 text-danger'></i>
                        </div>

                        <div class="flex-grow-1 min-w-0">
                          <h6 class="text-dark fw-bold mb-1 lh-base text-wrap" style="word-break: break-word;">
                            Copia de V_NÚMEROS INDICES 2026-Veterinaria.pdf
                          </h6>
                          <div class="d-flex align-items-center">
                            <span class="badge bg-warning bg-opacity-10 text-warning-emphasis border border-warning border-opacity-25 rounded-pill px-2 py-1" style="font-size: 0.65rem; font-weight: 700; text-transform: uppercase;">
                              ADJUNTO • 19,1 MB
                            </span>
                          </div>
                        </div>

                        <div class="flex-shrink-0 ms-3 d-flex gap-2">

                          <a class="btn btn-primary rounded-circle d-flex align-items-center justify-content-center shadow-sm" style="width: 42px; height: 42px;" title="Descargar" href="/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6NTgyLCJwdXIiOiJibG9iX2lkIn19--8375826bc1975bdc04540e42e3cd53e9ce1c602c/Copia%20de%20V_N%C3%9AMEROS%20INDICES%202026-Veterinaria.pdf?disposition=attachment">
                            <i class='bx bx-download fs-4'></i>
</a>                        </div>

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

        <div class="modal-footer border-0 p-3 bg-white text-center d-block">
          <button type="button" class="btn btn-light rounded-pill px-5 fw-bold border" data-bs-dismiss="modal">Cerrar</button>
        </div>
      </div>
    </div>
  </div>

  <style>
    #remote_modal_sec { display: block; width: 100%; }
    .text-wrap { white-space: normal !important; overflow: visible !important; }
    .hover-translate-y:hover { transform: translateY(-3px); }
    .transition-all { transition: all 0.2s ease-in-out; }
  </style>
</turbo-frame></template></turbo-stream>