@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,700;1,900&family=Fjalla+One&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

/* ── VARIABLES ── */
:root {
  --rojo:   #E30613;
  --rojo2:  #FF0000;
  --azul:   #003893;
  --azul2:  #002D72;
  --blanco: #FFFFFF;
  --gris:   #F4F4F4;
  --gris2:  #E0E0E0;
  --texto:  #1A1A1A;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  overflow-x: hidden;
}

body {
  font-family: 'Barlow Condensed', sans-serif;
  background: var(--blanco);
  overflow-x: hidden;
  color: var(--texto);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gris2); }
::-webkit-scrollbar-thumb { background: var(--rojo); border-radius: 0; }

/* ── PROGRESS BAR ── */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul) 0%, var(--rojo) 100%);
  z-index: 2000;
  width: 0;
  transition: width .08s linear;
}

/* ══════════════════════════════
   NAVBAR
══════════════════════════════ */
#nav {
  position: fixed;
  top: 4px; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 66px;
  background: var(--blanco);
  border-bottom: 3px solid var(--rojo);
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
  transition: height .3s ease, box-shadow .3s ease;
}
#nav.shrink {
  height: 52px;
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.logo-heart {
  width: 40px; height: 40px;
  background: var(--rojo);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  animation: hpulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(204,0,0,0.4); }
  50%      { box-shadow: 0 0 0 10px rgba(204,0,0,0); }
}
.logo-img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.logo-text { line-height: 1.2; }
.logo-name {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--azul);
}
.logo-sub {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--azul2);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--azul);
  padding: 6px 12px;
  text-decoration: none;
  transition: color .2s, background .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 2.5px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--rojo); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--rojo); }
.nav-cta {
  background: var(--rojo) !important;
  color: var(--blanco) !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  box-shadow: 0 3px 12px rgba(204,0,0,.35) !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: #a30000 !important; }
.nav-cta::after { display: none !important; }

/* burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block; width: 26px; height: 2.5px;
  background: var(--azul);
  border-radius: 1px;
  transition: all .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--rojo); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--rojo); }

.mob-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--blanco);
  border-top: 1px solid var(--gris2);
  border-bottom: 3px solid var(--rojo);
  z-index: 999;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.mob-menu.on { display: flex; }
.mob-menu a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--azul);
  padding: 16px 6%;
  border-bottom: 1px solid var(--gris2);
  text-decoration: none;
  transition: color .2s, background .2s, border-left .2s;
  border-left: 3px solid transparent;
}
.mob-menu a:hover { color: var(--rojo); background: var(--gris); border-left-color: var(--rojo); }

/* ── SIDE DOTS NAV ── */
#side-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(0,27,94,0.2);
  border: 2px solid rgba(0,27,94,0.4);
  cursor: pointer;
  transition: all .3s ease;
  position: relative;
}
.sdot::before {
  content: attr(data-label);
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  background: var(--azul);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}
.sdot:hover::before { opacity: 1; }
.sdot.active {
  background: var(--rojo);
  border-color: var(--rojo);
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(204,0,0,.5);
}

/* ══════════════════════════════
   BOOK STAGE
   Sticky pages that slide in from left
══════════════════════════════ */
#book {
  /* Container for all tracks */
}

/* Each PAGE TRACK = sticky container */
.page-track {
  position: relative;
  height: 200vh; /* 2x viewport to allow scroll time for animation */
}
.page-track:first-child {
  height: 120vh; /* First page is already visible, needs less scroll */
}

.page-sticky {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  pointer-events: none;
}

/* Page number ghost */
.page-num {
  position: absolute;
  bottom: 16px; left: 48px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  color: var(--azul);
  opacity: 0;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -2px;
  user-select: none;
  transition: opacity 0.4s ease;
}
.page-track.active .page-num {
  opacity: 0.04;
}

/* ── FLYER WRAPPER ── */
.flyer-wrap {
  position: relative;
  z-index: 2;
  height: calc(100vh - 80px);
  width: auto;
  display: flex; align-items: center; justify-content: center;
  will-change: transform, opacity;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.18));
  pointer-events: auto;
}
.flyer-wrap img {
  height: 100%; width: auto; max-width: 90vw;
  object-fit: contain; display: block;
}
/* Wide/landscape flyers */
.flyer-wrap.wide img {
  width: min(90vw, 140vh); height: auto; max-height: calc(100vh - 80px);
}

/* ── PAGE ACCENT (bottom stripe) ── */
.page-stripe {
  position: absolute; bottom: 0; left: 0; right: 0; height: 5px; z-index: 5;
  background: linear-gradient(90deg, var(--azul) 60%, var(--rojo) 60%);
}

