/* ============================================================
   ALORIA · Sistema Visual v3.1 — Segunda pasada
   Premium Digital Growth Studio · México
   Syne (display) · Outfit (body)
   Deep Navy · Teal · Warm White
   ============================================================ */

:root {
  --bg:          #F8F8F5;
  --bg-alt:      #F2F2EE;
  --bg-card:     #FFFFFF;
  --bg-navy:     #0B1929;
  --bg-navy-2:   #112240;

  --ink:         #1A2B3C;
  --ink-2:       #364D63;
  --ink-3:       #627485;
  --ink-4:       #96A8B6;
  --ink-5:       #C4CDD5;
  --on-navy:     #E8EEF3;
  --on-navy-2:   #8FA4B8;
  --on-navy-3:   #5A7085;

  --teal:        #0BA896;
  --teal-deep:   #087A6D;
  --teal-mid:    #0DC4B0;
  --teal-tint:   #EAF7F6;
  --teal-soft:   #C0EAE6;
  --amber:       #B7791F;
  --amber-tint:  #FFF7E6;
  --coral:       #B9564F;
  --coral-tint:  #FFF0EE;

  --error:       #DC2626;
  --error-tint:  rgba(220,38,38,0.10);

  --border:          rgba(26,43,60,0.09);
  --border-med:      rgba(26,43,60,0.15);
  --border-strong:   rgba(26,43,60,0.24);
  --border-navy:     rgba(232,238,243,0.10);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max:      1240px;
  --gutter:   clamp(20px, 4vw, 48px);
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h:    68px;

  --sh-0: 0 1px 2px rgba(11,25,41,0.04);
  --sh-1: 0 1px 3px rgba(11,25,41,0.05), 0 2px 8px -2px rgba(11,25,41,0.06);
  --sh-2: 0 1px 3px rgba(11,25,41,0.04), 0 8px 24px -6px rgba(11,25,41,0.10);
  --sh-3: 0 1px 3px rgba(11,25,41,0.04), 0 20px 48px -12px rgba(11,25,41,0.16);
  --sh-teal: 0 4px 16px -4px rgba(11,168,150,0.40);
}

[data-theme="dark"] {
  --bg:          #0A1016;
  --bg-alt:      #111822;
  --bg-card:     #151E2B;
  --bg-navy:     #080C11;
  --bg-navy-2:   #0D141C;

  --ink:         #F8F9FA;
  --ink-2:       #E8EEF3;
  --ink-3:       #96A8B6;
  --ink-4:       #627485;
  --ink-5:       #364D63;
  --on-navy:     #E8EEF3;
  --on-navy-2:   #8FA4B8;
  --on-navy-3:   #5A7085;

  --border:          rgba(255,255,255,0.08);
  --border-med:      rgba(255,255,255,0.15);
  --border-strong:   rgba(255,255,255,0.25);
  --border-navy:     rgba(255,255,255,0.06);

  --sh-0: 0 1px 2px rgba(0,0,0,0.4);
  --sh-1: 0 1px 3px rgba(0,0,0,0.5), 0 2px 8px -2px rgba(0,0,0,0.6);
  --sh-2: 0 1px 3px rgba(0,0,0,0.4), 0 8px 24px -6px rgba(0,0,0,0.8);
  --sh-3: 0 1px 3px rgba(0,0,0,0.4), 0 20px 48px -12px rgba(0,0,0,0.9);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  overflow-x: clip;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--border-med);
  transform: scale(1.05);
}
.theme-toggle:active {
  transform: scale(0.95);
}
.theme-toggle svg {
  width: 18px; height: 18px;
  fill: currentColor;
}
/* Hide the correct icon based on current theme */
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
[data-theme="light"] .theme-toggle .sun-icon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .sun-icon { display: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
::selection { background: var(--teal); color: #fff; }

/* Focus states */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Skip link */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%) translateY(-130%);
  padding: 12px 24px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border-radius: 0 0 12px 12px;
  z-index: 9999;
  transition: transform 0.22s var(--ease);
}
.skip-link:focus-visible { transform: translateX(-50%) translateY(0); outline: 3px solid #fff; outline-offset: 3px; }

/* Screen reader utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── Layout ── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section         { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--tight  { padding: clamp(56px, 7vw, 88px) 0; }
.section--white  { background: var(--bg-card); }
.section--alt    { background: var(--bg-alt); }
.section--navy   { background: var(--bg-navy); color: var(--on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: var(--on-navy-2); }

.grid   { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ── Typography ── */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.h3 { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.22; letter-spacing: -0.018em; font-weight: 700; }
.h4 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }

p { margin: 0; }
.lead {
  font-size: clamp(15.5px, 1.35vw, 18.5px);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 56ch;
}
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.5; }
.center { text-align: center; }
.center .lead, .center h1, .center h2, .center h3, .center p { margin-left: auto; margin-right: auto; }

/* Tag / eyebrow */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-deep);
  padding: 5px 12px;
  background: var(--teal-tint);
  border: 1px solid var(--teal-soft);
  border-radius: 999px;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.tag--navy { background: rgba(255,255,255,0.07); color: var(--teal-mid); border-color: rgba(11,168,150,0.25); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.22s var(--ease), opacity 0.18s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); transition-duration: 0.08s; }

.btn--primary { background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: var(--sh-teal); }
.btn--primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); box-shadow: 0 6px 20px -4px rgba(11,168,150,0.5); }
.btn--navy { background: var(--bg-navy); color: #fff; border-color: var(--bg-navy); box-shadow: 0 4px 16px -4px rgba(11,25,41,0.32); }
.btn--navy:hover { background: var(--bg-navy-2); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--border-med); }
.btn--outline:hover { border-color: var(--ink); background: rgba(26,43,60,0.04); }
.btn--outline-white { background: transparent; color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.25); }
.btn--outline-white:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); color: #fff; }
.btn--teal-ghost { background: var(--teal-tint); color: var(--teal-deep); border-color: var(--teal-soft); }
.btn--teal-ghost:hover { background: var(--teal-soft); }
.btn--disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn .arr { display: inline-flex; transition: transform 0.18s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }

/* Button loading state */
.btn--loading { pointer-events: none; color: transparent; }
.btn--loading::after {
  content: '';
  position: absolute;
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: rgba(255,255,255,0.9);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Link */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--teal);
  font-size: 14.5px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: gap 0.2s var(--ease), text-decoration-color 0.15s;
}
.link:hover { gap: 10px; text-decoration-color: var(--teal-soft); }

/* ── Section heading ── */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin: 0 auto; }

/* ── Pill ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--sh-0);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* ── Navbar ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,248,245,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), background 0.3s var(--ease);
}
[data-theme="dark"] .nav {
  background: rgba(10,16,22,0.92);
}
.nav--scrolled { box-shadow: 0 2px 20px rgba(11,25,41,0.07); }
.nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--bg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.nav__mark svg { width: 14px; height: 14px; }
.nav__mark::after {
  content: '';
  position: absolute;
  right: -3px; bottom: -3px;
  width: 8px; height: 8px;
  border-radius: 2.5px;
  background: var(--teal);
  border: 2px solid var(--bg-navy);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
}
.nav__links a {
  position: relative;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav__links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 13px; right: 13px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border-med);
  background: var(--bg-card);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-card);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) 32px;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-menu__close {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border-med);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  color: var(--ink);
  background: none;
  transition: background 0.15s, border-color 0.15s;
}
.mobile-menu__close:hover { background: var(--bg-alt); }
.mobile-menu__links { display: flex; flex-direction: column; margin-top: 24px; flex: 1; }
.mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-menu__links a .arr { color: var(--ink-4); font-size: 16px; }
.mobile-menu__cta { margin-top: 28px; }
.mobile-menu__cta .btn { width: 100%; justify-content: center; }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: flex; }
}

/* ── Page hero (subpages) ── */
.page-hero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 72px);
  background: var(--bg-navy);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11,168,150,0.15), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 72px);
  pointer-events: none;
}
.page-hero h1 { color: #fff; max-width: 22ch; margin-bottom: 20px; }
.page-hero .lead { color: var(--on-navy-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; }
.page-hero .row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.page-hero .tag { margin-bottom: 20px; }

/* ── Footer ── */
.footer { background: var(--bg-navy); padding: 80px 0 32px; color: var(--on-navy); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-navy);
  margin-bottom: 32px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px)  { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

.footer__brand .nav__brand { color: #fff; }
.footer__brand .nav__brand .nav__mark {
  background: var(--bg-navy-2); /* Contrasting background squircle */
  border: 1px solid rgba(255, 255, 255, 0.08); /* Premium subtle outline */
}
.footer__brand p { color: var(--on-navy-2); margin-top: 16px; font-size: 14px; max-width: 28ch; line-height: 1.65; }
.footer__brand .footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.footer__brand .footer-contact a { color: var(--on-navy-2); font-size: 14px; display: flex; align-items: center; gap: 10px; transition: color 0.15s; text-decoration: none; letter-spacing: 0; }
.footer__brand .footer-contact a span { font-size: 16px; flex-shrink: 0; }
.footer__brand .footer-contact a:hover { color: var(--teal-mid); }

.footer__col h5 { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: 18px; }
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14px; color: var(--on-navy-2); transition: color 0.15s; text-decoration: none; }
.footer__col a:hover { color: #fff; }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-navy-3); }
.footer__bottom a { color: var(--on-navy-3); text-decoration: none; }
.footer__bottom a:hover { color: var(--on-navy-2); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── Process steps ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(var(--process-cols, 4), 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 21px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal-soft), var(--teal), var(--teal-soft));
  z-index: 0;
}
@media (max-width: 820px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
}
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

.process-step { padding: 0 24px 0 0; position: relative; z-index: 1; }
@media (max-width: 820px) {
  .process-step { padding: 0 0 32px 52px; border-left: 2px solid var(--teal-soft); margin-left: 20px; }
  .process-step:last-child { border-left-color: transparent; padding-bottom: 0; }
  .process-step:nth-child(2n) { border-left-color: transparent; }
}
@media (max-width: 480px) {
  .process-step { padding: 0 0 28px 52px; margin-left: 18px; border-left: 2px solid var(--teal-soft) !important; }
  .process-step:last-child { border-left-color: transparent !important; }
}

.process-step__num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--teal);
  flex-shrink: 0;
}
@media (max-width: 820px) {
  .process-step__num { position: absolute; left: -22px; top: 0; margin-bottom: 0; }
}

