/* ===========================================================
   INARI SOLUTIONS — design tokens
   =========================================================== */
:root {
  --purple-deep: #38197A;
  --purple: #5826B3;
  --purple-light: #8A5FE0;
  --purple-pale-text: #C9B8EC;
  --purple-bg: #F6F4FB;
  --purple-bg-deep: #ECE4FB;
  --border-soft: #ECE9F1;
  --border-purple: #E4DEF2;
  --ink: #18121F;
  --text-body: #3A3344;
  --text-muted: #5A5366;
  --text-faint: #A8A2B5;
  --text-faint-2: #6E6780;
  --amber: #E9A622;
  --green: #1F9D55;
  --green-dot: #3FCF8E;
  --green-bg: #ECFBEF;
  --amber-text: #9A7B16;
  --amber-bg: #FBF0D6;
  --whatsapp: #25D366;
  --visa: #1A1F71;
  --white: #FFFFFF;

  --sd-orange: #F7941D;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 18px 44px rgba(56, 25, 122, 0.16);
}

/* ===========================================================
   Reset & base
   =========================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--amber); color: var(--ink); }

ul { margin: 0; padding: 0; list-style: none; }

@keyframes inariFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes inariFade { from { opacity: 0.001; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.view { animation: inariFade 0.4s ease; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 980px; }
.container--text { max-width: 860px; }
.container--contact { max-width: 1100px; }

/* ===========================================================
   Typography helpers
   =========================================================== */
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--purple-light);
}
.eyebrow--on-dark { color: var(--purple-pale-text); }
.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); display: inline-block; animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 166, 34, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(233, 166, 34, 0); }
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
.lead { line-height: 1.6; color: var(--text-muted); }

/* ===========================================================
   Header / Nav
   =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: -72px; /* hero slides under the transparent header */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(56, 25, 122, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 34px rgba(24, 18, 31, 0.35);
}
main [data-view] > :first-child { padding-top: 72px; }
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.16em; color: var(--white); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 13px;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-spring);
}
.nav-link:hover { color: var(--white); }
.nav-link.is-active { color: var(--white); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  border-radius: 8px;
}
.flag { display: block; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); }
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 156px;
  background: var(--purple-deep);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(24, 18, 31, 0.5);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s var(--ease-spring);
}
.lang-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu button:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.lang-menu button.is-active { background: rgba(233, 166, 34, 0.14); color: var(--amber); }
.burger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 68;
  background: rgba(24, 18, 31, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed;
  top: 96px;
  left: 10px;
  z-index: 70;
  width: min(300px, 84vw);
  max-height: calc(100dvh - 108px);
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  background: rgba(56, 25, 122, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 54px 22px 22px;
  box-shadow: 18px 24px 54px rgba(24, 18, 31, 0.45);
  transform: translateX(calc(-100% - 20px));
  visibility: hidden;
  transition: transform 0.34s var(--ease-spring), visibility 0.34s;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--white);
}
.mobile-menu a, .mobile-menu button:not(.menu-close) {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
  border-left: none; border-right: none; border-top: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.mobile-menu .menu-social-label { margin-top: 18px; }
.mobile-menu .menu-social { justify-content: center; }
.mobile-menu .menu-social a { display: inline-flex; width: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.16); }

@media (max-width: 880px) {
  .nav-links { display: none !important; }
  .burger { display: block !important; }
  .mobile-menu { display: flex; }
  .split-2 { grid-template-columns: 1fr !important; }
  /* Header order on mobile: burger | big centered brand | lang + login */
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .burger { justify-self: start; }
  .brand { justify-self: center; }
  .brand svg { width: 46px; }
  .brand-name { font-size: 19px; }
  .nav-actions { justify-self: end; }
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 12px;
  font-size: 16px;
  padding: 15px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--amber { background: var(--amber); color: var(--ink); box-shadow: 0 10px 30px rgba(233, 166, 34, 0.3); }
.btn--amber-flat { background: var(--amber); color: var(--ink); box-shadow: none; }
.btn--ghost-light { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); color: var(--white); }
.btn--violet { background: var(--purple); color: var(--white); }
.btn--violet-soft { background: var(--purple-bg); color: var(--purple); border: 1px solid var(--border-purple); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--sm { font-size: 14px; padding: 10px 18px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--text { background: none; border: none; padding: 0; color: var(--purple); font-weight: 700; font-size: 13.5px; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  background: var(--purple-deep);
  color: var(--white);
  overflow: hidden;
}
.hero::before, .auth-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(620px 440px at 18% 28%, rgba(138, 95, 224, 0.34), transparent 62%),
    radial-gradient(540px 400px at 82% 72%, rgba(233, 166, 34, 0.14), transparent 60%),
    radial-gradient(720px 520px at 58% 8%, rgba(88, 38, 179, 0.38), transparent 65%);
  pointer-events: none;
}
.hero-inner > * { animation: heroRise 0.7s var(--ease-spring) backwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.35s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-h1 .accent {
  background: linear-gradient(100deg, #FFC85C 0%, var(--amber) 55%, #D98E00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero--ink { background: var(--ink); }
.hero--violet { background: var(--purple); }
/* Default banner logo: footer style — bottom-right corner, softly cropped */
.hero-bg-pattern {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: clamp(260px, 30vw, 460px);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
}
/* Home hero keeps the approved full-bleed look (desktop) */
[data-view="inicio"] .hero > .hero-bg-pattern {
  inset: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
  opacity: 0.08;
}
.hero-bg-pattern--amber { opacity: 0.07; }
.hero-bg-pattern path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawPathLoop 14s ease-in-out infinite 0.15s;
}
@keyframes drawPathLoop {
  0%   { stroke-dashoffset: 900; opacity: 1; }
  22%  { stroke-dashoffset: 0; opacity: 1; }
  78%  { stroke-dashoffset: 0; opacity: 1; }
  90%  { stroke-dashoffset: 0; opacity: 0; }
  95%  { stroke-dashoffset: 900; opacity: 0; }
  100% { stroke-dashoffset: 900; opacity: 1; }
}
.hero-inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 96px 28px 104px; }
.hero-inner--page { padding: 80px 28px 72px; }
.hero-h1 { margin: 26px 0 0; font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; max-width: 880px; }
.hero-h1 .accent { color: var(--amber); }
.hero-p { margin: 26px 0 0; font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, 0.84); max-width: 620px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 36px; }
.hero-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--amber); }
.hero-stat-label { font-size: 13.5px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }

.page-eyebrow-pill { display: inline-flex; align-items: center; gap: 9px; border-radius: 100px; padding: 8px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; background: rgba(233, 166, 34, 0.16); border: 1px solid rgba(233, 166, 34, 0.4); color: var(--amber); }

