/* NeurAI · estilos del sitio */
/* Tipografías alojadas en el propio sitio (licencia SIL OFL) */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --night: #0B1020;
  --night-2: #121A33;
  --night-line: #26304D;
  --blue: #2563EB;
  --blue-dark: #1D4FD8;
  --cyan: #22D3EE;
  --white: #FFFFFF;
  --tint: #F3F6FD;
  --tint-line: #DCE4F5;
  --text: #0B1020;
  --muted: #3E4A66;
  --muted-dark: #B6C2E2;
  --label-dark: #8FA3D1;
  --radius: 20px;
  --font-title: "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; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--font-title); font-weight: 700; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: var(--white); display: grid; place-items: center; }
.brand-mark img { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted-dark); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--white); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid var(--night-line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--night-line); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
}

/* Portada */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); padding: 88px 0 96px; }
.hero-net { position: absolute; right: -160px; top: -40px; width: 760px; height: 760px; opacity: .55; pointer-events: none; }
.hero-net .lines line { stroke: var(--blue); stroke-width: 2; stroke-opacity: .7; }
.hero-net .nodes circle { fill: var(--night); stroke: var(--cyan); stroke-width: 2.5; }
.hero-net .core { fill: var(--cyan); }
.hero-net .pulse { fill: none; stroke: var(--cyan); stroke-width: 2; transform-origin: 220px 320px; animation: pulse 3s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-net .pulse { animation: none; opacity: 0; } }
.hero-inner { position: relative; }
.eyebrow { display: inline-block; padding: 7px 16px; border: 1.5px solid var(--cyan); border-radius: 999px; color: var(--cyan); font-family: var(--font-title); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin-top: 24px; max-width: 760px; font-size: clamp(38px, 6.4vw, 68px); }
.accent { color: var(--cyan); }
.hero .lead { margin-top: 22px; max-width: 600px; font-size: clamp(17px, 2vw, 20px); color: var(--muted-dark); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--label-dark); }
@media (max-width: 600px) {
  .hero { padding: 56px 0 64px; }
  .hero-net { right: -320px; top: 160px; opacity: .22; }
  .hero-actions .btn { width: 100%; }
}

/* Secciones */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--night); color: var(--white); }
.kicker { font-family: var(--font-title); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.section-dark .kicker { color: var(--cyan); }
.section h2 { margin-top: 12px; max-width: 720px; font-size: clamp(30px, 4.4vw, 46px); }
.section-lead { margin-top: 16px; max-width: 620px; font-size: 18px; color: var(--muted); }
.section-dark .section-lead { color: var(--muted-dark); }
@media (max-width: 600px) { .section { padding: 64px 0; } }

.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* Dolores */
.card { padding: 28px 24px; border-radius: var(--radius); background: var(--tint); }
.card h3 { font-size: 20px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.pains-close { margin-top: 32px; font-family: var(--font-title); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); }

/* Servicios */
.service { padding: 34px 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--tint-line); }
.icon { width: 56px; height: 56px; border-radius: 16px; background: var(--blue); display: grid; place-items: center; }
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.service h3 { margin-top: 22px; font-size: 26px; }
.service > p { margin-top: 8px; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--text); font-size: 14px; font-weight: 500; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--night-line); }
.steps li:first-child { border-top-color: var(--cyan); }
.steps li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--night); border: 2.5px solid var(--cyan); }
.step-num { font-family: var(--font-title); font-weight: 700; font-size: 15px; color: var(--cyan); letter-spacing: .08em; }
.steps h3 { margin-top: 8px; font-size: 21px; }
.steps p { margin-top: 10px; color: var(--muted-dark); font-size: 15px; }
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { padding: 0 0 32px 36px; border-top: 0; border-left: 2px solid var(--night-line); }
  .steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
  .steps li::before { top: 0; left: -8px; }
}

/* Por qué */
.reason { padding-top: 20px; border-top: 3px solid var(--blue); }
.reason h3 { font-size: 21px; }
.reason p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Preguntas */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--tint-line); border-radius: 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-title); font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.contact-info .btn { margin-top: 28px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; color: var(--white); }
.contact-list span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--label-dark); }
.contact-list a { color: var(--white); text-decoration-color: var(--cyan); text-underline-offset: 4px; word-break: break-word; }

.contact-form { background: var(--white); color: var(--text); border-radius: 24px; padding: 32px 28px; }
.contact-form h3 { font-size: 24px; }
.field { margin-top: 18px; display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 13px 14px; border: 1.5px solid var(--tint-line); border-radius: 12px; background: var(--tint);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.field input::placeholder, .field textarea::placeholder { color: #6B7794; }
.field.invalid input, .field.invalid textarea { border-color: #C2410C; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { margin-top: 22px; }
.contact-form .btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.form-status { margin-top: 14px; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #047857; }
.form-status.error { color: #C2410C; }
.form-legal { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Pie */
.site-footer { background: #070B17; color: var(--muted-dark); padding: 48px 0 104px; }
.footer-inner { display: grid; gap: 14px; justify-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--cyan); }
.copy { font-size: 14px; color: var(--label-dark); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(11,16,32,.35);
  transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.06); background: #1EBE5A; }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linejoin: round; }
.wa-float svg .fill { fill: var(--white); stroke: none; }

/* Página legal */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { margin-top: 36px; font-size: 22px; }
.legal p, .legal li { margin-top: 12px; color: var(--muted); }
.legal .updated { margin-top: 10px; font-size: 14px; color: var(--muted); }
