.ac-container {
    padding: 30px;
    background: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    max-width: 1000px;
    margin: 20px auto;
}

.ac-container h1 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 10px;
}

.ac-container hr {
    border: 0;
    border-top: 1px solid #333;
    margin-bottom: 30px;
}

.ac-form-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.ac-form-group label {
    color: #333;
    color: var(--Negro-Text, #373737);
    font-family: Roboto;
    font-size: 16px !important;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 24px */
}

.ac-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ac-input-text {
    flex-grow: 1;
    padding: 6px 10px;
    border: 1px solid #333;
    background: #fff;
}

.ac-file-display {
    width: 350px;
    height: 30px;
    border: 1px solid #333;
    background: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    cursor: pointer;
}

.ac-btn-black {
    background: #000;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
}

.ac-actions {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    justify-content: center;
}

.ac-btn-main {
    padding: 8px 30px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.ac-btn-validar {
    background: #000;
    color: #fff;
}

.ac-btn-calcular {
    background: #757575;
    color: #fff;
}

.ac-btn-small {
    background: #757575;
    color: #fff;
    border: none;
    padding: 6px 15px;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
}

.ac-list-section h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
}

.ac-accordion {
    background: #e0e0e0;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ac-table-container {
    background: #fff;
    border: 1px solid #ccc;
    padding: 1px;
}

.ac-results-table {
    width: 100%;
    border-collapse: collapse;
}

.ac-results-table th, .ac-results-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 13px;
}

.ac-table-header-row {
    background: #fff;
}

.ac-blue-header {
    background: #1565c0;
    color: #fff;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    border-top: 2px solid #1565c0;
    border-bottom: 2px solid #1565c0;
}

.ac-sub-header th {
    background: #1976d2;
    color: #fff;
    font-weight: 500;
}

.ac-results-table td {
    padding: 5px 10px;
    height: 30px;
}

.ac-code-cell {
    background: #0d47a1;
    color: #fff;
    font-weight: bold;
    text-align: center;
    width: 80px;
}

hr.divider {
    border: none;
    border-top: 1px solid #D9D9D9;
    margin-bottom: 20px;
    margin-top: 20px;
}

h1.titulo-cabecera{
    color: var(--Color-Text-color-text, #373737);
    font-feature-settings: 'liga' off, 'clig' off;

    /* Gob/Desktop/Heading/Sans/Medium */
    font-family: Roboto;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 36px */
}





    /* css del modal */
    /* CONTENEDOR OSCURO */
    #ac-modal,
    #ac-modal-actividades {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100vw !important;
      height: 100vh !important;
      background: rgba(0,0,0,0.5) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      z-index: 99999 !important;
    }

    /* OCULTO */
    #ac-modal.hidden,
    #ac-modal-actividades.hidden {
      display: none !important;
    }

    /* CAJA DEL MODAL */
    .ac-modal-content {
      background: #fff !important;
      width: 650px !important;
      max-width: 90% !important;
      max-height: 80vh !important;
      display: flex !important;
      flex-direction: column !important;
      box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
      overflow: hidden !important;
    }

    #ac-modal-actividades .ac-modal-content {
      width: 680px !important;
      max-width: 92% !important;
      border-radius: 2px;
    }

    /* HEADER */
    .ac-modal-header {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      padding: 12px 16px !important;
      font-weight: bold !important;
      border-bottom: 1px solid #eee !important;
    }

    /* BODY */
    .ac-modal-body {
      padding: 25px 15px !important;
      color: #555 !important;
      overflow-y: auto !important;
    }

    #ac-modal-actividades .ac-modal-body {
      padding: 10px 15px !important;
    }

    /* ICONOS */
    .ac-success {
      color: #2e7d32 !important;
    }

    .ac-error {
      color: #c62828 !important;
    }

    #ac-modal-close {
      background: none;
      border: none;
      outline: none;
      cursor: pointer;
      font-size: 16px;
    }

    #ac-modal-act-close {
      background: none;
      border: none;
      outline: none;
      cursor: pointer;
      font-size: 14px;
      line-height: 1;
      color: #444;
    }

    #ac-modal-act-title {
      font-size: 19px;
      font-weight: 500;
      color: #373737;
    }

    .ac-detalle-list {
      margin-top: 10px;
      padding-left: 20px;
      max-height: 150px;
      overflow-y: auto;
    }

    .ac-detalle-list li {
      margin-bottom: 4px;
      margin-left: 20px;
    }

    .modal-footer {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      padding: 0.5rem;
      border-top: 1px solid #dee2e6;
      border-bottom-right-radius: calc(0.3rem - 1px);
      border-bottom-left-radius: calc(0.3rem - 1px);
      margin-top: 20px;
    }

/* Espaciado entre botones dentro del footer */
.modal-footer > :not(:last-child) {
  margin-right: .5rem;
}


    /* ── Links de Actividad ── */
    .ac-actividades-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      column-gap: 28px;
      row-gap: 14px;
      padding: 8px 4px;
    }

    .link-actividad {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      color: #0051A8;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.25;
      width: max-content;
    }

    .link-actividad:hover {
      color: #0066cc;
      text-decoration: underline;
    }

    .link-actividad svg {
      fill: currentColor;
      flex: 0 0 auto;
    }

    @media (max-width: 800px) {
      .ac-actividades-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      #ac-modal-act-title {
        font-size: 24px;
      }
    }


    .btn-primary, .btn-secondary, .btn-danger {
      height: 34px;
      padding: 0 18px;
      border-radius: 3px;
      border: 1px solid;
      cursor: pointer;
      font-size: 0.84rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 7px;
      transition: background .2s, border-color .2s;
    }
    .btn-danger {
      background: #fff;
      border-color: #dc3545;
      color: #dc3545;
    }
    .btn-danger:hover { background: #eaf1fb; }

    .btn-secondary {
      background: #e0e0e0;
      border-color: #bbb;
      color: #888;
    }
    .btn-secondary:disabled {
      cursor: not-allowed;
      opacity: 0.6;
    }