@font-face {
  font-family: Nunito;
  src: url("../fonts/Nunito-VariableFont_wght.ttf");
  font-style: normal;
  font-weight: normal;
}

:root {
  --blanco: #ffffff;
  --negro: #000000;
  --ok: #1f9d63;

  /*Colores del Pantone*/
  --azul: #00539c;
  --azul-oscuro: #09086a;
  --amarillo: #f6b044;
  --naranja: #e8553e;
  --rosa: #ed495c;
  --gris: #d6d6de;
  --gris-letra: #6c757d;
  --azul-claro: #00539cad;
  --azul-letra: #1b2a41;
  --azul-linea: #b9d6ee;
  --amarillo-letra: #6d4700;

  --azul-suave: #d9ecfa;
  --muted: #5b6b82;

  /* derivados de la vista */
  --grad: linear-gradient(90deg, var(--rosa) 0%, var(--amarillo) 100%);
  --radius: 16px;
}

* {
  box-sizing: border-box;
  max-width: 100%;
  font-family: Nunito;
}

body {
  color: var(--azul-letra);
  /*background: var(--azul-suave) !important;*/
}

.topbar {
  height: 25px;
  background: linear-gradient(90deg, var(--azul), var(--azul-linea));
}

.text-azul-oscuro {
  color: var(--azul-oscuro);
}

.text-azul {
  color: var(--azul);
}

.text-azul-letra {
  color: var(--azul-letra);
}

/*===== CUADROS DE FONDO =====*/
@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

ul {
  list-style-type: none;
}

.background {
  position: fixed;
  width: calc(100vw);
  height: calc(100vh);
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  background: transparent !important;
  overflow: hidden;
  z-index: -999;
}

.background ul.squares li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(0, 83, 156, 0.2);
  animation: animate 19s linear infinite;
}

.background ul.squares li:nth-child(0) {
  left: 1%;
  width: 104px;
  height: 104px;
  bottom: -104px;
  animation-delay: 1s;
}

.background ul.squares li:nth-child(1) {
  left: 78%;
  width: 144px;
  height: 144px;
  bottom: -144px;
  animation-delay: 5s;
}

.background ul.squares li:nth-child(2) {
  left: 77%;
  width: 169px;
  height: 169px;
  bottom: -169px;
  animation-delay: 9s;
}

.background ul.squares li:nth-child(3) {
  left: 3%;
  width: 171px;
  height: 171px;
  bottom: -171px;
  animation-delay: 6s;
}

.background ul.squares li:nth-child(4) {
  left: 55%;
  width: 183px;
  height: 183px;
  bottom: -183px;
  animation-delay: 4s;
}

.background ul.squares li:nth-child(5) {
  left: 73%;
  width: 133px;
  height: 133px;
  bottom: -133px;
  animation-delay: 15s;
}

.background ul.squares li:nth-child(6) {
  left: 58%;
  width: 137px;
  height: 137px;
  bottom: -137px;
  animation-delay: 24s;
}

.background ul.squares li:nth-child(7) {
  left: 9%;
  width: 125px;
  height: 125px;
  bottom: -125px;
  animation-delay: 31s;
}

.background ul.squares li:nth-child(8) {
  left: 1%;
  width: 114px;
  height: 114px;
  bottom: -114px;
  animation-delay: 18s;
}

.background ul.squares li:nth-child(9) {
  left: 52%;
  width: 180px;
  height: 180px;
  bottom: -180px;
  animation-delay: 32s;
}


/*===== TARJETA DE INFORMACION DE SECCION =====*/
.hero {
  color: var(--blanco);
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}

.hero div {
  padding: 1.6rem 1.8rem;
  background-color: rgba(9, 8, 106, 0.7);
  border-radius: 14px;
}

.hero h1 {
  font-weight: 800;
  font-size: 1.9rem;
  margin: 0;
}

.hero p {
  margin: 0.2rem 0 0;
  color: var(--azul-suave);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--azul-suave);
}

.steps li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.steps b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
}

.steps li.now {
  color: var(--blanco);
}

.steps li.now b {
  background: var(--amarillo);
  color: var(--azul-oscuro);
}

