:root {
  --ink: #223496;
  --blue: #0a0dbf;
  --field: #1b2ae6;
  --must: #e11d48;
  --check: #f3b302;
  --bg: #1f15bc;
  --wrap-w: 660px;
  --radius-field: 10px;
  --radius-btn: 18px;
  --field-h: 64px;
}



.landing {
  cursor: pointer;
  font-family: "Pluto";
}

.landing img {
  width: 100%;
  vertical-align: bottom;
}

/* Botón disparador */
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: "Pluto";
}
.cta {
  height: 64px;
  padding: 0 26px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(180deg, #0a0dbf 0%, #06079a 100%);
  box-shadow: 0 10px 22px rgba(10, 13, 191, 0.22);
  font-family: "Pluto";
}
.cta:active {
  transform: translateY(1px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(14 9 85 / 90%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  z-index: 99999999;
}
.modal-overlay[data-open="true"] {
  display: flex;
}

.modal {
  width: min(var(--wrap-w), 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  font-family: "Pluto";
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.modal-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.2px;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close:hover {
  background: rgba(0, 0, 0, 0.04);
}
.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  overflow: auto;
  padding: 2.5em;
  background: #fff;
}

/* ====== TU FORM (pega aquí tu CSS del formulario “igual”) ====== */
.oreo-wrap {
  padding: 0;
} /* dentro de modal no necesitamos margen externo */

.oreo-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.oreo-logo img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
}
.oreo-title {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.3px;
  font-size: 32px;
  justify-self: end;
  max-width: 320px;
}
.oreo-legend {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 22px;
  padding-left: 4px;
}
.oreo-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.oreo-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-block;
}
.oreo-chip[data-active="true"] .oreo-dot {
  outline: 3px solid rgba(10, 13, 191, 0.22);
  outline-offset: 2px;
}

.oreo-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 18px;
}
.oreo-row-1 {
  margin-bottom: 18px;
}
.oreo-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oreo-label {
  font-size: 19px;
  font-weight: 500;
}
.oreo-label .req {
  color: var(--must);
  font-weight: 800;
  margin-left: 4px;
}
.oreo-input {
  width: 100%;
  height: var(--field-h);
  padding: 16px 18px;
  border: 2px solid var(--field);
  border-radius: var(--radius-field);
  font-size: 18px;
  outline: none;
  background: #fff;
}
.oreo-input:focus {
  box-shadow: 0 0 0 3px rgba(27, 42, 230, 0.18);
}

.oreo-checks {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.oreo-check {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.oreo-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.oreo-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--check);
  border-radius: 2px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}
.oreo-box svg {
  width: 16px;
  height: 16px;
  display: none;
}
.oreo-check input:checked + .oreo-box svg {
  display: block;
}
.oreo-check p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #4b5563;
}
.oreo-check a {
  color: #111827;
  text-decoration: underline;
  font-weight: 700;
}

.oreo-btn {
  width: 100%;
  height: 74px;
  border: 0;
  border-radius: 22px;
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #0a0dbf 0%, #06079a 100%);
  box-shadow: 0 10px 22px rgba(10, 13, 191, 0.22);
  margin-top: 18px;
  font-family: "Pluto";
}
.oreo-toast {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.3;
  margin-top: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  color: #111827;
}
.oreo-toast--ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}
.oreo-toast--err {
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(225, 29, 72, 0.08);
}
.oreo-toast--info {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.1);
}

/* === errores para checks === */
.oreo-check.is-error .oreo-box {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
}
.oreo-check-error {
  margin-left: 44px; /* alinea con el texto del checkbox */
  margin-top: -6px;
  font-size: 13px;
  color: #e11d48;
  font-weight: 600;
  display: none;
}
.oreo-check.is-error + .oreo-check-error {
  display: block;
}

.oreo-success {
  margin-top: 18px;
  border-radius: 14px;
  padding: 18px 16px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  text-align: center;
}
.oreo-success__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.oreo-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.oreo-footnote {
  margin-top: 10px;
  font-size: 18px;
}
.oreo-footnote .req {
  color: var(--must);
  font-weight: 800;
}

@media (max-width: 720px) {
  .page {
    display: block;
  }
  .oreo-header {
    grid-template-columns: 1fr;
  }
  .oreo-title {
    justify-self: center;
    text-align: center;
  }
  .oreo-row-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .modal-body {
    padding: 1.5em;
  }
  .oreo-logo img {
    width: 235px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
  }
}
