:root {
  --guinda: #7b1e2b;
  --guinda-oscuro: #4c1019;
  --oro: #e2b33c;
  --papel: #f4efe4;
  --tinta: #1c1012;
  --linea: #d9cbb8;
  --aviso: #8a1c14;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--guinda);
  color: var(--papel);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

body {
  width: min(32rem, 100%);
  margin: 0 auto;
  min-height: 100dvh;
}

header {
  padding: 1.1rem 1.15rem 0.85rem;
}

.marca {
  margin: 0;
  font-size: 2rem;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.zona {
  margin: 0.35rem 0 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

main {
  background: var(--papel);
  color: var(--tinta);
  min-height: calc(100dvh - 6.2rem);
  border-radius: 1.4rem 1.4rem 0 0;
  padding: 0.85rem 0.85rem 1.4rem;
}

.visor {
  background: var(--guinda-oscuro);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 52dvh;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #14080b;
}

form, .entrada, .vacio {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.95rem;
}

input {
  font: inherit;
  font-size: 1.05rem;
  color: var(--tinta);
  background: white;
  border: 1px solid var(--linea);
  border-radius: 0.7rem;
  padding: 0.75rem 0.8rem;
  min-height: 3rem;
}

button, .enlace {
  font: inherit;
  font-size: 1.08rem;
  min-height: 3.4rem;
  border-radius: 0.8rem;
  border: 0;
  padding: 0.7rem 1rem;
}

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--oro);
  outline-offset: 2px;
}

.principal {
  background: var(--oro);
  color: var(--guinda-oscuro);
  font-weight: 700;
}

.cortar {
  background: var(--guinda);
  color: var(--papel);
  font-weight: 700;
}

.secundario {
  background: transparent;
  color: var(--guinda);
  min-height: 2.6rem;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

[hidden] { display: none !important; }

.estado, .error {
  margin: 0;
  min-height: 1.4rem;
  font-size: 1rem;
}

.error { color: var(--aviso); }

.publico .visor { max-height: none; aspect-ratio: 9 / 16; }

.vacio {
  margin: 1.2rem 0.3rem 0;
  font-size: 1.35rem;
  line-height: 1.35;
}

a { color: var(--guinda); }