/* ===========================================================
   Sections / surfaces
   =========================================================== */
.section { padding: 88px 28px; }
.section--tight { padding: 72px 28px 64px; }
.section-light { background: var(--purple-bg); }
.section-dark { background: var(--purple-deep); color: var(--white); }
.section-violet { background: var(--purple); color: var(--white); }
.section-ink { background: var(--ink); color: var(--white); }

/* ===========================================================
   Cards / grid
   =========================================================== */
.card-hover { position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: #C9B8EC; }
.card-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(138, 95, 224, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card-hover:hover::before { opacity: 1; }

.grid { display: grid; gap: 20px; }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid--auto-md { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto-lg { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.pillar-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 30px;
}
.pillar-card .num { font-family: var(--font-display); color: var(--amber); font-weight: 700; font-size: 14px; }
.pillar-card h3 { margin-top: 12px; font-weight: 700; font-size: 20px; }
.pillar-card p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }

.service-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.service-card h3 { font-weight: 700; font-size: 18px; }
.service-card p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); flex: 1; }
.service-card-price { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; }
.service-card-price .unit { font-size: 12px; color: var(--text-faint); }
.service-card-price .amount { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--purple); }

.service-card--feature { background: var(--purple); color: var(--white); border-color: var(--purple); position: relative; overflow: hidden; }
.service-card--feature p { color: rgba(255, 255, 255, 0.82); }
.service-card--feature .unit { color: rgba(255, 255, 255, 0.7); }
.service-card--feature .amount { color: var(--amber); }
.feature-tag {
  position: absolute; top: 14px; right: 14px;
  background: var(--amber); color: var(--ink);
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 9px; border-radius: 100px; text-transform: uppercase;
}

.service-group-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.service-group-label .letter { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--amber); }
.service-group-label h2 { font-weight: 700; font-size: 24px; }

.service-row-list { border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.service-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-bottom: 1px solid var(--border-soft); background: var(--white);
}
.service-row:last-child { border-bottom: none; }
.service-row-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.service-row-desc { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.service-row-price { text-align: right; white-space: nowrap; }
.service-row-price .amount { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--purple); }
.service-row-price .unit { font-size: 11px; color: var(--text-faint); }

.cta-banner {
  background: var(--purple-bg);
  border-radius: 18px;
  padding: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-banner-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.cta-banner-sub { margin-top: 6px; font-size: 14.5px; color: var(--text-muted); }

/* Featured teaser (home) */
.teaser-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: 20px;
  padding: 30px; box-shadow: 0 18px 50px rgba(56, 25, 122, 0.1);
}
.lever-pill { background: var(--purple-bg); border: 1px solid var(--border-purple); border-radius: 100px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--purple-deep); transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease; }
.lever-pill:hover { transform: translateY(-2px); border-color: var(--purple-light); background: var(--white); box-shadow: 0 8px 18px rgba(88, 38, 179, 0.14); }

/* CTA strip */
.cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 64px 28px; }

/* ===========================================================
   Pricing (Planes)
   =========================================================== */
.plan-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: 20px;
  padding: 32px; display: flex; flex-direction: column; position: relative;
}
.plan-card--growth { background: var(--purple); color: var(--white); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 16px 40px rgba(56, 25, 122, 0.22); }
.plan-card--premium { background: var(--ink); color: var(--white); border: 2px solid var(--amber); box-shadow: 0 24px 60px rgba(24, 18, 31, 0.34); }
.plan-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; white-space: nowrap;
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple-light); }
.plan-card--growth .plan-name, .plan-card--premium .plan-name { color: var(--amber); }
.plan-sub { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.plan-card--growth .plan-sub { color: rgba(255, 255, 255, 0.75); }
.plan-card--premium .plan-sub { color: rgba(255, 255, 255, 0.7); }
.plan-price { margin-top: 20px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: -0.02em; }
.plan-price .per { font-size: 15px; color: var(--text-faint); }
.plan-card--growth .plan-price .per { color: rgba(255, 255, 255, 0.7); }
.plan-card--premium .plan-price .per { color: rgba(255, 255, 255, 0.6); }
.plan-divider { margin-top: 24px; height: 1px; background: var(--border-soft); }
.plan-card--growth .plan-divider { background: rgba(255, 255, 255, 0.2); }
.plan-card--premium .plan-divider { background: rgba(255, 255, 255, 0.18); }
.plan-features { margin: 24px 0 0; display: flex; flex-direction: column; gap: 13px; }
.plan-features li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.5; color: var(--text-body); }
.plan-card--growth .plan-features li, .plan-card--premium .plan-features li { color: rgba(255, 255, 255, 0.92); }
.plan-features .check { color: var(--purple); font-weight: 800; }
.plan-card--growth .check, .plan-card--premium .check { color: var(--amber); }
.plan-cta { margin-top: 28px; }

.plan-footnotes { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; color: var(--text-faint-2); padding: 8px 0 0; }
.plan-footnotes .dot { color: var(--purple); }

/* ===========================================================
   Método / SEO & GEO
   =========================================================== */
.method-card { border-radius: 20px; padding: 34px; }
.method-card--light { background: var(--purple-bg); border: 1px solid var(--border-purple); }
.method-card--violet { background: var(--purple); color: var(--white); }
.method-label { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); }
.method-card--violet .method-label { color: var(--amber); }
.method-card h2 { margin-top: 12px; font-weight: 700; font-size: 26px; }
.method-list { margin: 20px 0 0; display: flex; flex-direction: column; gap: 13px; }
.method-list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.55; color: var(--text-body); }
.method-card--violet .method-list li { color: rgba(255, 255, 255, 0.9); }
.method-list .arrow { color: var(--purple); font-weight: 800; }
.method-card--violet .arrow { color: var(--amber); }
.method-price { margin-top: 24px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--purple); }
.method-card--violet .method-price { color: var(--amber); }
.method-price .per { font-size: 13px; font-weight: 600; color: var(--text-faint); }
.method-card--violet .method-price .per { color: rgba(255, 255, 255, 0.65); }

.stat-card { text-align: center; padding: 28px 20px; background: var(--white); border: 1px solid var(--border-soft); border-radius: 16px; }
.stat-card .num { font-family: var(--font-display); font-weight: 700; font-size: 38px; color: var(--purple); }
.stat-card .label { margin-top: 8px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.closer-panel { border-radius: 20px; padding: 40px; text-align: center; }
.closer-panel p { margin: 14px auto 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); max-width: 560px; }

