:root {
  --blue-900: #12294d;
  --blue-800: #1b3a6b;
  --blue-700: #24507f;
  --cyan-500: #22b8cf;
  --cyan-400: #38d0e4;
  --violet-500: #7c6cf0;
  --green-500: #34d399;
  --amber-500: #fbbf24;
  --slate-900: #0f172a;
  --slate-800: #1f2937;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(18, 41, 77, 0.18);
  --max: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --announce-h: 2.1rem;
  --nav-h: 74px;
  --announce-total: calc(var(--announce-h) + env(safe-area-inset-top, 0px));
  --header-total: calc(var(--announce-total) + var(--nav-h));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-total); }

html, body {
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--slate-800);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  padding-top: var(--header-total);
}

h1, h2, h3 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--blue-900);
  line-height: 1.14;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-800);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #eaf7fb;
  background: linear-gradient(180deg, var(--blue-800), var(--blue-900));
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow--light {
  color: #cdeef5;
  background: rgba(255, 255, 255, 0.12);
}

.accent {
  color: var(--cyan-500);
}

.btn {
  --btn-bg: var(--blue-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 58, 107, 0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(27, 58, 107, 0.34);
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
}
.btn--ghost {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--blue-900);
}
.btn--ghost:hover {
  border-color: var(--cyan-500);
  color: var(--blue-700);
  transform: translateY(-2px);
}
.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.nav {
  position: relative;
  background: rgba(248, 250, 252, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--slate-200);
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand__name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}
.brand__name span { color: var(--cyan-500); }
.brand--light .brand__name { color: #fff; }

/* --- Destello de luz en CTA; respiro suave en el logo --- */
.nav__cta,
.hero__actions .btn--primary {
  position: relative;
  overflow: hidden;
}
.nav__cta::after,
.hero__actions .btn--primary::after {
  content: "";
  position: absolute;
  top: -25%;
  left: -170%;
  width: 55%;
  height: 150%;
  background: linear-gradient(
    105deg,
    rgba(34, 184, 207, 0) 0%,
    rgba(34, 184, 207, 0.45) 35%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(34, 184, 207, 0.45) 65%,
    rgba(34, 184, 207, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: shine-sweep 3.8s ease-in-out infinite;
}
@keyframes shine-sweep {
  0% { left: -170%; }
  45% { left: 170%; }
  100% { left: 170%; }
}
.nav .brand {
  animation: brand-glow 5s ease-in-out infinite;
}
@keyframes brand-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(34, 184, 207, 0)); }
  50% { filter: drop-shadow(0 0 12px rgba(34, 184, 207, 0.65)); }
}
.nav .brand__name {
  animation: brand-darken 5s ease-in-out infinite;
}
@keyframes brand-darken {
  0%, 100% { color: var(--blue-900); text-shadow: 0 0 0 rgba(15, 23, 42, 0); }
  50% { color: #000000; text-shadow: 0 2px 8px rgba(15, 23, 42, 0.4); }
}
.nav .brand__name span {
  animation: brand-darken-accent 5s ease-in-out infinite;
}
@keyframes brand-darken-accent {
  0%, 100% { color: var(--cyan-500); }
  50% { color: #0b5e70; text-shadow: 0 2px 8px rgba(11, 94, 112, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .nav__cta::after,
  .hero__actions .btn--primary::after {
    animation: none;
    display: none;
  }
  .nav .brand,
  .nav .brand__name,
  .nav .brand__name span {
    animation: none;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--blue-700); }
.nav__links a.nav__cta { color: #ffffff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px;
  height: 2.4px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.blob--1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(34,184,207,0.55), transparent 70%);
  top: -120px; right: -80px;
}
.blob--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(124,108,240,0.4), transparent 70%);
  bottom: -140px; left: -100px;
  animation-delay: -6s;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(27,58,107,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,58,107,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -30px) scale(1.06); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero__highlight {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.05rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 184, 207, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.65)),
    linear-gradient(135deg, rgba(34, 184, 207, 0.12), rgba(124, 108, 240, 0.12));
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  color: var(--blue-800);
}
.hero__highlight strong { color: var(--blue-900); }
.hero__sub {
  font-size: 1.12rem;
  color: var(--slate-600);
  max-width: 34em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1.4rem;
}
.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--slate-600);
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-sm);
}
.hero__trust svg { width: 20px; height: 20px; color: var(--green-500); flex-shrink: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
  max-width: 100%;
}
.hero__panel:hover .panel { transform: perspective(1200px) rotateY(0) rotateX(0); }
.panel__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 1rem;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-200); }
.dot:first-child { background: #ff6b6b; }
.dot:nth-child(2) { background: var(--amber-500); }
.dot:nth-child(3) { background: var(--green-500); }
.panel__title {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-400);
}
.panel__kpis { display: flex; gap: 1rem; margin-bottom: 1rem; }
.kpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.kpi__label { font-size: 0.76rem; color: var(--slate-400); font-weight: 500; }
.kpi__value { font-family: "Poppins", sans-serif; font-size: 1.5rem; color: var(--blue-900); }
.kpi__tag { font-size: 0.72rem; font-weight: 600; width: fit-content; padding: 0.1rem 0.5rem; border-radius: 999px; }
.kpi__tag--up { color: #0f766e; background: rgba(52,211,153,0.16); }
.kpi__tag--warn { color: #b45309; background: rgba(251,191,36,0.18); }
.panel__chart { width: 100%; height: 96px; margin-bottom: 1rem; }
.chart-line { stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 2.2s var(--ease) 0.4s forwards; }
.chart-area { opacity: 0; animation: fadein 1s var(--ease) 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.panel__ai {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(34,184,207,0.1), rgba(124,108,240,0.1));
  border: 1px solid rgba(34,184,207,0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.panel__ai-icon {
  flex-shrink: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--violet-500));
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}
.panel__ai p { margin: 0; font-size: 0.86rem; color: var(--slate-600); }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tinted { background: #eef4fa; }
.section__head {
  max-width: 760px;
  margin: 0 auto clamp(2.2rem, 4vw, 3.2rem);
  text-align: center;
}
.section__sub { color: var(--slate-600); font-size: 1.08rem; }
.section__cta { text-align: center; margin-top: 2.6rem; }
.section__note {
  text-align: center;
  margin-top: 2.4rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--blue-700);
}

.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.pain {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pain:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(34,184,207,0.55);
}
.pain__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--blue-800);
  background: rgba(34,184,207,0.12);
  margin-bottom: 1.1rem;
}
.pain__icon svg { width: 26px; height: 26px; }
.pain h3 { font-size: 1.08rem; color: var(--blue-800); }
.pain p { color: var(--slate-600); font-size: 0.96rem; margin: 0; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: border-color 0.3s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::after { border-color: var(--cyan-500); }
.card__badge {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0f766e;
  background: rgba(52,211,153,0.18);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.card__badge--soon { color: var(--blue-700); background: rgba(124,108,240,0.16); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 15px;
  margin-bottom: 1.2rem;
  color: #fff;
}
.card__icon svg { width: 27px; height: 27px; }
.card__icon--cyan { background: linear-gradient(135deg, var(--cyan-500), #1b9fb5); }
.card__icon--blue { background: linear-gradient(135deg, var(--blue-700), var(--blue-800)); }
.card__icon--violet { background: linear-gradient(135deg, var(--violet-500), #6355d6); }
.card__icon--green { background: linear-gradient(135deg, var(--green-500), #12a37a); }
.card p { color: var(--slate-600); font-size: 0.97rem; }
.card__list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.55rem;
}
.card__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--slate-600);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322b8cf' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- Planes y precios --- */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(34, 184, 207, 0.55);
}
.price-card__head { margin-bottom: 1.2rem; }
.price-card__title {
  font-size: 1.08rem;
  margin: 0 0 0.5rem;
  color: var(--blue-900);
}
.price-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate-600);
}
.price-card__body {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--slate-200);
}
.price-card__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
}
.price-card__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.price-card__setup {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--blue-800);
}
.price-card__month {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-900);
}
.price-card__setup em,
.price-card__month em {
  font-style: normal;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--slate-400);
}
.price-card__note {
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan-500);
}
.price-card__cta { margin-top: auto; }
.price-card--featured {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(34, 184, 207, 0.22), var(--shadow-lg);
}
.price-card--featured:hover {
  box-shadow: 0 0 0 3px rgba(34, 184, 207, 0.32), var(--shadow-lg);
}
.price-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--violet-500));
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
  .pricing__legal {
  max-width: 760px;
  margin: clamp(2rem, 4vw, 2.8rem) auto 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--slate-400);
  text-align: center;
}

