* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--txt);
  background:
    radial-gradient(1200px 600px at 10% -20%, var(--halo-weak) 0%, transparent 50%),
    radial-gradient(1000px 500px at 90% -10%, color-mix(in srgb, var(--brand-2) 8%, transparent) 0%, transparent 50%),
    var(--bg-grad);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.1px;
}

/* Variables adicionales que se necesitan */
body {
  --halo-weak: rgba(139, 95, 191, 0.03);
  --halo-strong: rgba(139, 95, 191, 0.45);
  --bg-grad: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

body.dark-cherry {
  --halo-weak: rgba(139, 95, 191, 0.08);
  --halo-strong: rgba(139, 95, 191, 0.25);
  --bg-grad: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* Layout */
.container { width: min(1160px, 92vw); margin: 0 auto; }
.section { padding: 64px 0; position: relative; }

/* Fondos alternados para secciones */
.hero-bg {
  background:
    radial-gradient(1200px 600px at 10% -20%, color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 50%),
    radial-gradient(1000px 500px at 90% -10%, color-mix(in srgb, var(--brand-2) 9%, transparent) 0%, transparent 50%),
    var(--bg-grad);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--brand) 10%, transparent);
}
.nav .inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--txt); }
.brand img { height: 35px; width: auto; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--brand) 15%, transparent)); }
.brand span { font-weight: 600; letter-spacing: 0.2px; font-size: 18px; }
.nav .links { display: flex; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; position: relative; }
.nav a:hover { color: var(--brand-navy); }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--brand-grad); transition: width .25s ease; }
.nav a:hover::after { width: 100%; }

/* Hero */
.hero {
  padding: 40px 0 25px;
  background:
    radial-gradient(1200px 600px at 10% -20%, color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 50%),
    radial-gradient(1000px 500px at 90% -10%, color-mix(in srgb, var(--brand-2) 9%, transparent) 0%, transparent 50%),
    var(--bg-grad);
}
.hero .grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 40px 0 52px; font-weight: 700; }
.lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 56ch; }
.actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Buttons */
.btn {
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--brand-navy);
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700 !important;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  display: inline-block;
}
.btn:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  color: var(--brand-navy);
}
.btn.primary {
  background: var(--brand-grad);
  border-color: var(--brand);
  color: white;
  box-shadow: 0 8px 30px color-mix(in srgb, var(--brand) 40%, transparent);
}
.btn.primary:hover { filter: brightness(1.05); color: white; }

/* Sections */
h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.15; margin: 0 0 12px; color: var(--txt); }
p { margin: 0; }
.sub { color: var(--muted); max-width: 70ch; position: relative; padding-top: 8px; }
.sub::before { content: ""; position: absolute; top: -10px; left: 0; width: 72px; height: 4px; border-radius: 999px; background: var(--brand-grad); }
.sub2 { color: var(--muted); max-width: 70ch; }

/* Cards */
.cards { margin-top: 26px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card {
  grid-column: span 4;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.card:hover::before { transform: scaleX(1); }
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}
.card .kicker {
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card h3 { margin: 8px 0 8px; }
.card p { color: var(--muted); }

/* Service Features */
.service-icon {
  width: 50px; height: 50px;
  background: var(--brand-grad);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.service-features { list-style: none; padding: 0; margin: 12px 0; }
.service-features li {
  padding: 4px 0; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.service-features li::before { content: "✓"; color: var(--ok); font-weight: bold; font-size: 14px; }

/* Split Layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.list { display: grid; gap: 10px; margin-top: 8px; }
.tick { display: flex; gap: 10px; align-items: flex-start; }
.tick .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok); margin-top: 7px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent);
}

/* Band - Fondo normal alternado */
.band {
  background: linear-gradient(180deg, var(--card), color-mix(in srgb, var(--brand-light) 16%, var(--card) 84%));
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

/* Footer */
footer {
  padding: 42px 0; color: var(--muted); font-size: 14px;
  border-top: 1px solid var(--stroke); background: var(--bg-2);
}
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
footer a { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--brand); }

/* Demo Controls */
.demo-controls { display: flex; gap: 8px; margin-bottom: 16px; justify-content: center; }
.demo-btn {
  padding: 8px 16px; border: 1px solid var(--stroke);
  background: var(--card); border-radius: 8px;
  font-size: 12px; cursor: pointer;
  transition: all 0.3s ease;
}
.demo-btn.active { background: var(--brand); color: white; border-color: var(--brand); }
.demo-content { display: none; }
.demo-content.active { display: block; }

/* Phone Frame */
.phone-frame {
  width: min(350px, 92vw); height: 480px;
  border-radius: 28px; padding: 12px 12px 16px;
  margin: 0 auto; position: relative;
  background: linear-gradient(
    180deg,
    rgba(31, 44, 52, 0.85) 0%,
    rgba(31, 44, 52, 0.65) 15%,
    rgba(18, 27, 34, 0.65) 15%,
    rgba(18, 27, 34, 0.85) 100%
  );
  box-shadow: 0 25px 60px rgba(16,24,40,.25), inset 0 1px 0 rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 16px; border-radius: 0 0 12px 12px;
  background: rgba(0,0,0,.35);
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px 10px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 3;
  color: #e9edf3;
  margin-top: 18px;
  opacity: 0.85;
}
.chat-header .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}
.h-meta strong { font-size: 14px; display: block; line-height: 1.1; }
.h-meta span { font-size: 11px; opacity: .85; }
.online i {
  display: inline-block; width: 8px; height: 8px;
  background: #10b981; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
  margin-right: 6px;
}
.h-actions { margin-left: auto; display: flex; gap: 6px; }
.h-dot { width: 4px; height: 4px; background: rgba(255,255,255,.6); border-radius: 999px; }

/* Chat Background */
.chat-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 400px at 20% -10%, color-mix(in srgb, var(--brand) 40%, transparent) 0%, transparent 60%),
    radial-gradient(700px 360px at 120% 0%, color-mix(in srgb, var(--brand-2) 35%, transparent) 0%, transparent 55%);
  opacity: .25;
}
.chat-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 15%, transparent 85%, rgba(0,0,0,.2)); }

