/* Páginas institucionales de Trece: landing y errores */

:root {
  --black: #000;
  --white: #fff;
  --muted: #9a9a9a;
  --bronze: #b08a62;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

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

.brand-stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.brand-logo {
  margin: 0;
  font-size: inherit;
  color: var(--white);
  line-height: 0;
}

.brand-logo__mark { display: block; }

.brand-logo__mark svg {
  display: block;
  width: clamp(150px, 24vw, 340px);
  height: auto;
}

/* Único momento de movimiento: el logo se descubre de izquierda a derecha al cargar. */
.brand-stage:not(.brand-stage--message) .brand-logo__mark {
  animation: brand-reveal 1.6s cubic-bezier(.65, 0, .35, 1) .25s both;
}

@keyframes brand-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: .2; }
  to   { clip-path: inset(0 0 0 0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo__mark { animation: none !important; }
}

/* Páginas de mensaje (404, provisoria) */
.brand-stage--message {
  align-content: center;
  gap: 20px;
  text-align: center;
}

.brand-logo--small .brand-logo__mark svg { width: 96px; }

.brand-logo--small { margin-bottom: 28px; }

.brand-message {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
}

.brand-note {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--muted);
}

.brand-link {
  color: var(--white);
  text-underline-offset: 4px;
  text-decoration-color: var(--bronze);
}

.brand-link:hover { color: var(--bronze); }

a:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

/* Páginas legales */
.legal-page { color: #e9e6df; }
.legal-head { padding: 28px 16px 0; max-width: 760px; margin: 0 auto; }
.legal { max-width: 760px; margin: 0 auto; padding: 40px 16px 80px; line-height: 1.7; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 400; margin: 0 0 24px; color: #fff; }
.legal h2 { font-size: 1.15rem; font-weight: 600; margin: 32px 0 8px; color: #fff; }
.legal p, .legal li { color: #cfcac0; }
.legal ul { padding-left: 20px; }