/* --- Announcement Bar --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--cyan-500);
}

.announcement-bar {
  position: relative;
  width: 100%;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cyan-500);
  color: var(--blue-900);
  border-bottom: 1px solid rgba(18, 41, 77, 0.15);
  font-size: 0.9rem;
  line-height: 1;
}

.announcement-bar__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: announcement-marquee 28s linear infinite;
  will-change: transform;
}

.announcement-bar__text {
  display: inline-block;
  white-space: nowrap;
  padding: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.announcement-bar:hover .announcement-bar__track {
  animation-play-state: paused;
}

@keyframes announcement-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .announcement-bar { font-size: 0.82rem; }
  .announcement-bar__track { animation-duration: 22s; }
  :root { --announce-h: 2rem; }
}


.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 780px;
  display: grid;
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.step:hover { transform: translateX(6px); border-color: rgba(34,184,207,0.55); }
.step__num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--cyan-500));
}
.step h3 { margin-bottom: 0.3rem; }
.step p { margin: 0; color: var(--slate-600); font-size: 0.96rem; }

.quote {
  max-width: 780px;
  margin: 2.6rem auto 0;
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(27,58,107,0.05), rgba(34,184,207,0.08));
  border: 1px solid rgba(34,184,207,0.25);
}
.quote p {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}
.quote cite { color: var(--slate-600); font-style: normal; font-weight: 500; }

.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about__copy p { color: var(--slate-600); }
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: clamp(1.8rem, 3vw, 2.4rem);
}
.tab {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--surface);
  border: 1px solid var(--slate-200);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.tab:hover {
  color: var(--blue-900);
  border-color: var(--cyan-500);
  transform: translateY(-1px);
}
.tab.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  box-shadow: 0 10px 22px rgba(27, 58, 107, 0.24);
}
.tab:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 2px; }
.tabpanel[hidden] { display: none; }
.tabpanel:focus { outline: none; }
.pillars {
  display: grid;
  gap: 1rem;
}
.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(34,184,207,0.55); }
.pillar__icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: var(--cyan-500);
  background: rgba(34,184,207,0.12);
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 0.15rem; font-size: 1.02rem; }
.pillar p { margin: 0; font-size: 0.92rem; color: var(--slate-600); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
  text-align: center;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.7rem 1rem;
  box-shadow: var(--shadow-sm);
}
.stat__num {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--blue-800);
  line-height: 1.1;
}
.stat span { font-size: 0.9rem; color: var(--slate-600); }

/* =====================================================
   Equipo (Quiénes somos)
   ===================================================== */
