/* ==========================================================================
   CODAINI DocGen — Design System: Modern Hybrid (Luminous Canvas & Dark Contrasts)
   ========================================================================== */

:root {
  /* Fondo y Superficies Claras */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-surface-hover: #f8fafc;

  /* Contrastes Oscuros (Navbar, Code Editor, Botones Primarios) */
  --bg-dark: #0f172a;
  --bg-dark-surface: #1e293b;
  --bg-dark-hover: #293548;
  --bg-editor: #090e1a;

  /* Acentos de Color */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;

  --accent-cyan: #06b6d4;
  --accent-cyan-light: #ecfeff;

  /* Tipografía y Textos */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-inverse: #ffffff;

  /* Bordes */
  --border-subtle: #e2e8f0;
  --border-focus: #818cf8;
  --border-card: #e2e8f0;

  /* Estados Semánticos */
  --state-success-bg: #ecfdf5;
  --state-success-text: #065f46;
  --state-success-border: #a7f3d0;

  --state-error-bg: #fff1f2;
  --state-error-text: #9f1239;
  --state-error-border: #fecdd3;

  --state-warning-bg: #fffbeb;
  --state-warning-text: #92400e;
  --state-warning-border: #fde68a;

  /* Sombras y Elevación */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-dark: 0 10px 25px -5px rgba(15, 23, 42, 0.3);

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transiciones */
  --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* SVG Safe Containment */
svg {
  max-width: 100%;
  display: inline-block;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Navbar Superior Elegante (Contraste Oscuro con Acentos Neón)
   -------------------------------------------------------------------------- */
.navbar {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.25);
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.4);
}

.navbar-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-title span {
  color: var(--accent-cyan);
  font-weight: 500;
}

.navbar-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   Área Principal Centrada (Spacious & Clean)
   -------------------------------------------------------------------------- */
.main-wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 24px 64px;
  flex: 1;
}

.hero-header {
  margin-bottom: 32px;
}

.hero-title {
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.55;
}

.migas {
  margin-bottom: 20px;
}

.migas a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.migas a:hover {
  color: var(--primary);
  border-color: var(--primary-border);
  background: var(--primary-light);
}

/* --------------------------------------------------------------------------
   Tarjetas de Contenido (Modern Light Card Design)
   -------------------------------------------------------------------------- */
.tarjeta {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
  transition: all var(--trans-normal);
}

