@charset "utf-8";

:root {
  --myth-navy: #06143f;
  --myth-navy-2: #0a2568;
  --myth-blue: #0b55c8;
  --myth-blue-bright: #1a76e9;
  --myth-violet: #8171eb;
  --myth-lilac: #ded7ff;
  --myth-gold: #d9a64d;
  --myth-gold-soft: #ffe6ad;
  --myth-white: #ffffff;
  --myth-ink: #1c2b54;
  --myth-muted: #6d7894;
  --myth-danger: #b73a4c;
  --myth-success: #267a58;
  --card-shadow: 0 32px 80px rgba(1, 14, 49, .35);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--myth-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(115deg, rgba(4, 16, 54, .90), rgba(13, 55, 137, .76) 48%, rgba(88, 70, 164, .66)),
    url('mythoria-bg.jpg') center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 14%, rgba(255, 225, 166, .18), transparent 24%),
    radial-gradient(circle at 23% 20%, rgba(220, 211, 255, .18), transparent 28%),
    linear-gradient(180deg, rgba(2, 10, 34, .06), rgba(2, 10, 34, .42));
}

a {
  color: var(--myth-blue-bright);
}

a:hover {
  color: var(--myth-violet);
}

button,
input,
select,
textarea {
  font: inherit;
}

.pr-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 56px) 18px;
}

.pr-shell {
  width: min(100%, 690px);
}

.pr-brand {
  width: 100%;
  margin: 0 auto 16px;
  text-align: center;
}

.pr-logo {
  display: block;
  width: min(76vw, 470px);
  max-height: 230px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 28px rgba(0, 10, 45, .54));
}

.pr-brand-subtitle {
  margin: 2px auto 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(.78rem, 1.8vw, .95rem);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.testbox,
.pr-lleno-box {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 226, 172, .65);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(245, 248, 255, .96));
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.testbox::before,
.pr-lleno-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--myth-blue), var(--myth-violet), var(--myth-gold), var(--myth-blue));
}

.pr-card-heading {
  margin-bottom: 20px;
  text-align: center;
}

.pr-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  margin-bottom: 9px;
  border: 1px solid rgba(12, 82, 194, .13);
  border-radius: 999px;
  color: var(--myth-blue);
  background: #eef4ff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--myth-navy);
  font-size: clamp(1.8rem, 4.8vw, 2.55rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.035em;
}

.pr-intro {
  max-width: 540px;
  margin: 10px auto 0;
  color: var(--myth-muted);
  font-size: .92rem;
  line-height: 1.55;
}

.pr-progreso-wrap {
  width: 100%;
  margin: 22px auto 13px;
  text-align: center;
}

.pr-progreso-texto {
  min-height: 20px;
  margin-bottom: 8px;
  color: var(--myth-ink);
  font-size: .82rem;
  font-weight: 700;
}

.pr-progreso-barra {
  width: 100%;
  height: 14px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(12, 61, 145, .11);
  border-radius: 999px;
  background: #e7ebf6;
  box-shadow: inset 0 2px 4px rgba(6, 28, 79, .08);
}

.pr-progreso-relleno {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--myth-gold), #f3d385 15%, var(--myth-violet) 52%, var(--myth-blue-bright));
  box-shadow: 0 0 14px rgba(27, 112, 228, .26);
  transition: width .45s ease;
}

.pr-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  width: 100%;
  margin: 13px auto 3px;
}