/* Chat Scroll */
.chat-scroll {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 72px;
  bottom: 50px;
  overflow-y: auto;
  padding: 6px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chat-scroll::-webkit-scrollbar { display: none; }

/* Messages */
.msg { display: flex; gap: 8px; margin: 8px 0; opacity: 0; transform: translateY(10px); animation: msgIn .45s ease forwards; }
.msg.user { justify-content: flex-end; }
.msg.bot { justify-content: flex-start; }

.bubble {
  max-width: 78%; padding: 10px 12px;
  border-radius: 14px; font-size: 14px; line-height: 1.35;
  color: #0e1520; position: relative;
  box-shadow: 0 6px 18px rgba(2,8,23,.18);
}
.bubble.user { background: linear-gradient(135deg, #dcf8c6 0%, #c9f3b9 100%); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.bubble.bot { background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(2px); }

/* Typing */
.typing {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 14px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.6);
  width: fit-content; margin: 8px 0;
}
.dot { width: 6px; height: 6px; background: #7a8699; border-radius: 999px; animation: dots 1.2s ease-in-out infinite; }
.dot:nth-child(2) { animation-delay: .2s; }
.dot:nth-child(3) { animation-delay: .4s; }

/* Chat Input */
.chat-input {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; height: 44px;
  display: flex; align-items: center;
  padding: 0 10px; gap: 8px; color: #cdd6e3;
}
.chat-input .placeholder { font-size: 13px; opacity: .8; }
.send-btn {
  margin-left: auto; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-grad); color: white; font-weight: 700;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent);
}

/* Flow Demo */
.flow-v2.styled {
  position: relative; padding: 20px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, var(--card)) 0%, var(--card) 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden; isolation: isolate;
  max-width: 400px; width: 100%; margin: 0 auto;
}
.flow-stepv2 {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px 14px;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 8px 0 6px;
  opacity: 0;
  transform: translateX(-10px);
  animation: stepIn .55s cubic-bezier(.2,.7,.2,1) forwards;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.flow-stepv2:nth-child(1) { animation-delay: 0.3s; }
.flow-stepv2:nth-child(2) { animation-delay: 1.3s; }
.flow-stepv2:nth-child(3) { animation-delay: 2.3s; }
.flow-stepv2:nth-child(4) { animation-delay: 3.3s; }
.flow-stepv2:hover {
  background: color-mix(in srgb, var(--brand-light) 35%, var(--card) 65%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 14%, transparent);
}

.node {
  grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-size: 20px; position: relative; z-index: 2;
  box-shadow: 0 10px 24px rgba(2,8,23,.15);
}
.node::after { content: ""; position: absolute; inset: -8px; border-radius: 16px; filter: blur(10px); opacity: .55; z-index: -1; }
.node.input { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.node.input::after { background: radial-gradient(closest-side, rgba(59,130,246,.45), transparent); }
.node.process { background: var(--brand-grad); }
.node.process::after { background: radial-gradient(closest-side, var(--halo-strong), transparent); }
.node.build { background: linear-gradient(135deg,#f59e0b,#d97706); }
.node.build::after { background: radial-gradient(closest-side, rgba(245,158,11,.40), transparent); }
.node.ok { background: linear-gradient(135deg,var(--ok),#059669); }
.node.ok::after { background: radial-gradient(closest-side, rgba(16,185,129,.40), transparent); }

.flow-stepv2 header h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--txt); }
.flow-stepv2 header p { margin: 0; font-size: 13px; color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { 
  font-size: 11px; 
  color: var(--brand-navy); 
  background: var(--brand-light); 
  border: 1px solid color-mix(in srgb, var(--brand-2) 22%, var(--stroke) 78%); 
  padding: 4px 8px; border-radius: 999px; 
}

.flow-meter { position: absolute; left: 22px; right: 22px; bottom: 16px; height: 8px; background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 999px; overflow: hidden; }
.flow-meter span { display: block; height: 100%; width: 0%; background: var(--brand-grad); box-shadow: inset 0 0 10px rgba(255,255,255,.35); }

/* Whatsapp Float */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px;
  background-color: #25d366; color: white;
  border-radius: 50px; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; text-decoration: none;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 1000; transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

/* Carousel - CORREGIDO */
.carousel-container { 
  position: relative; 
  margin-top: 26px; 
  overflow: hidden; 
}
.carousel-wrapper { 
  overflow: hidden; 
  border-radius: 20px; 
  /* QUITADO: padding-right: 200px; */
}
.carousel-track { 
  display: flex; 
  transition: transform 0.8s ease; 
  gap: 16px; 
}
.carousel-slide { 
  min-width: 320px; 
  max-width: 360px; 
  flex-shrink: 0; 
}
.carousel-controls { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 20px; 
  margin-top: 24px; 
}
.carousel-btn {
  background: var(--card); 
  border: 1px solid var(--stroke); 
  border-radius: 50%;
  width: 40px; height: 40px; 
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: bold; 
  color: var(--brand-navy); 
  cursor: pointer;
  transition: all 0.3s ease; 
  box-shadow: var(--shadow);
}
.carousel-btn:hover { 
  border-color: var(--brand); 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-hover); 
}
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots .dot { 
  width: 10px; height: 10px; 
  border-radius: 50%; 
  background: var(--stroke); 
  cursor: pointer; 
  transition: all 0.3s ease; 
}
.carousel-dots .dot.active { 
  background: var(--brand); 
  transform: scale(1.2); 
}
.carousel-dots .dot:hover { 
  background: var(--brand-2); 
}

/* Pricing */
#pricing .pricing-head {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.billing-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px;
  gap: 6px;
  margin-top: 8px;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--brand-navy) 4%, transparent);
}
.bt-option {
  position: relative;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .2s ease;
}
.bt-option.active { color: var(--txt); }
.bt-option .save {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  color: color-mix(in srgb, var(--ok) 90%, #0a7 10%);
  background: color-mix(in srgb, var(--ok) 10%, #e8fff5 90%);
  border: 1px solid color-mix(in srgb, var(--ok) 25%, #bdf0de 75%);
  border-radius: 999px;
}
.bt-pill {
  position: absolute;
  inset: 6px auto 6px 6px;
  width: calc(50% - 6px);
  background: var(--brand-grad);
  border-radius: 999px;
  box-shadow: 0 8px 26px color-mix(in srgb, var(--brand) 28%, transparent);
  transition: transform .25s ease;
}



.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  transform: scale(1.05);
  border-color: var(--brand);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--brand) 20%, transparent);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.price-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--txt);
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}