.team { margin-top: 0; }
.team__head { max-width: 640px; margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.team__title {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0.55rem 0 0.5rem;
}
.team__lead { color: var(--slate-600); margin: 0; }

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 820px;
  margin: 0 auto;
}
.member {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(34, 184, 207, 0.5);
}
.member__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-900);
}
.member__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: transform 0.6s var(--ease);
}
.member:hover .member__media img { transform: scale(1.06); }
.member__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 41, 77, 0) 45%, rgba(18, 41, 77, 0.55) 100%);
}
.member__media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, var(--cyan-500), var(--violet-500));
}
.member__index {
  position: absolute;
  top: 0.85rem;
  left: 0.9rem;
  z-index: 2;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.member__body { padding: 1.25rem 1.4rem 1.5rem; }
.member__name { margin: 0 0 0.18rem; font-size: 1.1rem; color: var(--blue-900); }
.member__role {
  margin: 0 0 0.7rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-500);
}
.member__bio { margin: 0; font-size: 0.92rem; color: var(--slate-600); }

/* --- Agentes IA (jerarquía) --- */
.agents { margin-top: clamp(2.4rem, 4vw, 3.2rem); }
.agents__head { max-width: 600px; margin-bottom: clamp(1.4rem, 3vw, 1.9rem); }
.agents__title { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0.5rem 0 0.4rem; }
.agents__lead { color: var(--slate-600); margin: 0; }