.process-step__title { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 10px; }
.process-step__desc { font-size: 14px; color: var(--ink-3); line-height: 1.6; max-width: 22ch; }
@media (max-width: 820px) { .process-step__desc { max-width: none; } }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; gap: 14px; } }
.form-grid > * { min-width: 0; }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field .req { color: var(--teal); margin-left: 2px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 15px;
  background: var(--bg);
  border: 1.5px solid var(--border-med);
  border-radius: 10px;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-5); background: var(--bg-card); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,168,150,0.14);
  background: var(--bg-card);
}

/* Form validation */
.field--error input, .field--error select, .field--error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-tint);
  background: var(--bg-card);
}
.field__msg { font-size: 12px; font-weight: 500; display: none; margin-top: 2px; }
.field--error .field__msg { display: block; color: var(--error); }

/* ── Check list ── */
.check-list { display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.check-list .ck {
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 10px; font-weight: 700;
}
.check-list--white li { color: rgba(232,238,243,0.85); }
.check-list--white .ck { background: rgba(11,168,150,0.18); color: var(--teal-mid); }

/* ── Service detail block ── */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  padding: clamp(56px,7vw,80px) 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-of-type { border-bottom: none; }
.service-block.reverse .service-block__content { order: 2; }
.service-block.reverse .service-block__visual  { order: 1; }
@media (max-width: 820px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; gap: 40px; }
  .service-block.reverse .service-block__content { order: 0; }
  .service-block.reverse .service-block__visual  { order: 0; }
}
.service-block__visual {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

/* ── Legal pages ── */
.legal-shell {
  max-width: 860px;
  margin: 0 auto;
}
.legal-shell h2 {
  margin-top: 34px;
  margin-bottom: 12px;
}
.legal-shell p,
.legal-shell li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.legal-shell ul {
  list-style: disc;
  padding-left: 22px;
  margin: 10px 0 0;
}
.legal-note {
  padding: 18px 20px;
  background: var(--teal-tint);
  border: 1px solid var(--teal-soft);
  border-radius: 14px;
  color: var(--teal-deep);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 22px;
}

/* Detail grid / deliverables */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
@media (max-width: 480px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 13px; padding: 18px; }
.detail-box__label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-4); margin-bottom: 10px; }
.detail-box__list { display: flex; flex-direction: column; gap: 6px; }
.detail-box__list li { font-size: 13.5px; color: var(--ink-2); padding-left: 14px; position: relative; line-height: 1.45; }
.detail-box__list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* Outcome box */
.outcome-box { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; background: var(--teal-tint); border: 1px solid var(--teal-soft); border-radius: 14px; margin: 22px 0 26px; }
.outcome-box__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.outcome-box__text .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--teal-deep); margin-bottom: 4px; }
.outcome-box__text p { font-size: 14.5px; font-weight: 600; color: var(--teal-deep); line-height: 1.45; }

