/* ============================================================
   Bar Boo — Crowdfunding Landing
   style.css — V1 Editorial design system
   ============================================================ */

/* Font loading */
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700;800&display=swap");
@font-face {
  font-family: "Funnel Display";
  src: url("./fonts/FunnelDisplay-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --cm-black: #0E0B08;
  --cm-ink: #1A1613;
  --cm-white: #FFFFFF;
  --cm-paper: #FAFAF7;
  --cm-n-900: #0E0B08;
  --cm-n-800: #1A1613;
  --cm-n-700: #2B2622;
  --cm-n-600: #4A433D;
  --cm-n-500: #6F675F;
  --cm-n-400: #9A938B;
  --cm-n-300: #C5BFB8;
  --cm-n-200: #E4E0DB;
  --cm-n-150: #ECE9E4;
  --cm-n-100: #F2EFEA;
  --cm-n-50: #F8F6F2;

  --fg-1: var(--cm-black);
  --fg-2: var(--cm-n-700);
  --fg-3: var(--cm-n-500);
  --fg-inv: var(--cm-white);
  --bg-1: var(--cm-paper);
  --bg-2: var(--cm-white);
  --bg-3: var(--cm-n-100);
  --bg-inv: var(--cm-black);

  --line-1: var(--cm-n-200);
  --line-2: var(--cm-n-300);
  --line-strong: var(--cm-black);

  --state-hover: rgba(14, 11, 8, 0.06);
  --state-press: rgba(14, 11, 8, 0.12);
  --state-hover-inv: rgba(255, 255, 255, 0.08);
  --state-press-inv: rgba(255, 255, 255, 0.16);
  --focus-ring: var(--cm-black);

  --font-display: "Funnel Display", "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Base styles
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--cm-paper);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ============================================================
   V1 Editorial — periódico cultural
   ============================================================ */
.v1-root { background: var(--cm-paper); color: var(--fg-1); font-family: var(--font-body); padding-bottom: 0; max-width: 1400px; margin-left: auto; margin-right: auto; border-left: 1px solid var(--line-1); border-right: 1px solid var(--line-1); }

/* Hero */
.v1-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding: 72px 40px 80px; border-bottom: 1px solid var(--line-1); }
.v1-kicker { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 24px; }
.v1-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 7vw, 120px); line-height: 0.88; letter-spacing: -0.04em; margin: 0 0 32px; color: var(--cm-black); }
.v1-dek { font-family: var(--font-body); font-size: 20px; line-height: 1.35; font-weight: 400; color: var(--fg-1); max-width: 46ch; margin-bottom: 48px; text-wrap: pretty; }
.v1-credits { border-top: 1px solid var(--line-1); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--fg-2); }
.v1-credits div { display: flex; align-items: baseline; gap: 16px; }
.v1-credits span { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); flex-shrink: 0; white-space: nowrap; width: 175px; }
.v1-hero-right { display: flex; flex-direction: column; gap: 12px; }
.v1-poster-frame { background: var(--cm-black); padding: 0; position: relative; box-shadow: 0 12px 32px rgba(14,11,8,0.10); overflow: hidden; }
.v1-poster-frame img { width: 100%; display: block; }
.v1-poster-cap { font-size: 12px; color: var(--fg-3); font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; text-align: right; }

/* Body / Causa */
.v1-body { padding: 96px 40px; border-bottom: 1px solid var(--line-1); }
.v1-body-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; max-width: 1080px; margin: 0 auto; }
.v1-body-eye { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); padding-top: 8px; border-top: 2px solid var(--cm-black); }
.v1-body-text p { font-size: 18px; line-height: 1.55; color: var(--fg-1); margin-bottom: 20px; text-wrap: pretty; }
.v1-body-text p:last-child { margin-bottom: 0; }
.v1-body-text strong { font-weight: 600; color: var(--cm-black); }
.v1-drop { font-family: var(--font-display); font-size: 72px; font-weight: 800; line-height: 0.85; float: left; padding: 8px 12px 0 0; color: var(--cm-black); }

/* Video */
.v1-video { padding: 48px 40px 48px; }
.v1-video-box { aspect-ratio: 16/9; background: var(--cm-black); max-width: 1080px; margin: 0 auto 16px; position: relative; overflow: hidden; }
.v1-video-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.v1-video-cap { text-align: center; font-size: 13px; color: var(--fg-3); max-width: 1080px; margin: 0 auto; }

