:root {
  --sand: #cfc6b0;
  --ink: #f6efe1;
  --taupe: 125 114 98;
  --gutter: 40px;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
}
html { background: var(--sand); }
body { position: relative; isolation: isolate; }

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

/* Vídeo de fondo */
.bg {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  object-fit: cover;
  object-position: 50% 50%;
  background: var(--sand);
  z-index: -2;
}

/* Degradado sutil inferior para dar contraste al texto */
.shade {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgb(60 52 38 / .30) 0%, rgb(60 52 38 / .10) 26%, transparent 48%);
}

.stage {
  position: relative;
  height: 100vh; height: 100dvh;
  padding: 0 var(--gutter) var(--gutter);
  padding-bottom: max(var(--gutter), env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: flex-end;
}

/* Frase + botón */
.message {
  position: absolute;
  left: 0; right: 0; top: 71%;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 var(--gutter);
  text-align: center;
}

.lead {
  margin: 0 0 clamp(12px, 1.6vw, 22px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.05rem + 0.9vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: .005em;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgb(60 52 38 / .35);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 0 clamp(18px, 2vw, 28px);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(.68rem, .62rem + .22vw, .8rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
  background: rgb(var(--taupe) / .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s ease;
}
.btn:hover { background: rgb(var(--taupe) / .9); }
.btn:focus-visible, .brands:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgb(60 52 38 / .55);
}

/* Pie */
.foot {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
}

.brands { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 20px); }
.brands img { display: block; height: auto; }
.logo-gaia { width: clamp(96px, 9.5vw, 140px); }
.logo-brula { width: clamp(84px, 8vw, 120px); }
.rule { width: clamp(28px, 2.6vw, 40px); height: 1px; background: rgb(246 239 225 / .8); flex: none; }

.marks { display: flex; align-items: center; gap: 12px; }
.marks img { display: block; width: clamp(22px, 2.2vw, 30px); height: auto; }

/* Tablet vertical */
@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .message { top: 66%; }
}

/* Móvil: frase sobre el logo del vídeo, botón abajo, logos en una línea */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .message { top: 0; bottom: 0; display: block; padding: 0; }
  .lead {
    position: absolute; left: var(--gutter); right: var(--gutter);
    bottom: 66%; margin: 0;
    max-width: none;
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }
  .btn {
    position: absolute; left: 50%; top: 66%; transform: translateX(-50%);
    width: calc(100% - 2 * var(--gutter)); max-width: 320px; padding: 10px 16px;
  }
  .foot { flex-direction: row; align-items: flex-end; gap: 12px; }
  .brands { flex-direction: row; align-items: center; gap: 10px; }
  .logo-gaia { width: 84px; } .logo-brula { width: 74px; }
  .rule { width: 20px; }
  .marks { gap: 8px; }
  .marks img { width: 20px; }
}

/* Móvil horizontal: poca altura */
@media (max-height: 480px) and (orientation: landscape) {
  :root { --gutter: 20px; }
  .message { top: 62%; }
  .lead { font-size: clamp(.95rem, 2.2vw, 1.15rem); max-width: none; margin-bottom: 8px; }
  .btn { width: auto; max-width: none; min-height: 44px; }
  .foot { flex-direction: row; align-items: flex-end; }
  .brands { flex-direction: row; align-items: center; }
  .logo-gaia { width: 84px; } .logo-brula { width: 76px; }
  .marks { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
