:root {
  --fae-primary: #74acdf;
  --fae-primary-strong: #5b94c7;
  --fae-bg: #ffffff;
  --fae-surface: #f4f8fc;
  --fae-text: #26384c;
  --fae-heading: #203043;
  --fae-muted: #4c5f7a;
  --fae-border: #d7e4f2;
  --section-1: #f8f9fa;
  --section-2: #fefeff;
}

html,
body {
  background: var(--fae-bg);
  color: var(--fae-text);
  overflow-x: hidden;
  padding-top: 78px;
  line-height: 1.6;
  margin: 0;
}

h1,
h2,
h3,
.section-title {
  color: var(--fae-heading);
}

.navbar {
  background: var(--fae-bg);
  border-bottom: 1px solid var(--fae-border);
}

.navbar .navbar-collapse {
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 0;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--fae-primary-strong);
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.hero {
  background: var(--section-1);
  border-bottom: 1px solid var(--fae-border);
  border-top: 1px solid var(--fae-border);
  margin-top: -78px;
  padding-top: calc(3rem + 78px);
}

.section-title {
  font-weight: 700;
}

.card {
  background: var(--fae-surface);
  border: 1px solid #c9d9eb;
  box-shadow: none;
}

.card-info {
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card-info:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(15, 27, 45, 0.12);
}

.card-decision {
  background: #ffffff;
  border: 2px solid #bcd3ea;
  box-shadow: 0 16px 28px rgba(15, 27, 45, 0.12);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card-decision:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px rgba(15, 27, 45, 0.16);
}

.text-muted-custom {
  color: var(--fae-muted);
}

.section-text {
  max-width: 720px;
  margin: 0 auto;
}

.btn-primary {
  background-color: var(--fae-primary-strong);
  border-color: var(--fae-primary-strong);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(91, 148, 199, 0.35);
  border-width: 2px;
}

.btn-primary:hover {
  background-color: #4c86ba;
  border-color: #4c86ba;
  color: #ffffff;
}

.btn-secondary {
  background-color: #e6f2fb;
  border-color: #a9c9e6;
  color: var(--fae-heading);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: #d3e6f7;
  border-color: #9bbfe0;
  color: var(--fae-heading);
}

.btn-outline-primary {
  border-color: var(--fae-primary);
  color: var(--fae-text);
  border-width: 2px;
}

.btn-outline-primary:hover {
  background-color: var(--fae-primary-strong);
  border-color: var(--fae-primary-strong);
  color: #ffffff;
}

.btn-link {
  color: var(--fae-primary-strong);
  font-weight: 600;
}

.nav-link.active {
  color: var(--fae-primary-strong) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--fae-primary);
  padding-bottom: 0.25rem;
}

.section-anchor {
  scroll-margin-top: 96px;
}

.back-to-top {
  position: fixed;
  background-color: transparent;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  transform: translateY(8px);
  border-radius: 999px;
  padding: 0.55rem 0.7rem;
}