/* Tramos / Recompensas */
.v1-tramos { padding: 96px 40px; border-bottom: 1px solid var(--line-1); }
.v1-tramos-inner { max-width: 1200px; margin: 0 auto; }
.v1-tramos-head { display: grid; grid-template-columns: 200px 1fr; gap: 48px; margin-bottom: 56px; }
.v1-tramos-h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--cm-black); margin: 0; max-width: 22ch; text-wrap: balance; }
.v1-tramos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--cm-black); border-left: 1px solid var(--cm-black); margin-bottom: 24px; }
.v1-tramo { border-right: 1px solid var(--cm-black); border-bottom: 1px solid var(--cm-black); padding: 28px 24px 32px; display: flex; flex-direction: column; background: var(--cm-paper); }
.v1-tramo-amt { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--cm-black); margin-bottom: 8px; }
.v1-tramo-name { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 20px; font-style: italic; }
.v1-tramo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.4; color: var(--fg-1); }
.v1-tramo-list li { padding-left: 14px; position: relative; }
.v1-tramo-list li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--fg-3); font-weight: 700; }
.v1-tramo-list li:first-child::before { content: "✓"; color: var(--cm-black); }

/* Tramo destacado — Conan */
.v1-tramo-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--cm-black); background: var(--cm-black); color: var(--cm-white); }
.v1-tramo-hero-img { position: relative; overflow: hidden; min-height: 480px; }
.v1-tramo-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v1-tramo-hero-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.v1-tramo-hero-eye { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.v1-tramo-hero-amt { font-family: var(--font-display); font-size: 96px; font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; color: var(--cm-white); margin-bottom: 8px; }
.v1-tramo-hero-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; font-style: italic; color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.v1-tramo-hero-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.85); }
.v1-tramo-hero-list li { padding-left: 18px; position: relative; }
.v1-tramo-hero-list li::before { content: "+"; position: absolute; left: 0; top: 0; color: rgba(255,255,255,0.4); font-weight: 700; }
.v1-tramo-hero-list li strong { color: var(--cm-white); font-weight: 600; }

/* Fund + Form — fondo claro */
.v1-fund {
  background: var(--cm-paper);
  color: var(--fg-1);
  padding: 96px 40px;
  border-top: 1px solid var(--line-1);
}
.v1-fund-head {
  display: flex; align-items: baseline; gap: 20px;
  max-width: 1080px; margin: 0 auto 32px;
  flex-wrap: wrap;
}
.v1-fund-eye {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.v1-fund-nums { flex: 1; }
.v1-raised {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cm-black);
  margin-right: 12px;
}
.v1-of {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg-3);
}
.v1-fund-pct {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 300;
  color: var(--cm-n-300);
  letter-spacing: -0.04em;
}
.v1-bar {
  position: relative;
  max-width: 1080px; margin: 0 auto 80px;
  height: 6px;
  background: var(--cm-n-200);
}
.v1-bar-fill {
  height: 100%;
  background: #3a9e5f;
  transition: width 600ms var(--ease-emphasis);
}
.v1-bar-ticks { position: absolute; top: 12px; left: 0; right: 0; height: 20px; }
.v1-tick {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--fg-3);
}
.v1-tick::before {
  content: ""; display: block;
  width: 1px; height: 6px;
  background: var(--cm-n-300);
  margin: 0 auto 4px;
}
.v1-form {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 32px;
}
.v1-form-head h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--cm-black);
}
.v1-form-sub { font-size: 14px; color: var(--fg-3); }
.v1-field { display: flex; flex-direction: column; gap: 10px; }
.v1-field label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.v1-field input, .v1-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cm-n-300);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--cm-black);
  outline: none;
  transition: border-color 200ms var(--ease-standard);
  width: 100%;
}
.v1-field input::placeholder, .v1-field textarea::placeholder { color: var(--cm-n-400); }
.v1-field input:focus, .v1-field textarea:focus { border-bottom-color: var(--cm-black); }
.v1-field textarea { resize: vertical; line-height: 1.4; }
.v1-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.v1-amt {
  background: transparent;
  border: 1px solid var(--cm-n-300);
  color: var(--cm-black);
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 200ms var(--ease-standard);
}
.v1-amt:hover { background: var(--state-hover); }
.v1-amt.is-on {
  background: var(--cm-black);
  color: var(--cm-white);
  border-color: var(--cm-black);
}
.v1-amt-custom {
  border: 1px solid var(--cm-n-300);
  padding: 0 18px;
  display: flex; align-items: center; gap: 4px;
  transition: border-color 200ms var(--ease-standard);
}
.v1-amt-custom.is-on { border-color: var(--cm-black); }
.v1-amt-custom input {
  background: transparent; border: 0;
  color: var(--cm-black);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  width: 70px;
  padding: 14px 0;
  outline: none;
  border-bottom: none !important;
}
.v1-amt-custom input::placeholder { color: var(--cm-n-400); }
.v1-amt-custom span { color: var(--fg-3); font-weight: 600; }
.v1-submit {
  background: var(--cm-black);
  color: var(--cm-white);
  border: 0;
  padding: 20px 32px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms var(--ease-standard);
  margin-top: 8px;
}
.v1-submit:hover {
  background: transparent;
  color: var(--cm-black);
  box-shadow: inset 0 0 0 1px var(--cm-black);
}
.v1-legal { font-size: 12px; color: var(--fg-3); line-height: 1.5; }

