/* ============================================
   TEOLOGÍA DEL CUERPO — Styles
   ============================================ */

:root {
  --ivory: #FAF8F5;
  --cream: #F5F0E8;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --gold-dark: #8B6914;
  --burgundy: #6B1D2A;
  --burgundy-light: #8B2E3E;
  --brown: #4A3728;
  --brown-light: #6B5544;
  --text: #2C1810;
  --text-light: #6B5544;
  --text-muted: #9B8B7A;
  --border: #E5DDD0;
  --shadow: rgba(44, 24, 16, 0.08);
  --shadow-lg: rgba(44, 24, 16, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#main-nav.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--burgundy);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo-icon {
  font-size: 1.4rem;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 24px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--burgundy);
  background: rgba(107, 29, 42, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */

#hero {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2C1810 0%, #4A2028 40%, #6B1D2A 70%, #4A3728 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196, 162, 101, 0.15) 0%, transparent 60%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,0.5) 50px, rgba(255,255,255,0.5) 51px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-cross {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.7;
}

#hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #FAF8F5;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-desc {
  font-size: 0.95rem;
  color: rgba(250, 248, 245, 0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 48px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--gold);
  color: #1a0f08;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 162, 101, 0.3);
}

.btn-secondary {
  background: rgba(250, 248, 245, 0.1);
  color: #FAF8F5;
  border: 1px solid rgba(250, 248, 245, 0.2);
}

.btn-secondary:hover {
  background: rgba(250, 248, 245, 0.2);
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: rgba(250, 248, 245, 0.3);
  z-index: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

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

/* ============================================
   SECTIONS (General)
   ============================================ */

.section {
  display: none;
  padding: 100px 24px 60px;
  min-height: 100vh;
}

.section.active {
  display: block;
}

#hero.active {
  display: flex;
  padding: 0;
}

#hero:not(.active) {
  display: none;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   CATEQUESIS SECTION
   ============================================ */

.catequesis-controls {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 48px;
  padding: 12px 20px;
  max-width: 500px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.15);
}

.search-box .material-icons-outlined {
  color: var(--text-muted);
  font-size: 20px;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 6px 16px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.pill:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.pill.active {
  background: var(--burgundy);
  color: white;
  border-color: var(--burgundy);
}

.view-toggle {
  display: flex;
  gap: 4px;
  align-self: flex-end;
}

.view-btn {
  background: white;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.view-btn.active {
  color: var(--burgundy);
  border-color: var(--burgundy);
  background: rgba(107, 29, 42, 0.05);
}

/* Cards Grid */
.catequesis-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.catequesis-grid.list-view {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.cat-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, var(--gold));
  opacity: 0;
  transition: var(--transition);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
  border-color: transparent;
}

.cat-card:hover::before {
  opacity: 1;
}

.cat-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--card-accent, var(--gold));
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 12px;
}

.cat-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cat-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-card-summary {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card-cycle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 16px;
  background: var(--card-accent-bg, rgba(196, 162, 101, 0.1));
  color: var(--card-accent, var(--gold-dark));
  margin-top: 12px;
  font-weight: 500;
}

/* List view cards */
.list-view .cat-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 20px 28px;
}

.list-view .cat-card-num {
  font-size: 1.5rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-view .cat-card-body {
  display: flex;
  flex-direction: column;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}

.empty-state .material-icons-outlined {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ============================================
   DETAIL OVERLAY
   ============================================ */

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(44, 24, 16, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 80px 24px 40px;
}

.detail-overlay.open {
  display: flex;
}

.detail-content {
  background: white;
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  padding: 48px;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

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

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.detail-close:hover {
  background: var(--border);
  color: var(--text);
}

.detail-nav {
  position: absolute;
  top: 50%;
  left: -60px;
  right: -60px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.detail-prev, .detail-next {
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: var(--transition);
  color: var(--text-light);
  box-shadow: 0 4px 12px var(--shadow);
}

.detail-prev:hover, .detail-next:hover {
  background: var(--burgundy);
  color: white;
  border-color: var(--burgundy);
}

.detail-cycle-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(107, 29, 42, 0.1);
  color: var(--burgundy);
  margin-bottom: 12px;
}

.detail-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}

.detail-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.detail-summary {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  border-left: 3px solid var(--gold);
}

.detail-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.topic-tag {
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(196, 162, 101, 0.1);
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 500;
}

.detail-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.detail-body p {
  margin-bottom: 16px;
}

.detail-body blockquote {
  padding: 16px 24px;
  border-left: 3px solid var(--burgundy);
  background: rgba(107, 29, 42, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--brown);
}

.detail-body em {
  color: var(--burgundy);
}

.detail-body strong {
  color: var(--burgundy);
  font-weight: 600;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.detail-original-btn,
.detail-vatican-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 48px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.detail-original-btn {
  background: var(--gold);
  color: #1a0f08;
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.25);
}

.detail-original-btn:hover {
  transform: translateY(-2px);
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(196, 162, 101, 0.4);
}

.detail-vatican-link {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  color: white;
  box-shadow: 0 4px 16px rgba(107, 29, 42, 0.2);
}

.detail-vatican-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 29, 42, 0.35);
}

