/* ==========================================================================
   Knut Global — landing
   Base neutra común; cada marca aporta su acento:
   - Bolon: sans grotesca (Akkurat → Inter), botones en píldora.
   - Hauka: Roboto Condensed en mayúsculas espaciadas, esquinas rectas,
            serif cursiva (Volkhov) como voz editorial.
   ========================================================================== */

/* Fuentes autoalojadas (sin peticiones a terceros) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/roboto-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Volkhov";
  src: url("../fonts/volkhov-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #111;
  --paper: #fff;
  --paper-soft: #f8f7f6;
  --line: rgba(255, 255, 255, 0.38);
  --ghost-bg: rgba(17, 17, 17, 0.28);
  --ghost-bg-hover: rgba(255, 255, 255, 0.14);

  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-condensed: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-serif: "Volkhov", Georgia, "Times New Roman", serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Imagen de fondo a pantalla completa
   -------------------------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
  animation: settle 2.4s var(--ease) both;
}

/* Velo para garantizar contraste del contenido sobre la foto */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.35) 65%, rgba(0, 0, 0, 0.75) 100%);
}

/* --------------------------------------------------------------------------
   Estructura
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}

/* Cabecera: identidad de Knut Global */
.intro {
  text-align: center;
  animation: rise 1s var(--ease) 0.2s both;
}

.wordmark {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  /* compensa el tracking final para centrar ópticamente */
  margin-right: -0.42em;
}

.tagline {
  max-width: 34rem;
  margin: 0.75rem auto 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  line-height: 1.45;
  color: var(--paper-soft);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Marcas
   -------------------------------------------------------------------------- */
.brands {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding-block: clamp(2rem, 6vh, 4rem);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 4vh, 2.75rem);
  animation: rise 1s var(--ease) both;
}

.brand--bolon {
  animation-delay: 0.4s;
}

.brand--hauka {
  animation-delay: 0.55s;
}

.brand__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.5rem;
  line-height: 0;
}

.logo-bolon {
  display: block;
  width: 14rem;
  height: auto;
  color: var(--paper);
}

.logo-hauka {
  display: block;
  width: auto;
  height: 5.5rem;
}

.divider {
  align-self: stretch;
  width: 1px;
  margin-block: 1rem;
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  animation: fade 1.2s var(--ease) 0.7s both;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.actions {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 16.5rem);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--ghost-bg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  text-decoration: none;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--paper);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.btn--solid {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--solid:hover {
  background: var(--paper-soft);
  border-color: var(--paper-soft);
}

.icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
}

/* Acento Bolon: grotesca limpia y píldora */
.brand--bolon .btn {
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Acento Hauka: condensada en mayúsculas, esquinas rectas */
.brand--hauka .btn {
  border-radius: 0;
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */
.footer {
  text-align: center;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78);
  animation: fade 1.2s var(--ease) 0.9s both;
}

.footer a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer a:hover {
  color: var(--paper);
  border-color: var(--paper);
}

.footer a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

/* Tablet / móvil: marcas apiladas */
@media (max-width: 47.99rem) {
  .brands {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2rem;
  }

  .divider {
    justify-self: center;
    width: 4rem;
    height: 1px;
    margin: 0;
    background: var(--line);
  }

  .brand__logo,
  .logo-hauka {
    height: 4.5rem;
  }

  .logo-bolon {
    width: 12rem;
  }
}

/* Móvil: los tres botones en fila, icono sobre texto, para que todo quepa en una pantalla */
@media (max-width: 35.99rem) {
  .brand {
    gap: 1.25rem;
    width: 100%;
  }

  .actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 22rem;
  }

  .btn {
    flex-direction: column;
    gap: 0.375rem;
    min-height: 4.25rem;
    padding: 0.625rem 0.25rem;
  }

  .brand--bolon .btn {
    border-radius: 1.5rem;
    font-size: 0.8125rem;
  }

  .brand--hauka .btn {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }

  .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Pantallas bajas en horizontal (móvil apaisado) */
@media (max-height: 34rem) and (orientation: landscape) {
  .brands {
    padding-block: 1.5rem;
  }

  .brand {
    gap: 1rem;
  }

  .brand__logo,
  .logo-hauka {
    height: 3.5rem;
  }

  .logo-bolon {
    width: 10rem;
  }

  .btn {
    min-height: 2.5rem;
    padding-block: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */
@keyframes settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
