/* ===========================
   FONTS
   =========================== */
@font-face {
  font-family: 'ZuumeRough';
  src: url('fonts/fontspring-demo-zuumerough-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'ZuumeRough';
  src: url('fonts/fontspring-demo-zuumerough-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
}

:root {
  --gold: #f2c94c;
  --gold-bright: #f5d76e;
  --cream: #f0e8d0;
  --dark: #1a1208;
  --darker: #0d0a04;
  --red-accent: #b22222;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #111;
  font-family: 'ZuumeRough', sans-serif;
  color: var(--cream);
  line-height: 1.55;
}

.top-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(6px);
}

.top-nav a {
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 10px;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  text-decoration: none;
  color: #ffffff;
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 14px;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(25, 25, 25, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

input,
button,
textarea,
select {
  font: inherit;
}

/* ===========================
   PAGE STRUCTURE
   =========================== */
.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /*background-color: var(--darker);
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  padding: 0;
  isolation: isolate; */
}

.page[id] {
  scroll-margin-top: 88px;
}

.page-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.dark-page .page-bg {
  filter: brightness(0.35) saturate(0.6);
}

.page:not(.dark-page) .page-bg {
  filter: brightness(0.45) saturate(0.7);
}

.page-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 60px 60px;
}

/* ===========================
   COVER PAGE
   =========================== */
.page-cover {
  background-color: var(--darker);
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  padding: 0;
  isolation: isolate;
}

.cover-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/pdf-images/background.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.25) saturate(0.5);
  z-index: 0;
}

.cover-top-text {
  position: absolute;
  top: 50%;
  left: 70px;
  transform: translateY(-50%);
  z-index: 2;
  width: min(60vw, 800px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.4em;
  font-family: 'ZuumeRough', serif;
  font-weight: 700;
  font-size: clamp(12.4rem, 15.8vw, 18rem);
  letter-spacing: 0.03em;
  line-height: 0.77;
  text-align: left;
  text-transform: uppercase;
  color: #ffffff;
}

.cover-figure {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 40px;
}

.cover-mark-wrap {
  position: relative;
  width: min(55vw, 780px);
  margin-right: -190px;
}

.cover-mark-photo {
  position: absolute;
  object-fit: cover;
  border-radius: 90%;
  transform: scale(0.95);
  transform-origin: center;
}

.cover-mark-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* ===========================
   TWO COLUMN LAYOUT
   =========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse {
  grid-template-columns: 1fr 1fr;
}

.two-col.reverse .col-photo { order: 1; }
.two-col.reverse .col-text  { order: 2; }

/* ===========================
   SECTION TITLE
   =========================== */
.section-title {
  font-family: 'ZuumeRough', serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 28px;
}

.section-title.gold {
  color: var(--gold);
  text-shadow: 2px 2px 12px rgba(0,0,0,0.8), 0 0 30px rgba(242,201,76,0.2);
}

/* ===========================
   BODY TEXT
   =========================== */
.col-text p,
.comunidad-text {
  font-family: 'ZuumeRough', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--cream);
  line-height: 1.7;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

/* ===========================
   FRAMED PHOTOS
   =========================== */
.framed-photo {
  position: relative;
  display: inline-block;
  width: 100%;
}

.framed-photo img:first-child {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.framed-photo .frame-overlay {
  position: absolute;
  inset: -8% -8%;
  width: 116%;
  height: 116%;
  object-fit: fill;
  pointer-events: none;
  opacity: 0.85;
}

.framed-photo.small img:first-child {
  max-height: 160px;
  object-fit: cover;
}

.framed-photo.tall img:first-child {
  max-height: 480px;
  object-fit: cover;
}

/* ===========================
   PAGE 2 – DIA BLUES
   =========================== */
.page-dia-blues .page-bg {
  filter: brightness(0.30) saturate(0.5);
}

/* ===========================
   PAGE 3 – COMUNIDAD
   =========================== */
.comunidad-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}

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

/* ===========================
   PAGE 5 – MODALIDAD
   =========================== */
.modalidad-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.step-num {
  font-family: 'ZuumeRough', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.step-body h3 {
  font-family: 'ZuumeRough', serif;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.9);
}

.step-body p {
  font-family: 'ZuumeRough', serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--cream);
  line-height: 1.5;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

/* ===========================
   PAGE 6 – CRONOGRAMA
   =========================== */
.page-cronograma .page-bg {
  filter: brightness(0.35) saturate(0.6);
}

.cronograma-col {
  display: flex;
  flex-direction: column;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin-left: 8px;
}

.tl-month {
  position: relative;
  padding-bottom: 24px;
}

.tl-label {
  font-family: 'ZuumeRough', serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--gold);
  text-transform: capitalize;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.9);
}

.tl-month::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--darker);
}

.highlight-month .tl-label {
  color: var(--gold-bright);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.tl-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 12px;
}

.tl-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  flex-shrink: 0;
  margin-top: 6px;
}

.tl-dot.big-dot {
  width: 12px;
  height: 12px;
  background: var(--gold-bright);
  margin-top: 4px;
}

.tl-event > div {
  display: flex;
  flex-direction: column;
}

.tl-date {
  font-family: 'ZuumeRough', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.tl-desc {
  font-family: 'ZuumeRough', serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--cream);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.tl-date.bold,
.tl-desc.bold {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-bright);
}

/* ===========================
   PAGE 7 – FAQ
   =========================== */
.faq-inner {
  max-width: 900px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.faq-item {
  border-top: 2px solid rgba(242, 201, 76, 0.35);
  padding-top: 24px;
}

.faq-q,
.faq-a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.faq-badge {
  font-family: 'ZuumeRough', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark);
  background: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.faq-badge.answer {
  background: var(--cream);
  color: var(--dark);
}

.faq-q p {
  font-family: 'ZuumeRough', serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--gold);
  line-height: 1.4;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.9);
  padding-top: 4px;
}

.faq-a p {
  font-family: 'ZuumeRough', serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--cream);
  line-height: 1.6;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
  padding-top: 4px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .two-col,
  .two-col.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .two-col.reverse .col-photo { order: 1; }
  .two-col.reverse .col-text  { order: 2; }

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

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

  .cover-top-text {
    width: 95vw;
    padding: 14px 18px;
    font-size: clamp(2rem, 8.5vw, 3.6rem);
    letter-spacing: 0.1em;
  }

  .cover-mark-wrap {
    width: min(85vw, 520px);
    max-height: 55vh;
    margin-right: -20px;
  }

  .top-nav {
    top: 6px;
    gap: 6px;
    padding: 6px;
  }

  .top-nav a {
    padding: 5px 8px;
    font-size: 0.85rem;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
    font-size: 0.92rem;
  }

  .page-inner {
    padding: 40px 24px;
  }
}
