/* =====================================================================
   SmartTeamsLATAM — HOJA DE ESTILOS
   Inspiración: elevenlabs.io · Paleta del logo oficial · Mobile-first
   ===================================================================== */

/* ---------- 1. Variables / Design tokens ---------- */
:root {
  /* Paleta de marca */
  --sage:        #7A9B7A;
  --sage-dark:   #678567;
  --dusty-rose:  #D98080;
  --gold:        #D4A857;
  --blush:       #E8B4B8;
  --charcoal:    #6B6B6B;
  --bg:          #F9F9F7;
  --bg-alt:      #F0EDE8;
  --heading:     #1A1A1A;
  --white:       #FFFFFF;
  --border:      #E6E3DD;

  /* Colores de agentes */
  --max:   #E8853A;   /* naranja */
  --rex:   #D64545;   /* rojo */
  --nova:  #5BA85B;   /* verde */
  --otto:  #4A7FC0;   /* azul */
  --wa:    #25D366;   /* WhatsApp */

  /* Tipografía */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(26,26,26,.06), 0 1px 2px rgba(26,26,26,.04);
  --shadow-md: 0 8px 30px rgba(26,26,26,.08);
  --shadow-lg: 0 20px 60px rgba(26,26,26,.12);
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--heading);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 4px; }

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--heading); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--charcoal); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--charcoal); }