/* Helps tags */
.helps-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.helps-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.helps-tag::before { content: '→'; color: var(--teal); font-size: 11px; }

/* Use case elements */
.uc-chip { display: inline-flex; align-items: center; padding: 4px 10px; background: var(--teal-tint); border: 1px solid var(--teal-soft); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--teal-deep); }
.uc-card__problem { font-size: 14px; color: var(--ink-2); line-height: 1.55; padding: 12px 14px; background: #FEF2F2; border-radius: 10px; border-left: 3px solid #FECACA; }
.uc-card__outcome { padding: 11px 14px; background: var(--teal-tint); border-radius: 10px; border-left: 3px solid var(--teal); font-size: 13.5px; font-weight: 600; color: var(--teal-deep); line-height: 1.45; }

/* Stats row */
.stat-row { display: flex; gap: 32px; flex-wrap: wrap; }
.stat-item__num { font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.stat-item__label { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }

/* Actions row */
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 720px) {
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 420px) {
  .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
}

/* ── Portfolio cards ── */
.pf-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.2s;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--border-med); }
.pf-browser { width: 100%; }
.pf-bar {
  height: 28px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
}
.pf-dot { width: 7px; height: 7px; border-radius: 50%; display: block; }
.d1 { background: #FF5F57; }
.d2 { background: #FFBD2E; }
.d3 { background: #28C840; }
.pf-url {
  margin-left: 8px; flex: 1; max-width: 200px;
  font-size: 9.5px; color: var(--ink-4);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 8px; font-family: var(--font-body);
}
.pf-info { padding: 18px 20px; border-top: 1px solid var(--border); }
.pf-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 3px; }
.pf-desc { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.pf-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-visit { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: gap 0.18s var(--ease), text-decoration-color 0.15s; }
.pf-card:hover .pf-visit { gap: 9px; text-decoration-color: var(--teal-soft); }
@media (max-width: 640px) { .pf-grid { grid-template-columns: 1fr !important; } }

/* Portfolio category layout */
.pf-category { margin-bottom: 8px; }
.pf-cat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-deep);
  margin-bottom: 16px; display: flex; align-items: center; gap: 7px;
}
.pf-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .pf-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pf-grid-3, .pf-grid-2 { grid-template-columns: 1fr; } }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.industry-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--sh-1);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.18s;
}
.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--teal-soft);
}
.industry-card__eyebrow {
  width: fit-content;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  border: 1px solid var(--teal-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.industry-card h3 {
  font-size: 17px;
  line-height: 1.22;
  margin-bottom: 12px;
}
.industry-card p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 14px;
}
.industry-card p strong { color: var(--ink-2); }
.industry-flow {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.45;
  margin-bottom: 12px;
}
.industry-result {
  margin-top: auto;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--teal);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ── Testimonials ── */
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi-quote {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
  font-style: italic;
  padding-left: 16px;
  border-left: 3px solid var(--teal);
  flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 11px; }
.testi-av {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testi-co { font-size: 12.5px; color: var(--ink-3); }

/* Animations */
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(11,168,150,0.6); } 50% { box-shadow: 0 0 0 6px rgba(11,168,150,0); } }
@keyframes bounce-dots { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ── WhatsApp Floating Button ── */
.wa-float {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  cursor: pointer;
  z-index: 80;
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: .8; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-float svg { position: relative; z-index: 1; }
.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  box-shadow: var(--sh-2);
}
.wa-float__tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--bg-navy);
}
.wa-float:hover .wa-float__tip { opacity: 1; }
.wa-float:focus-visible { outline: 3px solid #25D366; outline-offset: 3px; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--bg-navy);
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p {
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--on-navy-2);
  line-height: 1.5;
  min-width: 200px;
  margin: 0;
}
.cookie-banner p a { color: var(--teal-mid); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Cotizador ── */
.cotizador-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 820px) { .cotizador-grid { grid-template-columns: 1fr; } }
.service-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--border-med);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s var(--ease);
  background: var(--bg-card);
  user-select: none;
}
.service-check:hover { border-color: var(--teal-soft); background: var(--teal-tint); transform: translateX(3px); }
.service-check.selected { border-color: var(--teal); background: var(--teal-tint); }
.service-check input[type="checkbox"],
.service-check input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.service-check:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.check-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-med);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.15s, border-color 0.15s;
}
.service-check.selected .check-box { background: var(--teal); border-color: var(--teal); }
.check-box::after { content: ''; display: none; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.service-check.selected .check-box::after { display: block; }
.service-check__body { flex: 1; }
.service-check__title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.service-check__sub { font-size: 13px; color: var(--ink-3); }
.service-check__price { font-size: 12.5px; font-weight: 600; color: var(--teal-deep); margin-top: 4px; }

.estimate-card {
  background: var(--bg-navy);
  border-radius: 22px;
  padding: 32px;
  position: sticky;
  top: 88px;
  color: var(--on-navy);
}
.estimate-empty { text-align: center; padding: 16px 0; }
.estimate-empty .icon { font-size: 36px; margin-bottom: 12px; opacity: .4; }
.estimate-empty p { font-size: 14px; color: var(--on-navy-3); }
.estimate-amount {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin: 12px 0 6px;
}
.estimate-label { font-size: 12px; color: var(--on-navy-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.estimate-sub { font-size: 13.5px; color: var(--on-navy-2); }
.estimate-divider { height: 1px; background: var(--border-navy); margin: 20px 0; }
.estimate-line { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 9px; }
.estimate-line span:first-child { color: var(--on-navy-2); }
.estimate-line span:last-child { font-weight: 600; color: #fff; }
.estimate-discount,
.estimate-monthly { font-size: 12px; color: var(--teal-mid); font-weight: 600; }
.estimate-disclaimer { font-size: 12px; color: var(--on-navy-3); line-height: 1.5; margin-top: 16px; }

/* ── Quien cards (Para quién es Aloria) ── */
.quien-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.quien-card:hover {
  border-color: var(--teal-soft);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.quien-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quien-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.quien-card__desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 920px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* ── Logos strip ── */
.logos-strip {
  margin: 40px 0 48px;
  text-align: center;
}
.logos-strip__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 20px;
}
.logos-strip__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.logo-badge {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg-card);
  letter-spacing: -0.01em;
  transition: border-color 0.15s, color 0.15s;
}
.logo-badge:hover { border-color: var(--teal-soft); color: var(--ink); }

/* ── Stat counter animation ── */
.stat-item__num { transition: color 0.3s; }
.stat-item__num.counting { color: var(--teal); }

.center { text-align: center; }
.center .lead, .center h1, .center h2, .center h3, .center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   NUEVOS COMPONENTES: ALORIA AI COMMERCE STUDIO v4.0
   ============================================================ */

/* ── 1. Tabla / Grilla Comparativa (Traditional vs AI Commerce) ── */
.comp-table {
  width: 100%;
  margin-top: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.comp-row:last-child {
  border-bottom: none;
}
.comp-row--header {
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.comp-cell {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}
.comp-cell--header {
  padding: 18px 30px;
}
.comp-cell.traditional {
  border-right: 1px solid var(--border);
  background: rgba(220, 38, 38, 0.01);
}
.comp-cell.ai-commerce {
  background: rgba(11, 168, 150, 0.01);
}
.comp-title-mini {
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comp-cell.traditional .comp-title-mini {
  color: var(--error);
}
.comp-cell.ai-commerce .comp-title-mini {
  color: var(--teal-deep);
}
.comp-desc-mini {
  font-size: 13.5px;
  color: var(--ink-3);
  padding-left: 22px;
}
.comp-icon-mini {
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .comp-row--header { display: none; }
  .comp-row { grid-template-columns: 1fr; border-bottom: 2px solid var(--border-med); }
  .comp-cell { padding: 18px 20px; }
  .comp-cell.traditional { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── 2. AI Commerce System Architecture Layer Stack ── */
.system-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.system-layer {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}
.system-layer:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--teal-soft);
}
.system-layer__header {
  background: var(--bg-navy);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.system-layer__header svg {
  color: var(--teal-mid);
  flex-shrink: 0;
}
.system-layer__body {
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.system-layer__copy {
  flex: 1;
}
.system-layer__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.system-layer__desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.system-layer__tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-tint);
  border: 1px solid var(--teal-soft);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .system-layer { grid-template-columns: 1fr; }
  .system-layer__header { padding: 14px 20px; }
  .system-layer__body { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .system-layer__tag { align-self: flex-start; }
}

/* ── 3. AI Business Diagnostic Widget ── */
.diagnostic-widget {
  background: var(--bg-card);
  border: 1.5px solid var(--border-med);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--sh-3);
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}
.diagnostic-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 30px;
}
.diagnostic-progress {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}
.diagnostic-progress-bar {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-mid));
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s var(--ease);
}
.diagnostic-step {
  display: none;
}
.diagnostic-step.active {
  display: block;
  animation: fadeIn 0.4s var(--ease);
}
.diagnostic-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .diagnostic-options { grid-template-columns: 1fr; gap: 10px; }
}
.diagnostic-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--border-med);
  border-radius: 14px;
  cursor: pointer;
  background: var(--bg-card);
  transition: border-color 0.18s, background 0.18s, transform 0.18s var(--ease);
  user-select: none;
}
.diagnostic-opt:hover {
  border-color: var(--teal-soft);
  background: var(--teal-tint);
  transform: translateY(-1px);
}
.diagnostic-opt.selected {
  border-color: var(--teal);
  background: var(--teal-tint);
}
.diagnostic-opt input[type="radio"],
.diagnostic-opt input[type="checkbox"] {
  display: none;
}
.diagnostic-circle {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-card);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.diagnostic-opt.selected .diagnostic-circle {
  border-color: var(--teal);
  background: var(--teal);
}
.diagnostic-circle::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.diagnostic-opt.selected .diagnostic-circle::after {
  display: block;
}
.diagnostic-opt__text {
  flex: 1;
}
.diagnostic-opt__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.diagnostic-opt__desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}
.diagnostic-opt:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,168,150,0.14);
}
.diagnostic-inline-field {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-alt);
}
.diagnostic-inline-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.diagnostic-inline-field label span {
  font-weight: 500;
  color: var(--ink-3);
}
.diagnostic-inline-field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1.5px solid var(--border-med);
  border-radius: 10px;
  padding: 12px 14px;
}
.diagnostic-inline-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,168,150,0.14);
}
.diagnostic-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Processing View */
.diagnostic-processing {
  text-align: center;
  padding: 48px 24px;
  display: none;
}
.loader-circle {
  width: 72px; height: 72px;
  border: 3.5px solid var(--teal-tint);
  border-top-color: var(--teal);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}