/*===== SECCION DE PLANES DISPONIBLES =====*/
.sec-title {
  font-weight: 800;
  color: var(--azul);
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

/*PLANES*/
.plan {
  display: block;
  cursor: pointer;
  margin: 0;
}

.plan-body {
  border: 2px solid var(--azul-linea);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: var(--blanco);
  transition:
    border-color 0.15s,
    background 0.15s;
}

.plan input:checked + .plan-body {
  border-color: var(--azul);
  background: var(--azul-suave);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.plan-name {
  font-weight: 800;
  color: var(--azul);
  font-size: 1.15rem;
}

.price {
  font-weight: 800;
  color: var(--naranja);
  font-size: 1.9rem;
  line-height: 1;
}

.price .dec {
  color: var(--amarillo);
  font-size: 1.1rem;
}

.price-unit {
  color: var(--gris-letra);
  font-size: 0.85rem;
  font-weight: 600;
}

.feat {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--azul-letra);
}

.feat li {
  padding: 0.12rem 0;
}

.feat li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
  margin-right: 0.45rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
}

.tag-hot {
  background: var(--azul) !important;
  color: #fff !important;
}

.tag-promo {
  background: var(--amarillo) !important;
  color: var(--amarillo-letra) !important;
}

.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--azul-linea);
  flex: none;
  display: inline-block;
  position: relative;
}

.plan input:checked + .plan-body .radio-dot {
  border-color: var(--azul);
  display: flex;
  justify-content: center;
  align-items: center;
}

.plan input:checked + .plan-body .radio-dot::after {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--azul);
}

/*DESUENTO POR PAGO ANTICIPADO*/

.seg {
  display: inline-flex;
  background: var(--azul-linea);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.seg button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--azul-letra);
}

.seg button.on {
  background: var(--blanco);
  box-shadow: 0 1px 2px rgba(10, 42, 108, 0.2);
  color: var(--azul-oscuro);
}

.seg small {
  color: var(--ok);
  font-weight: 700;
  margin-left: 0.2rem;
}

/*.seg button:focus-visible,
.plan input:focus-visible + .plan-body{
  outline:3px solid var(--naranja);
  outline-offset:2px;
}*/

/*DEMO*/
.demo-opt .plan-name {
  color: var(--amarillo-letra);
}

.demo-opt .small {
  color: var(--gris-letra);
}

.demo-opt .plan-body {
  border-style: dashed;
  background: #fffaf0;
  border-color: var(--amarillo);
}
.demo-opt input:checked + .plan-body {
  border-style: solid;
  border-color: var(--amarillo);
  background: #fff6e0;
  box-shadow: inset 0 0 0 1px var(--amarillo);
}
.demo-opt .radio-dot {
  border-color: var(--amarillo);
}
.demo-opt input:checked + .plan-body .radio-dot {
  border-color: var(--amarillo);
}
.demo-opt input:checked + .plan-body .radio-dot::after {
  background: var(--amarillo);
}

.panel {
  background: var(--azul-linea);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  position: sticky;
  top: 1rem;
}

.panel h2 {
  font-weight: 800;
  color: var(--azul);
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
}

.summary {
  background: var(--blanco);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.summary .row-s {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.12rem 0;
}

.summary .tot {
  border-top: 1px solid var(--azul-letra);
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  font-weight: 800;
  font-size: 1.02rem;
}

.summary .note {
  color: var(--gris-letra);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.panel label.form-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--azul-letra);
  margin-bottom: 0.15rem;
}

.panel .form-control {
  border-radius: 8px;
  border-color: var(--azul-claro);
}

.panel .form-control:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 0.2rem rgba(11, 85, 165, 0.2);
}

.btn-cta {
  width: 100%;
  border: 0;
  border-radius: 8px;
  color: var(--blanco);
  font-weight: 800;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, var(--rosa), var(--amarillo));
}

.btn-cta:hover {
  filter: brightness(0.96);
  color: var(--blanco);
}

.btn-cta:focus-visible {
  outline: 3px solid var(--azul-oscuro);
  outline-offset: 2px;
}

.hint {
  font-size: 0.78rem;
  color: var(--azul-letra);
  margin-top: 0.25rem;
}

.form-check-label a {
  color: var(--azul);
  font-weight: 700;
}

.force {
  color: var(--naranja);
  font-weight: 700;
}

/* Campo con ojo integrado */
.pwd-field {
  position: relative;
}
.pwd-field .form-control {
  padding-right: 2.75rem;
}