.pricing-cta .btn-pricing {
  display: block; text-align: center; width: 100%;
  padding: 12px 18px; border-radius: 12px; font-weight: 700;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--txt);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-cta .btn-pricing:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(16,21,133,0.12);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--stroke) 70%);
}
.pricing-cta .btn-pricing.featured {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: var(--brand);
  box-shadow: 0 12px 32px rgba(139,95,191,.35);
}

.price-period {
  color: var(--muted);
  font-size: 16px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: "✓";
  color: var(--ok);
  font-weight: bold;
  width: 20px;
  height: 20px;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.pricing-footer-info {
  text-align: center;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
}
.pricing-highlight { margin-bottom: 6px; }

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Animaciones */
@keyframes stepIn { to { opacity: 1; transform: none; } }
@keyframes meter { 0% { width: 0% } 100% { width: 100% } }
@keyframes msgIn { to { opacity: 1; transform: translateY(0); } }
@keyframes dots {
  0%, 20% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
  80%, 100% { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Reveal animation para pricing */
@media (prefers-reduced-motion: no-preference) {
  .pricing-card { opacity: 0; transform: translateY(10px); }
  .reveal.in .pricing-card, .pricing-card.revealed {
    opacity: 1; transform: translateY(0);
    transition: opacity .45s ease, transform .45s ease;
  }
  .card.reveal.in:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
  }
}

/* Responsive */
@media (max-width: 960px) {
  .section { padding: 40px 0; }
  .hero { padding: 60px 0 30px; }
  .hero .grid, .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-column: auto; }
  .nav .links { display: none; }
  .pricing-grid { grid-template-columns: 1fr; gap: 18px; }
  .pricing-card.featured { transform: none; }
  
  /* Carousel responsive */
  .carousel-slide { 
    min-width: 280px; 
    max-width: 320px; 
  }
}


