:root {
  --bg-1: #f4efe7;
  --bg-2: #e9dfd0;
  --paper: rgba(255, 252, 247, 0.88);
  --ink: #1c1917;
  --muted: #6d6258;
  --line: rgba(120, 95, 76, 0.18);
  --accent: #9b3d1f;
  --accent-soft: #f1d3c7;
  --accent-2: #2d6a73;
  --shadow: 0 18px 45px rgba(71, 48, 31, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(155, 61, 31, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(45, 106, 115, 0.10), transparent 24%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.site-header-shell,
.site-footer-shell,
.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-shell { padding-top: 22px; }
.site-footer-shell { margin-top: 20px; padding-bottom: 18px; }
.page-shell { padding: 28px 0 56px; }

.site-header-bar,
.site-footer-bar,
.home-main,
.welcome-band,
.article-card,
.route-section,
.preparing-section,
.topics-section,
.contact-strip {
  background: var(--paper);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.site-header-bar,
.site-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

.site-header-bar:hover,
.site-footer-bar:hover,
.welcome-band:hover,
.article-card:hover,
.route-section:hover,
.preparing-section:hover,
.topics-section:hover,
.contact-strip:hover {
  box-shadow: 0 20px 42px rgba(71, 48, 31, 0.12);
}

.site-brand { color: var(--ink); text-decoration: none; }
.site-brand strong { display: inline-block; font-size: 1.05rem; letter-spacing: 0.04em; transition: color 0.18s ease; }
.site-brand:hover strong { color: var(--accent); }

.site-nav,
.site-footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.site-nav a,
.site-footer-links a { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color 0.18s ease, color 0.18s ease; }
.site-nav a:hover,
.site-footer-links a:hover { color: var(--accent-2); border-color: var(--accent-2); }

.home-main { padding: 24px; }

.welcome-band,
.route-section,
.cards-section,
.preparing-section,
.topics-section,
.contact-strip {
  margin: 0 0 28px;
}

.welcome-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: clamp(18px, 3vw, 34px);
  padding: 22px;
  align-items: center;
}

.eyebrow,
.signal-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 700;
}

.welcome-band h1,
.section-head h2,
.article-card h3,
.route-item h3,
.contact-strip h2 {
  letter-spacing: -0.04em;
}

.welcome-band h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 0.98;
  color: var(--accent);
}

.welcome-band__copy p,
.contact-strip p,
.route-item p,
.prep-card p,
.article-card__body p,
.archive-card p {
  text-align: justify;
  hyphens: auto;
}

.welcome-band__copy p {
  font-size: 1.05rem;
  line-height: 1.68;
  max-width: 58ch;
}

.welcome-band__signal {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(45, 106, 115, 0.08), rgba(255,255,255,0.68));
  border: 1px solid var(--line);
}

.welcome-band__signal strong {
  font-size: 1.22rem;
  line-height: 1.2;
}

.welcome-band__signal-copy {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--ink);
}

.signal-link,
.article-card__link,
.archive-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(45, 106, 115, 0.22);
  border-radius: 999px;
  background: rgba(45, 106, 115, 0.08);
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.signal-link:hover,
.article-card__link:hover,
.archive-card__link:hover {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  background: rgba(45, 106, 115, 0.12);
  box-shadow: 0 10px 22px rgba(71, 48, 31, 0.08);
}

.signal-link--read-order {
  border-color: rgba(166, 92, 49, 0.38);
  background: linear-gradient(135deg, rgba(166, 92, 49, 0.16), rgba(224, 171, 92, 0.28));
  color: #7c3f20;
  box-shadow: 0 8px 18px rgba(124, 63, 32, 0.10);
  animation: readOrderNudge 2.8s ease-in-out infinite;
}

.signal-link--read-order:hover {
  border-color: #a65c31;
  background: linear-gradient(135deg, rgba(166, 92, 49, 0.24), rgba(224, 171, 92, 0.36));
  box-shadow: 0 12px 26px rgba(124, 63, 32, 0.16);
}

@keyframes readOrderNudge {
  0%, 72%, 100% {
    transform: translateY(0);
  }
  82% {
    transform: translateY(-2px);
  }
  92% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-link--read-order {
    animation: none;
  }
}

.section-head { margin-bottom: 18px; }
.section-head--compact h2 { font-size: 1.55rem; }
.section-head h2 { margin: 8px 0 0; font-size: 2rem; color: var(--accent); }

.route-section,
.preparing-section,
.topics-section,
.contact-strip {
  padding: 22px;
}

