/**
 * ImpulsarAI — marca (#742eee reemplaza todo el azul del tema)
 * Cargar después de responsive.css
 */

:root {
  --theme-color: #742eee;
  --blue: #742eee;
  --sky-blue: #742eee;
  --skyblue: #742eee;
  --bs-primary: #742eee;
  --bs-primary-rgb: 116, 46, 238;
  --bs-blue: #742eee;
  --bs-link-color: #742eee;
  --bs-link-hover-color: #5e25c7;
}

.btn-primary,
.page-link.active,
.active > .page-link {
  background-color: #742eee !important;
  border-color: #742eee !important;
}

/* —— Botones —— */
.btn--blue,
.btn-blue,
.btn.btn--blue,
.btn.btn-blue,
a.btn--blue,
a.btn-blue,
button.btn--blue,
button.btn-blue,
.pt-btn.btn--blue,
.pt-btn.btn-blue,
.btn--skyblue,
.btn-skyblue,
.btn.btn--skyblue,
.hover--blue:hover,
.hover--skyblue:hover,
.scroll .hover--blue:hover,
.scroll .hover--skyblue:hover,
.color--white .hover--blue:hover,
.color--white .hover--skyblue:hover {
  color: #fff !important;
  border-color: #742eee !important;
  background-color: #742eee !important;
}

.btn--tra-blue,
.btn-tra-blue,
.btn.btn--tra-blue,
.btn--tra-skyblue,
.btn.btn--tra-skyblue,
.hover--tra-blue:hover,
.hover--tra-skyblue:hover,
.color--white .btn--tra-blue,
.color--white .btn--tra-skyblue {
  color: #742eee !important;
  background-color: transparent !important;
  border-color: #742eee !important;
}

/* —— Texto / iconos —— */
.color--blue,
.color--blue a,
.color--blue :is(h1, h2, h3, h4, h5, h6),
.color--skyblue,
.color--skyblue a,
.color--skyblue :is(h1, h2, h3, h4, h5, h6),
.comp-table .color--blue,
.comp-table .color--skyblue,
.pricing-features.ico--blue span,
.pricing-features.ico--skyblue span,
.theme--dark a.color--blue,
.theme--dark a.color--skyblue,
.link-hover--blue a:hover,
.link-hover--skyblue a:hover,
.footer-form .input-group-skyblue .btn,
.shape-ico.color--blue span,
.shape-ico.color--skyblue span,
.cbox-5-ico.color--blue,
.cbox-5-ico.color--skyblue,
.color--blue [class*="flaticon-"]:before,
.color--blue [class*="flaticon-"]:after,
.color--skyblue [class*="flaticon-"]:before,
.color--skyblue [class*="flaticon-"]:after,
.wsmenu > .wsmenu-list.nav-blue > li > ul.sub-menu > li > a:hover,
.wsmenu > .wsmenu-list.nav-blue > li > ul.sub-menu > li > ul.sub-menu > li > a:hover,
.wsmenu > .wsmenu-list.nav-blue > li > .wsmegamenu.w-70 ul.link-list > li > a:hover,
.wsmenu > .wsmenu-list.nav-blue > li > .wsmegamenu.halfmenu ul.link-list > li > a:hover,
.wsmenu > .wsmenu-list.nav-skyblue > li > ul.sub-menu > li > a:hover,
.wsmenu > .wsmenu-list.nav-skyblue > li > ul.sub-menu > li > ul.sub-menu > li > a:hover,
.wsmenu > .wsmenu-list.nav-skyblue > li > .wsmegamenu.w-70 ul.link-list > li > a:hover,
.wsmenu > .wsmenu-list.nav-skyblue > li > .wsmegamenu.halfmenu ul.link-list > li > a:hover,
.theme--dark .wsmainfull.scroll .nav-blue .sub-menu a:hover,
.theme--dark .wsmainfull.scroll .nav-blue .halfmenu a:hover,
.theme--dark .wsmainfull.scroll .nav-skyblue .sub-menu a:hover,
.theme--dark .wsmainfull.scroll .nav-skyblue .halfmenu a:hover,
.theme--blue #cookies-info:hover,
.theme--skyblue #cookies-info:hover {
  color: #742eee !important;
}

