/* ============================================================
   Datova — Consultoría de Datos
   Estilos: tema oscuro, glassmorphism, animaciones de scroll
   ============================================================ */

:root {
  --bg:        #070912;
  --bg-2:      #0b1020;
  --surface:   rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.10);
  --text:      #eaf0ff;
  --muted:     #9aa6c4;
  --cyan:      #22d3ee;
  --indigo:    #818cf8;
  --violet:    #a78bfa;
  --pink:      #f472b6;
  --grad:      linear-gradient(100deg, #22d3ee, #818cf8 45%, #a78bfa 75%, #f472b6);
  --radius:    18px;
  --maxw:      1180px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle ambient gradients layered over the canvas bg */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60vw 60vw at 78% -8%, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(50vw 50vw at 8% 18%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(45vw 45vw at 60% 100%, rgba(244, 114, 182, 0.10), transparent 60%);
  z-index: -2;
  pointer-events: none;
}

.bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad);
  z-index: 100;
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.6);
  transition: width 0.1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.96rem; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn--primary {
  background: var(--grad); color: #07101f;
  box-shadow: 0 8px 30px rgba(129, 140, 248, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(129, 140, 248, 0.55); }
.btn--ghost {
  background: var(--surface); color: var(--text); border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); background: var(--surface-2); border-color: rgba(255,255,255,.22); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s, padding 0.35s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(7, 9, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav--scrolled .nav__inner { height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 0 8px rgba(129,140,248,.5)); }
.brand__logo { height: 40px; width: auto; border-radius: 9px; display: block; box-shadow: 0 0 0 1px var(--border), 0 4px 16px rgba(0,0,0,.4); transition: height 0.35s var(--ease); }
.nav--scrolled .brand__logo { height: 34px; }
.brand__name {
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em;
}

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--muted); font-size: 0.94rem; font-weight: 500; position: relative; padding: 4px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 10px 20px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  margin-bottom: 22px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,211,238,.55)} 70%{box-shadow:0 0 0 9px rgba(34,211,238,0)} 100%{box-shadow:0 0 0 0 rgba(34,211,238,0)} }

.hero__title {
  font-family: "Sora", sans-serif; font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.05; margin-bottom: 22px;
}
.hero__sub { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem); max-width: 30em; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust { list-style: none; display: flex; gap: 30px; flex-wrap: wrap; }
.hero__trust li { color: var(--muted); font-size: 0.92rem; }
.hero__trust strong { display: block; font-family: "Sora", sans-serif; font-size: 1.5rem; color: var(--text); font-weight: 700; }

/* Hero floating cards */
.hero__visual { position: relative; height: 480px; }
.hero__glow {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,.35), transparent 65%);
  filter: blur(40px); z-index: -1; animation: floatGlow 8s ease-in-out infinite;
}
@keyframes floatGlow { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-18px) scale(1.05)} }

