/* =====================================================
   LA VIKINGA — Design System
   ===================================================== */

/* ===== FUENTES LOCALES ===== */
@font-face {
  font-family: "MachPro";
  src: url("fonts/MachPro-CondBold.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/Futura-Medium.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura";
  src: url("fonts/Futura-MediumItalic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "FuturaCondensed";
  src: url("fonts/Futura-MediumCondensed.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── MARCA LA VIKINGA ──────────────────────────────────
     Azul primario : #0A2240
     Amarillo      : #F2D16B
     Negro         : #000000
     Bordo (ref)   : #690F0F
     Fucsia (ref)  : #E7004C
  ──────────────────────────────────────────────────── */

  /* Escala de azules derivada del primario #0A2240 */
  --navy-950: #061627;   /* fondo más oscuro */
  --navy-900: #0A2240;   /* azul de marca — fondo principal */
  --navy-800: #0D2B54;   /* tarjetas / módulos */
  --navy-700: #13386E;   /* hover / acento */
  --navy-600: #1A4590;   /* acento suave */
  --navy-line: rgba(255, 255, 255, 0.08);
  --navy-line-strong: rgba(255, 255, 255, 0.16);

  /* Amarillo de marca */
  --yellow: #F2D16B;
  --yellow-bright: #F7E090;   /* versión clara */
  --yellow-deep: #C4A53D;     /* versión oscura */

  /* Blancos y cremas */
  --cream: #F4EDE0;
  --cream-soft: #FAF5EC;
  --paper: #FBF7EE;

  /* Referencia (no usar todavía) */
  --bordo: #690F0F;
  --fucsia: #E7004C;

  /* Neutros */
  --rose: #d77a6e;
  --rose-soft: #e8b8af;

  --ink: #000000;            /* negro de marca */
  --ink-soft: #0A2240;       /* azul de marca como "negro suave" */
  --muted: #6b7591;
  --muted-on-dark: rgba(244, 237, 224, 0.62);

  /* type */
  --display: "MachPro", "Arial Black", system-ui, sans-serif;
  --body: "Futura", "Century Gothic", system-ui, sans-serif;
  --mono: "FuturaCondensed", "Futura", "Century Gothic", system-ui, sans-serif;

  /* radii — flat with subtle softness, sport feel */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* shadows */
  --shadow-soft: 0 1px 2px rgba(10, 34, 64, 0.06), 0 8px 24px -12px rgba(10, 34, 64, 0.18);
  --shadow-lift: 0 2px 6px rgba(10, 34, 64, 0.08), 0 22px 40px -18px rgba(10, 34, 64, 0.4);
  --shadow-yellow: 0 14px 30px -14px rgba(242, 209, 107, 0.55);

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy-950);
  color: var(--cream);
  font-family: var(--body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

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

/* ===== TYPE SCALE ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--yellow);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.dark { color: var(--ink); }
.eyebrow.dark::before { background: var(--ink); }

.h-display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: condensed;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(56px, 8.5vw, 132px);
  text-transform: uppercase;
  margin: 0;
}

.h-section {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  font-size: clamp(40px, 5.4vw, 78px);
  text-transform: uppercase;
  margin: 0;
}

.h-card {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  font-size: clamp(22px, 2vw, 28px);
  text-transform: uppercase;
  margin: 0;
}

.body-lead {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted-on-dark);
  max-width: 56ch;
}

.body-base {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--muted-on-dark);
}

.text-yellow { color: var(--yellow) !important; }
.text-cream { color: var(--cream) !important; }
.text-ink { color: var(--ink) !important; }

/* ===== CONTAINERS ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 140px) 0;
}
.section--tight { padding: clamp(48px, 6vw, 90px) 0; }

.bg-navy { background: var(--navy-950); color: var(--cream); }
.bg-navy-2 { background: var(--navy-900); color: var(--cream); }
.bg-paper { background: var(--paper); color: var(--ink); }
.bg-cream { background: var(--cream); color: var(--ink); }

/* ===== BUTTONS ===== */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--ink);
  --btn-bd: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-pill);
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 200ms ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-yellow);
}
.btn .arrow {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-size: 11px;
  transition: transform 180ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: rgba(244, 237, 224, 0.32);
}
.btn--ghost:hover {
  --btn-bg: rgba(244, 237, 224, 0.06);
  --btn-bd: var(--cream);
  box-shadow: none;
}
.btn--ghost .arrow { background: var(--cream); color: var(--navy-900); }

.btn--ghost-dark {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: rgba(7, 17, 42, 0.18);
}
.btn--ghost-dark:hover {
  --btn-bg: rgba(7, 17, 42, 0.04);
  --btn-bd: var(--ink);
  box-shadow: none;
}
.btn--ghost-dark .arrow { background: var(--ink); color: var(--yellow); }

.btn--lg { padding: 20px 32px; font-size: 15px; }
.btn--block { width: 100%; justify-content: center; }