.tarjeta:hover {
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.tarjeta-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tarjeta h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.numero-paso {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.ayuda {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Formularios y Controles
   -------------------------------------------------------------------------- */
.formulario {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.formulario label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

input[type="text"],
textarea {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--trans-fast);
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

textarea {
  resize: vertical;
  min-height: 95px;
}

/* --------------------------------------------------------------------------
   Botones de Acción (High Contrast)
   -------------------------------------------------------------------------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: all var(--trans-fast);
}

.boton:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.boton:active:not(:disabled) {
  transform: translateY(0);
}

.boton:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.boton-secundario {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.boton-secundario:hover:not(:disabled) {
  background: var(--bg-surface-alt);
  border-color: #cbd5e1;
  color: var(--primary);
}

.boton-peligro {
  background: #ffffff;
  color: #e11d48;
  border: 1.5px solid #fecdd3;
  box-shadow: var(--shadow-sm);
}

.boton-peligro:hover:not(:disabled) {
  background: #fff1f2;
  border-color: #f43f5e;
  color: #be123c;
}

.boton-ia {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 50%, var(--accent-cyan) 100%);
  color: #ffffff;
  border: 0;
  padding: 12px 24px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  font-weight: 700;
}

.boton-ia:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45);
}

/* --------------------------------------------------------------------------
   Zona de Carga (Drag & Drop Zone)
   -------------------------------------------------------------------------- */
.zona-carga {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  background: var(--bg-surface-alt);
  cursor: pointer;
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.zona-carga:hover,
.zona-carga.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.15);
}

.zona-carga-icono {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.zona-carga-texto {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.zona-carga-subtexto {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.pills-extensiones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
}

.pill-ext {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  padding: 2px 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Rejilla de Proyectos (Tarjetas Clean & Modern)
   -------------------------------------------------------------------------- */
.rejilla-proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.proyecto-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
}

.proyecto-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.proyecto-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.proyecto-icono {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.proyecto-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 5px;
  line-height: 1.35;
}

.proyecto-card h3 a {
  color: var(--text-main);
}

.proyecto-card h3 a:hover {
  color: var(--primary);
}

.proyecto-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proyecto-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.proyecto-acciones {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------------------------
   Filtros y Tablas
   -------------------------------------------------------------------------- */
.filtros-archivos {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filtro-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--trans-fast);
}

.filtro-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-main);
}

.filtro-btn.activo {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.tabla-scroll {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.tabla th {
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.tabla td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.tabla tr:last-child td {
  border-bottom: 0;
}

.tabla tr:hover td {
  background: var(--bg-surface-hover);
}

.vacio {
  color: var(--text-muted);
  text-align: center;
  padding: 36px 16px;
  font-size: 0.94rem;
}

/* Badges Semánticos */
.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
}

.etiqueta-verde {
  background: var(--state-success-bg);
  color: var(--state-success-text);
  border: 1px solid var(--state-success-border);
}

.etiqueta-roja {
  background: var(--state-error-bg);
  color: var(--state-error-text);
  border: 1px solid var(--state-error-border);
}

.etiqueta-azul {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.etiqueta-amarilla {
  background: var(--state-warning-bg);
  color: var(--state-warning-text);
  border: 1px solid var(--state-warning-border);
}

code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.84em;
  color: #334155;
  word-break: break-all;
}

/* Visor de Árbol en Contraste Oscuro */
pre.arbol {
  background: var(--bg-dark);
  color: #38bdf8;
  padding: 22px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  max-height: 400px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rejilla,
.rejilla-analisis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 16px 0;
}

/* --------------------------------------------------------------------------
   Visor de Documento Markdown con IA (Contraste Oscuro Técnico)
   -------------------------------------------------------------------------- */
.acciones-documento {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.mensaje-inline {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
  display: inline-block;
}

@keyframes girar {
  to { transform: rotate(360deg); }
}

.bloque-borrador {
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.cabecera-borrador {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.metadatos-doc {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.aviso-borrador {
  background: var(--state-warning-bg);
  border-left: 4px solid #f59e0b;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
  color: var(--state-warning-text);
}

.visor-markdown-contenedor {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-editor);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.visor-markdown-barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: #0f1626;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #94a3b8;
}

.visor-markdown {
  padding: 24px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.75;
  max-height: 620px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #f1f5f9;
}

/* Mensajes y Alertas */
.mensaje {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 200ms ease;
}

.mensaje.ok {
  background: var(--state-success-bg);
  color: var(--state-success-text);
  border: 1px solid var(--state-success-border);
}

.mensaje.error {
  background: var(--state-error-bg);
  color: var(--state-error-text);
  border: 1px solid var(--state-error-border);
}

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

/* --------------------------------------------------------------------------
   Etapa 3: Editor Markdown y Panel de Validación Técnica Humana
   -------------------------------------------------------------------------- */
.editor-markdown,
textarea.editor-markdown {
  width: 100% !important;
  min-height: 480px !important;
  max-height: 750px !important;
  padding: 24px 28px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
  background: #090e1a !important;
  color: #f8fafc !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  resize: vertical !important;
  display: block !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

textarea.editor-markdown:focus {
  background: #050811 !important;
  outline: none !important;
}

textarea.editor-markdown:read-only,
textarea.editor-markdown:disabled {
  background: #0d1322 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}

.pestanas-editor {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.pestana-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--trans-fast);
}

.pestana-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.pestana-btn.activa {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.panel-validacion {
  margin-top: 26px;
  padding: 26px 30px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.panel-validacion-titulo {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-validacion-subtexto {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.rejilla-validacion {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 22px;
  width: 100%;
}

@media (max-width: 768px) {
  .rejilla-validacion {
    grid-template-columns: 1fr;
  }
}

.campo-validacion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.campo-validacion label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.campo-validacion input,
input.campo {
  width: 100% !important;
  background: #ffffff !important;
  border: 1.5px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 12px 16px !important;
  color: var(--text-main) !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  transition: all var(--trans-fast) !important;
  box-sizing: border-box !important;
  display: block !important;
}

.campo-validacion input:focus,
input.campo:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12) !important;
}

.acciones-validacion {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.boton-exito {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: var(--radius-md) !important;
  font-family: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
  transition: all var(--trans-fast) !important;
}

.boton-exito:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
}

.boton-exito:disabled {
  background: #94a3b8 !important;
  color: #f1f5f9 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.65 !important;
}

.aviso-validado {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 4px solid #10b981;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 18px;
  color: #065f46;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.indicador-inmutable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}


/* --------------------------------------------------------------------------
   Pie de Página (Sutil y Limpio, con el Aviso Obligatorio de Tesis)
   -------------------------------------------------------------------------- */
.pie {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 26px 24px;
  text-align: center;
  margin-top: auto;
  line-height: 1.6;
}

.pie-aviso {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Responsividad */
@media (max-width: 768px) {
  .tarjeta {
    padding: 20px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .rejilla-proyectos {
    grid-template-columns: 1fr;
  }
}