/* ===========================================================
   Proceso
   =========================================================== */
.process-step {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start;
  background: var(--white); border: 1px solid var(--border-soft); border-radius: 18px; padding: 30px;
}
.process-step--accent { background: var(--purple); color: var(--white); border-color: var(--purple); }
.process-step .step-num { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--purple-bg-deep); line-height: 1; }
.process-step--accent .step-num { color: rgba(255, 255, 255, 0.28); }
.process-step h2 { font-weight: 700; font-size: 21px; }
.process-step p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.process-step--accent p { color: rgba(255, 255, 255, 0.85); }
.process-steps { display: flex; flex-direction: column; gap: 14px; }

/* ===========================================================
   Nosotros
   =========================================================== */
.value-pill { background: var(--white); border: 1px solid var(--border-soft); border-radius: 100px; padding: 10px 18px; font-weight: 600; font-size: 14px; transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease, border-color 0.22s ease; }
.value-pill:hover { transform: translateY(-2px); border-color: var(--purple-light); box-shadow: 0 8px 18px rgba(88, 38, 179, 0.12); }
.client-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: 16px; padding: 24px; }
.client-card .title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.client-card p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* ===========================================================
   FAQ
   =========================================================== */
.faq-item { border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.faq-item.is-open { border-color: #C9B8EC; box-shadow: 0 10px 30px rgba(56, 25, 122, 0.08); }
.faq-q {
  width: 100%; cursor: pointer; background: var(--white); border: none; text-align: left;
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-body); transition: background 0.2s ease;
}
.faq-q:hover { background: var(--purple-bg); }
.faq-q-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.faq-ic { color: var(--purple); font-size: 24px; font-weight: 300; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-a { padding: 0 24px; background: var(--white); max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-spring), padding-bottom 0.4s var(--ease-spring); }
.faq-item.is-open .faq-a { max-height: 420px; padding-bottom: 22px; }
.faq-item.is-open .faq-ic { transform: rotate(45deg); }
.faq-a p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

/* ===========================================================
   Forms
   =========================================================== */
.field { display: block; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 6px; }
.field-label--sm { font-size: 12.5px; }
.field-input, .field-textarea, .field-select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-purple); border-radius: 10px;
  font-size: 15px; font-family: var(--font-body); color: var(--ink); background: var(--white);
}
.field-input--sm, .field-select--sm { padding: 11px 13px; font-size: 14.5px; }
.field-textarea { resize: vertical; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }

.contact-card { background: var(--white); border-radius: 20px; padding: 32px; box-shadow: 0 24px 60px rgba(24, 18, 31, 0.28); }
.contact-card-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.sent-state { text-align: center; padding: 30px 0; }
.sent-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.sent-title { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.sent-sub { margin: 8px 0 0; font-size: 14px; color: var(--text-muted); }

.contact-link {
  text-decoration: none; display: flex; align-items: center; gap: 13px;
  font-weight: 700; font-size: 16px; padding: 16px 22px; border-radius: 13px;
}
.contact-link--whatsapp { background: var(--whatsapp); color: var(--white); }
.contact-link--ghost { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); color: var(--white); }

/* ===========================================================
   Login / Portal
   =========================================================== */
.auth-screen {
  position: relative; min-height: 80vh; background: var(--purple-deep);
  display: flex; align-items: center; justify-content: center; padding: 64px 24px; overflow: hidden;
}
.auth-card {
  position: relative; width: 100%; max-width: 420px; background: var(--white);
  border-radius: 22px; padding: 40px; box-shadow: 0 30px 70px rgba(24, 18, 31, 0.4);
}
.auth-card h1 { margin-top: 22px; font-weight: 700; font-size: 28px; color: var(--ink); }
.auth-card > p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.auth-demo-note { margin-top: 16px; background: var(--purple-bg); border: 1px solid var(--border-purple); border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: var(--text-faint-2); line-height: 1.5; }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--text-muted); text-align: center; }
.auth-foot a { color: var(--purple); font-weight: 700; text-decoration: none; }

.portal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 48px 0; }
.portal-status-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 100px; padding: 8px 16px; font-size: 13px; font-weight: 600; }
.portal-logout { text-decoration: none; color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.25); padding: 9px 16px; border-radius: 10px; }

.portal-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: 18px; padding: 26px; }
.portal-card--accent { background: var(--purple); color: var(--white); }
.portal-card-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.portal-card--accent .portal-card-label { color: rgba(255, 255, 255, 0.8); }
.portal-card-value { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); }
.portal-card--accent .portal-card-value { color: var(--white); }
.portal-card-sub { margin-top: 4px; font-size: 15px; color: var(--text-muted); }

.schedule-panel { background: var(--purple-bg); border: 1px solid var(--border-purple); border-radius: 18px; padding: 26px; }
.schedule-success { margin-top: 14px; display: flex; align-items: center; gap: 9px; color: var(--green); font-weight: 600; font-size: 14px; }

.stat-block { background: var(--white); border: 1px solid var(--border-soft); border-radius: 16px; padding: 24px; }
.stat-block--accent { background: var(--purple); color: var(--white); }
.stat-block .label { font-size: 13px; color: var(--text-muted); }
.stat-block--accent .label { color: rgba(255, 255, 255, 0.8); }
.stat-block .value { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink); }
.stat-block--accent .value { color: var(--white); }
.stat-block .delta { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--green); }
.stat-block--accent .delta { color: var(--amber); }

.project-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: 16px; padding: 22px 24px; }
.project-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.project-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.project-tag { font-size: 12px; font-weight: 700; color: var(--purple); background: var(--purple-bg-deep); padding: 4px 11px; border-radius: 100px; }
.project-tag--pending { color: var(--amber-text); background: var(--amber-bg); }
.project-bar-track { margin-top: 14px; height: 8px; background: var(--purple-bg-deep); border-radius: 5px; overflow: hidden; }
.project-bar-fill { height: 100%; background: var(--purple); border-radius: 5px; }
.project-pct { margin-top: 6px; font-size: 12.5px; color: var(--text-faint); }

.deliverable-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); background: var(--white); }
.deliverable-row:last-child { border-bottom: none; }
.deliverable-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.deliverable-status { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 2px; }
.deliverable-status--progress { color: var(--purple); }
.icon-btn { cursor: pointer; background: var(--purple-bg); border: 1px solid var(--border-purple); border-radius: 9px; padding: 8px; display: flex; }

.doc-card { cursor: pointer; text-align: left; background: var(--white); border: 1px solid var(--border-soft); border-radius: 14px; padding: 18px; font-family: var(--font-body); }
.doc-card .doc-title { margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--ink); }
.doc-card .doc-meta { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }

.payments-table { border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.payments-head, .payments-row { display: grid; grid-template-columns: 1.2fr 2fr 1fr 1fr; gap: 10px; padding: 16px 22px; }
.payments-head { background: var(--purple-bg); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint-2); padding: 14px 22px; }
.payments-row { border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--text-body); background: var(--white); }
.payments-row .amount { font-weight: 700; }
.payments-row .paid { color: var(--green); font-weight: 700; }

/* Payment modal */
.pay-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pay-overlay { position: absolute; inset: 0; background: rgba(24, 18, 31, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pay-sheet { position: relative; width: 100%; max-width: 440px; background: var(--white); border-radius: 22px; padding: 32px; box-shadow: 0 30px 80px rgba(24, 18, 31, 0.45); max-height: 92vh; overflow-y: auto; }
.pay-close { position: absolute; top: 16px; right: 16px; cursor: pointer; background: var(--purple-bg); border: none; border-radius: 9px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.pay-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--purple); font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.pay-sheet h2 { margin-top: 14px; font-weight: 700; font-size: 22px; color: var(--ink); }
.pay-total { margin-top: 18px; background: var(--purple-bg); border: 1px solid var(--border-purple); border-radius: 14px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.pay-total-label { font-size: 13.5px; color: var(--text-muted); }
.pay-total-amount { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); }
.pay-secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--text-faint); }
.pay-success { text-align: center; padding: 24px 0 10px; }
.pay-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.pay-success h2 { margin-top: 18px; }
.pay-success p { margin: 8px 0 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.method-row { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.method-row .visa { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--visa); }
.method-row .cardnum { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: 0.06em; }

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #221A2D 0%, var(--ink) 60%);
  color: rgba(255, 255, 255, 0.72);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 340px at 10% 0%, rgba(88, 38, 179, 0.26), transparent 65%),
    radial-gradient(480px 300px at 92% 100%, rgba(233, 166, 34, 0.07), transparent 60%);
  pointer-events: none;
}
.foot-pattern {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: clamp(260px, 30vw, 460px);
  height: auto;
  opacity: 0.05;
  pointer-events: none;
}
.foot-pattern path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawPathLoop 14s ease-in-out infinite 0.6s;
}
.site-footer > .container, .foot-bottom { position: relative; }
.foot-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 68px 28px 52px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand svg { width: 38px; height: auto; }
.foot-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.14em; color: var(--white); }
.foot-tag { margin: 16px auto 0; font-size: 14.5px; line-height: 1.65; max-width: 440px; }
.foot-clock svg:first-child { color: var(--amber); flex: none; }
.foot-social-label { margin-top: 28px; font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.foot-social { margin-top: 12px; display: flex; gap: 10px; }
.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.foot-social a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(233, 166, 34, 0.28);
}
.foot-heading { font-family: var(--font-display); color: var(--white); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.foot-acc-list {
  margin-top: 44px;
  width: 100%;
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 18px;
  align-items: start;
}
.foot-acc { border-top: 1px solid rgba(255, 255, 255, 0.12); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot-acc-sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 10px;
  transition: color 0.18s ease;
}
.foot-acc-sum::-webkit-details-marker { display: none; }
.foot-acc-sum:hover .foot-heading { color: var(--amber); }
.foot-acc-chev { color: rgba(255, 255, 255, 0.55); transition: transform 0.28s var(--ease-spring); }
.foot-acc[open] .foot-acc-chev { transform: rotate(180deg); color: var(--amber); }
.foot-acc-body { padding: 2px 10px 20px; animation: inariFade 0.3s ease; }
.foot-links { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; align-items: center; }
.foot-links a {
  position: relative;
  display: inline-flex;
  padding: 6px 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.18s ease;
}
.foot-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-spring);
}
.foot-links a:hover { color: var(--white); }
.foot-links a:hover::after { transform: scaleX(1); }
.foot-contact { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.foot-contact-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.18s ease;
}
.foot-contact-row svg { flex: none; color: var(--purple-light); transition: color 0.18s ease; }
.foot-contact-row:hover { color: var(--white); }
.foot-contact-row:hover svg { color: var(--amber); }
.foot-cta { margin-top: 18px; padding: 13px 22px; font-size: 14.5px; border-radius: 11px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.18); }
.foot-bottom-inner { max-width: var(--container); margin: 0 auto; padding: 20px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; font-size: 13px; color: rgba(255, 255, 255, 0.55); text-align: center; }
@media (max-width: 560px) {
  .foot-acc-list { gap: 0 8px; }
  .foot-acc-sum { padding: 14px 2px; gap: 6px; }
  .foot-acc-sum .foot-heading { font-size: 10.5px; letter-spacing: 0.06em; }
  .foot-acc-chev { width: 12px; height: 12px; }
  .foot-acc-body { padding: 2px 2px 16px; overflow-wrap: anywhere; }
  .foot-links, .foot-contact-row { font-size: 13px; }
  .foot-cta { padding: 11px 12px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .foot-pattern path { animation: none; stroke-dashoffset: 0; }
  .foot-social a, .foot-links a::after, .foot-acc-chev { transition: none; }
  .foot-acc-body { animation: none; }
}
.foot-credit { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.62); font-weight: 600; text-decoration: none; transition: color 0.18s ease; }
.foot-credit img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4)); transition: transform 0.25s var(--ease-spring); }
.foot-credit:hover { color: var(--sd-orange); }
.foot-credit:hover img { transform: scale(1.15) rotate(-6deg); }

/* ===========================================================
   Floating WhatsApp
   =========================================================== */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  animation: inariFloat 3s ease-in-out infinite;
}
.whatsapp-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: fabPing 2.4s ease-out infinite;
}
@keyframes fabPing {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ===========================================================
   Motion & polish upgrade
   =========================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, var(--purple-light), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s var(--ease-spring); transition-delay: calc(var(--stagger, 0) * 60ms); }
.reveal.is-in { opacity: 1; transform: none; }

.section-dark, .section-violet { position: relative; overflow: hidden; }
.section-dark::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(640px 420px at 80% 20%, rgba(138, 95, 224, 0.22), transparent 60%);
  pointer-events: none;
}
.section-violet::before {
  content: "";
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(560px 400px at 15% 80%, rgba(233, 166, 34, 0.14), transparent 60%);
  pointer-events: none;
}

.project-bar-fill { transition: width 1.1s var(--ease-spring); }

.pay-modal .pay-overlay { animation: fadeIn 0.3s ease; }
.pay-modal .pay-sheet { animation: sheetIn 0.38s var(--ease-spring); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(28px) scale(0.97); } }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body::after { display: none; }
}