.back-to-top.btn-outline-primary {
  border-width: 1px;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

form p.small {
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  html,
  body {
    padding-top: 0;
  }

  .hero {
    margin-top: 0;
    padding-top: 3rem;
  }

  .navbar {
    position: relative;
  }

  .navbar .container {
    position: relative;
  }

  .navbar-brand {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 0 3rem;
    z-index: 2;
    box-sizing: border-box;
  }

  .navbar-toggler {
    position: absolute;
    right: 0.5rem;
    margin-left: auto;
    z-index: 3;
    flex-shrink: 0;
    top: 0.35rem;
  }

  .navbar-collapse {
    text-align: center;
    margin-top: 0.75rem;
    width: 100%;
  }

  .navbar-collapse.show {
    background: #d9ecf8;
    border: 1px solid #c5d9ee;
    padding: 0.75rem 1rem;
  }

  .navbar-collapse.collapsing {
    background: #d9ecf8;
    border: 1px solid #c5d9ee;
    padding: 0.75rem 1rem;
  }

  .navbar-nav {
    align-items: center;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    display: inline-block;
    padding: 0.6rem 0;
  }

  .footer-quick-links {
    display: none !important;
  }
}

.badge-soft {
  background: rgba(116, 172, 223, 0.15);
  color: var(--fae-text);
  border: 1px solid var(--fae-border);
}

.flow-step {
  border: 1px solid #c9d9eb;
  border-left: 4px solid var(--fae-primary);
  padding: 1.5rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 27, 45, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.flow-section .row {
  row-gap: 1.5rem;
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px rgba(15, 27, 45, 0.12);
}

.flow-step i {
  background: rgba(116, 172, 223, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.flow-step h5 {
  margin-bottom: 0.1rem;
}

.flow-step p {
  margin-bottom: 0;
}

.form-control,
.form-select {
  background: var(--fae-bg);
  color: var(--fae-text);
  border: 1px solid var(--fae-border);
}

.form-feedback {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.form-feedback.success {
  color: #1f7a3d;
}

.form-feedback.error {
  color: #b42318;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--fae-primary);
  box-shadow: 0 0 0 0.2rem rgba(116, 172, 223, 0.25);
}

.footer {
  border-top: 1px solid var(--fae-border);
}

main > section:nth-of-type(odd) {
  background: var(--section-1);
}

main > section:nth-of-type(even) {
  background: var(--section-2);
}

.bg-light .card,
.bg-light .flow-step,
main > section:nth-of-type(odd) .card,
main > section:nth-of-type(even) .card,
main > section:nth-of-type(odd) .flow-step,
main > section:nth-of-type(even) .flow-step {
  background: #ffffff;
}

#contacto {
  background: var(--fae-surface);
}

ul li i.bi {
  vertical-align: middle;
  margin-top: -2px;
}

.bg-light {
  background-color: var(--fae-surface) !important;
}

.navbar .btn-primary {
  padding: 0.5rem 1.1rem;
}

.hero .btn-primary {
  transform: translateY(0);
}

.hero .btn-primary:hover {
  transform: translateY(-1px);
}

@media (min-width: 992px) {
  .hero .text-lg-start {
    text-align: left !important;
  }

  .flow-step {
    border-left: none;
    border-top: 2px solid var(--fae-primary);
    padding-left: 0;
    padding-top: 1rem;
    text-align: center;
  }
}

/* Highlight clave */
.plans-intro-highlight {
  max-width: 820px;
  margin: 1.5rem auto 3rem;
  padding: 1rem 1.25rem;
  background: #f5faff;
  border-left: 4px solid var(--fae-primary);
  font-weight: 500;
}

/* Context cards */
.card-context {
  background: #ffffff;
  border: 1px solid #dbe8f5;
  border-radius: 12px;
}

/* Context items */
.plan-context-item strong {
  display: block;
  font-size: 0.9rem;
}

.plan-context-item p {
  font-size: 0.9rem;
}

/* Decision badge */
.decision-badge {
  display: inline-block;
  margin: 0 auto 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(116, 172, 223, 0.25);
  color: var(--fae-text);
  border-radius: 999px;
}

/* CTA pegado a la decisión */
.plan-decision-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2edf8;
}

/* Nota final */
.plans-note {
  max-width: 760px;
  margin: 0 auto;
}

/* =========================
   PyMEs Section
========================= */
/* =========================
   PyMEs Section
========================= */

#pymes .section-title {
  margin-bottom: 1rem;
}

#pymes .section-text {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

/* Lista de beneficios PyME */
#pymes .feature-list {
  max-width: 420px;
  margin: 1.5rem auto 0;
  display: grid;
  gap: 0.75rem;
}

#pymes .feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f5faff;
  border: 1px solid #d7e4f2;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
}

/* Íconos de beneficios */
#pymes .feature-list li i {
  font-size: 1rem;
  color: var(--fae-primary-strong);
  background: rgba(116, 172, 223, 0.2);
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Frase de cierre */
#pymes .pymes-closing {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--fae-heading);
}

