/* ==========================================================================
   HOJA DE ESTILOS DE PLAN ANALÍTICO & INTEGRACIÓN GEMINI IA (NEMPLANNER)
   ========================================================================== */

/* Contenedor Principal del Módulo Plan Analítico */
.plan-analitico-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-surface, #F8FAFC);
  min-height: 100%;
}

/* Banner de Encabezado Principal (Diseño Claro y Luminoso) */
.pa-header-banner {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #E0E7FF 100%);
  color: #0F172A;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  border: 1.5px solid #BAE6FD;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.pa-header-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.pa-title-group h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.pa-title-group h1 i, .pa-title-group h1 svg {
  color: #0284C7;
}

.pa-subtitle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: #0369A1;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.6rem;
  border: 1.5px solid #BAE6FD;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pa-action-btn {
  background: var(--bg-card, #FFFFFF);
  color: var(--text-main, #0F172A);
  border: 1.5px solid var(--border, #CBD5E1);
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 38px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pa-action-btn:hover {
  background: var(--accent-soft, #F1F5F9);
  color: var(--accent, #7C3AED);
  border-color: var(--border, #CBD5E1);
}

.pa-action-btn.active {
  background: var(--accent, #7C3AED);
  color: #FFFFFF;
  border-color: var(--accent, #7C3AED);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pa-action-btn.locked {
  opacity: 0.65;
  background: var(--accent-soft, #F1F5F9);
  color: var(--text-muted, #64748B);
  border-color: var(--border, #CBD5E1);
  cursor: not-allowed;
}

.pa-action-btn.btn-ai-sparkle {
  background: var(--accent, #7C3AED);
  color: #FFFFFF;
  border-color: var(--accent, #7C3AED);
}

.pa-action-btn.btn-ai-sparkle:hover {
  filter: brightness(1.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* Botón de Generación Automática con Gemini IA */
.btn-gemini-auto {
  background: linear-gradient(135deg, #7C3AED 0%, #D946EF 100%);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.4rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-gemini-auto:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
  filter: brightness(1.05);
}

.btn-gemini-auto:active {
  transform: translateY(0);
}

.btn-pa-secondary {
  background: #FFFFFF;
  color: #334155;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-pa-secondary:hover {
  background: #F8FAFC;
  border-color: #0284C7;
  color: #0284C7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Barra del Asistente de 8 Pasos (8-Step Stepper & 3 Planes) */
.pa-planes-stepper-bar {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pa-planes-group-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.plane-tab-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.plane-tab-card.active {
  border-color: #0284C7;
  background: #F0F9FF;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.plane-tab-card.plane-1-tab.active { border-color: #D97706; background: #FFFBEB; }
.plane-tab-card.plane-2-tab.active { border-color: #2563EB; background: #EFF6FF; }
.plane-tab-card.plane-3-tab.active { border-color: #059669; background: #ECFDF5; }

.plane-tab-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plane-tab-sub {
  font-size: 0.8rem;
  color: #64748B;
}

/* Pasos Secuenciales (1 al 8) dentro del Plano */
.pa-steps-horizontal-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.step-bubble-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

.step-bubble-btn:hover {
  border-color: #0284C7;
  color: #0284C7;
}

.step-bubble-btn.active {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.step-bubble-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #0F172A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.step-bubble-btn.active .step-bubble-num {
  background: #FFFFFF;
  color: #0369A1;
}

/* Tarjeta Principal de Contenido del Paso */
.pa-step-content-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Barra de Navegación entre Pasos (Anterior / Siguiente) */
.pa-step-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1.5px solid #E2E8F0;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
}

.pa-step-nav-center {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-step-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-step-prev {
  background: #F8FAFC;
  color: #334155;
  border: 1.5px solid #CBD5E1;
}

.btn-step-prev:hover:not(:disabled) {
  background: #E2E8F0;
  color: #0F172A;
  border-color: #94A3B8;
}

.btn-step-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.btn-approve-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25);
}

.btn-approve-step:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-approve-step.approved {
  background: #059669;
  box-shadow: none;
}

.btn-step-next {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
}

.btn-step-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.btn-step-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #CBD5E1 !important;
  color: #64748B !important;
  box-shadow: none !important;
}

.btn-step-next.is-last-step {
  background: linear-gradient(135deg, #10B981 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-nav-indicator {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0369A1;
  background: #F0F9FF;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #BAE6FD;
  white-space: nowrap;
  flex-shrink: 0;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px dashed #E2E8F0;
  padding-bottom: 1rem;
}

.step-card-title-wrap h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-card-desc {
  font-size: 0.9rem;
  color: #64748B;
  margin-top: 0.25rem;
}

/* Tablas y Matrices Estilizadas */
.pa-matrix-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #CBD5E1;
  box-sizing: border-box;
}

.pa-matrix-table th {
  background: #F1F5F9;
  color: #1E293B;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1.5px solid #CBD5E1;
  border-right: 1px solid #E2E8F0;
  box-sizing: border-box;
  vertical-align: middle;
}

.pa-matrix-table th:last-child {
  border-right: none;
}

.pa-matrix-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #E2E8F0;
  border-right: 1px solid #F1F5F9;
  font-size: 0.76rem;
  color: #334155;
  background: #FFFFFF;
  vertical-align: top;
  box-sizing: border-box;
}

.pa-matrix-table td:last-child {
  border-right: none;
}

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

.pa-input-cell {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 0.75rem;
  line-height: 1.35;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #FFFFFF;
  color: #1E293B;
  resize: vertical;
}

select.pa-input-cell {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.75rem;
  padding: 3px 1.3rem 3px 6px;
  background-color: #FFFFFF;
  cursor: pointer;
  font-size: 0.75rem;
  height: 28px;
}

.pa-input-cell:focus {
  outline: none;
  border-color: #0284C7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* Badges de Estado y Prioridad */
.badge-priority-high {
  background: #FEE2E2;
  color: #991B1B;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge-priority-medium {
  background: #FEF3C7;
  color: #92400E;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Tarjetas Grid de Prioridades */
.priorities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.priority-card {
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.1rem;
  background: #FAFAFA;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.priority-card:hover {
  border-color: #0284C7;
  background: #FFFFFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
}

.priority-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0F172A;
}

/* Sección de Auditoría Dual y Coherencia */
.pa-audit-box {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.audit-score-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audit-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #059669;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.3);
}

.audit-info h4 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #065F46;
  font-size: 1.05rem;
}

.audit-info p {
  margin: 0.2rem 0 0 0;
  font-size: 0.85rem;
  color: #047857;
}

/* Modales para Gemini API Key y Gestión */
.gemini-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gemini-modal-window {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.gemini-modal-header {
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  color: #FFFFFF;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gemini-modal-header h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gemini-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.gemini-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gemini-input-group label {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1E293B;
}

.gemini-input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
}

.gemini-input-field:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.gemini-modal-footer {
  padding: 1rem 1.5rem;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Rúbrica Formativa de 4 Niveles */
.rubric-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #CBD5E1;
}

.rubric-table th {
  padding: 0.85rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #FFFFFF;
  text-align: center;
}

.rubric-table th.level-sobresaliente { background: #059669; }
.rubric-table th.level-logrado { background: #0284C7; }
.rubric-table th.level-proceso { background: #D97706; }
.rubric-table th.level-apoyo { background: #DC2626; }

.rubric-table td {
  padding: 1rem;
  font-size: 0.88rem;
  color: #1E293B;
  background: #FFFFFF;
  vertical-align: top;
  border-right: 1px solid #E2E8F0;
}

.rubric-table td:last-child {
  border-right: none;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
  .pa-planes-group-tabs {
    grid-template-columns: 1fr;
  }
  .pa-header-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .priorities-grid {
    grid-template-columns: 1fr;
  }
}

/* Documento Oficial Facsímil (Formato Word/PDF Oficial SEP Fase 3) */
.official-sep-doc-paper {
  background: #FFFFFF;
  max-width: 1050px;
  margin: 0 auto;
  padding: 40px 45px;
  border-radius: 14px;
  border: 2px solid #0F172A;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  color: #0F172A;
}

.official-sep-doc-paper textarea.pa-input-cell {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  width: 100%;
  resize: vertical;
}

.official-sep-doc-paper textarea.pa-input-cell:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

.official-sep-doc-paper input.pa-input-cell {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 0.88rem;
  width: 100%;
}

.official-sep-doc-paper input.pa-input-cell:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  outline: none;
}

@media print {
  .official-sep-doc-paper {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .official-sep-doc-paper textarea.pa-input-cell,
  .official-sep-doc-paper input.pa-input-cell {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}

/* ESTILOS ADICIONALES PARA LOS 7 PASOS DEL ASISTENTE PLAN ANALÍTICO */
.pa-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  background: #F8FAFC;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid #E2E8F0;
}

.pa-checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1E293B;
  transition: all 0.2s ease;
}

.pa-checkbox-item:hover {
  border-color: #0284C7;
  background: #F0F9FF;
}

.pa-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0284C7;
  cursor: pointer;
}

.btn-pa-tip {
  background: #EEF2FF;
  color: #4338CA;
  border: 1.5px solid #C7D2FE;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-pa-tip:hover {
  background: #E0E7FF;
  border-color: #A5B4FC;
  transform: translateY(-1px);
}

.btn-pa-preset {
  background: #F0FDF4;
  color: #166534;
  border: 1.5px solid #BBF7D0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-pa-preset:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
  transform: translateY(-1px);
}

/* Modal de Tips & Pistas Didácticas */
.pa-tips-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pa-tips-modal-card {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid #C7D2FE;
  display: flex;
  flex-direction: column;
}

.pa-tips-modal-header {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  padding: 18px 24px;
  border-bottom: 1.5px solid #C7D2FE;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pa-tips-modal-header h3 {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: #312E81;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pa-tips-modal-body {
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #334155;
}

.pa-tips-modal-footer {
  padding: 14px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
}

/* VENTANA FLOTANTE (MODAL) DEL DOCUMENTO OFICIAL SEP */
.pa-official-doc-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 16px;
}

.pa-official-doc-modal-card {
  background: var(--bg-card, #FFFFFF);
  border-radius: 20px;
  max-width: 1100px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--border, #CBD5E1);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

.pa-official-doc-modal-header {
  padding: 14px 24px;
  background: var(--accent-soft, #F8FAFC);
  border-bottom: 1.5px solid var(--border, #E2E8F0);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pa-official-doc-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pa-official-doc-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background: var(--bg-body, #F1F5F9);
}