.agents__chart {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.agents__connector {
  width: 2px;
  height: clamp(1.2rem, 2.5vw, 1.8rem);
  background: linear-gradient(180deg, rgba(124, 108, 240, 0.6), rgba(34, 184, 207, 0.45));
}

.agents__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 780px;
  padding-top: 2rem;
}
.agents__grid::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 108, 240, 0.5), rgba(34, 184, 207, 0.5));
}
.agents__grid::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0.9rem;
  background: linear-gradient(180deg, rgba(124, 108, 240, 0.6), rgba(34, 184, 207, 0.45));
}

.agent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1rem 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.agents__grid .agent:nth-child(-n + 3)::before {
  content: "";
  position: absolute;
  top: -1.1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1.1rem;
  background: linear-gradient(180deg, rgba(34, 184, 207, 0.5), rgba(124, 108, 240, 0.4));
}
.agent:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 108, 240, 0.5);
  box-shadow: var(--shadow-md);
}
.agent__img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.6rem;
  box-shadow: 0 0 0 2px rgba(124, 108, 240, 0.35), 0 6px 14px rgba(18, 41, 77, 0.18);
}
.agent__name { margin: 0 0 0.2rem; font-size: 0.88rem; color: var(--blue-900); }
.agent__desc { margin: 0; font-size: 0.78rem; color: var(--slate-600); }

.agent--lead {
  flex-direction: row;
  text-align: left;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  padding: 0.9rem 1.2rem;
  border-color: rgba(124, 108, 240, 0.4);
  background: linear-gradient(135deg, rgba(124, 108, 240, 0.12), rgba(34, 184, 207, 0.08));
}
.agent--lead .agent__img {
  width: 56px;
  height: 56px;
  margin-bottom: 0;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(124, 108, 240, 0.5), 0 10px 20px rgba(18, 41, 77, 0.2);
}
.agent__info { min-width: 0; }
.agent--lead .agent__name { font-size: 1rem; }

