/* Privé Space · landing v5 — base: reset, tipografía, acciones, campos, paneles, reveals. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ps-font-text);
  font-weight: 300;
  font-size: var(--ps-fs-body);
  line-height: var(--ps-lh-body);
  background: var(--ps-paper);
  color: var(--ps-ink);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Nunca negritas: el contraste viene del tamaño, no del peso. */
b,
strong,
th {
  font-weight: 400;
}
h1,
h2,
h3,
h4 {
  font-weight: 300;
}
em,
i {
  font-style: italic;
  font-weight: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: var(--ps-radius);
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
ol,
ul {
  list-style: none;
}
::selection {
  background: var(--ps-cashmere);
  color: var(--ps-ink);
}
:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

/* Fotografía: siempre el filtro de marca. */
.ps-photo {
  filter: var(--ps-photo-filter);
}

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

/* ---------- Tipografía ---------- */
.kicker {
  font-family: var(--ps-font-text);
  font-size: var(--ps-fs-caption);
  font-weight: 400;
  letter-spacing: var(--ps-caps-tracking);
  text-transform: uppercase;
  color: var(--ps-vicuna);
}
.kicker--paper {
  color: var(--ps-paper);
  opacity: 0.85;
}

.wm {
  font-family: var(--ps-font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: var(--ps-wm-tracking);
  text-transform: uppercase;
  white-space: nowrap;
}

.h-big {
  font-family: var(--ps-font-display);
  font-weight: 300;
  font-size: var(--ps-fs-big);
  line-height: 1.02;
  letter-spacing: -0.005em;
  max-width: 16ch;
}
.h-mid {
  font-family: var(--ps-font-display);
  font-weight: 300;
  font-size: var(--ps-fs-mid);
  line-height: 1.08;
}
.sub {
  font-size: var(--ps-fs-body);
  line-height: var(--ps-lh-body);
  color: var(--ps-ink-60);
  max-width: 52ch;
  margin-top: 18px;
}
.fine {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ps-vicuna);
}
.fine--onphoto {
  color: var(--ps-paper);
  opacity: 0.85;
}

/* Numeral editorial de sección */
.num {
  font-family: var(--ps-font-display);
  font-weight: 300;
  font-size: var(--ps-fs-num);
  line-height: 0.8;
  color: var(--ps-vicuna);
  letter-spacing: -0.02em;
}

/* Lista de líneas con hairline */
.lines {
  margin-top: 28px;
}
.lines li {
  border-top: var(--ps-hairline);
  padding: 14px 0;
  font-size: 14px;
  color: var(--ps-ink);
}

/* ---------- Acciones: mayúsculas espaciadas + hairline. Nunca rellenas de color. ---------- */
.action {
  font-family: var(--ps-font-text);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: var(--ps-caps-tracking);
  text-transform: uppercase;
  color: var(--ps-ink);
  background: transparent;
  border: 1px solid var(--ps-rule);
  padding: 15px 26px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  transition:
    border-color var(--ps-dur) var(--ps-ease),
    background var(--ps-dur) var(--ps-ease),
    color var(--ps-dur) var(--ps-ease);
}
.action:hover,
.action:focus-visible {
  border-color: var(--ps-ink);
}
.action[disabled] {
  opacity: 0.5;
  cursor: wait;
}
.action--full {
  width: 100%;
}
.action--xs {
  font-size: 10px;
  padding: 8px 0;
}

/* Acción principal: hairline Tinta; al pasar, la superficie se invierte (Tinta/Marfil). */
.action--ink {
  border-color: var(--ps-ink);
}
.action--ink:hover,
.action--ink:focus-visible {
  background: var(--ps-ink);
  color: var(--ps-paper);
}

/* Acción silenciosa: solo subrayado hairline que se dibuja. */
.action--quiet {
  border: 0;
  padding: 10px 0;
  position: relative;
}
.action--quiet::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: var(--ps-rule);
}
.action--quiet::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--ps-dur) var(--ps-ease);
  z-index: 1;
}
.action--quiet:hover::before,
.action--quiet:focus-visible::before {
  width: 100%;
}

/* Enlace con hairline que se dibuja al pasar */
.u-draw {
  position: relative;
  text-decoration: none;
}
.u-draw::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--ps-dur) var(--ps-ease);
}
.u-draw:hover::after,
.u-draw:focus-visible::after {
  width: 100%;
}

/* ---------- Campos ---------- */
.field {
  width: 100%;
  border: 0;
  border-bottom: var(--ps-hairline);
  background: transparent;
  font-family: var(--ps-font-display);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.3;
  padding: 8px 0 10px;
  transition: border-color var(--ps-dur) var(--ps-ease);
}
.field:focus {
  outline: none;
  border-bottom-color: var(--ps-ink);
}
.field-l {
  display: block;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
  margin-top: 18px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.form-msg {
  min-height: 18px;
  font-size: 11px;
  margin-top: 12px;
  color: var(--ps-ink-60);
}
.form-msg.err {
  color: var(--ps-danger);
}
.form-msg.ok {
  color: var(--ps-ink);
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ps-paper-rule);
  color: inherit;
  font-family: var(--ps-font-text);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 6px 2px;
  cursor: pointer;
  transition: border-color var(--ps-dur) var(--ps-ease);
}
.lang-select option {
  color: var(--ps-ink);
  background: var(--ps-white);
}

/* ---------- Superficies ---------- */
.panel {
  background: var(--ps-white);
  border: var(--ps-hairline);
  color: var(--ps-ink);
}
.panel--paper {
  background: var(--ps-paper);
}

.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ps-rule);
  padding: 5px 9px;
  white-space: nowrap;
  color: var(--ps-ink);
}
.badge--live {
  border-color: var(--ps-ink);
}

/* Estado "en vivo": punto de 6 px (semántico apagado, solo estado) */
.live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ps-vicuna);
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--ps-success);
  display: inline-block;
  flex: 0 0 auto;
}
.is-offline .live-dot,
.live-dot.off {
  background: var(--ps-cashmere);
}

/* ---------- Reveals al scroll: 240 ms, sin rebotes ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--ps-dur) var(--ps-ease),
    transform var(--ps-dur) var(--ps-ease);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation: none !important;
  }
}