/* ── CAPTION (slides up when page is active) ── */
.page-caption {
  position: absolute; bottom: 5px; left: 0; right: 0; z-index: 10;
  display: flex; align-items: stretch;
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.22,.68,0,1.2);
  pointer-events: none;
}
.page-track.active .page-caption {
  transform: translateY(0);
}
.cap-num {
  background: var(--rojo);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 20px 10px 14px;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
  display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0;
}
.cap-txt {
  background: var(--azul);
  color: rgba(255,255,255,.85);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .85rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 18px 10px 22px;
  display: flex; align-items: center;
  flex: 1;
}
.cap-arrow {
  background: var(--azul);
  color: rgba(255,255,255,.5);
  font-size: .8rem; padding: 0 18px;
  display: flex; align-items: center;
  pointer-events: auto;
  cursor: pointer;
  transition: color .2s;
}
.cap-arrow:hover { color: #fff; }

/* ── TOP-RIGHT BADGE ── */
.page-badge {
  position: absolute; top: 72px; right: 0; z-index: 10;
  transform: translateX(110%);
  transition: transform .55s cubic-bezier(.22,.68,0,1.2) .15s;
}
.page-track.active .page-badge { transform: translateX(0); }
.badge-inner {
  background: var(--azul);
  color: rgba(255,255,255,.9);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 18px 8px 14px;
  display: flex; align-items: center; gap: 7px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  white-space: nowrap;
}
.badge-inner i { color: var(--rojo); }

/* ── STACKING ORDER ── */
.page-track:nth-child(1) .page-sticky { z-index: 10; }
.page-track:nth-child(2) .page-sticky { z-index: 20; }
.page-track:nth-child(3) .page-sticky { z-index: 30; }
.page-track:nth-child(4) .page-sticky { z-index: 40; }
.page-track:nth-child(5) .page-sticky { z-index: 50; }
.page-track:nth-child(6) .page-sticky { z-index: 60; }

/* ── PAGE COUNTER ── */
.page-counter {
  position: absolute; bottom: 52px; right: 52px; z-index: 8;
  display: flex; align-items: baseline; gap: 4px; pointer-events: none;
}
.pc-cur { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--rojo); line-height: 1; }
.pc-sep { font-family: 'Barlow Condensed', sans-serif; font-size: .85rem; color: var(--gris2); }
.pc-tot { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--azul); opacity: .3; }

/* ── SCROLL CUE (page 1 only) ── */
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none; transition: opacity .4s;
}
.scroll-cue .sc-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: .7rem;
  letter-spacing: 3px; text-transform: uppercase; color: rgba(0,27,94,.4);
}
.sc-chevrons { display: flex; flex-direction: column; align-items: center; gap: -2px; }
.sc-chevrons i {
  color: var(--rojo); font-size: .7rem;
  animation: chev 1.4s ease-in-out infinite;
}
.sc-chevrons i:nth-child(2) { animation-delay: .18s; opacity: .6; }
.sc-chevrons i:nth-child(3) { animation-delay: .36s; opacity: .35; }
@keyframes chev {
  0%,100% { transform: translateY(0); opacity: .9; }
  50%    { transform: translateY(4px); opacity: .3; }
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
#footer {
  background: linear-gradient(to bottom, var(--azul) 0%, #001840 100%);
  border-top: 6px solid var(--rojo);
  padding: 65px 6% 35px;
  position: relative;
  z-index: 100;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
}
.foot-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 40px;
  margin-bottom: 36px;
}
.foot-info {
  flex: 1;
  max-width: 600px;
}
.foot-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.foot-logo-large {
  height: 110px;
  width: auto;
  object-fit: contain;
}
.foot-brand-logo {
  height: 100px;
  width: auto;
  display: block;
  margin: 0;
}
.foot-info .fn-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rojo);
  font-weight: 700;
  display: block;
  margin-bottom: 18px;
}
.foot-info p {
  font-size: 1.4rem;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  max-width: 380px;
  font-family: 'Barlow Condensed', sans-serif;
  margin: 0;
}
.foot-soc {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 18px;
}
.foot-soc a {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all .2s;
}
.foot-soc a:hover { background: var(--rojo); color: #fff; border-color: var(--rojo); }
.foot-btm {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 8px;
}
.hb { color: var(--rojo); display:inline-block; animation: hbeat 1.4s ease-in-out infinite; }
@keyframes hbeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.35)} }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  #side-dots { display: none; }
  .page-counter { display: none; }
  .flyer-wrap { height: auto; max-height: calc(100svh - 72px); width: 92vw; }
  .flyer-wrap img { width: 100%; height: auto; max-height: calc(100svh - 80px); }
  .flyer-wrap.wide img { width: 100%; height: auto; }
  .foot-row { flex-direction: column; text-align: center; gap: 30px; }
  .foot-logos { justify-content: center; }
  .foot-soc { justify-content: center; }
  .foot-btm { flex-direction: column; text-align: center; }
  .page-track { height: 160vh; }
  .page-track:first-child { height: 110vh; }
}

@media (max-width: 480px) {
  #nav { padding: 0 4%; }
  .cap-num { font-size: .65rem; }
  .cap-txt { font-size: .65rem; letter-spacing: 1px; }
}