.section--contact {
  background: linear-gradient(150deg, var(--blue-900), var(--blue-800) 55%, #1b4f6b);
  color: #dfe9f5;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.contact h2 { color: #fff; }
.contact__copy p { color: #b9cbe0; font-size: 1.05rem; }
.contact__points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.7rem;
}
.contact__points li {
  position: relative;
  padding-left: 1.8rem;
  color: #dfe9f5;
  font-size: 0.98rem;
}
.contact__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.15em;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338d0e4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}

.form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field span { font-size: 0.84rem; font-weight: 600; color: var(--slate-600); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--slate-800);
  background: var(--bg);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(34,184,207,0.16);
}
.field input.is-invalid,
.field select.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}
.form__legal { margin: 0; text-align: center; font-size: 0.8rem; color: var(--slate-400); }
.form__status { margin: 0; text-align: center; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form__status.is-success { color: #0f766e; }
.form__status.is-error { color: #b91c1c; }

.footer {
  background: var(--slate-900);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand p { color: #94a3b8; font-size: 0.92rem; margin-top: 0.8rem; }
.footer__nav, .footer__contact, .footer__legal { display: grid; gap: 0.6rem; align-content: start; }
.footer__nav a, .footer__contact a, .footer__legal a { font-size: 0.92rem; color: #cbd5e1; transition: color 0.2s var(--ease); width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover, .footer__legal a:hover { color: var(--cyan-400); }
.footer__legal-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 1.4rem;
  font-size: 0.84rem;
  color: #94a3b8;
}
.footer__bottom a:hover { color: var(--cyan-400); }

/* =====================================================
   Páginas legales
   ===================================================== */
.legal { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.legal__inner { max-width: 820px; margin: 0 auto; }
.legal h1 { margin-top: 0.7rem; }
.legal__meta { color: var(--slate-400); font-size: 0.86rem; margin-bottom: 1.6rem; }
.legal__body h2 { font-size: 1.16rem; margin: 1.9rem 0 0.5rem; }
.legal__body p, .legal__body li { color: var(--slate-600); }
.legal__body ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.4rem; font-size: 0.9rem; }
.legal__body th, .legal__body td { text-align: left; padding: 0.6rem 0.7rem; border: 1px solid var(--slate-200); color: var(--slate-600); vertical-align: top; }
.legal__body th { background: var(--bg); color: var(--blue-800); font-weight: 600; }
.legal__note {
  background: rgba(34, 184, 207, 0.1);
  border: 1px solid rgba(34, 184, 207, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  color: var(--blue-800);
  font-size: 0.94rem;
  margin-bottom: 1.4rem;
}
.legal__note p { margin: 0; color: inherit; }
.legal__back { margin-top: 2.4rem; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__panel { max-width: 480px; }
  .panel { transform: none; }
  .grid--3 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 2rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container {
    padding: 0 1rem;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__trust {
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    padding: 0.6rem 0.9rem;
  }
  .nav__links {
    position: fixed;
    inset: var(--header-total) 0 auto 0;
    top: var(--header-total);
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    background: var(--surface);
    padding: 1.2rem 1.4rem 1.6rem;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease), visibility 0.35s var(--ease);
  }
  .nav__links.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav__links a { padding: 0.7rem 0.3rem; border-radius: 8px; }
  .nav__links a:not(.btn):hover { background: var(--bg); }
  .nav__cta { margin-top: 0.5rem; justify-content: center; }
  .nav__toggle { display: flex; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }
  .grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .agents__grid { grid-template-columns: 1fr; padding-top: 0; max-width: none; }
  .agents__grid::before,
  .agents__grid::after,
  .agents__grid .agent:nth-child(-n + 3)::before,
  .agents__connector { display: none; }
  .agent--lead { flex-direction: column; text-align: center; }
  .agent--lead .agent__img { margin-bottom: 0.7rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-area { opacity: 1; }
}

/* =====================================================
   Demos interactivos (modal)
   ===================================================== */
body.is-locked { overflow: hidden; }

.card[data-demo] { cursor: pointer; }
.card[data-demo]:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 3px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 2.8rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.9rem;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); opacity: 1; }
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--slate-200);
  border-radius: 50%;
  background: var(--surface);
  color: var(--slate-600);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.modal__close:hover {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: #fff;
  transform: rotate(90deg);
}
.modal__close svg { width: 18px; height: 18px; }

.demo__head { padding-right: 2.6rem; margin-bottom: 1.3rem; }
.demo__title { font-size: 1.3rem; margin-bottom: 0.35rem; }
.demo__sub { color: var(--slate-600); font-size: 0.94rem; margin: 0; }

.demo__stage {
  background: var(--bg);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}
.demo__stage--chat { padding: 1rem; }
.demo__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }

.demo__ia-badge {
  flex-shrink: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--violet-500));
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}

/* --- Demo 1: inventario --- */
.demo__product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.demo__product-name {
  display: block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--blue-900);
}
.demo__product-sku { font-size: 0.78rem; color: var(--slate-400); }
.demo__stock { text-align: right; flex-shrink: 0; }
.demo__stock-label { display: block; font-size: 0.76rem; color: var(--slate-400); }
.demo__stock-value {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-800);
  transition: color 0.3s var(--ease);
}
.demo__stock-value.is-low { color: #b45309; }
.demo__stock-value.is-bump { animation: bump 0.4s var(--ease); }
.demo__stock-unit { font-size: 0.8rem; color: var(--slate-600); }

.demo__alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  animation: fadeup 0.4s var(--ease);
}
.demo__alert--warn {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(251, 146, 60, 0.12));
  border: 1px solid rgba(251, 146, 60, 0.4);
}
.demo__alert-body { flex: 1; }
.demo__alert p { margin: 0; font-size: 0.9rem; color: #92400e; }
.demo__alert-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }

