/* ────────────────────────────────────────────────────
   SECCIÓN CONTENEDORA MANUAL IA
──────────────────────────────────────────────────── */
#manual-section {
  width: 100%;
  margin-bottom: 2rem;
  padding: 0;
  font-family: 'Nunito Sans', sans-serif;
}

/* CABECERA COLAPSABLE */
.manual-intro {
  margin-bottom: 12px !important;
}

.manual-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* BOTÓN TOGGLE */
#toggle-manual {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #00BCD4;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: background 0.15s;
}

#toggle-manual:hover { background: #0097A7; }

#toggle-manual .arrow {
  display: inline-block;
  transition: transform 0.25s;
  font-style: normal;
}

#toggle-manual.open .arrow { transform: rotate(180deg); }

/* CONTENIDO DESPLEGABLE */
#manual-content {
  display: none;
  margin-top: 4px;
  animation: fadeIn 0.2s ease;
}

#manual-content.visible { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CARDS */
#manual-section .card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* SECTION LABEL */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-label .tri {
  display: inline-block;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid #00BCD4;
  flex-shrink: 0;
}

.section-label span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #414042;
}

/* TIPOGRAFÍA */
#manual-section .card h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 19px;
  color: #414042;
  margin-bottom: 10px;
}

#manual-section .card h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #414042;
  margin-bottom: 7px;
}

#manual-section .card p {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
  margin-bottom: 10px;
}

#manual-section .card p:last-child { margin-bottom: 0; }

/* STEPS */
.steps { counter-reset: step-counter; list-style: none; padding: 0; }

.steps li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid #F0F0F0;
}

.steps li:last-child { border-bottom: none; padding-bottom: 0; }

.steps li::before {
  content: counter(step-counter);
  background: #00BCD4;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 14px;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.steps li .step-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #414042;
  margin-bottom: 3px;
}

.steps li .step-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* PROMPT BOX */
.prompt-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00BCD4;
  margin-bottom: 5px;
}

.prompt-box {
  background: #F8FDFE;
  border: 1.5px solid #B2EBF2;
  border-radius: 10px;
  padding: 12px 15px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  margin: 10px 0;
  white-space: pre-wrap;
}

/* HIGHLIGHT BOX */
.highlight-box {
  border-left: 4px solid #00BCD4;
  background: #F0FAFB;
  border-radius: 0 10px 10px 0;
  padding: 13px 16px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.65;
  color: #444;
}

.highlight-box.orange { border-left-color: #F7941D; background: #FFF8F0; }
.highlight-box.green  { border-left-color: #8DC63F; background: #F5FBF0; }

/* TABLA */
.norm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}

.norm-table th {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #414042;
  background: #F0F0F0;
  padding: 9px 12px;
  text-align: left;
}

.norm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: top;
  line-height: 1.55;
  color: #555;
}

.norm-table tr:last-child td { border-bottom: none; }

.norm-table td:first-child {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: #414042;
}

/* CHECKLIST */
.checklist { list-style: none; padding: 0; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #F5F5F5;
  font-size: 13px;
  line-height: 1.55;
  color: #555;
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: "✓";
  color: #8DC63F;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}

.checklist li.no::before { content: "✗"; color: #E91E8C; }

/* TOC */
.toc { list-style: none; padding: 0; }

.toc li {
  padding: 6px 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 13px;
}

.toc li:last-child { border-bottom: none; }

.toc a {
  color: #00BCD4;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}

.toc a:hover { text-decoration: underline; }

.toc .num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: #ccc;
  margin-right: 7px;
  font-size: 11px;
}

/* ALERTA */
#manual-section .alert {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: #FEF0F8;
  border: 1.5px solid #F8BBD9;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 12px 0;
}

#manual-section .alert .alert-icon { font-size: 20px; flex-shrink: 0; }

#manual-section .alert .alert-text { font-size: 13px; color: #444; line-height: 1.6; }
#manual-section .alert .alert-text strong { color: #E91E8C; font-family: 'Nunito', sans-serif; font-weight: 800; }

/* DOS COLUMNAS */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

/* DOCUMENTOS DE REFERENCIA */
.ia-docs-section {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.ia-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.ia-doc-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.ia-doc-card:hover {
  border-color: #00BCD4;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.15);
  transform: translateY(-2px);
}

.ia-doc-card .doc-icon {
  font-size: 28px;
  color: #e53935;
  flex-shrink: 0;
  margin-top: 2px;
}

.ia-doc-card .doc-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.ia-doc-card .doc-info h5 {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #414042;
  margin: 0;
  line-height: 1.4;
  transition: color 0.2s;
}

.ia-doc-card:hover .doc-info h5 {
  color: #00BCD4;
}

.ia-doc-card .doc-info .doc-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #e53935;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

@media (max-width: 520px) {
  .two-col { grid-template-columns: 1fr; }
  .manual-intro-top { flex-direction: column; }
  #toggle-manual { width: 100%; justify-content: center; }
}
