:root {
  --navy: #0B1E33;
  --navy-deep: #04101F;
  --orange: #CC7A1D;
  --gold: #E8A54A;
  --cream: #F7F5F0;
  --ink: #333f4a;
  --muted: #6b7280;
  --line: #e2ddd2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.brand img { width: 34px; height: auto; }
.brand span { font-family: 'Anton', sans-serif; font-size: 16px; letter-spacing: 1px; }
.site-header nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-left: 18px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,16,31,0.55) 0%, rgba(4,16,31,0.35) 35%, rgba(4,16,31,0.85) 100%);
}
.hero-inner {
  position: relative;
  padding: 72px 20px 56px;
  text-align: center;
}
.hero-inner img.logo { width: 64px; margin: 0 auto 16px; }
.hero-inner h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 7vw, 54px);
  letter-spacing: 1px;
  color: var(--gold);
  margin: 0;
  line-height: 1.05;
}
.hero-inner .tagline {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(16px, 3vw, 20px);
  color: #c8d3de;
  margin-top: 8px;
}
.hero-inner p.sub {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: #dbe3ea;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 48px 0;
}
.section-title {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  letter-spacing: 0.5px;
  margin: 0 0 18px;
  color: var(--navy);
}

/* ---------- CLE CARDS ---------- */
.cle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.cle-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cle-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,30,51,0.08); }
.cle-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.cle-card.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.cle-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--navy);
}
.cle-card .date {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.cle-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.cle-card .tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--orange);
}

/* ---------- FILE LIST (per-cle pages) ---------- */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--navy);
}
.file-row:hover { border-color: var(--orange); }
.file-row .icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(232,165,74,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.file-row .meta { flex: 1; min-width: 0; }
.file-row .meta .name { font-weight: 700; font-size: 13.5px; }
.file-row .meta .desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.file-row .dl {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--orange);
  border: 1px solid rgba(204,122,29,0.4);
  border-radius: 20px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* ---------- BACK LINK ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 18px;
}
.back-link:hover { color: var(--orange); }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  text-align: center;
}
.site-footer p {
  font-size: 11.5px;
  color: var(--muted);
  margin: 2px 0;
}

/* ---------- HERO ANIMATIONS ---------- */
.hero-bg {
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1%, -1%); }
}
.beam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 500px;
  height: 100%;
  background: linear-gradient(90deg, rgba(232,165,74,0) 0%, rgba(232,165,74,0.16) 48%, rgba(232,165,74,0) 100%);
  transform-origin: top center;
  animation: sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%, 100% { transform: translateX(-60%) rotate(-8deg); opacity: 0.5; }
  50% { transform: translateX(10%) rotate(6deg); opacity: 0.9; }
}
.hero-inner .reveal {
  opacity: 0;
  animation: fadeInUp 0.9s ease forwards;
}
.hero-inner .r1 { animation-delay: 0.05s; }
.hero-inner .r2 { animation-delay: 0.2s; }
.hero-inner .r3 { animation-delay: 0.35s; }
.hero-inner .r4 { animation-delay: 0.5s; }
.hero-inner .r5 { animation-delay: 0.65s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- YEAR BADGE ---------- */
.year-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,165,74,0.16);
  border: 1px solid rgba(232,165,74,0.5);
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.year-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ABOUT / MISSION ---------- */
.about-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
}
.about-box strong { color: var(--navy); }

/* ---------- DATE CARDS ---------- */
.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.date-card {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.date-card.past { background: #5a6b7a; opacity: 0.75; }
.date-card.special { background: linear-gradient(135deg, #0B1E33, #3a2a12); border: 1px solid rgba(232,165,74,0.4); }
.date-card.special .day { color: var(--gold); }
.date-card.special .status { background: rgba(232,165,74,0.25); }
.date-card .day {
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}
.date-card .month {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c8d3de;
  margin-top: 2px;
}
.date-card .cle-label {
  font-size: 12px;
  font-weight: 700;
  margin-top: 10px;
}
.date-card .cle-sub {
  font-size: 11px;
  color: #c8d3de;
  margin-top: 2px;
}
.date-card .status {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(232,165,74,0.18);
  color: var(--gold);
}
.date-card.past .status {
  background: rgba(255,255,255,0.12);
  color: #dbe3ea;
}

/* ---------- ROADMAP (12 CLÉS) ---------- */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.roadmap-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
}
.roadmap-item.done {
  border-color: rgba(204,122,29,0.4);
  background: rgba(232,165,74,0.07);
}
.roadmap-item .n {
  font-family: 'Anton', sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.roadmap-item.done .n { color: var(--orange); }
.roadmap-item .theme {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--navy);
  margin-top: 3px;
}
.roadmap-item .sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}
.roadmap-item .check {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  color: var(--orange);
}
.verse-box {
  margin-top: 20px;
  text-align: center;
  padding: 18px;
}
.verse-box .q {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.verse-box .ref {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- CLICKABLE LIGHTHOUSE ---------- */
.lighthouse-hotspot {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 25;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.lighthouse-hotspot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 50%;
}
.lh-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,165,74,0.55) 0%, rgba(232,165,74,0) 70%);
  animation: lhpulse 2.4s ease-out infinite;
}
.lh-pulse2 { animation-delay: 1.2s; }
@keyframes lhpulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.hero.flash .beam { animation: sweep 9s ease-in-out infinite, flashBeam 0.9s ease; }
@keyframes flashBeam {
  0% { filter: brightness(1); }
  30% { filter: brightness(2.4); }
  100% { filter: brightness(1); }
}
.hero-toast {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(11,30,51,0.94);
  border: 1px solid rgba(232,165,74,0.5);
  color: #fff;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
  z-index: 6;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
}
.contact-people {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-person {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}
.contact-person .who { font-weight: 700; color: var(--navy); }
.contact-person a { color: var(--orange); text-decoration: none; font-weight: 600; }
.contact-person a:hover { text-decoration: underline; }
.contact-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.qr-box {
  text-align: center;
  flex-shrink: 0;
}
.qr-box img {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 6px;
  background: #fff;
}
.qr-box .cap {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 6px;
  max-width: 130px;
}

@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .beam, .hero-inner .reveal, .year-badge .dot, .lh-pulse {
    animation: none !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .hero-inner { padding: 56px 16px 40px; }
  .file-row { flex-wrap: wrap; }
  .file-row .dl { margin-left: auto; }
  .about-box { padding: 20px; }
}