/* --- Demo 2: ventas online --- */
.demo__log { display: grid; gap: 0.6rem; }
.demo__log-empty {
  font-size: 0.9rem;
  color: var(--slate-400);
  text-align: center;
  padding: 1.4rem 0.6rem;
  margin: 0;
}
.demo__step {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  opacity: 0;
  transform: translateX(-12px);
  animation: slidein 0.4s var(--ease) forwards;
}
.demo__step.is-done { border-color: rgba(52, 211, 153, 0.55); }
.demo__status {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 184, 207, 0.16);
  color: var(--cyan-500);
}
.demo__status svg { width: 16px; height: 16px; }
.demo__status .demo__check { display: none; }
.demo__status .demo__spinner { display: block; animation: spin 0.8s linear infinite; }
.demo__step.is-done .demo__status { background: var(--green-500); color: #fff; }
.demo__step.is-done .demo__status .demo__check { display: block; animation: pop 0.4s var(--ease); }
.demo__step.is-done .demo__status .demo__spinner { display: none; }
.demo__step-text { font-size: 0.92rem; color: var(--slate-800); }
.demo__step-text strong { font-weight: 600; }

/* --- Demo 3: asistente IA --- */
.demo__chat {
  display: grid;
  gap: 0.8rem;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.2rem;
}
.demo__msg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 92%;
  animation: fadeup 0.35s var(--ease);
}
.demo__msg--user { margin-left: auto; flex-direction: row-reverse; }
.demo__msg p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
}
.demo__msg--user p {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  color: #fff;
  border-color: transparent;
}
.demo__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--slate-200);
}
.demo__typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate-400);
  animation: blink 1.2s infinite;
}
.demo__typing i:nth-child(2) { animation-delay: 0.2s; }
.demo__typing i:nth-child(3) { animation-delay: 0.4s; }
.demo__typing-label { font-size: 0.76rem; color: var(--slate-400); align-self: center; }
.demo__quick { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.demo__chip {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--blue-700);
  background: rgba(34, 184, 207, 0.1);
  border: 1px solid rgba(34, 184, 207, 0.35);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.demo__chip:hover { background: var(--cyan-500); color: #fff; transform: translateY(-2px); }
.demo__chip:disabled { opacity: 0.55; cursor: default; }
.demo__chip:disabled:hover { background: rgba(34, 184, 207, 0.1); color: var(--blue-700); transform: none; }

/* --- Demo 4: reportes --- */
.demo__chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
  height: 180px;
  padding: 0.8rem 0.4rem 0;
  border-bottom: 1px solid var(--slate-200);
}
.demo__bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.4rem;
}
.demo__bar {
  width: 100%;
  max-width: 42px;
  height: var(--h, 40%);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--cyan-400), var(--cyan-500));
  transform-origin: bottom;
  animation: grow 0.7s var(--ease) backwards;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.demo__bar-day { font-size: 0.72rem; color: var(--slate-400); }
.demo__chart.is-active .demo__bar { background: linear-gradient(180deg, var(--cyan-400), var(--blue-700)); }
.demo__chart.is-active .demo__bar--peak {
  background: linear-gradient(180deg, var(--amber-500), #f59e0b);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.45);
  transform: scaleY(1.04);
}
.demo__conclusion {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(34, 184, 207, 0.1), rgba(124, 108, 240, 0.12));
  border: 1px solid rgba(34, 184, 207, 0.3);
  animation: fadeup 0.45s var(--ease);
}
.demo__conclusion p { margin: 0; font-size: 0.92rem; color: var(--blue-900); }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes slidein { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes blink {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes grow { from { transform: scaleY(0); } }

@media (max-width: 720px) {
  .modal { padding: 0.8rem; }
  .modal__dialog { padding: 1.4rem; }
  .demo__chart { height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo__stock-value.is-bump,
  .demo__alert,
  .demo__step,
  .demo__msg,
  .demo__conclusion,
  .demo__bar { animation: none !important; opacity: 1; transform: none; }
  .demo__status .demo__spinner { animation: none !important; }
}

/* =====================================================
   Mascota asistente (Kai)
   ===================================================== */
.mascot {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  max-width: min(440px, calc(100vw - 2rem));
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}
.mascot.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
}

.mascot__figure {
  position: relative;
  flex-shrink: 0;
  width: 152px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.45s var(--ease), transform 0.3s var(--ease);
}
.mascot__figure:hover { transform: translateY(-4px); }
.mascot__figure:focus-visible {
  outline: 3px solid var(--cyan-500);
  outline-offset: 4px;
  border-radius: 50%;
}
.mascot.is-compact .mascot__figure { width: 96px; }

.mascot__figure::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-500);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.mascot__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--surface);
  background: radial-gradient(130% 130% at 32% 22%, var(--cyan-400) 0%, var(--violet-500) 100%);
  box-shadow: 0 0 0 3px var(--cyan-500), 0 14px 26px rgba(18, 41, 77, 0.28);
  animation: mascot-bob 3.4s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.mascot__img.is-waving { animation: mascot-wave 0.55s var(--ease) 2; }

