/* ============================================================================
   Kippis · Base
   ----------------------------------------------------------------------------
   Reset, tipografía, contenedor y los componentes compartidos por TODAS las
   páginas: navegación, botones, footer, avisos legales de pie.

   Todo lo que aparece más de una vez vive acá. Lo específico de una página va
   en landing.css o page.css.
   ========================================================================== */

/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

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

/* Respeta a quien pidió menos movimiento en el sistema operativo. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 238, 140, 0.22), transparent 28%),
    radial-gradient(circle at 15% 95%, rgba(198, 106, 74, 0.12), transparent 32%),
    var(--color-background);
  color: var(--color-text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

/* Foco visible y consistente. La landing original no lo definía. */
:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Salto al contenido para lectores de pantalla y navegación por teclado. */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--color-bordo);
  color: var(--color-background);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

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

/* ── Contenedor ────────────────────────────────────────────────────────────── */

.page {
  width: min(var(--width-page), calc(100% - 48px));
  margin: 0 auto;
}

/* ── Marca ─────────────────────────────────────────────────────────────────── */

.logo {
  color: var(--color-olive);
  font-family: var(--font-logo);
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  text-decoration: none;
}

/* El punto coral de la marca. Se usa en el logo, el hero y el footer. */
.logo__dot {
  color: var(--color-coral);
}

/* ── Navegación ────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav__link {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--color-text);
}

/* Página actual dentro de la navegación de páginas internas. */
.nav__link[aria-current="page"] {
  color: var(--color-olive);
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ── Botones ───────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--primary {
  background: var(--color-bordo);
  color: var(--color-background);
  box-shadow: 0 12px 28px rgba(90, 16, 42, 0.18);
}

.button--primary:hover:not(:disabled) {
  box-shadow: 0 16px 34px rgba(90, 16, 42, 0.24);
}

.button--yellow {
  background: var(--color-yellow);
  color: var(--color-bordo);
}

.button--olive {
  background: var(--color-olive);
  color: var(--color-background);
  box-shadow: 0 12px 28px rgba(101, 114, 75, 0.18);
}

.button--ghost {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--color-olive);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Botón secundario con borde, para acciones no destructivas de las páginas
   internas (volver, cancelar). */
.button--outline {
  background: transparent;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-line);
}

.button--outline:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--color-muted);
}

.button--block {
  width: 100%;
}

/* ── Estado "próximamente" ─────────────────────────────────────────────────── */
/* Tiene la forma de un botón pero NO es interactivo: mientras las apps no estén
   publicadas no puede haber un enlace que prometa una descarga inexistente. */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--color-surface);
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.status-pill::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--color-coral);
  border-radius: 50%;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.footer {
  padding: 34px 0 28px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 12px;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  color: var(--color-olive);
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.footer__links a {
  color: var(--color-muted);
  font-weight: 600;
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--color-line);
}

/* Aviso legal de consumo responsable. Obligatorio por identidad de la marca y
   por tratarse de un servicio vinculado a bebidas alcohólicas. */
.footer__legal-notice {
  max-width: 640px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer__legal-notice strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 820px) {
  .page {
    width: min(100% - 32px, var(--width-page));
  }

  .footer__top {
    flex-direction: column;
    gap: 18px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 28px, var(--width-page));
  }

  .button {
    width: 100%;
  }

  .status-pill {
    width: 100%;
  }
}