.wsmenu > .wsmenu-list.nav-theme > li > ul.sub-menu > li > a:hover,
.wsmenu > .wsmenu-list.nav-theme > li > ul.sub-menu > li > ul.sub-menu > li > a:hover,
.wsmenu > .wsmenu-list.nav-theme > li > .wsmegamenu.w-70 ul.link-list > li > a:hover,
.wsmenu > .wsmenu-list.nav-theme > li > .wsmegamenu.halfmenu ul.link-list > li > a:hover {
  color: #742eee !important;
}

/* —— Fondos —— */
.bg--blue,
.bg--skyblue,
.nav-blue .sm-info,
.nav-skyblue .sm-info,
.blue-loading .object,
.skyblue-loading .object,
.theme-loading .object,
.theme--blue .switcher,
.theme--skyblue .switcher,
.fbox-9.blue--hover:hover .fbox-ico,
.theme--blue .page-item.active .page-link,
.theme--skyblue .page-item.active .page-link,
.cbox-3:hover .cbox-3-ico.bg--blue,
.cbox-3:hover .cbox-3-ico.bg--skyblue,
#loading .object {
  background-color: #742eee !important;
}

.fbox-9.blue--hover:hover .fbox-ico,
.cbox-3:hover .cbox-3-ico.bg--blue,
.cbox-3:hover .cbox-3-ico.bg--skyblue {
  color: #fff !important;
}

/* —— Bordes / focus —— */
.pricing-1-table.border--blue,
.pricing-1-table.border--skyblue,
.theme--dark .pricing-1-table.border--blue,
.theme--dark .pricing-1-table.border--skyblue,
.fbox-9.blue--hover:hover,
.cbox-3:hover .cbox-3-ico.bg--blue,
.cbox-3:hover .cbox-3-ico.bg--skyblue,
.newsletter-section .form-blue-focus .form-control:focus,
.newsletter-section .form-skyblue-focus .form-control:focus,
.footer-form .newsletter-form .input-group.input-group-blue:focus-within,
.footer-form .newsletter-form .input-group.input-group-skyblue:focus-within,
.modal .newsletter-form.mnf-blue .form-control:focus,
.modal .newsletter-form.mnf-skyblue .form-control:focus,
.modal .request-form.mrf-blue .form-control:focus,
.modal .request-form.mrf-skyblue .form-control:focus,
.contact-form .form-control.success {
  border-color: #742eee !important;
}

.theme--blue .page-item.active .page-link,
.theme--skyblue .page-item.active .page-link {
  border-color: #742eee !important;
}

/* —— Mensajes de formulario (azules del tema) —— */
.hero-section .quick-form-msg .loading,
.newsletter-section .form-notification,
.contact-form .loading,
.reset-password-form .loading,
.request-form .loading,
.quick-form .loading,
.footer-form .form-notification,
.modal .form-notification {
  color: #742eee !important;
}

/* Logo — enlace al index por encima del menú */
#header .desktoplogo,
#header .wsmobileheader .smllogo {
  position: relative;
  z-index: 1035;
}

/* No forzar display en .logo-black / .logo-white: el tema alterna uno u otro al hacer scroll */
#header .wsmobileheader .smllogo a {
  display: inline-block;
}

#header .desktoplogo img,
#header .wsmobileheader .smllogo img,
img.footer-logo,
.footer-copyright-logo img.footer-logo,
.register-page-logo img {
  max-height: 56px !important;
  width: auto !important;
}

/* Home / hero oscuro: alternar logo blanco ↔ negro al scroll */
#header.tra-menu.navbar-light:not(.white-menu) .desktoplogo .logo-black {
  display: none;
}

#header.tra-menu.navbar-light:not(.white-menu) .wsmainfull.scroll .desktoplogo .logo-white {
  display: none;
}

#header.tra-menu.navbar-light:not(.white-menu) .wsmainfull.scroll .desktoplogo .logo-black {
  display: block;
}

#header.tra-menu.navbar-light:not(.white-menu) .desktoplogo .logo-white {
  display: block;
}

/* Páginas interiores con fondo claro: siempre logo oscuro y barra legible */
#header.white-menu .desktoplogo .logo-white {
  display: none !important;
}

#header.white-menu .desktoplogo .logo-black {
  display: block !important;
}

#header.white-menu .wsmenu > .wsmenu-list > li > a.h-link {
  color: var(--black, #0f172a);
}