.pr-tier {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #e2e7f2;
  border-radius: 13px;
  background: rgba(247, 249, 255, .9);
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.pr-tier strong {
  display: block;
  font-size: .78rem;
  line-height: 1.1;
}

.pr-tier small {
  display: block;
  margin-top: 3px;
  color: var(--myth-muted);
  font-size: .67rem;
}

.pr-tier-oro strong { color: #a87314; }
.pr-tier-plata strong { color: #707a91; }
.pr-tier-bronce strong { color: #9c653c; }

.pr-tier.is-active {
  transform: translateY(-2px);
  border-color: rgba(16, 92, 206, .42);
  box-shadow: 0 8px 20px rgba(7, 45, 112, .10);
  background: #fff;
}

.pr-tier-oro.is-active { border-color: rgba(217, 166, 77, .70); }
.pr-tier-plata.is-active { border-color: rgba(126, 139, 167, .55); }
.pr-tier-bronce.is-active { border-color: rgba(166, 102, 62, .55); }

.pr-divider {
  height: 1px;
  margin: 21px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, #dce2ef 18%, #dce2ef 82%, transparent);
}

form {
  margin: 0;
}

.pr-gender-title,
.pr-field label,
.pr-captcha-wrap label {
  display: block;
  margin: 0 0 7px;
  color: #435273;
  font-size: .76rem;
  font-weight: 700;
}

.pr-gender-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.pr-gender-option {
  position: relative;
}

.pr-gender-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pr-gender-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  border: 1px solid #dce2f1;
  border-radius: 11px;
  color: var(--myth-muted);
  background: #f7f9ff;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.pr-gender-option input:checked + label {
  border-color: rgba(18, 100, 219, .5);
  color: var(--myth-blue);
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(18, 100, 219, .10);
}

.pr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pr-field {
  min-width: 0;
}

.pr-field.pr-field-full {
  grid-column: 1 / -1;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #d8dfef;
  border-radius: 11px;
  color: var(--myth-ink);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(5, 30, 83, .03);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder {
  color: #9aa4bb;
}

input:focus {
  border-color: var(--myth-blue-bright);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 118, 233, .10);
}

.pr-field-hint {
  margin: 5px 1px 0;
  color: #8792aa;
  font-size: .68rem;
  line-height: 1.35;
}

.pr-captcha-wrap {
  width: 100%;
  margin: 14px 0 0;
}

.pr-mensaje {
  width: 100%;
  min-height: 20px;
  margin: 12px auto 0;
  padding: 0;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.4;
}

.pr-mensaje.error { color: var(--myth-danger); }
.pr-mensaje.ok { color: var(--myth-success); }

.pr-form-note {
  margin: 14px 0 0;
  color: #7a859e;
  text-align: center;
  font-size: .72rem;
  line-height: 1.45;
}

button.button,
a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 15px 0 0;
  padding: 11px 20px;
  border: 1px solid rgba(4, 49, 130, .55);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--myth-blue), var(--myth-blue-bright) 58%, var(--myth-violet));
  box-shadow: 0 12px 26px rgba(10, 78, 185, .24);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

button.button:hover,
a.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(10, 78, 185, .30);
  filter: saturate(1.06);
}

button.button:disabled,
a.button.disabled {
  opacity: .55;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.pr-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.pr-complete-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid rgba(217, 166, 77, .52);
  border-radius: 50%;
  color: var(--myth-gold);
  background: linear-gradient(180deg, #fff9e9, #fff);
  font-size: 2rem;
  box-shadow: 0 10px 28px rgba(101, 74, 20, .12);
}

.pr-lleno-box {
  text-align: center;
}

.pr-lleno-box p {
  margin: 12px auto 0;
  color: var(--myth-muted);
  line-height: 1.55;
}

.pr-redirect-note {
  font-size: .8rem;
}

.pr-admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 700px) {
  body {
    background-attachment: scroll;
  }

  .pr-page {
    align-items: flex-start;
    padding: 20px 12px 32px;
  }

  .pr-logo {
    width: min(84vw, 400px);
  }

  .testbox,
  .pr-lleno-box {
    padding: 24px 18px;
    border-radius: 20px;
  }
}

@media (max-width: 560px) {
  .pr-form-grid {
    grid-template-columns: 1fr;
  }

  .pr-field.pr-field-full {
    grid-column: auto;
  }

  .pr-tiers {
    gap: 6px;
  }

  .pr-tier {
    padding: 9px 5px;
  }

  .pr-tier strong {
    font-size: .72rem;
  }

  .pr-tier small {
    font-size: .61rem;
  }
}

@media (max-width: 380px) {
  .pr-gender-options {
    grid-template-columns: 1fr;
  }

  .pr-tiers {
    grid-template-columns: 1fr;
  }

  .pr-tier {
    text-align: left;
  }

  .pr-tier strong,
  .pr-tier small {
    display: inline;
  }

  .pr-tier small::before {
    content: " · ";
  }
}

/* Mythoria: aviso obligatorio de confirmación por correo */
.pr-email-confirm-notice{
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin:18px 0 4px;
  padding:16px 18px;
  border:1px solid rgba(238,203,117,.42);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(7,31,82,.88),rgba(67,55,139,.78));
  box-shadow:0 14px 30px rgba(4,14,47,.18),inset 0 1px 0 rgba(255,255,255,.06);
  color:#eef4ff;
}
.pr-email-confirm-icon{
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,255,255,.10);
  color:#f2d68d;
  font-size:19px;
}
.pr-email-confirm-notice strong{color:#ffe3a0;font-size:.88rem}
.pr-email-confirm-notice p{margin:5px 0 0;color:rgba(238,244,255,.84);font-size:.76rem;line-height:1.55}
@media (max-width:520px){
  .pr-email-confirm-notice{padding:14px;gap:11px}
  .pr-email-confirm-icon{flex-basis:36px;width:36px;height:36px}
}
