/* ==========================================================================
   BubaSoft — estilos del sitio
   ========================================================================== */

/* Fuentes autoalojadas (subconjunto latino, variables). Licencia: assets/fonts/LICENSE-OFL.txt */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  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: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-tight-latin.woff2') format('woff2');
  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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  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;
}

:root {
  --ink: #0B0B0C;
  --white: #FFFFFF;
  --paper: #F1F1EF;
  --panel: #131315;
  --line-dark: #2E2E32;
  --line-light: #D4D4D2;
  --text-2: #3A3A3F;
  --text-3: #5A5A5F;
  --muted-dark: #A8A8AD;
  --soft-dark: #C9C9CE;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(56px, 8vw, 120px);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
a { color: var(--ink); }
a:hover { color: var(--text-3); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}
svg { flex: none; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--white); color: var(--ink); padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

.mono { font-family: var(--font-mono); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Botones ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.btn--light { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--outline-light { color: var(--white); border: 1px solid var(--white); }
.btn--sm { min-height: 44px; padding: 10px 18px; gap: 10px; }
.btn--light:hover { background: #E4E4E2; color: var(--ink); }
.btn--dark:hover { background: #2A2A2E; color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }

/* Zona oscura (cabecera + hero) ---------------------------------------- */
.dark { background: var(--ink); color: var(--white); }

.site-header { border-bottom: 1px solid var(--line-dark); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand__logo { display: block; height: 34px; width: auto; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  font-size: 15px;
}
.main-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--white);
  text-decoration: none;
}
.main-nav__link:hover { color: var(--muted-dark); }
.main-nav .btn { margin-left: 8px; }

/* Language dropdown */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--muted-dark); }
.lang-menu summary svg { transition: transform .15s ease; }
.lang-menu[open] summary svg { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 168px;
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  background: var(--ink);
  border: 1px solid var(--line-dark);
}
.lang-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--white);
  text-decoration: none;
}
.lang-menu__list--flip { left: auto; right: 0; }
.lang-menu__list a:hover { background: #1A1A1D; color: var(--white); }
.lang-menu__list a[aria-current="page"] { font-weight: 500; }

.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 88px);
  padding-top: clamp(56px, 9vw, 136px);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 8.6vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 1200px;
}
.hero__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}
.hero__lead {
  flex: 1 1 380px;
  max-width: 600px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--soft-dark);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero cards: Made by / Licensed through */
.tiers {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-dark);
  border-bottom: 0;
  background: var(--panel);
}
.tier {
  flex: 1 1 320px;
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier + .tier { border-left: 1px solid var(--line-dark); }
.tier__key { font-family: var(--font-mono); font-size: 14px; color: var(--muted-dark); }
.tier__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.tier p { color: var(--soft-dark); max-width: 460px; }

/* Secciones ---------------------------------------------------------------- */
.section { border-bottom: 1px solid var(--ink); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--white); border-bottom: 0; }

.section__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.section__label {
  flex: 1 1 200px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section__num { font-family: var(--font-mono); font-size: 15px; color: var(--text-3); }
.section--dark .section__num { color: var(--muted-dark); }
.section__name { font-weight: 500; }
.section__content {
  flex: 4 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 56px);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 900px;
}

.lead { font-size: 18px; color: var(--text-2); }
.note { font-size: 14px; color: var(--text-3); }

/* 01 SoftShop */
.catalog { border-top: 1px solid var(--ink); }
.catalog__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
  text-decoration: none;
}
.catalog__item:hover { color: var(--ink); background: var(--paper); }
.catalog__name {
  flex: 2 1 300px;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.catalog__desc { flex: 3 1 300px; min-width: 0; color: var(--text-2); }
.catalog__meta { flex: 0 0 auto; font-family: var(--font-mono); font-size: 14px; }
.catalog__item svg { transition: transform .2s ease; }
.catalog__item:hover svg { transform: translateX(4px); }

/* 02 Who it is for */
.cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}

/* 03 How it works */
.steps {
  flex: 4 1 520px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}
.steps li, .cards li {
  flex: 1 1 220px;
  min-width: 0;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.steps h3, .cards h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.steps p, .cards p { color: var(--text-2); }

/* 04 Zeenko */
.compare { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line-dark); }
.compare__col {
  flex: 1 1 300px;
  min-width: 0;
  padding: 28px 32px 28px 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare__col h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.compare__col p { color: var(--soft-dark); }
.section--dark .btn { align-self: flex-start; }

/* Contacto */
.contact {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.contact__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 64px;
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}
.contact__row .lead { flex: 1 1 380px; max-width: 560px; }

/* Pie */
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 15px;
  color: var(--text-2);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