.mascot__bubble {
  position: relative;
  max-width: 262px;
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.9rem 1rem;
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mascot__bubble.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mascot__bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 24px;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border-top: 1px solid var(--slate-200);
  border-right: 1px solid var(--slate-200);
  transform: rotate(45deg);
}
.mascot__bubble-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.mascot__tag {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan-500), var(--violet-500));
  border-radius: 8px;
  padding: 0.22rem 0.5rem;
}
.mascot__close {
  border: 0;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  line-height: 0;
  padding: 4px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.mascot__close:hover { color: var(--blue-800); background: var(--bg); }
.mascot__close svg { width: 15px; height: 15px; }
.mascot__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--slate-800);
  min-height: 2.7em;
}
.mascot__dots {
  display: none;
  gap: 3px;
  margin-top: 0.35rem;
}
.mascot__dots.is-active { display: inline-flex; }
.mascot__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-400);
  animation: blink 1.2s infinite;
}
.mascot__dots i:nth-child(2) { animation-delay: 0.2s; }
.mascot__dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes mascot-wave {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-9deg); }
  70% { transform: rotate(8deg); }
}

@media (max-width: 720px) {
  .mascot { right: 0.6rem; bottom: 0.6rem; gap: 0.5rem; max-width: calc(100vw - 1.2rem); }
  .mascot__figure { width: 112px; }
  .mascot__panel {
    width: 100%;
    max-width: calc(100vw - 1.2rem);
  }
  .mascot.is-compact .mascot__figure { width: 78px; }
  .mascot__bubble { max-width: 200px; padding: 0.8rem 0.85rem; }
  .mascot__text { font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot__img,
  .mascot__img.is-waving { animation: none !important; }
}

/* =====================================================
   Asistente Kai v2 (selección de servicios + texto libre)
   ===================================================== */
.mascot { max-width: min(560px, calc(100vw - 2rem)); }

.mascot__panel {
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform-origin: bottom right;
  animation: mascot-pop 0.28s var(--ease);
}
.mascot.is-collapsed .mascot__panel { display: none; }

.mascot__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mascot__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.mascot__tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.mascot__log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.mascot__msg {
  max-width: 90%;
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 0.55rem 0.72rem;
  border-radius: 12px;
  white-space: pre-line;
  animation: mascot-msg 0.25s var(--ease);
}
.mascot__msg--kai {
  align-self: flex-start;
  background: var(--bg);
  color: var(--slate-800);
  border-bottom-left-radius: 4px;
}
.mascot__msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--cyan-500), var(--violet-500));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.mascot__msg--kai strong { color: var(--blue-800); font-weight: 600; }

.mascot__typing { display: inline-flex; gap: 3px; align-items: center; }
.mascot__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-400);
  animation: blink 1.2s infinite;
}
.mascot__typing i:nth-child(2) { animation-delay: 0.2s; }
.mascot__typing i:nth-child(3) { animation-delay: 0.4s; }

.mascot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.mascot__chip {
  border: 1px solid var(--slate-200);
  background: var(--surface);
  color: var(--blue-800);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.mascot__chip:hover {
  border-color: var(--cyan-400);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-1px);
}
.mascot__chip.is-empty {
  color: var(--slate-500);
  border-style: dashed;
  cursor: default;
}
.mascot__chip.is-empty:hover {
  transform: none;
  background: var(--surface);
  border-color: var(--slate-200);
}

.mascot__form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.mascot__input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.86rem;
  color: var(--slate-800);
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.mascot__input:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  background: var(--surface);
}
.mascot__send {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--violet-500));
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.mascot__send:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mascot__send svg { width: 17px; height: 17px; }

.mascot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.mascot__action {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan-500), var(--violet-500));
  color: #fff;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}
.mascot__action:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mascot__action--ghost {
  background: transparent;
  color: var(--blue-800);
  border: 1px solid var(--slate-200);
}

.mascot__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45);
  animation: mascot-pulse 2.4s var(--ease) infinite;
  pointer-events: none;
}

.card.is-highlight {
  box-shadow: 0 0 0 3px var(--cyan-500), var(--shadow-lg);
  transform: translateY(-4px);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

@keyframes mascot-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
}
@keyframes mascot-msg {
  from { opacity: 0; transform: translateY(6px); }
}
@keyframes mascot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); }
}

@media (max-width: 720px) {
  .mascot__panel { width: min(88vw, 320px); }
  .mascot__log { max-height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot__pulse { animation: none !important; }
  .mascot__msg,
  .mascot__panel { animation: none !important; }
}