/* ===== UTILITIES ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.tag--yellow { background: var(--yellow); color: var(--ink); }
.tag--ghost { background: transparent; color: var(--cream); border: 1px solid var(--navy-line-strong); }
.tag--rose { background: var(--rose); color: var(--paper); }

.divider-line {
  height: 1px;
  background: var(--navy-line);
  width: 100%;
}
.bg-paper .divider-line { background: rgba(7, 17, 42, 0.1); }

/* placeholder image */
.placeholder {
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(244, 237, 224, 0.03) 0px,
      rgba(244, 237, 224, 0.03) 12px,
      rgba(244, 237, 224, 0.06) 12px,
      rgba(244, 237, 224, 0.06) 24px
    ),
    var(--navy-800);
  border: 1px solid var(--navy-line-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 237, 224, 0.55);
  border-radius: var(--r-md);
}
.placeholder.on-paper {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(7, 17, 42, 0.04) 0px,
      rgba(7, 17, 42, 0.04) 12px,
      rgba(7, 17, 42, 0.08) 12px,
      rgba(7, 17, 42, 0.08) 24px
    ),
    #ece4d3;
  color: rgba(7, 17, 42, 0.5);
  border-color: rgba(7, 17, 42, 0.1);
}
.placeholder .ph-label {
  background: var(--ink);
  color: var(--yellow);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}
.placeholder.on-paper .ph-label { background: var(--ink); color: var(--paper); }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(7, 17, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 16px;
  color: var(--ink);
  font-weight: 800;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 237, 224, 0.78);
  transition: color 160ms ease;
  position: relative;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--yellow);
  transition: width 200ms ease;
}
.nav-links a:hover::after { width: 100%; }

/* ===== STAGGERED REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO BASE ===== */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 96px) 0 clamp(60px, 7vw, 120px);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(244, 237, 224, 0.04) 1px, transparent 1px);
  background-size: 8.33% 100%;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* ===== MARQUEE ===== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--navy-line);
  background: var(--navy-900);
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  padding: 22px 0;
  width: max-content;
}
.marquee-item {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 24px;
}
.marquee-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

/* ===== MISC ===== */
.kbd-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--navy-line-strong);
  border-radius: var(--r-xs);
  color: var(--muted-on-dark);
}

::selection { background: var(--yellow); color: var(--ink); }

/* ===== ACCESIBILIDAD — focus visible ===== */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Skip link para usuarios de teclado */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 200;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 16px;
}

/* Honra "prefers-reduced-motion" para usuarios con sensibilidad al movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee-track { animation: none !important; }
}

/* placeholders pendientes de rellenar ([PRECIO], [FECHA], etc.) */
[data-placeholder] {
  font-style: italic;
  opacity: 0.72;
  letter-spacing: 0.04em;
}

/* ===== WHATSAPP FAB ===== */
.wa-fab {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.wa-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55), 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== NAV DESKTOP ACTIONS ===== */
.nav-desktop-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
  position: relative;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1), opacity 240ms ease;
  transform-origin: center;
}
.hamburger--open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger--open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger--open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: 96px var(--gutter) 52px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 340ms ease, transform 380ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s ease 380ms;
  pointer-events: none;
}
.mobile-menu--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 340ms ease, transform 380ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
  pointer-events: all;
}
.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav-links li {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 360ms ease calc(var(--i, 0) * 55ms + 80ms),
    transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 55ms + 80ms);
}
.mobile-menu--open .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-links a {
  display: block;
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 56px);
  text-transform: uppercase;
  color: var(--cream);
  padding: 10px 0;
  border-bottom: 1px solid var(--navy-line);
  line-height: 1.1;
  transition: color 180ms ease;
}
.mobile-nav-links a:hover { color: var(--yellow); }
.mobile-nav-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 360ms ease 420ms, transform 380ms ease 420ms;
}
.mobile-menu--open .mobile-nav-actions {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LAYOUT CLASSES (responsive-aware) ===== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* ===== BREAKPOINTS ===== */
/* Hero editorial: full-height sólo en desktop */
.hero-editorial { min-height: calc(100vh - 72px); }

@media (max-width: 880px) {
  .nav-links          { display: none; }
  .nav-desktop-actions{ display: none; }
  .hamburger          { display: flex; }

  /* Logo: altura más cómoda + respiro lateral */
  .nav-logo img       { height: 30px; }
  .nav-logo           { padding-left: 4px; }

  /* Hamburguesa: más respiro en el lado derecho */
  .hamburger          { margin-right: 4px; }

  /* Hero: sin min-height + padding reducido en mobile */
  .hero-editorial     { min-height: 0; padding-top: clamp(20px, 5vw, 40px) !important; padding-bottom: clamp(28px, 5vw, 44px) !important; }
}

@media (max-width: 768px) {
  /* Hero editorial */
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-col { display: none; }

  /* Hero magazine triple row */
  .hero-mag-row {
    grid-template-columns: 1fr !important;
    text-align: left;
  }
  .hero-mag-row p { display: none; }

  /* Hero poster */
  .hero-poster-grid { grid-template-columns: 1fr !important; }
  .hero-poster-img  { display: none; }

  /* Bio */
  .bio-grid { grid-template-columns: 1fr; }
  .bio-image-col { display: none; }

  /* Pricing: no translateY on featured */
  .pricing-card--featured { transform: none !important; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }

  /* Tighten section spacing */
  .section       { padding: clamp(48px, 8vw, 72px) 0; }
  .section--tight{ padding: clamp(32px, 6vw, 52px) 0; }

  /* Objeciones: full width on very small */
  .objecion-item { flex: 0 0 100% !important; min-width: 0 !important; }
}