.pwd-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.75rem;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--gris-letra);
  border-radius: 0 0.6rem 0.6rem 0; /* pon aquí el mismo radio que tus .form-control */
  cursor: pointer;
}
.pwd-toggle:hover {
  color: var(--azul);
}
.pwd-toggle:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: -2px;
}

/* Bootstrap pinta su ícono de ✓/✗ a la derecha y se encimaría con el ojo */
.was-validated .pwd-field .form-control:valid,
.was-validated .pwd-field .form-control:invalid {
  background-image: none;
}

/* El mensaje ahora está fuera del wrapper, así que se muestra con :has() */
.was-validated .pwd-field:has(.form-control:invalid) + .invalid-feedback {
  display: block;
}

/* Requisitos en línea */
.pwd-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.75rem;
  font-size: 0.8rem;
}
.pwd-rules li {
  color: var(--gris-letra);
}
.pwd-rules li::before {
  content: "○ ";
}
.pwd-rules li.ok {
  color: var(--ok);
}
.pwd-rules li.ok::before {
  content: "✓ ";
}

.pwd-rules {
  display: none;
}

#pwd:focus ~ *,
.pwd-rules.show {
  display: flex;
}

.done {
  background: var(--blanco);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
}

.done .ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
}

.mail-chip {
  display: inline-block;
  background: var(--azul-suave);
  color: var(--azul);
  font-weight: 700;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  margin: 0.4rem 0;
  word-break: break-all;
}

.legend {
  font-size: 0.8rem;
  color: var(--azul-letra);
}

/* ===========================
    CONFIRMACION DE CORREO
=========================== */

/* pasos */
.steps-confirm {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.steps-confirm li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
}

.steps-confirm li b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  background: rgba(0, 83, 156, 0.12);
  color: var(--azul);
}

.steps-confirm li.done {
  background: transparent;
}
.steps-confirm li.done b {
  background: var(--amarillo);
  color: var(--azul-oscuro);
}

.steps-confirm li.now b {
  background: var(--azul);
  color: var(--blanco);
}

.steps-confirm li.now {
  color: var(--azul);
}

.steps-confirm li + li::before {
  content: "";
  width: 22px;
  height: 2px;
  background: rgba(0, 83, 156, 0.25);
  margin-right: 0.1rem;
}
@media (max-width: 575px) {
  .steps-confirm li span {
    display: none;
  }
  .steps-confirm li.now span {
    display: inline;
  }
}

/*panel*/
.panel-q {
  background: var(--azul-linea);
  border-radius: 22px;
  padding: 1.75rem;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 18px 40px rgba(9, 8, 106, 0.1);
}
.card-w {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
h1.t {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--azul);
  margin: 0 0 0.35rem;
}
.lead-q {
  color: var(--azul-letra);
  font-size: 1.02rem;
  margin: 0 0 1.1rem;
}

/* sello de estado */
.seal {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: var(--blanco);
}
.seal svg {
  width: 38px;
  height: 38px;
}
.seal.ok {
  background: var(--ok);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.seal.warn {
  background: var(--amarillo);
  color: var(--amarillo-letra);
}
.seal.err {
  background: var(--rosa);
}
.seal.load {
  background: var(--blanco);
  color: var(--azul);
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.spin {
  animation: rot 1s linear infinite;
}
@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}

.row-s {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--azul-linea);
  font-size: 0.97rem;
}
.row-s:last-child {
  border-bottom: 0;
}
.row-s span:first-child {
  color: var(--muted);
}
.row-s span:last-child {
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.btn-cta {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--blanco);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--grad);
  text-align: center;
  text-decoration: none;
  transition:
    filter 0.15s,
    transform 0.05s;
}
.btn-cta:hover {
  filter: brightness(1.06);
  color: var(--blanco);
}
.btn-cta:active {
  transform: translateY(1px);
}
.btn-cta:disabled {
  filter: grayscale(0.6) opacity(0.7);
  cursor: not-allowed;
}
.btn-ghost {
  display: block;
  width: 100%;
  border: 2px solid var(--azul);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  color: var(--azul);
  font-weight: 800;
  background: transparent;
  text-align: center;
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(0, 83, 156, 0.08);
  color: var(--azul);
}

.note {
  color: var(--muted);
  font-size: 0.85rem;
}

