/* Trobem · identidad «punto de encuentro»: la «o» es un anillo con alguien en el centro y cada acto es un billete. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #15161C;
  --text-2: #3A3C46;
  --soft: #5A5D69;
  --paper: #F2F3F5;
  --chip: #E6E7EC;
  --cut: #D3D5DC;
  --dash: #C9CBD3;
  --accent: #2B37E8;
  --hl: #FFE14D;
  --pad: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--hl); color: var(--ink); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pad); top: 12px; z-index: 10; background: #FFFFFF; padding: 8px 14px; border-radius: 8px; }

/* Logo: «tr», el anillo, «bem» */
.logo {
  display: inline-flex; align-items: center;
  font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.logo svg { flex: none; width: 0.62em; height: 0.62em; margin: 0.08em 0.03em 0; }
.ring-dot { fill: var(--accent); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #FFFFFF; }
.btn-accent:hover { background: #1F29C4; color: #FFFFFF; }
.btn-soft { background: var(--paper); color: var(--ink); }
.btn-soft:hover { background: var(--chip); color: var(--ink); }
.btn-ink { background: var(--ink); color: #FFFFFF; min-height: 44px; padding: 0 20px; }
.btn-ink:hover { background: #2C2E38; color: #FFFFFF; }
.btn-white { background: #FFFFFF; color: var(--ink); min-height: 56px; padding: 0 28px; font-weight: 700; font-size: 18px; }
.btn-white:hover { background: var(--hl); color: var(--ink); }

/* Cabecera */
.top { padding: 20px 0; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.top .logo { font-size: 30px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 16px; font-weight: 500; }
.top nav a:not(.btn) { text-decoration: none; }

/* Portada */
.hero { padding: clamp(32px, 6vw, 88px) 0 clamp(56px, 8vw, 120px); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
h1 { font-size: clamp(52px, 6.6vw, 96px); line-height: .92; font-weight: 800; font-stretch: 75%; letter-spacing: -0.02em; }
.lead { max-width: 32em; font-size: clamp(18px, 1.5vw, 21px); color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 15px; color: var(--soft); }

.panel {
  flex: 1 1 560px; min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  padding: 28px; border-radius: 28px; background: var(--paper);
}
.panel-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel-in { flex: 1 1 190px; }
.panel-out { flex: 1.5 1 280px; }
.panel-label { margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--soft); }
.slip { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 6px; background: #FFFFFF; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.slip:nth-child(2) { transform: rotate(-2deg); }
.slip:nth-child(3) { transform: rotate(1.5deg); }
.slip:nth-child(4) { transform: rotate(-1deg); }
.source { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 600; color: var(--text-2); }
.connector { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--accent); }

/* La ficha: un billete */
.ficha { display: flex; background: #FFFFFF; border-radius: 14px; }
.stub {
  flex: none; width: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 6px; border-right: 2px dashed var(--cut);
  font-size: 12px; color: var(--soft);
}
.stub b { display: block; font-size: 42px; line-height: 1; font-weight: 900; font-stretch: 62%; color: var(--accent); }
.stub .dia { font-weight: 600; }
.stub-hoy { background: var(--hl); color: var(--ink); border-radius: 14px 0 0 14px; }
.stub-hoy b { color: var(--ink); }
.ficha-body { min-width: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.ficha h3 { font-size: 17px; line-height: 1.2; font-weight: 700; }
.ficha p { font-size: 14px; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 600; }
.tags span { padding: 2px 8px; border-radius: 999px; background: var(--paper); }

/* Secciones */
.section { padding: var(--section) 0; }
.section .wrap { display: flex; flex-direction: column; gap: 48px; }
.paper { background: var(--paper); }
.dark { background: var(--ink); color: #FFFFFF; }
.yellow { background: var(--hl); color: var(--ink); }
.blue { background: var(--accent); color: #FFFFFF; }
h2 { font-size: clamp(40px, 4.6vw, 64px); line-height: .95; font-weight: 800; font-stretch: 75%; letter-spacing: -0.015em; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head-row h2 { max-width: 12em; }
.head-row p { max-width: 30em; color: var(--text-2); }

/* Cómo funciona */
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.steps li { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step-mark { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.step-mark span { flex: 1; border-top: 2px dashed var(--dash); }
.when { font-size: 14px; font-weight: 600; color: var(--accent); }
.steps h3 { font-size: 40px; line-height: 1; font-weight: 800; font-stretch: 75%; }
.steps p { color: var(--text-2); }

/* Ejemplos */
.examples { display: flex; flex-wrap: wrap; gap: 24px; }
.example { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.example img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; border-radius: 18px; background: var(--paper); }
.example-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.example h3 { font-size: 28px; line-height: 1.05; font-weight: 800; font-stretch: 80%; }
.example-meta span { font-size: 14px; font-weight: 600; color: var(--soft); }
.example p { color: var(--text-2); }
.example a { font-weight: 600; }
.example-new {
  flex: 1 1 280px; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 32px; border: 2px dashed var(--dash); border-radius: 18px;
}
.example-new div { display: flex; flex-direction: column; gap: 14px; }
.example-new .btn { align-self: flex-start; min-height: 48px; padding: 0 22px; }

/* Reglas */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.rules > div { display: flex; flex-direction: column; gap: 12px; }
.rules h3 { font-size: 26px; line-height: 1.1; font-weight: 700; font-stretch: 85%; }
.rules p { color: #D6D7DD; }
.rules .ring-dot { fill: var(--hl); }

/* El nombre */
.name .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; }
.bigname { flex: 0 0 auto; max-width: 100%; font-size: clamp(80px, 11vw, 168px); letter-spacing: -0.04em; line-height: .85; }
.name-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.name-text .say { font-size: 15px; font-weight: 600; }
.name-text .gloss { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; font-weight: 600; font-stretch: 90%; }
.name-text p { max-width: 30em; }
.name-text .who { font-size: 15px; }

/* Preguntas */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 56px; }
.faq h3 { margin-bottom: 8px; font-size: 22px; line-height: 1.2; font-weight: 700; font-stretch: 90%; }
.faq p { color: var(--text-2); }

/* Llamada final */
.cta .wrap { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta-text p { max-width: 32em; color: #E9EAFF; }

/* Pie */
.foot { padding: 40px 0 48px; font-size: 15px; }
.foot .wrap { display: flex; flex-direction: column; gap: 20px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot .logo { font-size: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot .small { font-size: 14px; color: var(--soft); }
.foot .small a { color: var(--soft); }

@media (max-width: 720px) {
  .top nav a:not(.btn) { display: none; }
  .connector { flex-basis: 100%; flex-direction: row; justify-content: center; }
  .connector svg:last-child { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