.detail-original-btn .material-icons-outlined,
.detail-vatican-link .material-icons-outlined {
  font-size: 18px;
}

/* ===== Modal Texto Original ===== */
.original-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(26, 15, 8, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 60px 24px 40px;
}

.original-modal.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.original-content {
  background: var(--ivory);
  border-radius: var(--radius);
  max-width: 820px;
  width: 100%;
  padding: 56px 56px 40px;
  position: relative;
  animation: slideUp 0.3s ease-out;
  border: 1px solid var(--border);
}

.original-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  z-index: 1;
}

.original-close:hover {
  background: var(--border);
  color: var(--text);
}

.original-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.original-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.original-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.2;
  margin-bottom: 6px;
}

.original-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.original-body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 12px;
}

.original-body p {
  margin-bottom: 16px;
  text-align: justify;
}

.original-body p:first-letter {
  font-weight: 600;
  color: var(--burgundy);
}

.original-body::-webkit-scrollbar {
  width: 8px;
}

.original-body::-webkit-scrollbar-track {
  background: var(--cream);
  border-radius: 4px;
}

.original-body::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.original-loading {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
  font-style: italic;
}

.original-footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.original-footer a {
  color: var(--burgundy);
  font-weight: 600;
}

@media (max-width: 768px) {
  .original-content {
    padding: 40px 24px 28px;
  }
  .original-title {
    font-size: 1.4rem;
  }
  .original-body {
    font-size: 1rem;
    max-height: 55vh;
  }
}

.detail-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.detail-related h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
}

.detail-glossary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glossary-link {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-light);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.glossary-link:hover {
  border-color: var(--gold);
  background: rgba(196, 162, 101, 0.08);
  color: var(--gold-dark);
}

/* ============================================
   CYCLES SECTION
   ============================================ */

.cycles-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cycle-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cycle-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--cycle-color, var(--gold));
}

.cycle-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.cycle-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cycle-bg, rgba(196, 162, 101, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cycle-color, var(--gold-dark));
}

.cycle-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.cycle-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.cycle-range {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.cycle-range strong {
  display: block;
  font-size: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--cycle-color, var(--gold-dark));
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--burgundy));
}

.timeline-year {
  margin-bottom: 32px;
}

.timeline-year-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 16px;
  position: relative;
}

.timeline-year-label::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--burgundy);
}

.timeline-item {
  position: relative;
  padding: 12px 20px;
  margin-bottom: 8px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--item-color, var(--gold));
}

.timeline-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px var(--shadow);
  transform: translateX(4px);
}

.timeline-item-num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--item-color, var(--gold-dark));
  min-width: 30px;
}

.timeline-item-title {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.4;
}

.timeline-item-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================
   GLOSSARY
   ============================================ */

.glossary-search {
  max-width: 500px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 48px;
  padding: 12px 20px;
}

.glossary-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.15);
}

.glossary-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
}

.glossary-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
}

.glossary-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  transition: var(--transition);
}

.glossary-card:hover {
  box-shadow: 0 8px 24px var(--shadow);
  border-color: transparent;
}

.glossary-term {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.glossary-def {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.glossary-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.glossary-ref {
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
}

.glossary-ref:hover {
  background: var(--gold);
  color: #1a0f08;
}

/* ============================================
   CONCEPT MAP / INFOGRAPHIC
   ============================================ */

.concept-map {
  max-width: 1100px;
  margin: 0 auto 48px;
  overflow-x: auto;
}

.concept-map svg {
  width: 100%;
  min-width: 800px;
  height: auto;
}

.infographic-container {
  max-width: 900px;
  margin: 0 auto;
}

.info-section {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px;
  margin-bottom: 24px;
}

.info-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--burgundy);
  margin-bottom: 20px;
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.journey-step {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}

.journey-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 52px;
  bottom: -12px;
  width: 2px;
  background: var(--border);
}

.step-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  z-index: 1;
}

.step-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  text-align: center;
  padding: 40px 24px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-note {
  margin-top: 4px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stagger-in > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-in > *:nth-child(10) { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 24px;
  }

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

  .glossary-container {
    grid-template-columns: 1fr;
  }

  .cycle-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cycle-icon {
    display: none;
  }

  .detail-content {
    padding: 32px 20px;
  }

  .detail-nav {
    position: static;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    transform: none;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .timeline-container {
    padding-left: 30px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 80px 16px 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
