/* =============================================================
   España — HUB / Landing (split-screen entry)
   Self-contained stylesheet
   ============================================================= */
:root {
  --ink: #0A0A0F;
  --cream: #F1F1F6;
  --ent: #4F6BFF;     /* entertainment electric blue */
  --urb: #1E3A5F;     /* urbanismo navy */
  --amber: #C26A1E;
  --concrete: #F2F1EC;
  --serif: "Playfair Display", Georgia, serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--cream); background: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--ent); outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: #fff; color: #000; z-index: 9999; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Top bar */
.hub-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.6rem);
  pointer-events: none;
}
.brand-logo { width: auto; display: block; }
.hub-top .brand-logo { height: 30px; pointer-events: auto;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.5)); }
.hub-tagline {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.85); text-shadow: 0 2px 10px rgba(0,0,0,.6);
  display: none;
}

/* Splash */
.splash { position: fixed; inset: 0; z-index: 9000; background: var(--ink); display: grid; place-items: center;
  transition: opacity .7s ease, clip-path .9s var(--ease-out); animation: splashSafety .01s 4s forwards; }
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash .brand-logo { height: 56px; color: #fff; opacity: 0; animation: splashIn 1s var(--ease-out) .2s forwards; }
@keyframes splashIn { from { opacity: 0; transform: translateY(12px); filter: blur(6px);} to { opacity:1; transform:none; filter:blur(0);} }

/* Split */
.hub-split {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
}
.hub-half {
  position: relative; flex: 1; overflow: hidden;
  display: flex; align-items: center;
  min-height: 50vh; min-height: 50svh;
  transition: flex .6s var(--ease-out);
  isolation: isolate;
}
.hub-half-bg { position: absolute; inset: 0; z-index: 0; }
.hub-half-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.hub-half-tint { position: absolute; inset: 0; z-index: 1; }

.hub-half--ent .hub-half-bg img { filter: brightness(.5) saturate(1.1); }
.hub-half--ent .hub-half-tint {
  background: linear-gradient(120deg, rgba(10,10,18,.9) 0%, rgba(10,12,30,.55) 60%, rgba(79,107,255,.25) 100%);
}
.hub-half--urb { background: var(--concrete); }
.hub-half--urb .hub-half-bg img { filter: brightness(.97) saturate(1) contrast(1.02); }
.hub-half--urb .hub-half-tint {
  background: linear-gradient(112deg, rgba(243,241,234,.93) 0%, rgba(243,241,234,.66) 46%, rgba(243,241,234,.22) 100%);
}

.hub-half-inner {
  position: relative; z-index: 2;
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.6rem, 6vw, 5rem);
  width: 100%; max-width: 680px; margin-inline: auto;
}
.hub-num { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; }
.hub-half--ent .hub-num { color: var(--ent); }
.hub-half--urb .hub-num { color: #B0883E; }

.hub-half h2 {
  font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: .98; letter-spacing: -0.03em;
  margin: .8rem 0 .9rem; font-weight: 700;
}
.hub-half--ent h2 { font-family: var(--serif); color: #fff; font-weight: 600; }
.hub-half--ent h2 em { font-style: italic; color: var(--ent); }
.hub-half--urb h2 { font-family: var(--display); color: var(--ink); }
.hub-half--urb h2 em { font-style: normal; color: var(--urb); }

.hub-half p {
  max-width: 38ch; font-size: 1.02rem; line-height: 1.6;
}
.hub-half--ent p { color: rgba(241,241,246,.82); }
.hub-half--urb p { color: #3A3E47; }

.hub-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.7rem; }
.hub-meta span {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  padding: .35rem .75rem; border-radius: 100px; border: 1px solid;
}
.hub-half--ent .hub-meta span { color: rgba(241,241,246,.85); border-color: rgba(255,255,255,.25); }
.hub-half--urb .hub-meta span { color: var(--urb); border-color: rgba(30,58,95,.3); }

.hub-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  transition: gap .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s;
}
.hub-half--ent .hub-cta { background: var(--ent); color: #fff; box-shadow: 0 10px 30px -12px rgba(79,107,255,.7); }
.hub-half--urb .hub-cta { background: var(--urb); color: #E6C375; border-radius: 3px; font-weight: 700; }

/* Per-half corner logos */
.hub-half-logo { position: absolute; top: clamp(1.2rem, 3.2vw, 2.1rem); z-index: 6; pointer-events: none; }
.hub-half--ent .hub-half-logo { left: clamp(1.4rem, 5vw, 4rem); }
.hub-half--urb .hub-half-logo { right: clamp(1.4rem, 5vw, 4rem); }
.hub-logo-ent { height: 44px; width: auto; display: block; filter: drop-shadow(0 2px 9px rgba(0,0,0,.55)); }
.hub-logo-bus { height: 44px; width: auto; display: block; filter: drop-shadow(0 2px 5px rgba(10,20,40,.32)); }
@media (max-width: 879px) {
  .hub-logo-ent { height: 30px; }
  .hub-logo-bus { height: 30px; }
}
.hub-half:hover .hub-cta { gap: 1.1rem; transform: translateY(-2px); }
.hub-half:hover .hub-half-bg img { transform: scale(1.06); }
.hub-half--ent:hover .hub-half-bg img { filter: brightness(.62) saturate(1.2); }

/* Center divider badge (desktop) */
.hub-seam {
  display: none;
  position: absolute; top: 50%; left: 50%; z-index: 5;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: #4163AD; color: #fff;
  align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem; letter-spacing: .02em;
  box-shadow: 0 10px 40px rgba(20,40,90,.55); border: 1px solid rgba(255,255,255,.28);
}

/* Manifesto band */
.manifesto { background: var(--ink); padding: clamp(4rem,9vw,7rem) clamp(1.4rem,5vw,3rem); text-align: center; }
.manifesto-kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ent); }
.manifesto h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.15; max-width: 18ch; margin: 1.2rem auto 0; letter-spacing: -0.02em;
}
.manifesto h2 .b { color: var(--ent); font-style: italic; }
.manifesto h2 .u { color: #7FA0D8; font-style: italic; }
.manifesto p { color: rgba(241,241,246,.7); max-width: 56ch; margin: 1.6rem auto 0; }

/* Footer */
.hub-footer {
  background: #060609; border-top: 1px solid rgba(255,255,255,.08);
  padding: 2.4rem clamp(1.4rem,5vw,3rem) 1.6rem; text-align: center;
}
.hub-footer .brand-logo { height: 28px; color: #fff; margin: 0 auto 1rem; }
.hub-footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; margin-bottom: 1.4rem; }
.hub-footer-links a { color: rgba(241,241,246,.75); font-size: .92rem; transition: color .3s; }
.hub-footer-links a:hover { color: var(--ent); }
.hub-footer-meta { font-family: var(--mono); font-size: .74rem; color: rgba(241,241,246,.45); }

/* Responsive */
@media (min-width: 880px) {
  .hub-tagline { display: block; }
  .hub-split { flex-direction: row; height: 100vh; height: 100svh; }
  .hub-half { min-height: 100vh; min-height: 100svh; }
  .hub-half--ent .hub-half-inner { margin-left: auto; margin-right: 0; }
  .hub-half--urb .hub-half-inner { margin-right: auto; margin-left: 0; }
  .hub-split:hover .hub-half { flex: .85; }
  .hub-split:hover .hub-half:hover { flex: 1.3; }
  .hub-seam { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-half, .hub-split:hover .hub-half, .hub-split:hover .hub-half:hover { transition: none; }
  .splash { animation: none; }
}