/* #sizte-ai-widget,
#sizte-ai-launcher {
  --sizte-ai-primary: #74acdf;
  --sizte-ai-bg: #ffffff;
  --sizte-ai-text: #111827;
  --sizte-ai-border: #e5e7eb;
  --sizte-ai-header-bg: #f3f4f6;
  --sizte-ai-bubble-user: #5b94c7;
  --sizte-ai-bubble-bot: #f3f4f6;
} */

/* =========================
   Sizte AI Widget – Override FAEARG (FINAL)
========================= */

/* Variables base (heredadas del sitio) */
#sizte-ai-widget,
#sizte-ai-launcher {
  --sizte-ai-primary: var(--fae-primary);
  --sizte-ai-bg: var(--fae-bg);
  --sizte-ai-text: var(--fae-text);
  --sizte-ai-border: var(--fae-border);
  --sizte-ai-header-bg: var(--fae-surface);
  --sizte-ai-bubble-user: var(--fae-primary-strong);
  --sizte-ai-bubble-bot: var(--section-1);
  --sizte-ai-heading: var(--fae-heading);
  --sizte-ai-muted: var(--fae-muted);
}

/* =========================
   Contenedor principal
========================= */
#sizte-ai-widget {
  position: relative;
  background: var(--sizte-ai-bg);
  border-radius: 16px;
  border: 1px solid var(--sizte-ai-border);
  outline: 1px solid rgba(32, 48, 67, 0.08);
  outline-offset: -1px;
  background-clip: padding-box;
  box-shadow:
    0 12px 24px rgba(15, 27, 45, 0.18),
    0 2px 4px rgba(15, 27, 45, 0.12);
}

/* Halo interno sutil (recorte premium) */
#sizte-ai-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* =========================
   Header
========================= */
#sizte-ai-widget > div:first-child {
  background: var(--sizte-ai-header-bg);
  border-bottom: 1px solid var(--sizte-ai-border);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

#sizte-ai-widget strong {
  color: var(--sizte-ai-heading);
  font-weight: 600;
  letter-spacing: 0.2px;
}

#sizte-ai-widget span {
  color: var(--sizte-ai-muted);
}

/* =========================
   Área de mensajes
========================= */
#sizte-ai-widget #ai-messages {
  background: var(--sizte-ai-bg);
}

/* =========================
   Burbujas
========================= */
#sizte-ai-widget #ai-messages > div > div {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(15, 27, 45, 0.06);
}

/* Bot */
#sizte-ai-widget #ai-messages > div:not([style*="flex-end"]) > div {
  background: var(--sizte-ai-bubble-bot);
  color: var(--sizte-ai-text);
}

/* Usuario */
#sizte-ai-widget #ai-messages > div[style*="flex-end"] > div {
  background: var(--sizte-ai-bubble-user);
  color: #ffffff;
}

/* =========================
   Footer
========================= */
#sizte-ai-widget > div:last-child {
  background: var(--sizte-ai-header-bg);
  border-top: 1px solid var(--sizte-ai-border);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* =========================
   Input
========================= */

#sizte-ai-widget > div:last-child > div {
  align-items: center;
}

#sizte-ai-widget input {
  background: var(--sizte-ai-bg);
  border: 1px solid var(--sizte-ai-border);
  color: var(--sizte-ai-text);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  height: 36px;
  line-height: 36px;
}

#sizte-ai-widget input:focus {
  outline: none;
  border-color: var(--sizte-ai-primary);
  box-shadow: 0 0 0 0.2rem rgba(116, 172, 223, 0.25);
}

/* =========================
   Botón enviar
========================= */
#sizte-ai-widget button#ai-send {
  height: 36px;
  width: 36px;
  line-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fae-primary-strong);
  box-shadow: 0 6px 14px rgba(91, 148, 199, 0.35);
}

#sizte-ai-widget button#ai-send:hover {
  background: #4c86ba;
}

/* =========================
   Launcher
========================= */
#sizte-ai-launcher {
  background: var(--fae-primary-strong);
  box-shadow: 0 10px 22px rgba(15, 27, 45, 0.25);
}

#sizte-ai-launcher img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Reducir agresividad visual del pulso */
#sizte-ai-launcher {
  animation-duration: 5s;
}
