:root {
  --bg-0: #070a12;
  --bg-1: #0b0e16;
  --card: #121724;
  --card-2: #161c2b;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef1f6;
  --muted: #9aa5b8;
  --gold: #d4af37;
  --gold-2: #b8860b;
  --gold-soft: rgba(212, 175, 55, .14);
  --danger: #f87171;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, .10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(160, 30, 45, .12), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  padding: 28px 16px;
}

.card {
  width: 100%;
  max-width: 460px;
  padding: 30px 26px 24px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .04) inset,
    0 30px 70px -20px rgba(0, 0, 0, .75),
    0 0 0 1px rgba(212, 175, 55, .05);
}

.brand { display: flex; justify-content: center; margin-bottom: 6px; }
.logo { display: block; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }

h1 {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: .3px;
  margin: 10px 0 4px;
  font-weight: 800;
}
h1 .gold {
  background: linear-gradient(180deg, #f5d67a, var(--gold) 55%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: .95rem; }

.field { margin: 14px 0; }
.field > label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

input[type=text],
input[type=email],
input[type=tel],
select {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: #0e1320;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: #5b6678; }
input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
  background: #0f1524;
}

/* Select con chevron dorado */
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
}
select { padding-right: 40px; cursor: pointer; }
select option { color: #eef1f6; background: #10151f; }
select optgroup { color: var(--gold); font-weight: 700; background: #10151f; }
select:invalid { color: #5b6678; }

/* Términos y condiciones */
.tyc {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 2px 4px;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.45;
}
.tyc input[type=checkbox] {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--gold);
  cursor: pointer;
}
.tyc a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }

button {
  width: 100%;
  padding: 15px;
  margin-top: 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, #f2cf6d, var(--gold) 55%, var(--gold-2));
  color: #241a03;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(212, 175, 55, .6);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled {
  background: #232a3a;
  color: #6b7688;
  cursor: not-allowed;
  box-shadow: none;
}

.error { color: var(--danger); font-size: .85rem; min-height: 1.2em; text-align: center; margin: 10px 0 0; }
.secure { text-align: center; color: #6b7688; font-size: .78rem; margin: 12px 0 0; }

/* ---- intl-tel-input: overrides para tema oscuro ---- */
.iti { width: 100%; }
.iti__flag-container + input,
.iti input[type=tel] { padding-left: 52px; }
.iti--separate-dial-code input[type=tel] { padding-left: 94px; }
.iti__selected-flag {
  background: transparent;
  border-radius: 12px 0 0 12px;
}
.iti--separate-dial-code .iti__selected-flag { background: rgba(255, 255, 255, .04); }
.iti__selected-dial-code { color: var(--text); }
.iti__arrow { border-top-color: var(--muted); }
.iti__arrow--up { border-bottom-color: var(--muted); }
.iti__country-list {
  background: #10151f;
  border: 1px solid var(--line-strong);
  color: var(--text);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8);
}
.iti__country.iti__highlight { background: rgba(212, 175, 55, .14); }
.iti__country-name { color: var(--text); }
.iti__dial-code { color: var(--muted); }
.iti__divider { border-bottom-color: var(--line); }

@media (max-width: 420px) {
  .card { padding: 24px 18px 20px; border-radius: 18px; }
  h1 { font-size: 1.4rem; }
}