/* ===========================================================
   Phase 2 — marquee, skip link, premium accents
   =========================================================== */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.25s var(--ease-spring);
}
.skip-link:focus-visible { top: 0; }

.marquee {
  background: var(--ink);
  overflow: hidden;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}
.marquee-group > span:not(.marquee-dot) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.8;
  flex: none;
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.plan-card--growth::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  padding: 2px;
  background: conic-gradient(from var(--angle, 0deg),
    transparent 0%, var(--amber) 10%, transparent 28%,
    transparent 55%, rgba(255, 255, 255, 0.55) 68%, transparent 85%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: spinBorder 6s linear infinite;
  pointer-events: none;
}
@keyframes spinBorder { to { --angle: 360deg; } }

.process-step { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.process-step:hover { transform: translateX(6px); border-color: #C9B8EC; box-shadow: var(--shadow-card); }
.process-step--accent:hover { border-color: var(--purple-light); }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

/* ===========================================================
   Proceso — vertical timeline
   =========================================================== */
.process-steps { gap: 18px; }
.process-step {
  display: block;
  padding: 28px 30px 28px 96px;
  position: relative;
}
.process-step .step-num {
  position: absolute;
  left: 26px;
  top: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: var(--purple-bg);
  color: var(--purple);
  border: 2px solid var(--border-purple);
}
.process-step::before {
  content: "";
  position: absolute;
  left: 48px;
  top: 78px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple-light), var(--purple-bg-deep));
}
.process-step:last-child::before { display: none; }
.process-step--accent .step-num {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.process-step--accent::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent); }

/* ===========================================================
   Planes — card polish
   =========================================================== */
.plan-features { flex: 1; }
.plan-features .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--purple-bg-deep);
  color: var(--purple);
  font-size: 11px;
  flex: none;
  margin-top: 1px;
}
.plan-card--growth .plan-features .check { background: rgba(255, 255, 255, 0.16); color: var(--amber); }
.plan-card--premium .plan-features .check { background: rgba(233, 166, 34, 0.18); color: var(--amber); }
.plan-price .amount { font-size: 48px; }
.plan-card--growth { transform: scale(1.02); }
.plan-card--growth.card-hover:hover { transform: translateY(-4px) scale(1.02); }

/* Nav login icon button */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}
.nav-icon-btn--in::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-dot);
  box-shadow: 0 0 0 2px var(--purple-deep);
}
/* Header CTA next to FAQ */
.nav-cta { margin-left: 10px; }

/* Contacto: logo visible behind left text on desktop */
.hero--violet .hero-bg-pattern { opacity: 0.1; }

/* Login: centered card, big animated logo above the title */
.auth-card { text-align: center; }
.auth-card .field-label { text-align: left; }
.auth-card > svg:first-child { width: 78px; height: auto; }
.auth-card > svg:first-child path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawPathLoop 14s ease-in-out infinite 0.3s;
}

/* Specialty: two blocks, each centered (desktop) */
.specialty-inner > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.specialty-lead { max-width: 520px; }
.system-board { text-align: center; }
.sb-pills { justify-content: center; }
.sb-step { justify-content: center; }
.sb-result { justify-content: center; text-align: center; align-items: center; }

/* Servicios: recommended pick per category */
.service-card--pick { background: var(--purple-bg); border-color: var(--purple-light); position: relative; }
.service-card--pick .service-card-price .amount { color: var(--purple-deep); }
.pick-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--purple-bg-deep);
  color: var(--purple);
  border: 1px solid rgba(138, 95, 224, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 100px;
  text-transform: uppercase;
}
.pick-tag--inline { position: static; margin-left: 10px; display: inline-block; vertical-align: middle; }
.service-row--pick { background: var(--purple-bg); }

/* Footer: high-end layer */
.site-footer { position: relative; overflow: hidden; }
.foot-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple-light), var(--amber), var(--purple-light), var(--purple-deep));
  background-size: 200% 100%;
  animation: lineFlow 8s linear infinite;
}
@keyframes lineFlow { to { background-position: -200% 0; } }
.foot-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 85% 12%, rgba(88, 38, 179, 0.35), transparent 62%),
    radial-gradient(520px 380px at 8% 95%, rgba(233, 166, 34, 0.07), transparent 60%);
}
.foot-clock {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  padding: 7px 14px;
}
.foot-clock .clock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-dot); }
.foot-clock [data-cr-time] { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; }

.to-top {
  position: fixed;
  right: 26px;
  bottom: 98px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(56, 25, 122, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-spring), background 0.2s ease;
  box-shadow: 0 10px 26px rgba(24, 18, 31, 0.35);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--purple); transform: translateY(-3px); }

/* FAQ: brand palette accents */
.faq-list .faq-item { border-left: 4px solid var(--purple); }
.faq-list .faq-item:nth-child(4n+2) { border-left-color: var(--amber); }
.faq-list .faq-item:nth-child(4n+3) { border-left-color: var(--purple-light); }
.faq-list .faq-item:nth-child(4n+4) { border-left-color: var(--purple-deep); }
.faq-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.faq-item.is-open .faq-ic { background: var(--amber); color: var(--ink); }
.faq-item.is-open .faq-q { background: var(--purple-bg); }
.faq-item.is-open .faq-a { background: var(--purple-bg); }
.faq-item.is-open .faq-q-text { color: var(--purple-deep); }

/* Pattern everywhere: variants, delays, stacking */
.hero-bg-pattern--violet { opacity: 0.05; }
.section-light, .section-ink { position: relative; overflow: hidden; }
.section-dark > :not(.hero-bg-pattern),
.section-violet > :not(.hero-bg-pattern),
.section-light > :not(.hero-bg-pattern),
.section-ink > :not(.hero-bg-pattern) { position: relative; }
.section-light .hero-bg-pattern path { animation-delay: 2.5s; }
.section-violet .hero-bg-pattern path,
.closer-panel .hero-bg-pattern path { animation-delay: 5s; }

/* ===========================================================
   Specialty board (inicio)
   =========================================================== */