.processing-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.processing-sub {
  font-size: 14.5px;
  color: var(--ink-3);
}

/* Results View */
.diagnostic-results {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: start;
  animation: fadeIn 0.4s var(--ease);
}
@media (max-width: 820px) {
  .diagnostic-results { grid-template-columns: 1fr; gap: 32px; }
}
.results-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}
.score-gauge {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0%, var(--teal-mid) var(--score-percent, 0%), var(--border-med) var(--score-percent, 0%), var(--border-med) 100%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--sh-1);
}
.score-gauge::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--bg-alt);
}
.score-gauge__inner {
  position: relative;
  z-index: 1;
}
.score-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.score-max {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 700;
}
.score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal-deep);
  letter-spacing: 0.05em;
  background: var(--teal-tint);
  border: 1.5px solid var(--teal-soft);
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto;
}
.score-caption {
  margin: 12px auto 0;
  max-width: 28ch;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}
.score-gauge--low { background: conic-gradient(var(--coral) 0%, var(--coral) var(--score-percent, 0%), var(--border-med) var(--score-percent, 0%), var(--border-med) 100%); }
.score-gauge--medium { background: conic-gradient(var(--amber) 0%, #E2A94B var(--score-percent, 0%), var(--border-med) var(--score-percent, 0%), var(--border-med) 100%); }
.score-gauge--high { background: conic-gradient(var(--teal) 0%, var(--teal-mid) var(--score-percent, 0%), var(--border-med) var(--score-percent, 0%), var(--border-med) 100%); }
.score-gauge--advanced { background: conic-gradient(var(--bg-navy) 0%, var(--teal) var(--score-percent, 0%), var(--border-med) var(--score-percent, 0%), var(--border-med) 100%); }
.score-label--low { color: var(--coral); background: var(--coral-tint); border-color: rgba(185,86,79,0.25); }
.score-label--medium { color: var(--amber); background: var(--amber-tint); border-color: rgba(183,121,31,0.25); }
.score-label--high { color: var(--teal-deep); background: var(--teal-tint); border-color: var(--teal-soft); }
.score-label--advanced { color: #fff; background: var(--bg-navy); border-color: var(--teal); }
.results-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.diagnostic-detail-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
}
.diagnostic-detail-title {
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.diagnostic-detail-text {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.diagnostic-suggestions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.diagnostic-suggestions li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.diagnostic-suggestions li::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.diagnostic-disclaimer {
  font-size: 12.5px;
  color: var(--ink-4);
  line-height: 1.55;
}
.results-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── 4. Packages Section CSS refine ── */
.pricing-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-top: 56px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}
.pricing-intro .tag { margin-bottom: 14px; }
.pricing-intro p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
}
@media (max-width: 760px) {
  .pricing-intro { grid-template-columns: 1fr; align-items: start; gap: 14px; }
}
.pkg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: var(--sh-1);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.pkg-card--featured {
  border-color: rgba(11,168,150,0.42);
  box-shadow: 0 1px 3px rgba(11,25,41,0.04), 0 14px 36px -14px rgba(11,168,150,0.42);
}
.pkg-card.recommended {
  border-color: var(--teal);
  box-shadow: var(--sh-3);
  transform: translateY(-4px);
}
.pkg-badge {
  position: absolute;
  top: 15px; right: -30px;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 30px;
  transform: rotate(45deg);
}
.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
}
.pkg-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.pkg-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.pkg-topline {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  border: 1px solid var(--teal-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pkg-desc {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.pkg-fit {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}
.pkg-price-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pkg-price-setup {
  font-size: 13px;
  color: var(--ink-3);
}
.pkg-price-setup b {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
  font-weight: 800;
}
.pkg-price-monthly {
  font-size: 12.5px;
  color: var(--teal-deep);
}
.pkg-price-monthly b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pkg-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.pkg-feat::before {
  content: '✓';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── 5. Case Study "Florería Paola" Featured ── */
.cs-flag {
  background: var(--bg-navy);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 64px);
  color: var(--on-navy);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}
.cs-flag::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11,168,150,0.14), transparent 38%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
@media (max-width: 860px) {
  .cs-flag { grid-template-columns: 1fr; gap: 36px; }
}
.cs-flag__visual {
  background: var(--bg-navy-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 24px;
}
.cs-story {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.cs-story div {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--on-navy-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.cs-story strong { color: #fff; }
.cs-flag__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.cs-flag__metrics div {
  min-width: 0;
}
.cs-flag__metrics > div {
  padding: 14px;
  border-radius: 12px;
  background: rgba(11,168,150,0.12);
  border: 1px solid rgba(11,168,150,0.22);
}
.cs-flag__metrics div div {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 5px;
}
.cs-flag__metrics span {
  display: block;
  font-size: 11.5px;
  color: var(--on-navy-2);
  line-height: 1.35;
}
@media (max-width: 600px) {
  .cs-flag__metrics { grid-template-columns: 1fr; }
}
.cs-flag__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .cs-flag__grid { grid-template-columns: 1fr; }
}
.cs-flag__module {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
}
.cs-flag__module-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-mid);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-flag__module-desc {
  font-size: 12px;
  color: var(--on-navy-2);
  line-height: 1.45;
}

.blueprint-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.blueprint-note {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: var(--sh-1);
}
.blueprint-note strong {
  color: var(--ink);
  font-family: var(--font-display);
}
@media (max-width: 820px) {
  .blueprint-notes { grid-template-columns: 1fr; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   AI CONCIERGE CHATBOT STYLES
   ============================================================ */

/* Chatbot Floating Trigger Bubble */
.ai-chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--bg-navy);
  border: 1.5px solid rgba(11, 168, 150, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(11, 168, 150, 0.35);
  cursor: pointer;
  z-index: 95;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
  outline: none;
}
.ai-chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(11, 168, 150, 0.5);
  border-color: var(--teal);
}
.ai-chat-bubble:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.ai-chat-bubble svg {
  color: var(--teal-mid);
  transition: transform 0.22s var(--ease);
}
.ai-chat-bubble:hover svg {
  transform: rotate(10deg);
}

/* Chat bubble badge / indicator */
.ai-chat-bubble__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-navy);
  animation: pulse-dot 2s infinite;
}

/* Floating tooltip */
.ai-chat-bubble__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-navy);
  border: 1px solid rgba(11, 168, 150, 0.2);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  box-shadow: var(--sh-2);
}
.ai-chat-bubble__tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--bg-navy);
}
.ai-chat-bubble:hover .ai-chat-bubble__tip {
  opacity: 1;
}

