/* ==========================================================================
   Good Boy Centro Canino · Base & Tokens (Brand Manual Oficial)
   Violeta #4F2661 · Crema #FDE5AF · Tinta #17121C · Marfil #FBF6EC
   ========================================================================== */

:root {
  --ink: #17121c;
  --violet: #4f2661;
  --cream: #fde5af;
  --ivory: #fbf6ec;
  --plum: #3a1848;
  --amethyst: #7a4e96;
  --lilac: #f6f0f8;
  --honey: #e4c27a;
  --forest: #2c5e45;
  --clay: #9c4a3c;
  --mist: #6b6274;
  --line: #e6dcc8;
  --paper: #fffcf7;
  --shadow: 0 12px 36px rgba(23, 18, 28, 0.08);
  --shadow-lg: 0 20px 48px rgba(79, 38, 97, 0.16);

  --font-serif: "Bodoni Moda", Palatino, Georgia, serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-disp: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--ivory);
}
body {
  background-color: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Capas de Contenido Principales (Aseguran que el video quede 100% detrás) */
main {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Tipografía */
.kicker {
  font-family: var(--font-disp);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.kicker.light { color: var(--honey); }
.kicker.forest { color: var(--forest); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.05;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.lede {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: var(--plum);
  max-width: 48ch;
  line-height: 1.5;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--violet);
  color: var(--cream);
  font-family: var(--font-disp);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(79, 38, 97, 0.25);
  transition: all 0.25s ease;
}
.btn:hover { background-color: var(--plum); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn.btn-cream { background-color: var(--cream); color: var(--ink); }
.btn.btn-cream:hover { background-color: #f7d896; }

.btn.btn-line {
  background: transparent;
  color: var(--violet);
  border: 1.5px solid var(--violet);
  box-shadow: none;
}
.btn.btn-line:hover { background: var(--lilac); color: var(--plum); }

.btn.btn-wa {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}
.btn.btn-wa:hover { background-color: #20ba59; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-lockup { display: flex; align-items: center; gap: 0.8rem; }
.brand-logo-img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1; color: var(--violet); }
.brand-claim { font-family: var(--font-disp); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--mist); }
.top-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.95rem; font-weight: 500; }
.top-nav a:hover { color: var(--violet); }
.top-actions { display: flex; align-items: center; gap: 0.8rem; }

/* Progreso & Timeline */
.story-scroll-progress {
  position: fixed;
  top: 61px;
  left: 0;
  height: 4px;
  background: var(--violet);
  width: 0%;
  z-index: 101;
  transition: width 0.1s linear;
}
.story-timeline-rail {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 90;
}
.rail-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--paper);
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}
.rail-dot span {
  position: absolute;
  right: 22px;
  top: -6px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.75rem;
  font-family: var(--font-sans);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: all 0.25s ease;
}
.rail-dot:hover span, .rail-dot.active span { opacity: 1; transform: translateX(0); }
.rail-dot.active { background: var(--violet); transform: scale(1.35); }

/* Secciones & Hero */
.story-section { padding: 5.5rem 6vw; position: relative; }
.story-section.tint-cream { background-color: var(--cream); color: var(--ink); }
.story-section.tint-dark { background-color: var(--ink); color: var(--cream); }
.story-section.tint-dark h1, .story-section.tint-dark h2, .story-section.tint-dark h3 { color: var(--cream); }
.story-section.tint-lilac { background-color: var(--lilac); }
.story-section.tint-violet { background-color: var(--violet); color: var(--cream); }
.story-section.tint-violet h2, .story-section.tint-violet h3 { color: var(--cream); }

.hero-story {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 3rem 6vw 5rem;
}
.hero-copy { max-width: 580px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lilac);
  border: 1px solid var(--line);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--plum);
  margin-bottom: 1.2rem;
}

/* Footer & Reveal */
footer {
  background-color: var(--ink);
  color: var(--cream);
  padding: 4.5rem 6vw 2.5rem;
  border-top: 1px solid rgba(228, 194, 122, 0.2);
  position: relative;
  z-index: 20;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-logo { font-family: var(--font-serif); font-size: 2rem; color: var(--cream); margin-bottom: 0.5rem; }
.footer-col h4 {
  font-family: var(--font-disp);
  color: var(--honey);
  letter-spacing: 0.14em;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.95rem; }
.footer-links a:hover { color: var(--honey); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--mist);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