.specialty { position: relative; overflow: hidden; background: var(--ink); color: var(--white); }
.specialty .hero-bg-pattern { opacity: 0.05; }
.specialty > :not(.hero-bg-pattern) { position: relative; }
.specialty-inner { padding: 88px 28px; }
.specialty-h2 { margin-top: 18px; font-weight: 700; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.08; }
.specialty-accent {
  background: linear-gradient(100deg, #FFC85C 0%, var(--amber) 55%, #D98E00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.specialty-lead { margin-top: 18px; font-size: 16px; color: rgba(255, 255, 255, 0.78); max-width: 520px; }

.system-board {
  position: relative;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  padding: 32px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.board-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber);
}
.sb-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sb-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}
.sb-step-num {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 166, 34, 0.16);
  border: 1px solid rgba(233, 166, 34, 0.4);
  color: var(--amber);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  margin-top: 1px;
}
.system-board .lever-pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
  opacity: 0;
  transform: scale(0.5);
}
.system-board .lever-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.system-board.sb-live .lever-pill {
  animation:
    popIn 0.55s var(--ease-spring) both,
    pillFloat 5.5s ease-in-out infinite,
    pillPulse 7.2s ease-in-out infinite;
  animation-delay:
    calc(var(--i, 0) * 100ms),
    calc(0.8s + var(--i, 0) * 350ms),
    calc(1.4s + var(--i, 0) * 1.2s);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.4) translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}
@keyframes pillFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1); }
}
@keyframes pillPulse {
  0%, 12%, 100% { border-color: rgba(255, 255, 255, 0.16); box-shadow: none; color: var(--white); }
  5% { border-color: var(--amber); box-shadow: 0 0 16px rgba(233, 166, 34, 0.35); color: var(--amber); }
}
.sb-flow { position: relative; height: 36px; margin: 12px 0; display: flex; justify-content: center; }
.sb-flow::before {
  content: "";
  width: 2px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--amber), transparent);
  background-size: 100% 200%;
  transform: scaleY(0);
  transform-origin: top;
}
.system-board.sb-live .sb-flow::before {
  animation:
    beamGrow 0.5s var(--ease-spring) 0.75s forwards,
    beamFlow 1.6s linear 1.25s infinite;
}
@keyframes beamGrow { to { transform: scaleY(1); } }
@keyframes beamFlow {
  from { background-position: 0 200%; }
  to   { background-position: 0 -200%; }
}
.sb-result {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  background: rgba(233, 166, 34, 0.12);
  border: 1px solid rgba(233, 166, 34, 0.4);
  color: var(--amber);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  opacity: 0;
  transform: translateY(10px);
}
.sb-result { position: relative; }
.system-board.sb-live .sb-result {
  animation:
    popIn 0.6s var(--ease-spring) 1.05s both,
    resultGlow 4s ease-in-out 2.2s infinite;
}
.system-board.sb-live .sb-result::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1px solid rgba(233, 166, 34, 0.6);
  opacity: 0;
  animation: resultPing 0.9s ease-out 1.5s;
}
@keyframes resultGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 166, 34, 0); }
  50% { box-shadow: 0 0 26px 0 rgba(233, 166, 34, 0.22); }
}
@keyframes resultPing {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1, 1.45); }
}
@media (prefers-reduced-motion: reduce) {
  .system-board .lever-pill, .sb-result { opacity: 1 !important; transform: none !important; }
}

/* ===========================================================
   Draggable WhatsApp bubble
   =========================================================== */
.whatsapp-fab { touch-action: none; cursor: grab; transition: bottom 0.3s ease; }
.whatsapp-fab.is-dragging { cursor: grabbing; animation: none; }
.whatsapp-fab.is-dragging::after { animation: none; }
@media (max-width: 880px) {
  /* Keep the bubble above the footer bottom bar (© + credits) */
  .whatsapp-fab.is-lifted { bottom: 160px; }
}

/* ===========================================================
   Mobile: fully centered layout (desktop unchanged)
   =========================================================== */
@media (max-width: 880px) {
  .hero-inner, .hero-inner--page, .section .container, .container--text, .container--narrow { text-align: center; }
  .hero-h1, .hero-p, .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-stats, .sb-pills, .plan-price, .service-group-label { justify-content: center; }
  .service-group-label { flex-wrap: wrap; }
  .cta-strip { flex-direction: column; justify-content: center; text-align: center; }
  .eyebrow--pill, .page-eyebrow-pill { margin-left: auto; margin-right: auto; }
  form, .payments-table, .payments-head, .payments-row, .service-row, .deliverable-row, .doc-card, .faq-a p, .method-row { text-align: left; }
}

/* ===========================================================
   Floating social rail (left) + language rail (right, mobile)
   =========================================================== */
.social-rail {
  position: fixed;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 46;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 7px;
  background: rgba(56, 25, 122, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
}
.social-rail a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--ease-spring);
}
.social-rail a:hover { background: var(--amber); color: var(--ink); transform: scale(1.1); }

.lang-rail {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 46;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 7px;
  background: rgba(56, 25, 122, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
}
.lang-rail button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.lang-rail button.is-active { background: rgba(233, 166, 34, 0.22); box-shadow: 0 0 0 1.5px var(--amber); }

/* Hero mobile mark: full logo, never stretched or cropped */
.hero-mark-mobile { display: none; }

@media (max-width: 880px) {
  /* Small, discreet rails on mobile */
  .social-rail { left: 5px; gap: 3px; padding: 7px 4px; background: rgba(56, 25, 122, 0.5); }
  .social-rail a { width: 32px; height: 32px; }
  .social-rail a svg { width: 15px; height: 15px; }
  .lang-rail { display: flex; right: 5px; gap: 3px; padding: 7px 4px; background: rgba(56, 25, 122, 0.5); }
  .lang-rail button { width: 32px; height: 32px; }
  .lang-rail button .flag { width: 18px; height: 13px; }
  .lang-wrap { display: none; }
  /* Brand: logo centered with the name BELOW it */
  .nav { height: auto; padding: 10px 20px 12px; }
  .brand { flex-direction: column; gap: 3px; }
  .brand svg { width: 46px; }
  .brand-name { font-size: 13px; letter-spacing: 0.22em; }
  /* Home hero on mobile: footer-style mark, bottom-right, softly cropped */
  [data-view="inicio"] .hero > .hero-bg-pattern { display: none; }
  .hero-mark-mobile {
    display: block;
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: clamp(260px, 60vw, 320px);
    height: auto;
    opacity: 0.1;
    pointer-events: none;
  }
  .hero-mark-mobile path {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: drawPathLoop 14s ease-in-out infinite 0.3s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark-mobile path { animation: none; stroke-dashoffset: 0; }
}

/* Mobile: floating bubbles compact, stacked, and hidden over the footer
   so they never cover contact info or CTAs */
.whatsapp-fab { transition: opacity 0.3s ease; }
@media (max-width: 640px) {
  .whatsapp-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
  .to-top { width: 40px; height: 40px; right: 19px; bottom: 74px; }
  body.at-footer .whatsapp-fab,
  body.at-footer .to-top {
    opacity: 0;
    pointer-events: none;
  }
}

/* Side rails hidden over the hero, slide in on scroll */
.social-rail,
.lang-rail {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-spring);
}
.social-rail { transform: translateY(-50%) translateX(-18px); }
.lang-rail { transform: translateY(-50%) translateX(18px); }
body.rails-visible .social-rail,
body.rails-visible .lang-rail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%);
}

