/* =========================================================
   Revista Perspectiva Científica
   Centro de apoyo para autores
   CSS puro, responsivo y fácil de modificar
   ========================================================= */

:root {
  --navy: #0b1f33;
  --blue: #123e66;
  --accent: #1f7aec;
  --gold: #d8a735;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --line: #d9e4ef;
  --text: #1d2b3a;
  --muted: #62748a;
  --danger: #b42318;
  --success: #18794e;
  --shadow: 0 18px 45px rgba(11, 31, 51, 0.12);
  --soft-shadow: 0 10px 28px rgba(11, 31, 51, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 84px 0; scroll-margin-top: 92px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(135deg, var(--navy), var(--accent)); color: #fff; font-weight: 800; box-shadow: var(--soft-shadow); }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 999px; color: var(--blue); text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: background 0.2s ease, color 0.2s ease; }
.nav-links a:hover { background: #e8f1ff; color: var(--accent); }
.menu-toggle { display: none; border: 0; background: var(--navy); border-radius: 12px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 999px; }

.hero { min-height: 680px; display: grid; align-items: center; background: radial-gradient(circle at 15% 25%, rgba(31, 122, 236, 0.16), transparent 32%), linear-gradient(135deg, #f7fbff 0%, #eef5ff 45%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 38px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 800; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 999px; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.55rem, 6vw, 4.6rem); letter-spacing: -0.06em; margin: 14px 0 18px; }
h2 { font-size: clamp(2rem, 4vw, 3.05rem); letter-spacing: -0.04em; }
h3 { font-size: 1.28rem; }
.hero p, .section-heading p { color: var(--muted); font-size: 1.05rem; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 12px 18px; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--soft-shadow); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.secondary { background: var(--navy); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-metrics span { background: #fff; color: var(--blue); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-weight: 800; box-shadow: 0 8px 18px rgba(11,31,51,0.06); }
.hero-visual { background: rgba(255,255,255,0.72); border: 1px solid #e1ebf6; border-radius: 34px; box-shadow: var(--shadow); padding: 16px; }
.hero-visual svg { width: 100%; height: auto; display: block; }
.svg-bg { fill: #e8f1ff; }
.paper { filter: drop-shadow(0 12px 22px rgba(11,31,51,0.16)); }
.paper-line, .mini-line { stroke: #8ea4bd; stroke-width: 8; stroke-linecap: round; }
.paper-line.short { stroke-width: 7; }
.mini-table { fill: #edf4ff; stroke: #bcd0e5; stroke-width: 2; }
.lens { fill: rgba(255,255,255,0.5); stroke: var(--accent); stroke-width: 16; }
.handle { stroke: var(--navy); stroke-width: 18; stroke-linecap: round; }
.badge-star { fill: var(--gold); }
.check { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.badge-apa { fill: var(--navy); }
.apa-text { fill: #fff; font-size: 22px; font-weight: 800; }
.float-one { animation: float 4.8s ease-in-out infinite; }
.float-two { animation: float 3.8s ease-in-out infinite; }
.float-three { animation: float 4.2s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.section-heading { margin-bottom: 34px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.orientation-card, .feature-card, .compare-widget, .tabs-widget, .timeline-shell, .checklist-widget, .search-widget, .contact-card, .ai-simulator, .highlight-card, .accordion-item, .faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--soft-shadow); }
.orientation-card { padding: 22px; transition: transform 0.25s ease, box-shadow 0.25s ease; overflow: hidden; }
.orientation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.icon-circle { width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, #e8f1ff, #fff6df); position: relative; flex: 0 0 auto; }
.icon-circle::after { content: ""; position: absolute; inset: 14px; border: 3px solid var(--accent); border-radius: 8px; transform: rotate(-8deg); }
.tag { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 6px 10px; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.03em; text-transform: uppercase; }
.tag.gold { background: #fff4d8; color: #8a6415; }
.tag.danger { background: #ffe9e7; color: var(--danger); }
.tag.success { background: #e7f7ef; color: var(--success); }
.tag.blue { background: #e8f1ff; color: var(--accent); }
.toggle-card { margin-top: 14px; border: 0; background: var(--navy); color: #fff; border-radius: 999px; padding: 9px 12px; font-weight: 800; cursor: pointer; }
.card-extra { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.card-extra > div { overflow: hidden; }
.orientation-card.open .card-extra { grid-template-rows: 1fr; }
.example-box { margin-top: 14px; padding: 14px; background: #f8fbff; border-left: 4px solid var(--accent); border-radius: 12px; font-size: 0.94rem; }

.timeline-shell { display: grid; grid-template-columns: 1fr 360px; gap: 22px; padding: 22px; }
.timeline { display: grid; grid-template-columns: repeat(11, minmax(118px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.timeline-step { border: 1px solid var(--line); background: #f8fbff; border-radius: 18px; padding: 14px; text-align: left; cursor: pointer; min-height: 126px; transition: background 0.2s ease, transform 0.2s ease; }
.timeline-step:hover, .timeline-step.active { background: #e8f1ff; transform: translateY(-3px); }
.step-number { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: #fff; border-radius: 50%; font-weight: 900; margin-bottom: 10px; }
.timeline-step strong { color: var(--navy); display: block; line-height: 1.25; }
.timeline-detail { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: linear-gradient(180deg, #fff, #f8fbff); }
.timeline-detail p { color: var(--muted); }
.detail-block { margin-top: 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.detail-block strong { color: var(--navy); }

.compare-widget, .tabs-widget, .checklist-widget, .search-widget, .ai-simulator { padding: 24px; }
.select-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
select, input[type="search"] { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 1rem; outline: none; background: #fff; }
.select-row select { max-width: 360px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare-card { padding: 20px; border-radius: 18px; border: 1px solid var(--line); min-height: 160px; }
.compare-card.weak { background: #fff8f7; }
.compare-card.strong { background: #f0fff6; }
.editor-note { margin-top: 18px; background: #f8fbff; border-left: 4px solid var(--gold); padding: 16px; border-radius: 14px; }

.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab-button { border: 1px solid var(--line); background: #f8fbff; border-radius: 999px; padding: 10px 12px; cursor: pointer; color: var(--blue); font-weight: 800; }
.tab-button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-panel { background: #f8fbff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.apa-example { margin: 14px 0; padding: 16px; background: #fff; border-radius: 14px; border-left: 4px solid var(--accent); }
.media-grid, .ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-grid { grid-template-columns: 1fr 1fr; }
.feature-card { padding: 24px; }
.feature-card ul { padding-left: 18px; }
.error-card { background: #fff9f8; }
.positive { background: #f0fff6; }
.negative { background: #fff8f7; }
.icon-block { width: 72px; height: 58px; border-radius: 16px; background: #e8f1ff; position: relative; margin-bottom: 16px; }
.table-icon::before, .table-icon::after { content: ""; position: absolute; background: var(--accent); }
.table-icon::before { inset: 14px; border: 3px solid var(--accent); background: transparent; border-radius: 4px; }
.table-icon::after { left: 50%; top: 14px; width: 3px; height: 30px; }
.figure-icon::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 28px; background: linear-gradient(90deg, var(--accent) 25%, var(--gold) 25% 50%, var(--blue) 50% 75%, #9cc7ff 75%); border-radius: 8px 8px 4px 4px; }

.accordion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.accordion-item, .faq-item { overflow: hidden; }
.accordion-button, .faq-button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; border: 0; background: #fff; color: var(--navy); font-weight: 900; font-size: 1rem; padding: 18px; cursor: pointer; text-align: left; }
.accordion-content, .faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; background: #f8fbff; }
.accordion-content > div, .faq-content > div { overflow: hidden; padding: 0 18px; }
.accordion-item.open .accordion-content, .faq-item.open .faq-content { grid-template-rows: 1fr; }
.accordion-item.open .accordion-content > div, .faq-item.open .faq-content > div { padding-bottom: 18px; }

.highlight-card { margin-top: 18px; padding: 22px; border-left: 5px solid var(--gold); background: #fffaf0; }
.ai-questions { display: grid; gap: 12px; margin: 18px 0; }
.ai-question { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbff; }
.choice-group { display: flex; gap: 8px; }
.choice { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 800; }
.choice.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.sim-result { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 800; }

.progress-summary { padding: 18px; border-radius: 18px; background: #f8fbff; border: 1px solid var(--line); margin-bottom: 18px; }
.progress-track { width: 100%; height: 14px; background: #dce8f6; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width 0.35s ease; }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); background: #fff; border-radius: 14px; }
.check-item input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 3px; }

.search-form { display: flex; gap: 10px; }
.search-form button { border: 0; border-radius: 14px; background: var(--navy); color: #fff; padding: 0 20px; font-weight: 900; cursor: pointer; }
.search-result { margin-top: 18px; padding: 20px; background: #f8fbff; border: 1px solid var(--line); border-radius: 18px; }

.faq-list { display: grid; gap: 12px; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px; background: linear-gradient(135deg, #fff, #eef5ff); }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.4rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.2s ease, transform 0.2s ease; z-index: 90; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; left: 16px; right: 16px; top: 82px; display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); transform: translateY(-16px); opacity: 0; pointer-events: none; transition: 0.22s ease; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .hero-grid, .timeline-shell, .media-grid, .ai-grid, .compare-grid, .contact-card { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-shell { display: block; }
  .timeline-detail { margin-top: 18px; }
}

@media (max-width: 640px) {
  .section { padding: 62px 0; }
  .hero { min-height: auto; }
  .card-grid, .accordion-grid, .checklist { grid-template-columns: 1fr; }
  .hero-actions, .search-form { flex-direction: column; }
  .btn, .search-form button { width: 100%; min-height: 46px; }
  .brand small { display: none; }
  .compare-widget, .tabs-widget, .checklist-widget, .search-widget, .ai-simulator { padding: 18px; }
}

/* =========================================================
   Secciones añadidas con sustento documental institucional
   ========================================================= */
.logo-mark { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evidence-section { background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%); }
.evidence-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.evidence-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--soft-shadow); position: relative; overflow: hidden; }
.evidence-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -32px; bottom: -32px; background: rgba(31, 122, 236, 0.09); }
.evidence-card h3 { margin: 14px 0 10px; font-size: 1.12rem; }
.requirements-panel { margin-top: 22px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.requirements-panel h3 { color: #fff; margin-bottom: 16px; }
.requirements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.requirements-grid div { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 16px; }
.requirements-grid strong { display: block; color: #fff; margin-bottom: 6px; }
.requirements-grid span { display: block; color: #d9e6f7; font-size: 0.93rem; }
.source-note { display: block; margin-top: 12px; padding: 10px; border-radius: 12px; background: #eef5ff; color: var(--blue); font-weight: 700; font-size: 0.88rem; }
.references-section { background: #ffffff; }
.references-list { background: #f8fbff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--soft-shadow); }
.references-list p { margin: 0 0 12px; padding-left: 18px; text-indent: -18px; }
.references-list p:last-child { margin-bottom: 0; }

@media (max-width: 980px) {
  .evidence-grid, .requirements-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .evidence-grid, .requirements-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   Buscador web para autores
   ========================================================= */
.web-search-card {
  background: var(--surface);
  border: 1px solid rgba(24, 49, 83, 0.10);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.web-search-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(211, 151, 0, 0.16), transparent 68%);
  pointer-events: none;
}

.web-search-form label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.web-search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.web-search-row input {
  flex: 1;
  min-height: 52px;
  border: 1px solid rgba(24, 49, 83, 0.16);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.web-search-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 97, 168, 0.12);
  transform: translateY(-1px);
}

.web-search-row button {
  min-height: 52px;
  border: none;
  border-radius: 16px;
  padding: 0 20px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 61, 112, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.web-search-row button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 61, 112, 0.24);
}

.search-help {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.search-examples button {
  border: 1px solid rgba(24, 49, 83, 0.12);
  background: #f8fbff;
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-examples button:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.web-search-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(211, 151, 0, 0.10);
  color: var(--navy);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .web-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .web-search-row button {
    width: 100%;
  }
}

/* =========================================================
   Ruta editorial interactiva mejorada
   ========================================================= */
.editorial-route {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.route-visual-panel,
.route-detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.route-visual-panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -150px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 122, 236, 0.18), transparent 66%);
  pointer-events: none;
}

.route-status-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 18px 34px rgba(11, 31, 51, 0.22);
}

.route-status-card strong {
  display: block;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 6px 0 8px;
}

.route-status-card p {
  color: #d9e6f7;
  margin: 0;
}

.route-kicker {
  color: #ffe2a1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.route-progress {
  position: relative;
  z-index: 1;
  height: 12px;
  background: #dce8f6;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}

.route-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.35s ease;
}

.route-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.route-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num phase"
    "num title";
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 20px;
  padding: 15px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.route-node:hover {
  transform: translateY(-4px);
  box-shadow: var(--soft-shadow);
}

.route-node.active {
  background: #e8f1ff;
  border-color: rgba(31, 122, 236, 0.5);
  box-shadow: 0 14px 30px rgba(31, 122, 236, 0.15);
}

.route-node.completed {
  background: #f0fff6;
  border-color: rgba(24, 121, 78, 0.28);
}

.route-node-number {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.route-node.active .route-node-number {
  background: var(--accent);
}

.route-node.completed .route-node-number {
  background: var(--success);
}

.route-node-phase {
  grid-area: phase;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.route-node strong {
  grid-area: title;
  color: var(--navy);
  line-height: 1.2;
}

.route-controls {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.route-control {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.route-control:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #eef5ff;
}

.route-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-control {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.primary-control:hover:not(:disabled) {
  background: var(--blue);
}

.route-mini-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
  padding: 13px 14px;
  border-radius: 16px;
  background: #eef5ff;
  border: 1px solid var(--line);
  color: var(--navy);
}

.route-mini-status span {
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warning-block {
  background: #fff8f7;
  border-left: 4px solid var(--danger);
}

.recommendation-block {
  background: #fffaf0;
  border-left: 4px solid var(--gold);
}

/* =========================================================
   Modelos visuales para tablas y figuras
   ========================================================= */
.media-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.media-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.visual-example-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.visual-example-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(31, 122, 236, 0.08);
  pointer-events: none;
}

.figure-demo-card::after {
  background: rgba(216, 167, 53, 0.14);
}

.visual-card-header p {
  color: var(--muted);
}

.apa-table-demo,
.apa-figure-demo {
  margin: 18px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  position: relative;
  z-index: 1;
}

.apa-table-demo figcaption,
.apa-figure-demo figcaption {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  color: var(--navy);
}

.apa-table-demo figcaption strong,
.apa-figure-demo figcaption strong {
  font-weight: 900;
}

.apa-table-demo figcaption em,
.apa-figure-demo figcaption em {
  color: var(--text);
}

.demo-table-wrap {
  overflow-x: auto;
}

.apa-table-demo table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}

.apa-table-demo th {
  text-align: left;
  color: var(--navy);
  padding: 10px;
  border-bottom: 1.8px solid var(--navy);
}

.apa-table-demo td {
  padding: 10px;
  border-bottom: 1px solid #dbe6f2;
}

.apa-table-demo tbody tr:last-child td {
  border-bottom: 0;
}

.figure-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 12px 0 0;
}

.bar-chart-demo {
  position: relative;
  height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 34px;
  padding: 22px 24px 34px 42px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e1ebf6;
}

.chart-axis {
  position: absolute;
  background: #8ea4bd;
}

.y-axis {
  left: 30px;
  top: 18px;
  bottom: 32px;
  width: 2px;
}

.x-axis {
  left: 30px;
  right: 18px;
  bottom: 32px;
  height: 2px;
}

.bar-chart-demo .bar {
  position: relative;
  width: 56px;
  height: var(--h);
  min-height: 46px;
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(180deg, var(--accent), var(--blue));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  font-weight: 900;
  padding-top: 8px;
  animation: growBar 0.8s ease both;
}

.bar-chart-demo .bar:nth-of-type(2) {
  background: linear-gradient(180deg, var(--gold), #a77411);
}

.bar-chart-demo .bar:nth-of-type(3) {
  background: linear-gradient(180deg, #9cc7ff, var(--accent));
}

.bar-chart-demo .bar small {
  position: absolute;
  bottom: -28px;
  color: var(--navy);
  font-weight: 800;
}

@keyframes growBar {
  from { transform: scaleY(0.35); transform-origin: bottom; opacity: 0.4; }
  to { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

.visual-tips {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fffaf0;
  border-left: 4px solid var(--gold);
  color: var(--navy);
}

@media (max-width: 980px) {
  .editorial-route,
  .media-showcase,
  .media-guidance-grid {
    grid-template-columns: 1fr;
  }

  .route-map {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .route-visual-panel,
  .route-detail-card,
  .visual-example-card {
    padding: 18px;
  }

  .route-controls {
    flex-direction: column;
  }

  .route-control {
    width: 100%;
  }

  .bar-chart-demo {
    gap: 18px;
    padding-left: 34px;
  }

  .bar-chart-demo .bar {
    width: 46px;
  }
}