.float-card {
  position: absolute; background: rgba(15, 19, 38, 0.6);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  will-change: transform;
}
.float-card__head { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.float-card__foot { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.float-card__foot .up { color: #34d399; font-weight: 600; }

.float-card--chart { top: 6%; left: 0; width: 270px; animation: floaty 6s ease-in-out infinite; }
.float-card--bars  { bottom: 8%; left: 8%; width: 220px; animation: floaty 7s ease-in-out infinite 0.6s; }
.float-card--kpi   { top: 18%; right: 0; width: 190px; text-align: center; animation: floaty 5.5s ease-in-out infinite 0.3s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

.spark { width: 100%; height: 80px; display: block; }
.spark__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s var(--ease) forwards 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spark__area { opacity: 0; animation: fadeIn 1.4s ease forwards 1.6s; }
@keyframes fadeIn { to { opacity: 1; } }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-top: 6px; }
.bars span {
  flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--indigo));
  transform-origin: bottom; transform: scaleY(0); animation: barGrow 0.9s var(--ease) forwards;
}
.bars span:nth-child(1){animation-delay:.2s} .bars span:nth-child(2){animation-delay:.32s}
.bars span:nth-child(3){animation-delay:.44s} .bars span:nth-child(4){animation-delay:.56s}
.bars span:nth-child(5){animation-delay:.68s} .bars span:nth-child(6){animation-delay:.8s}
@keyframes barGrow { to { transform: scaleY(1); } }

.float-card--kpi .kpi__num { font-family:"Sora",sans-serif; font-size: 2rem; font-weight: 800; }
.kpi__label { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.kpi__ring { width: 80px; height: 80px; margin: 10px auto 0; }
.kpi__arc { transition: stroke-dashoffset 1.6s var(--ease); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px;
}
.scroll-hint span { width: 4px; height: 8px; border-radius: 4px; background: var(--cyan); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translateY(0)} 30%{opacity:1} 60%{opacity:1;transform:translateY(12px)} 100%{opacity:0;transform:translateY(16px)} }

/* ---------- Logos marquee ---------- */
.logos { padding: 40px 0 10px; }
.logos__title { text-align: center; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scrollX 28s linear infinite; }
.marquee__track span { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.4rem; color: rgba(255,255,255,.32); white-space: nowrap; transition: color .3s; }
.marquee__track span:hover { color: rgba(255,255,255,.7); }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.section__title { font-family: "Sora", sans-serif; font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.12; }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__icon { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(167,139,250,.18)); border: 1px solid var(--border); position: relative; }
.card__icon::after {
  content: ""; position: absolute; inset: 0; background-position: center; background-repeat: no-repeat; background-size: 26px;
}
.card__icon[data-icon="pipeline"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='5' cy='6' r='2.4'/%3E%3Ccircle cx='5' cy='18' r='2.4'/%3E%3Ccircle cx='19' cy='12' r='2.4'/%3E%3Cpath d='M7 6h6a3 3 0 0 1 3 3M7 18h6a3 3 0 0 0 3-3'/%3E%3C/svg%3E"); }
.card__icon[data-icon="bi"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 19V11M12 19V5M19 19v-6'/%3E%3C/svg%3E"); }
.card__icon[data-icon="ai"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='7' width='14' height='12' rx='3'/%3E%3Cpath d='M9 3v4M15 3v4M9 13h.01M15 13h.01M9 16h6'/%3E%3C/svg%3E"); }
.card__icon[data-icon="strategy"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f472b6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E"); }
.card h3 { font-family: "Sora", sans-serif; font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { font-size: 0.74rem; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }

/* ---------- Process (sticky scroll) ---------- */
.process { padding: 110px 0; }
.process__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: start; }
.process__sticky { position: sticky; top: 110px; align-self: start; }
.process__progress { height: 5px; border-radius: 5px; background: var(--surface-2); margin: 26px 0; overflow: hidden; }
.process__progress-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 5px; transition: width 0.25s var(--ease); }

.process__visual { display: grid; place-items: center; height: 240px; }
.orbit { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.orbit__core {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.6rem;
  background: var(--grad); color: #07101f; box-shadow: 0 0 40px rgba(129,140,248,.55);
  z-index: 2;
}
.orbit__ring { position: absolute; border: 1px solid var(--border); border-radius: 50%; border-top-color: var(--cyan); }
.orbit__ring--1 { width: 130px; height: 130px; animation: spin 6s linear infinite; }
.orbit__ring--2 { width: 170px; height: 170px; border-top-color: var(--violet); animation: spin 9s linear infinite reverse; }
.orbit__ring--3 { width: 200px; height: 200px; border-top-color: var(--pink); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.process__steps { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.pstep {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; position: relative; transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease);
}
.pstep.is-active { border-color: rgba(129,140,248,.55); background: var(--surface-2); box-shadow: 0 0 0 1px rgba(129,140,248,.25), 0 18px 50px rgba(0,0,0,.4); }
.pstep__num { font-family: "Sora", sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--cyan); letter-spacing: 0.08em; }
.pstep h3 { font-family: "Sora", sans-serif; font-size: 1.3rem; margin: 4px 0 8px; }
.pstep p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Cases (parallax images) ---------- */
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s; transform-style: preserve-3d;
}
.case:hover { box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.case__media { position: relative; height: 210px; overflow: hidden; }
.case__img { position: absolute; inset: -12%; background-size: cover; background-position: center; transition: transform 0.6s var(--ease); }
.case:hover .case__img { transform: scale(1.06); }
/* Generated gradient "photos" — always render, no network needed */
.case__img[data-img="retail"]  { background: radial-gradient(120% 120% at 20% 10%, #1b3a8a, transparent 60%), linear-gradient(135deg, #0ea5e9, #6366f1 60%, #312e81); }
.case__img[data-img="fintech"] { background: radial-gradient(120% 120% at 80% 10%, #155e63, transparent 60%), linear-gradient(135deg, #06b6d4, #14b8a6 50%, #0f766e); }
.case__img[data-img="health"]  { background: radial-gradient(120% 120% at 50% 0%, #6d28d9, transparent 60%), linear-gradient(135deg, #a855f7, #ec4899 60%, #7c3aed); }
.case__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,9,18,.65)); }
.case__chip {
  position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 0.74rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: rgba(7,9,18,.6); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.case__body { padding: 22px 24px 26px; }
.case__body h3 { font-family: "Sora", sans-serif; font-size: 1.2rem; margin-bottom: 8px; }
.case__body p { color: var(--muted); font-size: 0.94rem; margin-bottom: 16px; }
.case__metric { font-size: 0.9rem; color: var(--muted); }
.case__metric strong { font-family: "Sora", sans-serif; font-size: 1.5rem; color: var(--text); margin-right: 6px; }

/* ---------- Metrics ---------- */
.metrics { padding: 80px 0; }
.metrics__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  background: linear-gradient(135deg, rgba(34,211,238,.07), rgba(167,139,250,.07));
  border: 1px solid var(--border); border-radius: 24px; padding: 44px 30px;
}
.metric { text-align: center; }
.metric__num { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.metric__num span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.metric__label { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

/* ---------- Viz showcase ---------- */
.viz__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

.viz__chart { background: rgba(13,17,34,.55); border: 1px solid var(--border); border-radius: 22px; padding: 26px; backdrop-filter: blur(12px); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.viz__chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.9rem; color: var(--muted); }
.viz__legend { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.viz__legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--indigo); display: inline-block; }
.viz__legend i.alt { background: var(--cyan); border-radius: 50%; }
.viz__svg { width: 100%; height: auto; }
.viz__grid line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.viz__bars rect { fill: url(#barGrad); transition: height 1s var(--ease), y 1s var(--ease); }
.viz__bars rect { fill: rgba(129,140,248,.55); }
.viz__line { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.6s var(--ease) 0.3s; }
.viz.is-in .viz__line { stroke-dashoffset: 0; }
.viz__dots circle { fill: var(--cyan); opacity: 0; transition: opacity 0.4s ease; }
.viz.is-in .viz__dots circle { opacity: 1; transition-delay: 1.3s; }

/* ---------- Quotes ---------- */
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; transition: transform .35s var(--ease), border-color .35s; }
.quote:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.2); }
.quote blockquote { font-size: 1.04rem; line-height: 1.55; margin-bottom: 22px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption span:last-child { display: flex; flex-direction: column; }
.quote figcaption strong { font-size: 0.95rem; }
.quote figcaption em { font-style: normal; color: var(--muted); font-size: 0.82rem; }

.avatar, .member__photo {
  border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0;
  border: 1px solid var(--border);
}
.avatar { width: 44px; height: 44px; }
.avatar[data-av="1"] { background: linear-gradient(135deg,#22d3ee,#6366f1); }
.avatar[data-av="2"] { background: linear-gradient(135deg,#a78bfa,#ec4899); }
.avatar[data-av="3"] { background: linear-gradient(135deg,#14b8a6,#22d3ee); }

/* ---------- Team ---------- */
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; }
.member__photo { width: 100%; aspect-ratio: 1; border-radius: 20px; margin-bottom: 16px; position: relative; overflow: hidden; transition: transform .4s var(--ease); }
.member:hover .member__photo { transform: translateY(-6px) scale(1.02); }
.member__photo[data-av="4"] { background: linear-gradient(145deg,#0ea5e9,#6366f1); }
.member__photo[data-av="5"] { background: linear-gradient(145deg,#a855f7,#ec4899); }
.member__photo[data-av="6"] { background: linear-gradient(145deg,#06b6d4,#14b8a6); }
.member__photo[data-av="7"] { background: linear-gradient(145deg,#818cf8,#a78bfa); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 28%, rgba(255,255,255,.35), transparent 42%); }
.member h3 { font-family: "Sora", sans-serif; font-size: 1.05rem; }
.member p { color: var(--muted); font-size: 0.88rem; }

/* ---------- CTA ---------- */
.cta { padding: 120px 0; }
.cta__inner {
  position: relative; text-align: center; max-width: 760px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(34,211,238,.1), rgba(167,139,250,.12));
  border: 1px solid var(--border); border-radius: 28px; padding: 64px 40px; overflow: hidden;
}
.cta__glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(129,140,248,.35), transparent 60%); filter: blur(30px); pointer-events: none; }
.cta h2 { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; position: relative; }
.cta p { color: var(--muted); font-size: 1.08rem; margin-bottom: 30px; position: relative; }
.cta__form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; flex-wrap: wrap; position: relative; }
.cta__form input {
  flex: 1; min-width: 180px; padding: 14px 18px; border-radius: 999px; font-size: 0.96rem;
  background: rgba(7,9,18,.5); border: 1px solid var(--border); color: var(--text); font-family: inherit;
}
.cta__form input::placeholder { color: var(--muted); }
.cta__form input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(129,140,248,.25); }
.cta__note { margin-top: 18px; color: #34d399; font-weight: 600; position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: rgba(7,9,18,.5); }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { width: 160px; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--border); display: block; }
.footer__brand p { color: var(--muted); margin-top: 14px; font-size: 0.94rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__cols h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 9px; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer__legal a { margin-left: 18px; }

/* ============================================================
   Scroll reveal animations
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 420px; max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process__inner { grid-template-columns: 1fr; gap: 30px; }
  .process__sticky { position: static; }
  .process__visual { display: none; }
  .cases__grid, .quotes__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .viz__inner { grid-template-columns: 1fr; }
  .metrics__inner { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav--open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,9,18,.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 10px 24px 18px;
  }
  .nav--open .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .cards { grid-template-columns: 1fr; }
  .hero__trust { gap: 22px; }
  .section { padding: 80px 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   ISK Group — componentes específicos
   ============================================================ */

/* ---- Iconos de servicio ---- */
.card__icon[data-icon="wa"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5A8.38 8.38 0 0 1 11.5 20 8.5 8.5 0 0 1 4 16l-1 4 4-1a8.5 8.5 0 0 0 4.5 1'/%3E%3Cpath d='M12 3.5A8.4 8.4 0 0 1 20 11.5'/%3E%3Cpath d='M8.5 8.5c0 3 2 5 5 5'/%3E%3C/svg%3E"); }
.card__icon[data-icon="auto"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E"); }
.card__icon[data-icon="web"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 9h18M8 21h8'/%3E%3C/svg%3E"); }
.card__icon[data-icon="support"]::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f472b6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13v-1a8 8 0 0 1 16 0v1'/%3E%3Crect x='2.5' y='13' width='4' height='6' rx='1.5'/%3E%3Crect x='17.5' y='13' width='4' height='6' rx='1.5'/%3E%3Cpath d='M20 19a4 4 0 0 1-4 3h-2'/%3E%3C/svg%3E"); }

/* ---- Tarjeta "producto estrella" ---- */
.card { display: flex; flex-direction: column; }
.card--star { border-color: rgba(52, 211, 153, 0.35); background: linear-gradient(180deg, rgba(52,211,153,.08), var(--surface)); }
.card__badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 600; color: #07101f;
  background: linear-gradient(100deg, #34d399, #22d3ee); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}

/* ---- Banner de 3 servicios en el hero ---- */
.hero__services { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero__services span {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.hero__services i { width: 18px; height: 18px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.hero__services i[data-svc="wa"]   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5A8.38 8.38 0 0 1 11.5 20 8.5 8.5 0 0 1 4 16l-1 4 4-1a8.5 8.5 0 0 0 4.5 1'/%3E%3Cpath d='M12 3.5A8.4 8.4 0 0 1 20 11.5'/%3E%3C/svg%3E"); }
.hero__services i[data-svc="auto"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h6l-1 8 9-12h-6z'/%3E%3C/svg%3E"); }
.hero__services i[data-svc="web"]  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3C/svg%3E"); }

/* ---- Mockup de chat de WhatsApp (hero) ---- */
.float-card--chat { padding: 0; overflow: hidden; width: 290px; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(52,211,153,.12); border-bottom: 1px solid var(--border); }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: #07101f; background: linear-gradient(135deg,#34d399,#22d3ee); }
.chat__head span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.chat__head strong { font-size: 0.86rem; }
.chat__head em { font-style: normal; font-size: 0.72rem; color: #34d399; }
.chat__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 80%; padding: 9px 12px; border-radius: 14px; font-size: 0.82rem; line-height: 1.35; opacity: 0; animation: bubbleIn 0.5s var(--ease) forwards; }
.bubble--in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; animation-delay: 0.3s; }
.bubble--out { align-self: flex-end; background: linear-gradient(135deg,#34d399,#22d3ee); color: #07101f; border-bottom-right-radius: 4px; animation-delay: 1.1s; }
.bubble--in:nth-of-type(3) { animation-delay: 1.9s; }
.bubble--typing { align-self: flex-start; display: inline-flex; gap: 4px; background: var(--surface-2); border-bottom-left-radius: 4px; animation-delay: 2.7s; }
.bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---- Banner promo primeros clientes ---- */
.promo {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(100deg, rgba(52,211,153,.12), rgba(129,140,248,.12));
  border: 1px solid rgba(52,211,153,.35); border-radius: 20px; padding: 22px 26px; margin-bottom: 40px;
}
.promo__icon { font-size: 2rem; }
.promo__text { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.promo__text strong { font-family: "Sora", sans-serif; font-size: 1.1rem; }
.promo__text span { color: var(--muted); font-size: 0.94rem; }
.promo__text b { color: #34d399; }

/* ---- Kits ---- */
.kits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.kit {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.kit:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); }
.kit--featured { border-color: rgba(129,140,248,.55); background: linear-gradient(180deg, rgba(129,140,248,.12), var(--surface)); box-shadow: 0 20px 60px rgba(129,140,248,.18); }
.kit__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 600; color: #07101f; background: var(--grad); padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.kit__name { font-family: "Sora", sans-serif; font-size: 1.4rem; margin-bottom: 6px; }
.kit__desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.kit__list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; flex: 1; }
.kit__list li { position: relative; padding-left: 26px; font-size: 0.92rem; }
.kit__list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.kit__price { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 18px; color: var(--text); }
.kit__cta { width: 100%; }

/* ---- Case feature chips (sustituye métricas inventadas) ---- */
.case__feats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.case__feats li { font-size: 0.74rem; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }

/* ---- Mantenimiento vs Soporte ---- */
.maint__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.maint__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 30px; transition: transform .35s var(--ease), border-color .35s; }
.maint__card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.2); }
.maint__badge { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.maint__badge--in { color: #07101f; background: linear-gradient(100deg,#34d399,#22d3ee); }
.maint__badge--opt { color: var(--violet); background: rgba(167,139,250,.14); border: 1px solid rgba(167,139,250,.4); }
.maint__card h3 { font-family: "Sora", sans-serif; font-size: 1.4rem; margin-bottom: 10px; }
.maint__card > p { color: var(--muted); margin-bottom: 18px; }
.maint__list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.maint__list li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--text); }
.maint__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* ---- Noticias ---- */
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.post__thumb { position: relative; height: 160px; }
.post__thumb[data-img="retail"]  { background: radial-gradient(120% 120% at 20% 10%, #1b3a8a, transparent 60%), linear-gradient(135deg, #0ea5e9, #6366f1 60%, #312e81); }
.post__thumb[data-img="fintech"] { background: radial-gradient(120% 120% at 80% 10%, #155e63, transparent 60%), linear-gradient(135deg, #06b6d4, #14b8a6 50%, #0f766e); }
.post__thumb[data-img="health"]  { background: radial-gradient(120% 120% at 50% 0%, #6d28d9, transparent 60%), linear-gradient(135deg, #a855f7, #ec4899 60%, #7c3aed); }
.post__cat { position: absolute; bottom: 12px; left: 12px; font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(7,9,18,.6); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post__body h3 { font-family: "Sora", sans-serif; font-size: 1.1rem; margin-bottom: 8px; line-height: 1.3; }
.post__body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; flex: 1; }
.post__link { color: var(--cyan); font-size: 0.9rem; font-weight: 600; transition: gap .2s; }
.post__link:hover { color: var(--text); }

/* ---- Formulario onboarding (grid) ---- */
.cta__form--grid { max-width: 660px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta__form--grid input, .cta__form--grid select { min-width: 0; }
.cta__form select {
  padding: 14px 18px; border-radius: 14px; font-size: 0.96rem; font-family: inherit; cursor: pointer;
  background: rgba(7,9,18,.5); border: 1px solid var(--border); color: var(--text);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa6c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 42px;
}
.cta__form select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(129,140,248,.25); }
.cta__form select option { background: #0b1020; color: var(--text); }
.cta__form--grid input { border-radius: 14px; }
.cta__submit { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .kits__grid, .news__grid { grid-template-columns: 1fr; }
  .maint__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cta__form--grid { grid-template-columns: 1fr; }
  .promo { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---- Asistente virtual (chat flotante) ---- */
.chatbot { position: fixed; right: 24px; bottom: 24px; z-index: 120; }

.chatbot__launcher {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #07101f;
  background: linear-gradient(135deg, #34d399, #22d3ee);
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
}
.chatbot__launcher:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 44px rgba(34, 211, 238, 0.5); }
.chatbot__launcher:focus-visible { outline: 3px solid rgba(129, 140, 248, 0.7); outline-offset: 3px; }
.chatbot__launcher::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #34d399;
  animation: chatbotRing 2.4s var(--ease) 1.2s 4 both; pointer-events: none;
}
.chatbot--open .chatbot__launcher::before { animation: none; opacity: 0; }
@keyframes chatbotRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }
.chatbot__launcher svg { grid-area: 1 / 1; width: 28px; height: 28px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.chatbot__icon-close { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.chatbot--open .chatbot__icon-chat { opacity: 0; transform: rotate(90deg) scale(0.6); }
.chatbot--open .chatbot__icon-close { opacity: 1; transform: none; }

.chatbot__panel {
  position: absolute; right: 0; bottom: 76px;
  width: 370px; height: min(580px, calc(100vh - 130px)); display: flex; flex-direction: column;
  background: rgba(11, 16, 32, 0.94); border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.08);
  transform-origin: bottom right; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.chatbot--open .chatbot__panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.chatbot__head {
  display: flex; align-items: center; gap: 11px; padding: 14px 14px 14px 16px;
  background: linear-gradient(100deg, rgba(52, 211, 153, 0.14), rgba(129, 140, 248, 0.1));
  border-bottom: 1px solid var(--border);
}
.chatbot__head .chat__avatar { width: 38px; height: 38px; flex-shrink: 0; }
.chatbot__title { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.chatbot__title strong { font-family: "Sora", sans-serif; font-size: 0.95rem; }
.chatbot__title em { font-style: normal; font-size: 0.74rem; color: #34d399; }
.chatbot__close {
  width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  cursor: pointer; display: grid; place-items: center; transition: background 0.2s, color 0.2s;
}
.chatbot__close:hover { background: var(--surface-2); color: var(--text); }
.chatbot__close svg { width: 18px; height: 18px; }

.chatbot__messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
.chatbot__msg {
  max-width: 85%; padding: 10px 13px; border-radius: 16px; font-size: 0.9rem; line-height: 1.5;
  overflow-wrap: anywhere; animation: bubbleIn 0.35s var(--ease) both;
}
.chatbot__msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.chatbot__msg--user {
  align-self: flex-end; background: linear-gradient(135deg, #34d399, #22d3ee); color: #07101f;
  font-weight: 500; border-bottom-right-radius: 5px; white-space: pre-wrap;
}
.chatbot__msg p + p, .chatbot__msg p + ul, .chatbot__msg ul + p { margin-top: 8px; }
.chatbot__msg ul { padding-left: 18px; }
.chatbot__msg li + li { margin-top: 3px; }
.chatbot__msg a { color: var(--cyan); text-decoration: underline; }
.chatbot__cta { align-self: flex-start; padding: 9px 16px; font-size: 0.85rem; animation: bubbleIn 0.35s var(--ease) both; }
.chatbot__typing { display: inline-flex; gap: 4px; padding: 14px; }
.chatbot__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.chatbot__typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot__typing span:nth-child(3) { animation-delay: 0.4s; }

.chatbot__suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chatbot__suggestions[hidden] { display: none; }
.chatbot__suggestions button {
  font: inherit; font-size: 0.8rem; color: var(--text); background: var(--surface); cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; transition: border-color 0.2s, background 0.2s;
}
.chatbot__suggestions button:hover { border-color: rgba(129, 140, 248, 0.55); background: var(--surface-2); }

.chatbot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chatbot__form input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; font-family: inherit; font-size: 0.92rem;
  background: rgba(7, 9, 18, 0.6); border: 1px solid var(--border); color: var(--text);
}
.chatbot__form input::placeholder { color: var(--muted); }
.chatbot__form input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25); }
.chatbot__send {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--grad); color: #07101f; transition: transform 0.2s var(--ease), opacity 0.2s;
}
.chatbot__send:hover { transform: scale(1.06); }
.chatbot__send:disabled { opacity: 0.5; cursor: default; transform: none; }
.chatbot__send svg { width: 20px; height: 20px; }
.chatbot__note { padding: 0 14px 12px; font-size: 0.7rem; color: var(--muted); text-align: center; }
.chatbot__note a { color: var(--text); text-decoration: underline; }

/* En móvil el chat ocupa toda la pantalla */
@media (max-width: 520px) {
  .chatbot { right: 16px; bottom: 16px; }
  .chatbot__panel { position: fixed; inset: 0; width: auto; height: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .chatbot--open .chatbot__launcher { opacity: 0; visibility: hidden; }
  .chatbot__form input { font-size: 1rem; } /* evita el zoom automático de iOS */
  .chatbot__note { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