/* Desktop home hero: full-bleed arc pattern (approved look) */
.hero-bg-pattern--arcs path {
  stroke-dasharray: 6000;
  stroke-dashoffset: 6000;
  animation: drawArcsLoop 14s ease-in-out infinite 0.15s;
}
@keyframes drawArcsLoop {
  0%   { stroke-dashoffset: 6000; opacity: 1; }
  22%  { stroke-dashoffset: 0; opacity: 1; }
  78%  { stroke-dashoffset: 0; opacity: 1; }
  90%  { stroke-dashoffset: 0; opacity: 0; }
  95%  { stroke-dashoffset: 6000; opacity: 0; }
  100% { stroke-dashoffset: 6000; opacity: 1; }
}

/* Language rail: also visible on desktop (right side, appears on scroll) */
.lang-rail { display: flex; }

/* Progress bar: header purple at rest (blends in), gradient once scrolling */
.scroll-progress { background: var(--purple-deep); transition: background 0.4s ease; }
body.rails-visible .scroll-progress { background: linear-gradient(90deg, var(--purple-light), var(--amber)); }

/* Header height compensation follows the real header size (no white strip) */
.site-header { margin-bottom: calc(-1 * var(--header-h, 72px)); }
main [data-view] > :first-child { padding-top: var(--header-h, 72px); }

/* ===========================================================
   Kitsune web chat
   =========================================================== */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 61;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(233, 166, 34, 0.7);
  background: var(--purple-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(56, 25, 122, 0.45);
  transition: transform 0.22s var(--ease-spring), box-shadow 0.2s ease, opacity 0.3s ease;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 38px rgba(56, 25, 122, 0.55); }
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 164px;
  z-index: 62;
  width: min(340px, calc(100vw - 32px));
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(24, 18, 31, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: sheetIn 0.35s var(--ease-spring);
}
.chat-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: var(--purple-deep); color: var(--white); touch-action: none; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: flex; align-items: center; justify-content: center; }
.chat-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }
.chat-close { margin-left: auto; background: rgba(255, 255, 255, 0.1); border: none; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--white); display: flex; align-items: center; justify-content: center; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; background: var(--purple-bg); }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.chat-msg--bot { background: var(--white); border: 1px solid var(--border-purple); color: var(--text-body); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg--me { background: var(--purple); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip { background: var(--white); border: 1px solid var(--purple-light); color: var(--purple); border-radius: 100px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.chat-chip:hover { background: var(--purple); color: var(--white); }
.chat-input { display: flex; gap: 8px; padding: 12px; background: var(--white); border-top: 1px solid var(--border-soft); }
.chat-input input { flex: 1; border: 1px solid var(--border-purple); border-radius: 10px; padding: 10px 12px; font-family: var(--font-body); font-size: 13.5px; }
.chat-input button { width: 40px; height: 40px; border: none; border-radius: 10px; background: var(--amber); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Mobile hero: drop the paragraph, fit hero + stats bar in one screen */
@media (max-width: 640px) {
  .hero-p { display: none; }
  [data-view="inicio"] .hero {
    /* leave room for the services marquee bar right below */
    min-height: calc(100dvh - 54px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  [data-view="inicio"] .hero-inner { padding-top: 20px; padding-bottom: 28px; }
  .hero-h1 { margin-top: 16px; font-size: clamp(28px, 8vw, 38px); }
  .hero-actions { margin-top: 22px; }
  .hero-stats { margin-top: 28px; gap: 18px; }
  .hero-stat-num { font-size: 24px; }
  .hero-stat-label { font-size: 12.5px; }
}

/* Bubble layout: kitsune chat bottom-right (WhatsApp bubble removed),
   back-to-top bottom-left */
.to-top { right: auto; left: 24px; bottom: 24px; }
.chat-fab {
  bottom: 20px;
  padding: 0;
  touch-action: none; /* enables pointer drag on touch screens */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  /* hidden over the hero; appears once the user scrolls */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: visible;
  width: 142px;
  height: 148px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  animation: inariFloat 3.5s ease-in-out infinite;
}
.chat-fab > img {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  max-width: none;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(24, 18, 31, 0.5));
  pointer-events: none;
  transition: opacity 0.28s ease;
}
body.rails-visible .chat-fab { opacity: 1; pointer-events: auto; }
.chat-fab > img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.chat-fab.pose-fading > img { opacity: 0; }
/* hover: radial sparkle glow behind the fox (no box artifacts) */
.chat-fab::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 166, 34, 0.55), rgba(138, 95, 224, 0.28) 55%, transparent 72%);
  filter: blur(7px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}
.chat-fab:hover::before, .chat-fab:focus-visible::before { opacity: 1; }
.chat-fab:hover { box-shadow: none; transform: none; } /* kill legacy square shadow */
.chat-fab:focus-visible { outline: none; box-shadow: none; }
.chat-fab:hover > img { filter: drop-shadow(0 14px 28px rgba(24, 18, 31, 0.6)); }
.chat-avatar { overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-panel {
  bottom: 96px;
  height: 460px;
  min-width: 300px;
  min-height: 340px;
  max-width: min(520px, calc(100vw - 28px));
  max-height: 82vh;
  resize: both; /* user-adjustable size, native handle bottom-right */
}
.chat-body { flex: 1; max-height: none; min-height: 140px; }
.chat-avatar img { transition: opacity 0.15s ease; }
@media (max-width: 640px) {
  .chat-fab { width: 108px; height: 114px; right: 10px; bottom: 10px; }
  .chat-panel { bottom: 112px; right: 14px; }
  .to-top { left: 14px; bottom: 14px; right: auto; }
  body.at-footer .chat-fab { opacity: 0; pointer-events: none; }
}

/* Collapsible side rails: arrow folds the rail down to a single icon */
.rail-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.rail-toggle:hover { background: var(--amber); color: var(--ink); }
.rail-toggle .ic-peek { display: none; }
aside.is-collapsed > :not(.rail-toggle) { display: none; }
aside.is-collapsed .rail-toggle .ic-arrow { display: none; }
aside.is-collapsed .rail-toggle .ic-peek { display: block; }
/* collapsed = half bubble hugging the screen edge; slides out on hover */
aside.is-collapsed { padding: 5px; }
.social-rail, .lang-rail { transition: opacity 0.35s ease, transform 0.35s var(--ease-spring), left 0.28s var(--ease-spring), right 0.28s var(--ease-spring); }
.social-rail.is-collapsed { left: -25px; }
.social-rail.is-collapsed:hover, .social-rail.is-collapsed:focus-within { left: 4px; }
.social-rail.is-collapsed .rail-toggle { justify-content: flex-end; padding-right: 5px; }
.lang-rail.is-collapsed { right: -25px; }
.lang-rail.is-collapsed:hover, .lang-rail.is-collapsed:focus-within { right: 4px; }
.lang-rail.is-collapsed .rail-toggle { justify-content: flex-start; padding-left: 5px; }
@media (max-width: 880px) {
  .rail-toggle { width: 32px; height: 32px; }
  .social-rail.is-collapsed { left: -21px; }
  .lang-rail.is-collapsed { right: -21px; }
}

/* Logo draw animation behind the system board (desktop + mobile) */
.board-mark {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  margin: auto;
  opacity: 0.06;
  pointer-events: none;
}
.board-mark path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawPathLoop 14s ease-in-out infinite 0.4s;
}
.system-board > :not(.board-mark) { position: relative; }

/* Contacto: glass form over centered animated logo + service chips */
.contact-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.contact-mark {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  margin: auto;
  opacity: 0.07;
  pointer-events: none;
}
.contact-mark path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawPathLoop 14s ease-in-out infinite 0.5s;
}
.contact-card > form { position: relative; }
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), var(--amber));
}
.field-input:focus, .field-textarea:focus, .field-select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(233, 166, 34, 0.18);
}
.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.svc-chip {
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple-deep);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-spring);
}
.svc-chip:hover { border-color: var(--purple-light); transform: translateY(-1px); }
.svc-chip.is-on { background: var(--purple); border-color: var(--purple); color: var(--white); }

