:root {
  color-scheme: light;
  --bg: #eef3f0;
  --panel: #ffffff;
  --text: #18231f;
  --muted: #5e6a65;
  --line: #d6ded9;
  --brand: #FA8C05;
  --brand-dark: #C86D00;
  --accent: #c69214;
  --danger-bg: #fff0ef;
  --danger-text: #9d1f1a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(24, 35, 31, 0.08);
}

.compact {
  max-width: 760px;
  margin: 0 auto;
}

.header {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 24px;
  align-items: center;
  max-width: 100%;
}

.site-logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  font-size: 34px;
  line-height: 1.12;
}

h2 {
  font-size: 18px;
}

p {
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0 18px;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}

.segmented input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.notice {
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 18px;
  margin: 18px 0;
}

.notice ul {
  columns: 2;
  padding-left: 20px;
}

.notice li {
  margin-bottom: 6px;
}

a {
  color: var(--brand-dark);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
button,
.button {
  min-height: 42px;
  border-radius: 8px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}

.inline-action {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

button,
.button {
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.button:hover {
  background: var(--brand-dark);
}

.primary {
  margin-top: 24px;
  width: 100%;
}

.secondary {
  background: #edf3ef;
  color: var(--brand-dark);
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0 0;
  padding: 18px;
}

.consentimientos {
  display: grid;
  gap: 12px;
}

.check-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.check-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

legend {
  padding: 0 8px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.messages {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.message {
  border-radius: 8px;
  padding: 12px;
  background: #eef8f2;
  color: var(--brand-dark);
}

.message.error {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.lookup-status {
  align-self: end;
  margin: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
}

.summary {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.summary div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1120px);
    margin: 10px auto;
  }

  .panel {
    padding: 18px;
  }

  h1 {
    font-size: 26px;
  }

  .header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .site-logo {
    max-width: 220px;
  }

  .segmented,
  .grid,
  .inline-action {
    grid-template-columns: 1fr;
  }

  .notice ul {
    columns: 1;
  }
}
