/* Panel derecho de login/signup: feature carousel con timeline y reveal */

.afp-panel {
  position: relative;
  overflow: hidden;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(160deg, #050b18 0%, #081226 35%, #0d2b66 75%, #1861fc 100%);
}

.afp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.afp-blob-1 {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -140px;
  background: #1d4ed8;
  opacity: .35;
}

.afp-blob-2 {
  width: 280px;
  height: 280px;
  left: -90px;
  top: 8%;
  background: #1861fc;
  opacity: .25;
}

.afp-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .afp-content {
    padding: 3rem 3.5rem;
  }
}

@media (min-width: 1536px) {
  .afp-content {
    padding: 4rem 5rem;
  }
}

.afp-logo {
  height: 28px;
  width: auto;
}

.afp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
}

/* Timeline */
.afp-timeline {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 320px;
}

.afp-segment {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .15);
  overflow: hidden;
}

.afp-segment-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 2px;
  background: #fff;
}

/* Slides */
.afp-slides {
  position: relative;
  width: 100%;
}

.afp-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.afp-slide.afp-active {
  display: flex;
}

.afp-slide-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 20px;
  color: #fff;
}

.afp-slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.afp-slide-desc {
  font-size: .9375rem;
  color: rgba(255, 255, 255, .65);
  max-width: 360px;
}

/* Reveal animation al activar un slide: entra de derecha a izquierda */
.afp-slide.afp-active .afp-reveal {
  animation: afpSlideIn .55s ease both;
}

.afp-slide.afp-active .afp-reveal:nth-child(1) { animation-delay: 0s; }
.afp-slide.afp-active .afp-reveal:nth-child(2) { animation-delay: .08s; }
.afp-slide.afp-active .afp-reveal:nth-child(3) { animation-delay: .16s; }
.afp-slide.afp-active .afp-reveal:nth-child(4) { animation-delay: .24s; }

@keyframes afpSlideIn {
  from { opacity: 0; transform: translateX(48px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Filas internas de las tarjetas (agenda / equipo): aparecen en cascada */
.afp-slide.afp-active .afp-row {
  animation: afpRowIn .5s ease both;
}

@keyframes afpRowIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Tarjeta mockup (blanca) */
.afp-mockup {
  width: 100%;
  max-width: 380px;
  background: #fff;
  color: #111827;
  border-radius: 14px;
  padding: 1rem;
  text-align: left;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .5);
}

.afp-mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.afp-mockup-title {
  font-size: .8125rem;
  font-weight: 700;
  color: #111827;
}

.afp-chip {
  font-size: .6875rem;
  font-weight: 600;
  padding: .125rem .5rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
}

.afp-chip-green {
  background: #ecfdf3;
  color: #067647;
}

/* Mockup: Agenda */
.afp-appt {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem 0;
  border-top: 1px solid #f1f1f4;
}

.afp-appt:first-of-type {
  border-top: none;
  padding-top: 0;
}

.afp-appt-time {
  font-size: .75rem;
  font-weight: 600;
  color: #6b7280;
  width: 42px;
  flex-shrink: 0;
}

.afp-appt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.afp-line {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.afp-line strong {
  font-size: .8125rem;
  color: #111827;
}

.afp-line small {
  font-size: .6875rem;
  color: #9ca3af;
}

/* Mockup: Equipo y clientes */
.afp-person {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem 0;
  border-top: 1px solid #f1f1f4;
}

.afp-person:first-of-type {
  border-top: none;
  padding-top: 0;
}

.afp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.afp-status {
  margin-left: auto;
  font-size: .6875rem;
  font-weight: 600;
  padding: .125rem .5rem;
  border-radius: 999px;
}

.afp-status-on {
  background: #ecfdf3;
  color: #067647;
}

.afp-status-off {
  background: #f3f4f6;
  color: #6b7280;
}

/* Mockup: Branding / widget */
.afp-swatches {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}

.afp-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e5e7eb;
  transition: transform .25s ease, box-shadow .25s ease;
}

.afp-swatch-active {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px #1861fc;
}

.afp-preview {
  border: 1px solid #f1f1f4;
  border-radius: 10px;
  padding: .75rem;
}

.afp-preview-bar {
  height: 8px;
  width: 60%;
  border-radius: 4px;
  background: #e5e7eb;
  margin-bottom: .625rem;
}

.afp-preview-btn {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  background: #1861fc;
  padding: .375rem .875rem;
  border-radius: 8px;
  transition: background .35s ease;
}

/* Mockup: Reportes y facturación */
.afp-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: .75rem;
}

.afp-stat small {
  display: block;
  font-size: .6875rem;
  color: #9ca3af;
  margin-bottom: .125rem;
}

.afp-stat strong {
  font-size: 1.0625rem;
  color: #111827;
}

.afp-bars {
  display: flex;
  align-items: flex-end;
  gap: .375rem;
  height: 48px;
}

.afp-bars span {
  flex: 1;
  height: 0;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #60a5fa, #1861fc);
}

.afp-slide.afp-active .afp-bars span {
  animation: afpBarGrow .8s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes afpBarGrow {
  from { height: 0; }
  to { height: var(--h); }
}

/* Pantallas grandes: el panel se ve diminuto si no se escalan los tamaños */
@media (min-width: 1536px) {
  .afp-body {
    gap: 3.5rem;
  }

  .afp-timeline {
    max-width: 420px;
  }

  .afp-logo {
    height: 36px;
  }

  .afp-slide-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 28px;
  }

  .afp-slide-title {
    font-size: 2.25rem;
  }

  .afp-slide-desc {
    font-size: 1.125rem;
    max-width: 460px;
  }

  .afp-mockup {
    max-width: 480px;
    padding: 1.5rem;
    border-radius: 18px;
  }

  .afp-mockup-title {
    font-size: 1rem;
  }

  .afp-chip {
    font-size: .8125rem;
    padding: .25rem .75rem;
  }

  .afp-appt-time,
  .afp-line small,
  .afp-stat small {
    font-size: .8125rem;
  }

  .afp-line strong {
    font-size: 1rem;
  }

  .afp-stat strong {
    font-size: 1.375rem;
  }

  .afp-avatar {
    width: 36px;
    height: 36px;
    font-size: .8125rem;
  }

  .afp-status {
    font-size: .8125rem;
  }

  .afp-bars {
    height: 64px;
  }

  .afp-swatch {
    width: 28px;
    height: 28px;
  }

  .afp-preview-btn {
    font-size: .875rem;
    padding: .5rem 1.125rem;
  }
}

/* Tarjeta del formulario (login/signup): crece junto con el panel en pantallas grandes */
@media (min-width: 1536px) {
  .afp-form-card .kt-card-content {
    padding: 2rem 3.5rem;
    gap: .75rem;
  }

  .afp-form-card .afp-form-logo {
    height: 38px;
  }

  .afp-form-card .kt-form-label,
  .afp-form-card .kt-checkbox-label,
  .afp-form-card .kt-link {
    font-size: .9375rem;
  }

  .afp-form-card .kt-input,
  .afp-form-card .select2-container--default .select2-selection--single {
    height: calc(var(--spacing) * 10.5);
    font-size: .9375rem;
  }

  .afp-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(var(--spacing) * 10.5);
  }

  .afp-form-card .kt-btn {
    height: calc(var(--spacing) * 11);
    font-size: 1rem;
  }
}

/* Botón "Ir al inicio de sesión" tras registro exitoso:
   fondo azul (kt-btn-primary) con texto siempre blanco. */
.afp-back-login,
.afp-back-login:hover {
  color: #fff !important;
}