/* Mobile: login fits one screen, no scroll */
@media (max-width: 640px) {
  .auth-screen { min-height: calc(100dvh - var(--header-h, 72px)); padding: 16px; }
  .auth-card { padding: 22px 20px; }
  .auth-card > svg:first-child { width: 44px; }
  .auth-card h1 { margin-top: 10px; font-size: 21px; }
  .auth-card > p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
  .google-btn { margin-top: 14px; padding: 11px 14px; font-size: 14px; }
  .auth-divider { margin-top: 12px; }
  .auth-card form { margin-top: 12px !important; gap: 10px; }
  .auth-card .field-input { padding: 10px 12px; font-size: 14px; }
  .auth-card form button[type="submit"] { margin-top: 2px !important; padding: 12px !important; font-size: 14.5px !important; }
  .auth-demo-note { margin-top: 10px; padding: 9px 11px; font-size: 11.5px; }
  .auth-foot { margin-top: 12px; padding-top: 12px; font-size: 13px; }
}

/* Mobile: contact page fully centered */
@media (max-width: 640px) {
  [data-view="contacto"] .container--contact .split-2 > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  [data-view="contacto"] .contact-link { justify-content: center; width: 100%; }
  .contact-card-title { text-align: center; }
  .contact-card .field-label { display: block; text-align: center; }
  .svc-chips { justify-content: center; }
  .contact-card p { text-align: center; }
}

/* Login: Google SSO button + divider */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 24px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid #DADCE0;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: #3C4043;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.google-btn:hover { box-shadow: 0 6px 18px rgba(24, 18, 31, 0.12); border-color: #C9B8EC; transform: translateY(-1px); }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-soft);
}

/* Install app: footer button + instructions modal */
.foot-install {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1.5px solid rgba(233, 166, 34, 0.55);
  border-radius: 100px;
  background: rgba(233, 166, 34, 0.1);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}
.foot-install:hover {
  background: var(--amber);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(233, 166, 34, 0.3);
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.install-sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 30px 80px rgba(24, 18, 31, 0.45);
  animation: sheetIn 0.35s var(--ease-spring);
}
.install-head { display: flex; align-items: center; gap: 13px; }
.install-head img { border-radius: 12px; }
.install-app-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.install-app-sub { font-size: 12.5px; color: var(--text-faint-2); margin-top: 2px; }
.install-title { margin-top: 20px; font-weight: 700; font-size: 20px; color: var(--ink); }
.install-steps { margin: 14px 0 0; padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 9px; }
.install-steps li { font-size: 14.5px; line-height: 1.55; color: var(--text-body); }

/* Mobile hero mark: centered behind the hero stats row */
@media (max-width: 880px) {
  .hero-mark-mobile {
    right: auto;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    width: clamp(220px, 58vw, 300px);
    opacity: 0.12;
  }
}

/* ===========================================================
   Nosotros — premium mission/vision, values, client cards
   =========================================================== */
.mv-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 38px 34px;
}
.mv-card--mission { background: var(--white); border: 1px solid var(--border-purple); }
.mv-card--mission::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--amber), var(--purple-light));
}
.mv-card--vision {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple) 85%);
  color: var(--white);
}
.mv-card--vision::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(400px 300px at 85% 15%, rgba(233, 166, 34, 0.16), transparent 60%);
  pointer-events: none;
}
.mv-num {
  position: absolute;
  top: 6px;
  right: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 96px;
  line-height: 1;
  color: var(--purple-bg-deep);
  pointer-events: none;
}
.mv-card--vision .mv-num { color: rgba(255, 255, 255, 0.1); }
.mv-card h2 { position: relative; font-size: 24px; color: var(--purple); }
.mv-card--vision h2 { color: var(--amber); }
.mv-card p { position: relative; margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--text-body); max-width: 92%; }
.mv-card--vision p { color: rgba(255, 255, 255, 0.88); }

.values-grid { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 11px; counter-reset: val; }
.values-grid .value-pill { display: inline-flex; align-items: center; gap: 9px; }
.values-grid .value-pill::before {
  counter-increment: val;
  content: counter(val, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--amber);
}

.client-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--purple-bg);
  border: 1px solid var(--border-purple);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-spring);
}
.client-card:hover .client-ic { background: var(--amber); color: var(--ink); transform: scale(1.08) rotate(-4deg); }
.client-card { position: relative; overflow: hidden; }
.client-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.client-card:nth-child(2)::after, .client-card:nth-child(5)::after { background: linear-gradient(90deg, var(--amber), #FFC85C); }
.client-card:nth-child(3)::after, .client-card:nth-child(6)::after { background: linear-gradient(90deg, var(--purple-light), var(--amber)); }
.client-card:hover::after { opacity: 1; }