/* Bizum screen */
.v1-bizum {
  max-width: 640px; margin: 0 auto;
  text-align: center;
  padding: 40px 0;
  display: none;
}
.v1-bizum.is-visible { display: block; }
.v1-bizum-eye {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.v1-bizum-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cm-black);
  margin-bottom: 20px;
}
.v1-bizum-p { font-size: 18px; color: var(--fg-1); margin-bottom: 32px; }
.v1-bizum-p strong { color: var(--cm-black); font-weight: 600; }
.v1-bizum-phone {
  border: 1px solid var(--line-1);
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.v1-bizum-phone-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cm-black);
}
.v1-copy {
  background: var(--cm-black); color: var(--cm-white);
  border: 0; padding: 10px 18px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer;
}
.v1-bizum-concept {
  display: flex; gap: 16px; align-items: center;
  justify-content: center;
  font-size: 13px; color: var(--fg-3);
  margin-bottom: 32px;
}
.v1-bizum-concept span {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.v1-bizum-concept code {
  background: var(--cm-n-100); color: var(--cm-black);
  padding: 6px 12px; border-radius: 2px;
  font-size: 14px; font-family: var(--font-mono);
}
.v1-bizum-note { font-size: 13px; color: var(--fg-3); margin-bottom: 24px; }
.v1-bizum-note a { color: var(--cm-black); text-decoration: underline; }
.v1-back {
  background: transparent; border: 0;
  color: var(--fg-3);
  font-family: var(--font-body); font-size: 14px;
  cursor: pointer;
}

/* Footer */
.v1-foot { border-top: 1px solid var(--line-1); padding: 24px 40px; }
.v1-foot-inner { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); font-family: var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }

/* Utility */
.v1-form-hidden { display: none; }

/* ============================================================
   Responsive breakpoints
   ============================================================ */
@media (max-width: 768px) {
  .v1-hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px 60px; }
  .v1-body-grid { grid-template-columns: 1fr; gap: 24px; }
  .v1-tramos-head { grid-template-columns: 1fr; gap: 16px; }
  .v1-tramos-grid { grid-template-columns: repeat(2, 1fr); }
  .v1-tramo-hero { grid-template-columns: 1fr; }
  .v1-tramo-hero-img { min-height: 300px; }
  .v1-fund-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .v1-fund-nums { flex: none; }
  .v1-fund-pct { font-size: 40px; }
}

@media (max-width: 480px) {
  .v1-body { padding: 64px 20px; }
  .v1-video { padding: 0 20px 64px; }
  .v1-tramos { padding: 64px 20px; }
  .v1-tramos-grid { grid-template-columns: 1fr; }
  .v1-fund { padding: 64px 20px; }
  .v1-foot { padding: 20px; }
  .v1-raised { font-size: 36px; }
  .v1-fund-pct { font-size: 32px; }
}