.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
}

/* animación "construyendo tu sistema" */
.build {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
}
@media (max-width: 480px) {
  .build {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
.stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  width: 110px;
  height: 118px;
  justify-content: flex-start;
}
.blk {
  height: 24px;
  border-radius: 7px;
  background: var(--azul-oscuro);
  opacity: 0;
  transform: translateY(-18px) scale(0.9);
  transition:
    opacity 0.35s,
    transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.blk:nth-child(1) {
  width: 100%;
}
.blk:nth-child(2) {
  width: 86%;
  margin-left: 7%;
  opacity: 0;
  background: var(--azul);
}
.blk:nth-child(3) {
  width: 70%;
  margin-left: 15%;
  background: var(--azul-claro);
}
.blk:nth-child(4) {
  width: 48%;
  margin-left: 26%;
  background: var(--grad);
}
.blk.in {
  opacity: 1;
  transform: none;
}
.plist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 700;
}
.plist li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0;
  color: var(--muted);
  transition: color 0.3s;
}
.plist li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--azul-linea);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--blanco);
  flex: none;
}
.plist li.now {
  color: var(--azul-letra);
}
.plist li.now i {
  border-color: var(--azul);
  border-top-color: transparent;
  animation: rot 0.8s linear infinite;
}
.plist li.done {
  color: var(--azul-letra);
}
.plist li.done i {
  background: var(--ok);
  border-color: var(--ok);
  animation: none;
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--blanco);
  overflow: hidden;
  margin-top: 1.1rem;
}
.bar > div {
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 99px;
  transition: width 0.9s ease;
}
.seal.mail {
  background: var(--azul);
}
@media (prefers-reduced-motion: reduce) {
  .blk,
  .bar > div {
    transition: none;
  }
  .plist li.now i {
    animation: none;
  }
}

/* RECUPERAR CONTRASEÑA */
.q-card {
  background: var(--azul-linea);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(9, 8, 106, 0.1);
  width: 100%;
  max-width: 520px;
  padding: 2rem 2.25rem;
}

.q-logo {
  display: block;
  margin: 0 auto 0.5rem;
  width: 84px;
}

.q-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--azul);
  text-align: center;
  margin: 0 0 0.4rem;
}
.q-lead {
  text-align: center;
  color: var(--azul-letra);
  margin: 0 0 1.25rem;
}
.q-card .form-label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}
.q-card .form-control {
  border-radius: 8px;
  border-color: var(--azul-claro);
  padding: 0.6rem 0.8rem;
}
.q-card .form-control:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 0.2rem rgba(11, 85, 165, 0.2);
}
.q-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}
.q-link {
  color: var(--azul-letra);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.q-link:hover {
  color: var(--azul);
}

.rules {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.9rem;
  font-size: 0.82rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.8rem;
}

.rules li {
  color: var(--gris-letra);
}

.rules li::before {
  content: "○ ";
}

.rules li.ok {
  color: var(--ok);
}

.rules li.ok::before {
  content: "✓ ";
}

.meter {
  height: 6px;
  border-radius: 99px;
  background: var(--azul-suave);
  overflow: hidden;
  margin-top: 0.5rem;
}

.meter > div {
  height: 100%;
  width: 0;
  background: var(--rosa);
  transition:
    width 0.25s,
    background 0.25s;
}
.err-inline {
  color: var(--rosa);
  font-weight: 700;
  font-size: 0.85rem;
  display: none;
  margin-top: 0.3rem;
}

/*.mail-prev{border:1px dashed var(--azul-linea);border-radius:12px;padding:1.1rem 1.2rem;background:#fbfdff;font-size:.93rem}
.mail-prev .from{color:var(--muted);font-size:.8rem;border-bottom:1px solid var(--azul-suave);padding-bottom:.5rem;margin-bottom:.8rem}
.mail-prev .btn-cta{display:inline-block;width:auto;padding:.6rem 1.4rem;font-size:.95rem;margin:.6rem 0}
.countdown{font-variant-numeric:tabular-nums;font-weight:800}
.screen{display:none}.screen.on{display:block}*/

@media (max-width: 480px) {
  .q-card {
    padding: 1.5rem 1.2rem;
  }
  .rules {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seal.ok {
    animation: none;
  }
  .meter > div {
    transition: none;
  }
}