/* Chat Window Container */
.ai-chat-window {
  position: fixed;
  bottom: 98px;
  right: 28px;
  width: 380px;
  height: 520px;
  max-height: calc(100vh - 140px);
  max-width: calc(100vw - 56px);
  border-radius: 20px;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(11, 168, 150, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-chat-window.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.ai-chat-header {
  padding: 16px 20px;
  background: var(--bg-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-chat-header__info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-chat-header__status {
  display: flex;
  flex-direction: column;
}
.ai-chat-header__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.ai-chat-header__sub {
  font-size: 11px;
  color: #22c55e;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-chat-header__sub::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}
.ai-chat-header__close {
  background: none;
  border: none;
  color: var(--on-navy-3);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-chat-header__close:hover {
  color: #fff;
}

/* Chat Messages Container */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 168, 150, 0.3) transparent;
}
.ai-chat-messages::-webkit-scrollbar {
  width: 5px;
}
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(11, 168, 150, 0.3);
  border-radius: 99px;
}

/* Message speech bubbles */
.ai-chat-msg {
  max-width: 82%;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 16px;
  word-break: break-word;
  animation: fadeIn 0.25s var(--ease);
}
.ai-chat-msg--user {
  align-self: flex-end;
  background: var(--bg-navy-2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-right-radius: 2px;
}
.ai-chat-msg--assistant {
  align-self: flex-start;
  background: rgba(11, 168, 150, 0.08);
  color: var(--on-navy-2);
  border: 1px solid rgba(11, 168, 150, 0.2);
  border-bottom-left-radius: 2px;
}
.ai-chat-msg--assistant p {
  margin: 0 0 10px 0;
}
.ai-chat-msg--assistant p:last-child {
  margin-bottom: 0;
}
.ai-chat-msg--assistant ul {
  margin: 8px 0;
  padding-left: 20px;
}
.ai-chat-msg--assistant li {
  margin-bottom: 4px;
}

/* Input Area */
.ai-chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 15, 30, 0.95);
  display: flex;
  gap: 10px;
  align-items: center;
}
.ai-chat-input {
  flex: 1;
  background: var(--bg-navy-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ai-chat-input:focus {
  border-color: rgba(11, 168, 150, 0.5);
  box-shadow: 0 0 10px rgba(11, 168, 150, 0.15);
}
.ai-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.ai-chat-send:hover {
  background: var(--teal-mid);
  transform: scale(1.05);
}
.ai-chat-send:active {
  transform: scale(0.95);
}

/* Typing Indicator Animation */
.ai-chat-typing {
  align-self: flex-start;
  background: rgba(11, 168, 150, 0.08);
  border: 1px solid rgba(11, 168, 150, 0.2);
  padding: 12px 20px;
  border-radius: 16px;
  border-bottom-left-radius: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.2s var(--ease);
}
.ai-chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: bounce-dots 1.4s infinite ease-in-out both;
}
.ai-chat-typing span:nth-child(1) {
  animation-delay: -0.32s;
}
.ai-chat-typing span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Responsive adjustment */
@media (max-width: 480px) {
  .ai-chat-window {
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    height: 80vh;
    max-height: calc(100vh - 40px);
    max-width: none;
  }
}

/* Interactive Glow-Mouse Effect for Premium Cards */
.pf-card, .pkg-card {
  position: relative;
  overflow: hidden;
}
.pf-card::before, .pkg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(11, 168, 150, 0.07), transparent 60%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.pf-card:hover::before, .pkg-card:hover::before {
  opacity: 1;
}

/* ── View Transitions API Support ── */
@view-transition {
  navigation: auto; /* Enables native cross-page smooth transitions in Chrome/Edge/Safari */
}

/* ── Premium SVG Stroke Drawing Animation ── */
@keyframes svgStrokeAnimation {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
.svc-card:hover .svc-card__icon svg path,
.quien-card:hover .quien-card__icon svg path,
.sys-node:hover .sys-node__icon svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: svgStrokeAnimation 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Premium Custom Page Scrollbars ── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-navy);
}
::-webkit-scrollbar-thumb {
  background: rgba(11, 168, 150, 0.2);
  border-radius: 99px;
  border: 2px solid var(--bg-navy);
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 168, 150, 0.4);
}
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 168, 150, 0.2) var(--bg-navy);
}
