/* Estilos compartidos de las páginas de servicio (mismo sistema visual que la portada) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2"); }

:root {
  --bg: #07080c;
  --bg-2: #0c0e14;
  --surface: #11141b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef1f6;
  --muted: #98a1b1;
  --accent: #c6ff3d;
  --accent-ink: #0b0e04;
  --accent-soft: rgba(198, 255, 61, .12);
  --cyan: #38e1ff;
  --wa: #25d366;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); max-width: 22ch; margin-bottom: 1.2rem; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 60ch; }
.prose p { color: var(--muted); font-size: 1.05rem; max-width: 65ch; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--text); font-weight: 600; }
.accent { color: var(--accent); }

/* ---------- Botones e iconos ---------- */
.btn {
  --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .35s var(--ease), color .3s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -12px rgba(198, 255, 61, .55); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(198, 255, 61, .75); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .92rem; }
.btn--sm svg { width: 18px; height: 18px; }
.btn--lg { --h: 66px; padding: 0 36px; font-size: 1.12rem; }
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 8, 12, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo__mark { width: 44px; height: auto; flex: none; transition: color .3s; }
.logo:hover .logo__mark { color: var(--accent); }
.logo__text { font-family: var(--font-body); font-weight: 500; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .25s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
@media (max-width: 880px) { .nav { display: none; } }
@media (max-width: 420px) { .header .btn span { display: none; } .header .btn { padding: 0 13px; } }
@media (max-width: 380px) { .logo__text { display: none; } }

/* ---------- Encabezado de la página ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(48px, 7vw, 80px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 15%, transparent 75%);
  opacity: .55;
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -80px;
  border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(100px); pointer-events: none;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 1.6rem; padding: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; max-width: 17ch; margin-bottom: 1.4rem; }
.page-hero .lead { margin-bottom: 2.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) { .actions .btn { width: 100%; } }

/* ---------- Tarjetas y listas ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(28px, 4vw, 44px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid, .grid--2 { grid-template-columns: 1fr; } }
.card { padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card__icon {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(198, 255, 61, .2);
}
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; line-height: 1.25; }
.card p { color: var(--muted); font-size: .97rem; }
.card--extra { background: transparent; border-style: dashed; }
.card .ex { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; color: #c9d3e0; }
.card .ex b { color: var(--accent); font-weight: 600; }

/* Ejemplo destacado dentro del texto */
.example {
  max-width: 70ch; margin-top: 1.6rem; padding: 18px 22px;
  border-left: 3px solid var(--accent); border-radius: 0 16px 16px 0;
  background: var(--surface); color: #d6dce6; font-size: 1rem;
}
.example b { color: var(--accent); font-weight: 600; }
.example p + p { margin-top: .6rem; }

/* Conversación de ejemplo (chatbots) */
.chat-demo { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .chat-demo { grid-template-columns: 1fr; } }
.chat {
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); background: #0b141a;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #1f2c34; }
.chat__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: .85rem; flex: none; }
.chat__head b { display: block; font-size: .95rem; }
.chat__head small { color: #8696a0; font-size: .78rem; }
.chat__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 14px 22px; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.45; color: #e9edef; }
.msg--in { align-self: flex-start; background: #1f2c34; border-top-left-radius: 4px; }
.msg--out { align-self: flex-end; background: #005c4b; border-top-right-radius: 4px; }
.chat__caption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .85rem; }

/* Bloque destacado (revisión gratis) */
.highlight {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(28px, 5vw, 52px); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(198, 255, 61, .1), rgba(56, 225, 255, .06)); border: 1px solid rgba(198, 255, 61, .3);
}
.highlight h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
.highlight p { color: var(--muted); }
.highlight .checks { margin-top: 0; }
@media (max-width: 800px) { .highlight { grid-template-columns: 1fr; } }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2);
}

.checks { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; max-width: 65ch; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--muted); }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6ff3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { color: var(--text); font-weight: 600; }

.steps { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.note {
  display: flex; gap: 12px; align-items: flex-start; max-width: 70ch; margin-top: 1.6rem;
  padding: 16px 20px; border-radius: 16px; background: rgba(56, 225, 255, .06); border: 1px solid rgba(56, 225, 255, .2);
  color: #c9d3e0; font-size: .97rem;
}
.note .i { color: var(--cyan); flex: none; width: 22px; height: 22px; margin-top: 1px; }
.demo-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 36px); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.2rem); transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-size: 1.2rem; font-weight: 400; transition: transform .4s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq details p { color: var(--muted); padding: 0 50px 24px 0; max-width: 62ch; }
.faq details a { color: var(--accent); }
@media (max-width: 600px) { .faq details p { padding-right: 0; } }

/* ---------- Llamada final ---------- */
.cta__box {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter); border-radius: calc(var(--radius) + 10px);
  background: var(--surface); border: 1px solid var(--line-2);
}
.cta__box::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: radial-gradient(circle at 30% 30%, rgba(198, 255, 61, .2), transparent 40%), radial-gradient(circle at 70% 70%, rgba(56, 225, 255, .16), transparent 40%);
}
.cta__box h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); max-width: 18ch; margin: 0 auto; }
.cta__box p { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 46ch; margin: 1.2rem auto 2.2rem; }
@media (max-width: 480px) { .cta__box .btn { width: 100%; white-space: normal; } }

/* ---------- Otros servicios ---------- */
.others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 34px; border-top: 1px solid var(--line); margin-top: clamp(60px, 9vw, 110px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--muted); font-size: .95rem; margin-top: 1rem; max-width: 34ch; }
.footer .footer__label { font-family: var(--font-display); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 1.1rem; max-width: none; line-height: 1.05; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer li a { text-decoration: none; color: var(--text); transition: color .25s; }
.footer li a:hover { color: var(--accent); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .35s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before, .wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: pulse 2.6s var(--ease) infinite; pointer-events: none;
}
.wa-float::after { animation-delay: 1.3s; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wa-float::before, .wa-float::after { display: none; }
}