/* —— Precios ImpulsarAI (diseño propio) —— */
.imp-pricing-section {
  background: linear-gradient(180deg, #faf8ff 0%, #fff 42%, #f6f3ff 100%);
}

.imp-pricing-head {
  max-width: 720px;
  margin: 0 auto 48px;
}

.imp-pricing-head__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--header-color, #0f172a);
}

.imp-pricing-head__sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 28px;
}

.imp-billing-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e8e4f5;
  box-shadow: 0 8px 24px rgba(116, 46, 238, 0.08);
}

.imp-billing-switch__btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-family: var(--main-font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.imp-billing-switch__btn.is-active {
  background: #742eee;
  color: #fff;
  box-shadow: 0 6px 16px rgba(116, 46, 238, 0.35);
}

.imp-billing-switch__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(116, 46, 238, 0.12);
  color: #742eee;
}

.imp-billing-switch__btn.is-active .imp-billing-switch__badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.imp-billing-switch__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.imp-pricing-status {
  margin-bottom: 24px;
}

.imp-pricing-message {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
}

.imp-pricing-plans {
  --imp-plan-cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--imp-plan-cols), minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 12px;
}

.imp-pricing-plans--single {
  max-width: 420px;
}

@media (max-width: 1199.98px) {
  .imp-pricing-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .imp-pricing-plans {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .imp-billing-switch {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
  }

  .imp-billing-switch__btn {
    width: 100%;
    justify-content: center;
  }
}

.imp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 26px 30px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ebe7f5;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.imp-plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.imp-plan--featured {
  border: 2px solid #742eee;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  padding-top: 36px;
}

@media (min-width: 992px) {
  .imp-plan--featured {
    transform: scale(1.03);
  }

  .imp-plan--featured:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
  }
}

.imp-plan__ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #742eee, #9b5cff);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(116, 46, 238, 0.35);
}

.imp-plan__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--header-color, #0f172a);
}

.imp-plan__desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 20px;
}

.imp-plan__pricing {
  margin-bottom: 22px;
  padding: 18px 16px;
  border-radius: 14px;
  background: #f8f6ff;
}

.imp-plan--featured .imp-plan__pricing {
  background: linear-gradient(135deg, rgba(116, 46, 238, 0.08), rgba(116, 46, 238, 0.03));
}

.imp-plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}

.imp-plan__amount {
  font-family: var(--main-font);
  font-size: clamp(1.65rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--header-color, #0f172a);
  word-break: break-word;
}

.imp-plan__period {
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b;
}

.imp-plan__savings {
  flex: 1 0 100%;
  margin: 10px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #742eee;
}

.imp-pricing-plans--monthly .imp-plan__price--yearly,
.imp-pricing-plans--yearly .imp-plan__price--monthly {
  display: none;
}

.imp-plan__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1 1 auto;
}

.imp-plan__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.925rem;
  line-height: 1.45;
  color: #334155;
  border-bottom: 1px solid #f1eef8;
}

.imp-plan__feature:last-child {
  border-bottom: 0;
}

.imp-plan__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(116, 46, 238, 0.12);
  position: relative;
}

.imp-plan__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #742eee;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.imp-plan__cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--main-font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  border: 2px solid #e2e8f0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.imp-plan__cta:hover {
  border-color: #742eee;
  color: #742eee;
  transform: translateY(-1px);
}

.imp-plan__cta--primary {
  background: #742eee;
  border-color: #742eee;
  color: #fff;
  box-shadow: 0 10px 24px rgba(116, 46, 238, 0.35);
}

.imp-plan__cta--primary:hover {
  background: #5e25c7;
  border-color: #5e25c7;
  color: #fff;
}

/* Skeleton carga */
.imp-pricing-loading {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.imp-pricing-loading__card {
  height: 420px;
  border-radius: 20px;
  background: linear-gradient(90deg, #eee9f9 25%, #f7f4fd 50%, #eee9f9 75%);
  background-size: 200% 100%;
  animation: imp-pricing-shimmer 1.2s ease-in-out infinite;
}

.imp-pricing-loading__card--wide {
  animation-delay: 0.15s;
}

@keyframes imp-pricing-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 767.98px) {
  .imp-pricing-loading {
    grid-template-columns: 1fr;
  }

  .imp-pricing-loading__card {
    height: 360px;
  }
}
