/* =========================================================
   Caribbean Travel — Ventana emergente de registro
   ========================================================= */
.reg-modal {
  --reg-tinta: #14304a;
  --reg-marfil: #f5f1ea;
  --reg-naranja: #e07a2e;
  --reg-borde: #d9d2c5;
  --reg-suave: #5b6773;

  border: 0;
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border-radius: 24px;
  background: var(--reg-marfil);
  color: var(--reg-tinta);
  box-shadow: 0 30px 80px rgba(10, 25, 40, .35);
  font-family: "Manrope", system-ui, sans-serif;
}
.reg-modal::backdrop {
  background: rgba(12, 28, 44, .55);
  backdrop-filter: blur(4px);
}
.reg-modal[open] { animation: reg-entrar .28s ease-out; }
@keyframes reg-entrar {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
html.reg-abierto { overflow: hidden; }

.reg-vista { padding: 44px 36px 30px; }
.reg-vista[hidden] { display: none; }

.reg-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--reg-borde);
  background: transparent;
  color: var(--reg-tinta);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.reg-cerrar:hover { background: #fff; }

.reg-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--reg-suave);
}
.reg-titulo {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.05;
}
.reg-texto {
  margin: 0 0 24px;
  line-height: 1.55;
  color: #4a5866;
}

.reg-campo { display: block; margin-bottom: 16px; }
.reg-campo span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
.reg-campo input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--reg-borde);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px; /* evita el zoom automático en iPhone */
  color: var(--reg-tinta);
}
.reg-campo input::placeholder { color: #a0a8b0; }
.reg-campo input:focus {
  outline: 2px solid var(--reg-naranja);
  outline-offset: 1px;
  border-color: transparent;
}

.reg-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fbe9e1;
  color: #9a3412;
  font-size: 14px;
}

.reg-enviar {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--reg-naranja);
  color: var(--reg-tinta);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s;
}
.reg-enviar:hover { filter: brightness(1.05); }
.reg-enviar:disabled { opacity: .6; cursor: wait; }

.reg-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--reg-suave);
  cursor: pointer;
}
.reg-check input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--reg-tinta);
}

.reg-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 480px) {
  .reg-vista { padding: 40px 20px 22px; }
}
