/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 13 2025 | 17:04:13 */
.form-nivel {
    width: 95%;
    max-width: 850px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    font-family: "Inter", sans-serif;
  }

  .form-nivel h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #222;
    font-weight: 700;
  }

  /* GRID DOS COLUMNAS */
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 2rem;
  }

  /* Campo que debe ocupar todo el ancho */
  .full-row {
    grid-column: 1 / -1;
  }

  label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
  }

  input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color .25s;
    box-sizing: border-box;
  }

  input:focus, select:focus, textarea:focus {
    border-color: #d70000;
    outline: none;
  }

  /* BOTONES */
  button {
    display: inline-block;
    background-color: #d70000;
    color: white;
    border: none;
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s;
  }
  button:hover { background-color: #a00000; }

  .btn-whatsapp {
    background-color: #25D366;
  }
  .btn-whatsapp:hover {
    background-color: #1aa851;
  }

  .btn-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 0.5rem;
  }

  /* Botón Identificar nivel */
  .nivel-label-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .4rem;
  }

  .btn-nivel {
    background-color: #fff !important;
    color: #42A5F5 !important;
    font-weight: 600;
    padding: 0.4rem .7rem;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #42A5F5;
  }

  /* RESPONSIVE → 1 columna */
  @media (max-width: 480px) {
    .form-grid {
      grid-template-columns: 1fr;
    }
  }

  /* --- MODAL --- */
  dialog {
    border: none;
    border-radius: 14px;
    max-width: 650px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 1.5rem 2rem;
    background: #fff;
  }

  dialog::backdrop { background: rgba(0, 0, 0, 0.45); }

  .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  .close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #666;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
  }
  th, td { border: 1px solid #eee; padding: 0.6rem; }
  th { background: #f9fafb; font-weight: 700; }
  tr:nth-child(even) { background: #fafafa; }