:root {
  color-scheme: dark;
  --ink: #fff7ed;
  --muted: rgba(255, 247, 237, 0.72);
  --shade: rgba(10, 10, 10, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #0d0d0d;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.construction {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.oparche-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(13, 13, 13, 0.2), rgba(13, 13, 13, 0.94)),
    url("assets/opa-editorial.jpeg") center / cover;
}

.oparche-panel {
  width: min(100%, 520px);
  padding: clamp(24px, 5vw, 42px);
  background: rgba(13, 13, 13, 0.86);
  border: 1px solid rgba(255, 247, 237, 0.18);
}

.oparche-brand {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.oparche-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.oparche-panel h1 {
  margin: 0;
  font-size: clamp(3.8rem, 15vw, 7rem);
  line-height: 0.85;
}

.oparche-intro {
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.oparche-form {
  display: grid;
  gap: 16px;
}

.oparche-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 247, 237, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.oparche-form label span {
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}

.oparche-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 247, 237, 0.24);
  border-radius: 0;
  background: rgba(255, 247, 237, 0.08);
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

.oparche-form input::placeholder {
  color: rgba(255, 247, 237, 0.4);
}

.consent-check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}

.consent-check input {
  min-height: auto;
  margin-top: 2px;
}

.oparche-form button {
  min-height: 50px;
  border: 0;
  background: var(--ink);
  color: #0d0d0d;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.oparche-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.oparche-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.oparche-status[data-state="success"] {
  color: #a7f3d0;
}

.oparche-status[data-state="error"] {
  color: #fecaca;
}

.legal-page {
  min-height: 100svh;
  display: grid;
  justify-items: center;
  padding: clamp(24px, 6vw, 72px);
  background: #0d0d0d;
}

.legal-copy {
  width: min(100%, 760px);
  color: rgba(255, 247, 237, 0.82);
  line-height: 1.6;
}

.legal-copy h1 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.95;
}

.legal-copy h2 {
  margin: 34px 0 8px;
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
}

.legal-copy p {
  margin: 0 0 14px;
}

.legal-copy a {
  color: var(--ink);
}

.legal-date {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.9rem;
}

.construction::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72)),
    var(--shade);
}

.construction img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.construction-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  padding: clamp(28px, 6vw, 72px);
}

.construction-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.5vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.construction-copy h1,
.construction-copy h2 {
  margin: 0;
  letter-spacing: 0;
}

.construction-copy h1 {
  font-size: clamp(4rem, 18vw, 12rem);
  line-height: 0.82;
}

.construction-copy h2 {
  max-width: 720px;
  margin-top: 22px;
  font-size: clamp(1.35rem, 4vw, 3.4rem);
  line-height: 1;
}

@media (max-width: 720px) {
  .construction {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: auto;
  }

  .construction::after {
    display: none;
  }

  .construction img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  .construction-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40svh;
    padding: 28px 20px 36px;
    background: #0d0d0d;
  }

  .construction-copy h1 {
    font-size: clamp(4rem, 28vw, 7rem);
  }

  .construction-copy h2 {
    margin-top: 16px;
    font-size: clamp(1.35rem, 9vw, 2.65rem);
  }
}
