/* ════════════════════════════════════════════════════════════
   AIMA CONNECT — Hoja de estilos v2
   Paleta extraída del logotipo oficial.
   Estructura: variables → base → componentes → secciones → responsive
   ════════════════════════════════════════════════════════════ */

/* ---------- 1. VARIABLES DE MARCA ---------- */
:root {
  --bg:      #0B121C;
  --bg-alt:  #0F1825;
  --panel:   #131F30;
  --line:    rgba(96, 156, 255, 0.14);

  --blue:    #2E8FFF;
  --green:   #43C476;
  --red:     #E8484A;

  --text:    #E9EFF8;
  --muted:   #93A4BA;

  --font-display: 'Sora', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-deep: 0 30px 70px rgba(0, 0, 0, 0.6);
  --container: 1180px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cabecera de páginas interiores */
.page-hero { padding: 170px 0 70px; }
.page-hero .lead { margin-top: 1.2rem; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin-bottom: 1.5rem; }
.lead a { text-decoration: underline; }
.lead--center { margin-left: auto; margin-right: auto; }

.grad {
  background: linear-gradient(92deg, var(--blue) 10%, var(--green) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Eyebrow con nodo pulsante (firma visual) */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em;
  color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow--center { justify-content: center; }
.node { width: 9px; height: 9px; border-radius: 50%; display: inline-block; position: relative; }
.node--blue  { background: var(--blue);  box-shadow: 0 0 12px var(--blue); }
.node--green { background: var(--green); box-shadow: 0 0 12px var(--green); }
.node--red   { background: var(--red);   box-shadow: 0 0 12px var(--red); }
.node::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0.4;
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- 3. BOTONES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none !important; position: relative;
}
.btn--primary {
  background: linear-gradient(95deg, var(--blue), #1f6fd6); color: #fff;
  box-shadow: 0 8px 26px rgba(46, 143, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(46, 143, 255, 0.5); }
/* Glow sutil animado (solo en botones marcados) */
.btn--glow::after {
  content: ''; position: absolute; inset: -2px; border-radius: 14px; z-index: -1;
  background: linear-gradient(95deg, var(--blue), var(--green));
  filter: blur(14px); opacity: 0.35;
  animation: btn-breathe 3.2s ease-in-out infinite;
}
@keyframes btn-breathe { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.5; } }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--lg { padding: 17px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- 4. NAVEGACIÓN ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background 0.3s, box-shadow 0.3s; }
.nav.is-scrolled { background: rgba(11, 18, 28, 0.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-mark { display: block; border-radius: 8px; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.04em; color: var(--blue); }
.logo-text em { font-style: normal; color: var(--green); }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--muted); font-size: 0.92rem; font-weight: 600; text-decoration: none !important; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--text); cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.cart-btn:hover { border-color: var(--blue); }
.cart-btn.is-bump { animation: cart-bump 0.4s ease; }
@keyframes cart-bump { 30% { transform: scale(1.25); } }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  background: var(--red); color: #fff; font-size: 0.68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ---------- 5. HERO ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
/* Velo de legibilidad: oscurece la zona del texto sin matar la animación */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 28% 50%, rgba(11, 18, 28, 0.88), transparent 70%);
}
.hero__content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 6vw, 4.1rem); font-weight: 800; margin-bottom: 1.4rem; text-shadow: 0 2px 24px rgba(11, 18, 28, 0.8); }
/* Entrada palabra a palabra (los spans los crea JS) */
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(0.6em); animation: word-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes word-in { to { opacity: 1; transform: translateY(0); } }
.hero__sub { font-size: 1.18rem; color: var(--muted); max-width: 600px; margin-bottom: 2.2rem; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__cta--center { justify-content: center; margin-bottom: 0; }
.hero__proof { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.stars { color: #FFC53D; letter-spacing: 2px; }

/* Mini dashboard flotante del hero */
.hero__dash {
  background: rgba(19, 31, 48, 0.75); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-deep); overflow: hidden;
  animation: dash-float 6s ease-in-out infinite;
}
@keyframes dash-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.dash__header {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted);
}
.dash__footer {
  padding: 13px 18px; border-top: 1px solid var(--line);
  font-size: 0.78rem; line-height: 1.5; color: var(--muted);
}
.dash__feed { padding: 16px 18px; min-height: 230px; display: flex; flex-direction: column; gap: 10px; }
.dash__item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; font-size: 0.84rem;
  opacity: 0; transform: translateX(16px);
  animation: dash-in 0.5s ease forwards;
}
@keyframes dash-in { to { opacity: 1; transform: translateX(0); } }
.dash__item time { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
/* Brillo radial que sigue al ratón (coordenadas vía variables CSS desde JS) */
.tilt::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(96, 156, 255, 0.10), transparent 45%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.tilt:hover::before { opacity: 1; }
/* Borde luminoso animado en hover */
.tilt:hover { box-shadow: var(--shadow-deep), 0 0 0 1px rgba(96, 156, 255, 0.28); }
.tilt > * { position: relative; z-index: 2; }

/* ---------- 7. GRIDS + TARJETAS ---------- */
.grid { display: grid; gap: 22px; margin-top: 48px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.pain { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.pain__icon { font-size: 1.7rem; display: block; margin-bottom: 14px; }
.pain h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pain p { color: var(--muted); font-size: 0.93rem; }

/* ---------- 8. SPLIT + DEMO CHAT ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }

.check-list { list-style: none; margin: 1.4rem 0 1.8rem; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--muted); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }

.demo-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.demo-card__header {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: var(--red); } .dot--green { background: var(--green); } .dot--blue { background: var(--blue); }
.demo-card__title { margin-left: 8px; }
.demo-card__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: 0.9rem; opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s ease; }
.msg.is-on { opacity: 1; transform: translateY(0); }
.msg--in  { background: rgba(255, 255, 255, 0.06); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--out { background: linear-gradient(120deg, rgba(46,143,255,0.22), rgba(67,196,118,0.18)); align-self: flex-end; border-bottom-right-radius: 4px; }
.demo-card__tag { margin-top: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--green); opacity: 0; transition: opacity 0.45s ease; }
.demo-card__tag.is-on { opacity: 1; }

/* ---------- 9. SERVICIOS ---------- */
.service { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; overflow: hidden; }
.service__glow { position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; z-index: 0 !important; }
.service__glow--blue  { background: var(--blue); }
.service__glow--green { background: var(--green); }
.service__glow--red   { background: var(--red); }
.service__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-right: 8px; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.service ul { list-style: none; margin-bottom: 22px; }
.service li { padding-left: 22px; position: relative; font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.service li::before { content: '›'; position: absolute; left: 4px; color: var(--blue); font-weight: 700; }
.service__link { font-weight: 700; font-size: 0.92rem; }
.service__hint { font-size: 0.88rem !important; border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- 10. ÁREAS / CASES ---------- */
.case { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.case h3 { font-size: 1.05rem; margin-bottom: 10px; }
.case p { color: var(--muted); font-size: 0.92rem; }

/* ---------- 11. SIMULADOR DE AUTOMATIZACIÓN ---------- */
.sim {
  margin-top: 44px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px;
}
.sim__tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.sim__tab {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--font-display); font-weight: 600;
  font-size: 0.88rem; padding: 10px 18px; border-radius: 30px; cursor: pointer;
  transition: all 0.25s;
}
.sim__tab:hover { color: var(--text); }
.sim__tab.is-active { background: linear-gradient(95deg, var(--blue), #1f6fd6); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(46,143,255,0.35); }
.sim__stage { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.sim__chat {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; min-height: 280px; display: flex; flex-direction: column; gap: 12px;
}
.sim__chat .msg.is-on { opacity: 1; transform: translateY(0); }
.sim__events { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.sim__events-title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px; }
.sim-event {
  display: flex; align-items: center; gap: 10px; font-size: 0.88rem;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
  opacity: 0; transform: translateX(14px); transition: opacity 0.45s, transform 0.45s;
}
.sim-event.is-on { opacity: 1; transform: translateX(0); }
.sim-event .tick { color: var(--green); font-weight: 800; }
.sim__replay { margin-top: 20px; }

/* ---------- 12. PACKS ---------- */
.pack {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; display: flex; flex-direction: column; position: relative;
}
.pack--featured { border-color: rgba(67, 196, 118, 0.5); box-shadow: 0 0 0 1px rgba(67,196,118,0.25), var(--shadow); }
.pack__badge {
  position: absolute; top: -12px; left: 22px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  background: var(--blue); color: #fff; padding: 4px 12px; border-radius: 20px;
}
.pack__badge--green { background: var(--green); color: #06140c; }
.pack__badge--red   { background: var(--red); }
.pack h3 { margin: 6px 0 4px; }
.pack__pricing { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pack__price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--blue); }
.pack__price .pfx { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.pack__price .sfx { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.pack__old { font-size: 1rem; color: var(--muted); text-decoration: line-through; opacity: 0.75; }
.pack__save { font-family: var(--font-mono); font-size: 0.66rem; background: rgba(67,196,118,0.15); color: var(--green); padding: 3px 9px; border-radius: 20px; }
.pack__desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.pack ul { list-style: none; margin-bottom: 22px; flex: 1; }
.pack li { padding-left: 24px; position: relative; font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.pack li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
/* Confirmación al añadir */
.pack.is-added { animation: pack-pop 0.45s ease; }
@keyframes pack-pop { 35% { transform: scale(1.03); } }
.pack .added-check {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #06140c; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  animation: check-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes check-in { from { transform: scale(0); } to { transform: scale(1); } }
/* Elemento que "vuela" hacia el icono de solicitud */
.fly-dot {
  position: fixed; z-index: 300; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 16px var(--green); pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.5, -0.1, 0.6, 1), opacity 0.7s;
}

.custom-band {
  margin-top: 56px; padding: 36px;
  background: linear-gradient(110deg, rgba(46,143,255,0.12), rgba(67,196,118,0.08));
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.custom-band h3 { margin-bottom: 6px; }
.custom-band p { color: var(--muted); }

/* ---------- 13. PROCESO con línea luminosa ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 64px; position: relative; }
.steps__line {
  position: absolute; top: 18px; left: 5%; right: 5%; height: 2px; z-index: 0;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.steps__line span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 14px var(--blue);
  transition: width 0.25s linear;
}
.step { position: relative; padding: 0 22px; z-index: 1; }
.step__num {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--blue); color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 0 14px rgba(46, 143, 255, 0.35); position: relative; z-index: 2;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- 14. CONFIANZA ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 48px 0; text-align: center; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 18px; }
.metric__value {
  display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(92deg, var(--blue), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric__label { color: var(--muted); font-size: 0.9rem; }

/* Carrusel de reseñas deslizable */
.reviews { display: flex; align-items: center; gap: 14px; }
.reviews__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px 4px 18px; flex: 1; cursor: grab;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.review {
  scroll-snap-align: start; flex: 0 0 min(340px, 82vw);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; user-select: none;
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; color: #fff;
}
.review__name { font-weight: 700; font-size: 0.92rem; }
.review__meta { font-size: 0.76rem; color: var(--muted); }
.review blockquote { color: var(--text); font-size: 0.92rem; }
.review .stars { font-size: 0.85rem; margin-bottom: 8px; display: block; }
.reviews__arrow {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-size: 1.3rem; cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.reviews__arrow:hover { border-color: var(--blue); transform: scale(1.08); }

.google-link { text-align: center; margin-top: 30px; }
.google-link a { font-weight: 700; }

/* ---------- 15. SOBRE / FUNDADOR ---------- */
.founder-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 30px; text-align: center; box-shadow: var(--shadow); }
.founder-card__photo {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: #fff;
}
.founder-card img { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; height: auto; border-radius: 14px; margin: 0 auto 20px; object-fit: cover; display: block; }
.founder-card__role { color: var(--blue); font-weight: 700; font-size: 0.92rem; margin: 4px 0 10px; }
.founder-card__loc { color: var(--muted); font-size: 0.88rem; }

/* ---------- 16. FAQ ---------- */
.faq-list { margin-top: 40px; }
.faq { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--panel); overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-family: var(--font-display);
  font-size: 1rem; list-style: none; position: relative; padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 1.4rem; transition: transform 0.3s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 0.95rem; }

/* ---------- 17. FORMULARIO ---------- */
.contact-form {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 7px; padding: 13px 15px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 143, 255, 0.18);
}
.form-note { margin-top: 14px; color: var(--muted); font-size: 0.85rem; }
.contact-side { display: grid; gap: 22px; align-content: start; }

/* ---------- 18. FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--bg-alt); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 9px; }
.footer a:hover { color: var(--text); text-decoration: none; }
.logo-text--footer { font-size: 1.2rem; margin-bottom: 12px; }
.footer__tag { color: var(--muted); font-size: 0.9rem; }
.footer__copy { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 48px; opacity: 0.7; }

/* ---------- 19. PANEL DE SOLICITUD (configurador, antes "carrito") ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 200;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--bg-alt); border-left: 1px solid var(--line); z-index: 201;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
.cart.is-open { transform: translateX(0); }
.cart__header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.cart__header p { font-size: 0.8rem; color: var(--muted); }
.cart__close { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.cart__items { flex: 1; overflow-y: auto; padding: 22px 26px; }
.cart__empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__name { font-weight: 700; font-size: 0.95rem; }
.cart-item__price { color: var(--muted); font-size: 0.85rem; }
.cart-item__remove { background: none; border: none; color: var(--red); cursor: pointer; font-size: 0.8rem; }
.cart__footer { padding: 22px 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart__total { display: flex; justify-content: space-between; font-size: 1rem; color: var(--muted); }
.cart__total strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--green); }
.cart__note { color: var(--muted); font-size: 0.78rem; text-align: center; }

/* ---------- 20. WHATSAPP FLOTANTE ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease;
}
.wa-float:hover { transform: scale(1.1); }

/* ---------- 20b. NUEVAS DEMOS INTERACTIVAS ---------- */

/* Calculadora de horas y dinero */
.calc {
  margin-top: 48px; max-width: 720px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
  display: grid; gap: 28px;
}
.calc__inputs { display: grid; gap: 26px; }
.calc__field { display: grid; gap: 10px; }
.calc__field span { font-size: 0.9rem; color: var(--muted); }
.calc__field small { display: block; font-size: 0.78rem; opacity: 0.8; margin-top: 2px; }
.calc__field input[type="range"] { width: 100%; accent-color: var(--blue); height: 6px; cursor: pointer; }
.calc__field strong { font-family: var(--font-display); color: var(--text); font-size: 1.05rem; }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc__metric {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; text-align: center;
}
.calc__metric--accent { border-color: rgba(67, 196, 118, 0.4); background: rgba(67, 196, 118, 0.06); }
.calc__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--blue); }
.calc__metric--accent .calc__num { color: var(--green); }
.calc__label { color: var(--muted); font-size: 0.85rem; }

/* Envoltorio de la calculadora dentro de la sección de packs */
.calc-wrap { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }

/* Demo de factura automática (con IVA y datos fiscales de ejemplo) */
.invoice-form { margin-top: 1.4rem; display: grid; gap: 18px; max-width: 420px; }
.invoice-form label { font-size: 0.85rem; font-weight: 700; color: var(--muted); display: block; }
.invoice-form input {
  width: 100%; margin-top: 7px; padding: 13px 15px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s;
}
.invoice-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 143, 255, 0.18); }

.invoice { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.invoice__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.invoice__brand { font-family: var(--font-display); font-weight: 800; color: var(--blue); }
.invoice__brand em { font-style: normal; color: var(--green); }
.invoice__issuer { margin-top: 6px; font-size: 0.74rem; line-height: 1.5; color: var(--muted); }
.invoice__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.invoice__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); }
.invoice__meta span:last-child { font-size: 0.74rem; color: var(--muted); }
.invoice__client { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-bottom: 1px dashed var(--line); margin-bottom: 6px; }
.invoice__client span:first-child { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.invoice__client strong { font-size: 1rem; }
.invoice__client span:last-child { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }
.invoice__row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 0.92rem; color: var(--muted); border-bottom: 1px dashed var(--line); }
.invoice__row strong { color: var(--text); font-weight: 600; text-align: right; }
.invoice__row--muted { font-size: 0.85rem; }
.invoice__total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; }
.invoice__total strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--green); }
.invoice__events { display: grid; gap: 8px; min-height: 10px; margin-top: 6px; }

/* ---------- 21. SCROLL REVEAL ----------
   A prueba de fallos: el contenido SOLO se oculta si el JS está activo
   (clase .js en <html>). Si algo falla, la web siempre es legible. */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* Accesibilidad: usuarios con preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__title .w { opacity: 1; transform: none; transition: none; animation: none; }
  .msg, .demo-card__tag, .dash__item { animation: none; opacity: 1; transform: none; }
  .node::after, .hero__dash, .btn--glow::after { animation: none; }
  .tilt { transition: none; }
}

/* ---------- 22. RESPONSIVE ---------- */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps__line { display: none; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__dash { max-width: 460px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .sim__stage { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .page-hero { padding: 140px 0 50px; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .custom-band { flex-direction: column; text-align: center; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero__dash { display: none; } /* el dashboard se oculta en móvil para no saturar */

  .calc__result { grid-template-columns: 1fr; }
  .invoice__head { flex-direction: column; }
  .invoice__meta { align-items: flex-start; text-align: left; }

  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(11, 18, 28, 0.97); backdrop-filter: blur(14px);
    flex-direction: column; padding: 26px 24px; gap: 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.35s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__burger { display: block; }
  .nav__actions .btn { display: none; }
}

/* ---------- 23. BANNER DE COOKIES (consentimiento RGPD) ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: rgba(15, 24, 37, 0.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
  padding: 18px 24px; display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
  transform: translateY(110%); transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.88rem; color: var(--muted); max-width: 640px; }
.cookie-banner a { color: var(--blue); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner__btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  padding: 10px 22px; border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.cookie-banner__btn--accept { background: linear-gradient(95deg, var(--blue), #1f6fd6); color: #fff; border: none; }
.cookie-banner__btn--accept:hover { transform: translateY(-2px); }
.cookie-banner__btn--reject { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.cookie-banner__btn--reject:hover { color: var(--text); border-color: var(--blue); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 16px; gap: 14px; }
}

/* ---------- 24. SELECTOR DE IDIOMA (banderas) ---------- */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 9px; cursor: pointer; color: var(--muted);
  transition: border-color 0.2s;
}
.lang__btn:hover { border-color: var(--blue); }
.lang__flag { display: block; width: 24px; height: 18px; object-fit: cover; border-radius: 3px; }
.lang__caret { flex-shrink: 0; }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 300;
  list-style: none; margin: 0; padding: 6px; min-width: 172px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang.is-open .lang__list { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__list li {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 8px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--text);
}
.lang__list li:hover { background: rgba(255, 255, 255, 0.06); }
.lang__list img { display: block; border-radius: 2px; }
/* Ocultar por completo el widget y los adornos de Google */
#google_translate_element, .goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
body { top: 0 !important; position: static !important; }
#goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