.route-list {
  display: grid;
  gap: 14px;
}

.route-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.52);
}

.route-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(155, 61, 31, 0.10);
  color: var(--accent);
  font-weight: 700;
}

.route-item h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.22;
}

.route-item h3 a,
.article-card h3 a,
.archive-card h3 a { color: var(--ink); text-decoration: none; }
.route-item h3 a:hover,
.article-card h3 a:hover,
.archive-card h3 a:hover { color: var(--accent); }
.route-item p { margin: 0; font-size: 0.98rem; line-height: 1.62; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.cards-grid--primary { align-items: stretch; }
.article-card { overflow: hidden; }
.article-card:hover { transform: translateY(-3px); border-color: rgba(120, 95, 76, 0.28); }
.article-card__image-link { display: block; }
.article-card__image-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.article-card__body { padding: 18px; }

.article-card__meta,
.archive-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.article-card__meta span,
.archive-card__meta span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  color: var(--muted);
  font-size: 0.84rem;
}

.article-card h3 { margin: 0 0 12px; font-size: 1.45rem; line-height: 1.15; }
.article-card__body p { font-size: 1.02rem; line-height: 1.68; color: var(--ink); }

.archive-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,252,247,0.92));
  box-shadow: 0 12px 30px rgba(71, 48, 31, 0.07);
}

.archive-card__content {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.archive-card h3 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.18; letter-spacing: -0.03em; }
.archive-card p { margin: 0; font-size: 1rem; line-height: 1.65; }
.archive-card__link { white-space: nowrap; }

.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prep-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.5);
}

.prep-card span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.prep-card p { margin: 0; font-size: 1rem; line-height: 1.62; }

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.topic-tags span {
  display: inline;
}

.topic-tags span:not(:last-child)::after {
  content: " · ";
  color: var(--muted);
  padding: 0 8px;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, rgba(45, 106, 115, 0.08), rgba(255,255,255,0.68));
}

.contact-strip h2 { margin: 8px 0 12px; font-size: 1.55rem; color: var(--accent); }
.contact-strip p { margin: 0; font-size: 1rem; line-height: 1.65; }
.contact-strip__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.site-footer-bar p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.site-footer-bar strong { color: var(--ink); }

.reveal { animation: riseIn 0.65s ease both; }
.reveal:nth-child(2) { animation-delay: 0.06s; }
.reveal:nth-child(3) { animation-delay: 0.12s; }
.reveal:nth-child(4) { animation-delay: 0.18s; }
.reveal:nth-child(5) { animation-delay: 0.24s; }
.reveal:nth-child(6) { animation-delay: 0.30s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .welcome-band,
  .cards-grid,
  .archive-card__content,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .archive-card__content {
    display: grid;
    align-items: start;
  }

  .contact-strip__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .site-header-shell,
  .site-footer-shell {
    width: min(100%, calc(100% - 20px));
  }

  .home-main,
  .welcome-band,
  .route-section,
  .preparing-section,
  .topics-section,
  .contact-strip {
    padding: 20px;
  }

  .site-header-bar,
  .site-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .welcome-band h1 {
    max-width: none;
  }

  .welcome-band__copy p,
  .contact-strip p,
  .route-item p,
  .prep-card p,
  .article-card__body p,
  .archive-card p {
    text-align: left;
  }

  .prep-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* CO-ZONE v1.10: mesa de lectura real */
.site-logo {
  width: 156px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}
.site-logo--footer {
  width: 118px;
  max-height: 32px;
}
.mode-toggle {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.mode-button {
  cursor: pointer;
  padding: 10px 16px;
  border: 1px solid rgba(45, 106, 115, 0.22);
  border-radius: 999px;
  background: rgba(45, 106, 115, 0.08);
  color: var(--accent-2);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.mode-button:hover,
.mode-button.active {
  transform: translateY(-1px);
  border-color: var(--accent-2);
  background: rgba(45, 106, 115, 0.14);
  box-shadow: 0 10px 22px rgba(71, 48, 31, 0.08);
}
.mode-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.route-meta {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 0.92rem !important;
}
.archive-block {
  margin: 0 0 28px;
  padding: 22px;
  background: var(--paper);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.archive-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.archive-table-wrap {
  width: 100%;
  overflow-x: auto;
}
.archive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.archive-table th,
.archive-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.archive-table th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
}
.archive-table td {
  font-size: 0.95rem;
  line-height: 1.45;
}
.archive-table td:nth-child(2) {
  font-weight: 600;
}
[hidden] {
  display: none !important;
}