/* ---------- 4. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head.text-center { text-align: center; }

/* ---------- 5. Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; padding: 6px 14px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--border); color: var(--charcoal);
}
.badge--gold   { background: rgba(212,168,87,.14); color: #9a7320; border-color: rgba(212,168,87,.3); }
.badge--sage   { background: rgba(122,155,122,.14); color: var(--sage-dark); border-color: rgba(122,155,122,.3); }
.badge--rose   { background: rgba(217,128,128,.14); color: #b85959; border-color: rgba(217,128,128,.3); }
.badge--dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wa);
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse-dot 2s infinite;
}

/* ---------- 6. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem; padding: 14px 26px; border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--sage); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--sage-dark); box-shadow: var(--shadow-md); }
.btn--outline { background: transparent; color: var(--heading); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--sage); color: var(--sage-dark); }
.btn--white { background: var(--white); color: var(--heading); }
.btn--white-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn--white-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #1da851; }
.btn--full { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- 7. Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.navbar.scrolled {
  background: rgba(249,249,247,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.navbar__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.navbar__logo svg { width: 34px; height: 34px; }
.navbar__links { display: flex; align-items: center; gap: 30px; }
.navbar__links a { font-size: .95rem; font-weight: 500; color: var(--charcoal); transition: color .2s; }
.navbar__links a:hover { color: var(--heading); }
.navbar__cta { display: flex; align-items: center; gap: 14px; }
.navbar__burger { display: none; flex-direction: column; gap: 5px; width: 26px; padding: 4px; }
.navbar__burger span { height: 2px; background: var(--heading); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero { padding: 140px 0 clamp(60px,8vw,100px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 520px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual {
  background: linear-gradient(160deg, #fff 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero__agents { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.hero__screen {
  margin-top: 16px; background: var(--heading); border-radius: 12px; padding: 14px 16px;
  font-family: 'SF Mono', ui-monospace, monospace; font-size: .72rem; color: #8fd98f; line-height: 1.7;
}
.hero__screen .c-com { color: #6b6b6b; }
.hero__screen .c-key { color: var(--gold); }

/* tarjeta de agente reutilizable */
.agent-chip {
  background: var(--white); border-radius: var(--radius-sm); padding: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.agent-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.agent-chip svg { width: 64px; height: 64px; }
.agent-chip b { font-size: .92rem; }
.agent-chip span { font-size: .72rem; color: var(--charcoal); }

/* ---------- 9. Social proof bar (cintillo de logos en movimiento) ---------- */
.proof { background: var(--bg-alt); }
.proof__inner { display: flex; align-items: center; gap: 28px; flex-wrap: nowrap; }
.proof__label { font-size: .85rem; font-weight: 600; color: var(--charcoal); white-space: nowrap; flex-shrink: 0; }
.proof__logos {
  flex: 1; overflow: hidden; position: relative; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.proof__track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 34s linear infinite; }
.proof__logos:hover .proof__track { animation-play-state: paused; }
.proof__track span {
  font-weight: 700; font-size: 1.02rem; color: #9a978f; letter-spacing: -.01em; white-space: nowrap;
  filter: grayscale(1); opacity: .75; transition: opacity .2s, color .2s;
}
.proof__track span:hover { opacity: 1; color: var(--charcoal); }
.proof__track img { height: 26px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity .2s, filter .2s; }
.proof__track span:hover img { opacity: 1; filter: grayscale(0); }

/* ---------- 10. Bento grid (productos) ---------- */
.bento {
  display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto;
  gap: 20px; grid-template-areas: "a b" "a c" "d d";
}
.bento__card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.bento__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bento__card[data-area="a"] { grid-area: a; }
.bento__card[data-area="b"] { grid-area: b; }
.bento__card[data-area="c"] { grid-area: c; }
.bento__card[data-area="d"] { grid-area: d; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.bento__card::after {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 160px; height: 160px;
  border-radius: 50%; filter: blur(60px); opacity: .14; transform: translate(40%,-40%);
  background: var(--accent, var(--sage)); pointer-events: none;
}
.bento__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.bento__head svg { width: 56px; height: 56px; flex-shrink: 0; }
.bento__card h3 { margin-bottom: 0; }
.bento__card .role { font-size: .8rem; color: var(--charcoal); font-weight: 500; }
.bento__features { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bento__features li {
  font-size: .82rem; font-weight: 500; color: var(--charcoal);
  background: var(--bg); border: 1px solid var(--border); padding: 6px 12px; border-radius: 100px;
}
.bento__card[data-area="a"] svg { width: 84px; height: 84px; }
.bento__card[data-area="a"] .bento__big { font-size: clamp(1.3rem,2vw,1.7rem); }

/* ---------- 11. Analytics ---------- */
.analytics { background: linear-gradient(180deg, rgba(232,180,184,.18), rgba(232,180,184,.06)); }
.analytics__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.analytics__bullets { margin: 24px 0; display: grid; gap: 14px; }
.analytics__bullets li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--heading); }
.analytics__bullets li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.analytics__quote { font-style: italic; color: var(--sage-dark); font-weight: 600; font-size: 1.1rem; margin-top: 10px; }
.dashboard {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 24px; overflow: hidden;
}
.dashboard__bar { display: flex; gap: 6px; margin-bottom: 18px; }
.dashboard__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.dashboard__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; }
.kpi b { display: block; font-size: 1.5rem; color: var(--heading); }
.kpi small { font-size: .72rem; color: var(--charcoal); }
.kpi .up { color: var(--nova); font-size: .72rem; font-weight: 700; }
.dashboard__chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.dashboard__chart i {
  flex: 1; background: linear-gradient(180deg, var(--sage), #a9c2a9); border-radius: 6px 6px 0 0;
  animation: grow-bar 1.2s var(--ease) backwards;
}
/* Gráficos extra del dashboard */
.dashboard__charts { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; margin-bottom: 18px; }
.chart-card { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; }
.chart-card small { font-size: .72rem; color: var(--charcoal); display: block; margin-bottom: 8px; }
.chart-card .area { width: 100%; height: 64px; display: block; }
.chart-card--donut { display: flex; flex-direction: column; align-items: center; }
.donut { width: 84px; height: 84px; }
.donut-track { fill: none; stroke: var(--border); stroke-width: 3.4; }
.donut-val { fill: none; stroke: var(--sage); stroke-width: 3.4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; stroke-dasharray: 0 100; animation: donut 1.5s var(--ease) forwards .3s; }
.donut text { font-size: 8px; font-weight: 800; fill: var(--heading); }
@keyframes donut { to { stroke-dasharray: 92 100; } }

/* Logo de respaldo en SVG (cuando falta assets/logo.png) */
.logo-lockup { display: inline-flex; align-items: center; gap: 10px; }
.logo-lockup svg { width: 38px; height: 38px; flex-shrink: 0; }
/* Lockup en una sola línea, estilo "Google Antigravity" */
.logo-wm { display: inline-flex; align-items: baseline; gap: 7px; line-height: 1; }
.logo-wm b { font-weight: 700; font-size: 1.18rem; letter-spacing: -.015em; color: var(--heading); }
.logo-wm span { font-weight: 400; font-size: 1.18rem; letter-spacing: .01em; color: var(--charcoal); }
.footer .logo-wm b { color: #fff; font-size: 1.4rem; }
.footer .logo-wm span { color: #c9c9c9; font-size: 1.4rem; }

/* ---------- 12. Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; counter-reset: step; }
.step { text-align: center; padding: 16px; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--sage); color: #fff; font-weight: 700; font-size: 1.4rem; box-shadow: var(--shadow-md);
}
.step:nth-child(2) .step__num { background: var(--gold); }
.step:nth-child(3) .step__num { background: var(--dusty-rose); }
.step h3 { margin-bottom: 8px; }

/* ---------- 13. Equipo ---------- */
.team { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.team__card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team__card svg { width: 88px; height: 88px; margin: 0 auto 14px; }
.team__card h4 { font-size: 1.1rem; }
.team__card .role { font-size: .8rem; color: var(--charcoal); margin-top: 4px; }
.team__note { text-align: center; margin-top: 32px; color: var(--charcoal); font-weight: 500; }
.ceo-avatar {
  width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(140deg, var(--gold), var(--dusty-rose));
  display: grid; place-items: center; font-size: 2.4rem;
}

/* ---------- 14. Tech & SaaS ---------- */
.tech { background: var(--bg-alt); }
.tech__badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 28px; }
.tech__badges .badge { font-size: .85rem; padding: 9px 16px; background: var(--white); }
.tech__stack { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tech__stack span {
  font-weight: 600; color: var(--charcoal); background: var(--white);
  border: 1px solid var(--border); padding: 8px 18px; border-radius: 100px; font-size: .9rem;
}

/* ---------- 15. Testimonios ---------- */
.testi { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testi__card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.testi__card p { font-size: 1.02rem; color: var(--heading); }
.testi__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.testi__author b { font-size: .92rem; display: block; }
.testi__author small { font-size: .78rem; color: var(--charcoal); }
.stars { color: var(--gold); font-size: .95rem; letter-spacing: 2px; }

/* ---------- 16. CTA final ---------- */
.cta-final { background: var(--sage); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; max-width: 720px; margin: 0 auto 12px; }
.cta-final p { color: rgba(255,255,255,.85); max-width: 540px; margin: 0 auto 30px; }
.cta-final .hero__cta { justify-content: center; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--heading); color: #c9c9c9; padding: 60px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand .navbar__logo { color: #fff; margin-bottom: 12px; }
.footer__brand p { color: #9a9a9a; font-size: .9rem; max-width: 260px; }
.footer h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { font-size: .9rem; color: #b5b5b5; transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 6px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.footer__social a:hover { background: var(--sage); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: #8a8a8a;
}

/* ---------- 18. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; align-items: center; gap: 0;
}
.wa-float__btn {
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37,211,102,.45);
  position: relative; transition: transform .25s var(--ease);
}
.wa-float__btn:hover { transform: scale(1.08); }
.wa-float__btn svg { width: 32px; height: 32px; }
.wa-float__btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa);
  animation: pulse-ring 3s var(--ease) infinite; z-index: -1;
}
.wa-float__badge {
  position: absolute; top: -6px; right: -6px; background: var(--heading); color: #fff;
  font-size: .62rem; font-weight: 700; padding: 3px 7px; border-radius: 100px; white-space: nowrap;
}

/* =====================================================================
   PÁGINA DE CONTACTO
   ===================================================================== */
.contact-hero {
  position: relative; padding: 130px 0 60px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #2a2a2a, #4a4a4a);
}
.contact-hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(122,155,122,.4), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(74,127,192,.35), transparent 45%),
    rgba(0,0,0,.45);
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero h1 { color: #fff; margin: 16px 0 0; }
.contact-hero .badge { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.contact-hero__agents { display: flex; justify-content: center; gap: 8px; margin-bottom: 8px; }
.contact-hero__agents svg { width: 56px; height: 56px; }

.contact-layout { display: grid; grid-template-columns: 6fr 4fr; gap: 28px; align-items: start; margin-top: -40px; position: relative; z-index: 5; }

/* Chat */
.chat {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; height: 560px; overflow: hidden;
}
.chat__header {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.chat__header svg { width: 44px; height: 44px; }
.chat__header .who b { font-size: .95rem; display: block; }
.chat__header .who small { font-size: .76rem; color: var(--nova); font-weight: 600; }
.chat__header .who small::before { content: "● "; }
.chat__header a { margin-left: auto; font-size: .82rem; font-weight: 600; color: var(--sage-dark); }
.chat__body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.bubble { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: bubble-in .35s var(--ease); }
.bubble--agent { align-self: flex-start; background: var(--sage); color: #fff; border-bottom-left-radius: 5px; }
.bubble--user  { align-self: flex-end; background: var(--bg-alt); color: var(--heading); border-bottom-right-radius: 5px; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.chip {
  font-size: .82rem; font-weight: 500; padding: 8px 14px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--sage); color: var(--sage-dark);
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--sage); color: #fff; }
.chat__input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); }
.chat__input input { flex: 1; border: 1px solid var(--border); border-radius: 100px; padding: 12px 18px; font-family: inherit; font-size: .92rem; }
.chat__input input:focus { outline: none; border-color: var(--sage); }
.chat__send { width: 46px; height: 46px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.chat__send:hover { background: var(--sage-dark); }
.chat__send svg { width: 20px; height: 20px; }
.typing { display: flex; gap: 4px; align-self: flex-start; background: var(--sage); padding: 14px 16px; border-radius: 16px; border-bottom-left-radius: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.8); animation: typing-dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }

/* Columna derecha */
.contact-side { display: grid; gap: 20px; }
.panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.panel--wa { text-align: center; }
.panel--wa .wa-icon { width: 60px; height: 60px; margin: 0 auto 14px; background: var(--wa); border-radius: 50%; display: grid; place-items: center; }
.panel--wa .wa-icon svg { width: 34px; height: 34px; }
.panel--wa h3 { margin-bottom: 6px; }
.panel--wa p { font-size: .88rem; margin-bottom: 4px; }
.panel--wa .horario { font-size: .8rem; color: var(--charcoal); margin-bottom: 18px; }
.panel--wa .btn { margin-bottom: 10px; }

/* Selector de agentes */
.agent-select { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 22px; }
.agent-select__card {
  border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center;
  background: var(--white); transition: border-color .3s var(--ease), transform .2s, box-shadow .2s;
}
.agent-select__card svg { width: 48px; height: 48px; margin: 0 auto 4px; }
.agent-select__card b { font-size: .76rem; }
.agent-select__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.agent-select__card.active { border-color: var(--ag-color); box-shadow: 0 6px 18px color-mix(in srgb, var(--ag-color) 30%, transparent); }

/* Formulario */
.form-title { margin-bottom: 18px; transition: color .3s; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--heading); }
.field label .req { color: var(--dusty-rose); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: inherit; font-size: .92rem; background: var(--white); color: var(--heading);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(122,155,122,.15); }
.field textarea { resize: vertical; min-height: 80px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__phone { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.pills { display: flex; gap: 8px; }
.pills label { flex: 1; }
.pills input { position: absolute; opacity: 0; }
.pills span {
  display: block; text-align: center; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .2s;
}
.pills input:checked + span { background: var(--sage); color: #fff; border-color: var(--sage); }
.char-count { font-size: .72rem; color: var(--charcoal); text-align: right; margin-top: 4px; }
.form-note { font-size: .8rem; color: var(--charcoal); text-align: center; margin-top: 12px; }
.form-success {
  display: none; text-align: center; padding: 30px 16px;
}
.form-success.show { display: block; animation: bubble-in .4s var(--ease); }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--nova); color: #fff;
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 4px; font-weight: 600; font-size: 1.02rem; color: var(--heading);
}
.faq__q .icon { font-size: 1.4rem; color: var(--sage); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq__item.open .faq__q .icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { padding: 0 4px 20px; color: var(--charcoal); }

/* =====================================================================
   ANIMACIONES
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes pulse-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes pulse-dot  { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@keyframes typing-dot { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes bubble-in  { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes grow-bar   { from { height: 0; } }
@keyframes marquee    { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .hero__grid, .analytics__grid, .contact-layout { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .bento__card[data-area="d"] { grid-template-columns: 1fr; text-align: center; }
  .team { grid-template-columns: repeat(3,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .navbar__links, .navbar__cta .btn--outline { display: none; }
  .navbar__burger { display: flex; }
  .navbar__menu {
    position: fixed; inset: 72px 0 auto 0; background: rgba(249,249,247,.98);
    backdrop-filter: blur(16px); flex-direction: column; gap: 0; padding: 12px 24px 24px;
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .35s var(--ease);
    display: flex !important;
  }
  .navbar__menu.open { transform: translateY(0); }
  .navbar__menu a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
  .navbar__menu .btn { margin-top: 14px; }

  .steps, .testi { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2,1fr); }
  .footer__grid, .footer__bottom { grid-template-columns: 1fr; }

  /* Cintillo: un poco más rápido en móvil */
  .proof__track { animation-duration: 22s; }

  .agent-select { grid-template-columns: repeat(4,1fr); overflow-x: auto; }
  .field__row { grid-template-columns: 1fr; }
  .wa-float__badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   ÍCONOS PROFESIONALES (reemplazan a los personajes) + LOGO en imagen
   ===================================================================== */
.svc {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--c, var(--sage)) 13%, #fff);
  color: var(--c, var(--sage));
}
.svc .ic { width: 30px; height: 30px; }
.svc--lg { width: 76px; height: 76px; border-radius: 20px; }
.svc--lg .ic { width: 40px; height: 40px; }

/* Ajustes por contexto */
.hero__agents .svc { margin: 0 auto; }
.bento__head .svc { width: 56px; height: 56px; }
.bento__card[data-area="a"] .svc { width: 76px; height: 76px; border-radius: 20px; }
.bento__card[data-area="a"] .svc .ic { width: 40px; height: 40px; }
.team__card .svc { margin: 0 auto 14px; }
.chat__header .svc { width: 44px; height: 44px; border-radius: 12px; }
.chat__header .svc .ic { width: 24px; height: 24px; }
.agent-select__card .svc { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 4px; }
.agent-select__card .svc .ic { width: 24px; height: 24px; }

/* Logo: ícono (recorte del logo real por CSS) + nombre en texto HTML */
.logo-mark {
  flex-shrink: 0; display: inline-block;
  width: 35px; height: 34px;
  background: url('../assets/logo.png') no-repeat;
  background-size: 109px auto;        /* escala del logo 1000px → 109px */
  background-position: -37px -2px;     /* desplaza para mostrar solo el nudo */
  mix-blend-mode: multiply;            /* funde el fondo blanco con el fondo claro */
}
/* En el footer (fondo oscuro) el multiply no sirve: dejo el nudo en una pastilla blanca redondeada */
.footer .logo-mark { width: 45px; height: 44px; background-size: 141px auto; background-position: -48px -3px; mix-blend-mode: normal; border-radius: 9px; }
@media (max-width: 760px) { .logo-mark { width: 31px; height: 30px; background-size: 96px auto; background-position: -33px -2px; } }
