:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --ink: #0b1120;
  --ink-mute: #4b5567;
  --border: #e3e7ee;
  --accent: #0e7490;
  --accent-bright: #22d3ee;
  --accent-amber: #d97706;
  --navy: #0b1120;
  --navy-2: #111a2e;
  --radius: 14px;
  --max-width: 1140px;
  --font-head: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #0f1729;
    --ink: #e8edf6;
    --ink-mute: #9fb0c9;
    --border: #1e293f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-mute); }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

.section-lead {
  max-width: 640px;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-mute);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.main-nav a:hover { color: var(--accent); }
.main-nav a.nav-active { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
}

@media (prefers-color-scheme: dark) {
  .nav-cta { background: var(--accent-bright); color: var(--navy) !important; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 15% 0%, #16213a 0%, var(--navy) 55%, #070b16 100%);
  color: #e8edf6;
  padding: 6.5rem 0 5.5rem;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(34,211,238,0.28) 0%, rgba(34,211,238,0) 70%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 780px; }

.hero .eyebrow { color: var(--accent-bright); }

.hero h1 { color: #fff; }

.hero-lead {
  font-size: 1.15rem;
  color: #b9c6dc;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-bright);
  color: #06222c;
}

.btn-ghost {
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split-text p { max-width: 480px; }

.split-cards {
  display: grid;
  gap: 1rem;
}

.mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: var(--bg);
}

.mini-card-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.mini-card h3 { margin-top: 0.4rem; }
.mini-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Service grid */
.service-grid, .pain-grid, .sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pain-grid { grid-template-columns: repeat(3, 1fr); }
.sector-grid { grid-template-columns: repeat(2, 1fr); }

.service-card, .pain-card, .sector-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.section-alt .service-card, .section-alt .pain-card, .section-alt .sector-card {
  background: var(--bg);
}

.service-card p, .pain-card p, .sector-card p { margin-bottom: 0; font-size: 0.95rem; }

/* IA lines */
.ia-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ia-line {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  background: var(--bg-alt);
}

.ia-line-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.ia-line-head h3 { margin: 0; }

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.28rem 0.6rem;
  border-radius: 100px;
}

.tag-alt { background: var(--accent-amber); }

.ia-line p { margin-bottom: 0; }

/* Autonomy */
.autonomy { margin-top: 3.5rem; }
.autonomy-title { font-size: 1.2rem; margin-bottom: 1.5rem; }

.autonomy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.autonomy-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--bg);
  border-top: 3px solid var(--accent);
}

.autonomy-card:nth-child(2) { border-top-color: var(--accent-amber); }
.autonomy-card:nth-child(3) { border-top-color: #dc2626; }

.autonomy-level {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.autonomy-criteria { font-size: 0.92rem; margin-bottom: 0.5rem; }
.autonomy-example { font-size: 0.85rem; margin-bottom: 0; font-style: italic; opacity: 0.85; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step p { font-size: 0.95rem; margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-band-inner { max-width: 560px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c6dc; margin-bottom: 1.8rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.form-row { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }

.form-row label { font-size: 0.88rem; font-weight: 600; }

.form-row input, .form-row textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink);
  resize: vertical;
}

.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--accent-bright);
  outline-offset: 1px;
}

.contact-form button { border: none; cursor: pointer; margin-top: 0.4rem; }

.form-note { font-size: 0.85rem; margin-top: 0.8rem; }

.contact-info-item { margin-bottom: 1.8rem; }
.contact-info-item h3 { margin-bottom: 0.3rem; font-size: 1rem; }
.contact-info-item p { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #b9c6dc;
  padding: 3rem 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-copy { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0; }
.site-footer p { color: #b9c6dc; }

/* Page hero (interior pages) */
.page-hero {
  background: radial-gradient(120% 140% at 15% 0%, #16213a 0%, var(--navy) 60%, #070b16 100%);
  color: #e8edf6;
  padding: 4.5rem 0 3.5rem;
}

.page-hero .eyebrow { color: var(--accent-bright); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { color: #b9c6dc; max-width: 640px; margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: #8698b5;
  margin-bottom: 1.2rem;
}
.breadcrumb a { color: #8698b5; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-bright); }

/* Solutions */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.solution-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.solution-card h3 { margin: 0; }

.solution-meta {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.solution-card .solution-buy {
  font-size: 0.9rem;
  border-left: 3px solid var(--accent-bright);
  padding-left: 0.8rem;
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-weight: 500;
}

.solution-card p { margin-bottom: 0; font-size: 0.95rem; }

/* Feature list (detail pages) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--ink-mute);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent-bright);
}

.feature-list li strong { color: var(--ink); }

/* Two-column detail layout */
.detail-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.detail-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: var(--bg-alt);
  position: sticky;
  top: 90px;
}

.detail-aside h3 { font-size: 1rem; }
.detail-aside p { font-size: 0.92rem; }
.detail-aside .btn { width: 100%; text-align: center; margin-top: 0.5rem; }

/* FAQ */
.faq { margin-top: 2.5rem; display: grid; gap: 0.9rem; max-width: 800px; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  padding: 1.1rem 1.4rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  padding: 0 1.4rem 1.2rem;
  margin: 0;
  font-size: 0.95rem;
}

/* Legal pages */
.legal-content {
  max-width: 760px;
  padding: 3.5rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2.2rem;
}

.legal-content ul { color: var(--ink-mute); padding-left: 1.3rem; }
.legal-content li { margin-bottom: 0.4rem; }

.legal-updated {
  font-size: 0.85rem;
  opacity: 0.8;
  font-style: italic;
}

.legal-notice {
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-amber) 8%, var(--bg));
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

/* Footer expanded */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #1e293f;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-family: var(--font-head);
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }

.footer-col a {
  color: #b9c6dc;
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 560px;
  margin: 0 auto;
  background: var(--navy-2);
  color: #e8edf6;
  border: 1px solid #2a3a5a;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.cookie-banner p { color: #b9c6dc; font-size: 0.88rem; margin-bottom: 0.9rem; }
.cookie-banner a { color: var(--accent-bright); }

.cookie-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.cookie-actions .btn { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

.btn-outline {
  border-color: #2a3a5a;
  color: #e8edf6;
  background: transparent;
}

/* Responsive */
@media (max-width: 900px) {
  .split, .contact-grid, .detail-split { grid-template-columns: 1fr; }
  .service-grid, .pain-grid, .sector-grid, .ia-lines, .autonomy-grid, .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .solution-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-aside { position: static; }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: flex-start; }
  .service-grid, .pain-grid, .sector-grid, .ia-lines, .autonomy-grid, .steps {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Chatbot PRAXI — widget flotante
   ========================================================================== */
.praxi-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(14, 116, 144, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.praxi-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(14,116,144,0.7); }
.praxi-launcher:active { transform: translateY(0); }
.praxi-launcher svg { width: 20px; height: 20px; }
.praxi-launcher.praxi-hidden { display: none; }

.praxi-panel {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1001;
  width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(6, 12, 26, 0.55);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.praxi-panel.praxi-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.praxi-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.praxi-avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  font-family: var(--font-head); font-weight: 700; color: #fff;
}
.praxi-header-txt { display: flex; flex-direction: column; line-height: 1.2; }
.praxi-header-txt strong { font-family: var(--font-head); font-size: 0.98rem; }
.praxi-header-txt span { font-size: 0.76rem; opacity: 0.8; display: inline-flex; align-items: center; gap: 0.35rem; }
.praxi-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: inline-block; }
.praxi-close {
  margin-left: auto; background: transparent; border: none; color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: 0.8; padding: 0 0.2rem;
}
.praxi-close:hover { opacity: 1; }

.praxi-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  background: var(--bg-alt);
}
.praxi-msg { max-width: 85%; padding: 0.65rem 0.85rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.praxi-msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); color: var(--ink); border-bottom-left-radius: 4px; }
.praxi-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.praxi-msg a { color: inherit; text-decoration: underline; }

.praxi-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.75rem 0.9rem; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; }
.praxi-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-mute); opacity: 0.5; animation: praxi-bounce 1.2s infinite; }
.praxi-typing span:nth-child(2) { animation-delay: 0.2s; }
.praxi-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes praxi-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.praxi-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.6rem; background: var(--bg-alt); }
.praxi-chip { border: 1px solid var(--border); background: var(--bg); color: var(--accent); font-size: 0.8rem; padding: 0.35rem 0.7rem; border-radius: 999px; cursor: pointer; font-family: var(--font-body); transition: background 0.15s ease; }
.praxi-chip:hover { background: var(--accent); color: #fff; }

.praxi-input { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--border); background: var(--bg); }
.praxi-input textarea {
  flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px;
  padding: 0.6rem 0.75rem; font-family: var(--font-body); font-size: 0.9rem;
  background: var(--bg); color: var(--ink); max-height: 96px; line-height: 1.4;
}
.praxi-input textarea:focus { outline: none; border-color: var(--accent); }
.praxi-send {
  flex: none; width: 42px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: background 0.15s ease;
}
.praxi-send:hover { background: var(--accent-bright); }
.praxi-send:disabled { opacity: 0.45; cursor: default; }
.praxi-send svg { width: 18px; height: 18px; }

.praxi-foot { text-align: center; font-size: 0.68rem; color: var(--ink-mute); padding: 0.35rem; background: var(--bg); }

@media (max-width: 480px) {
  .praxi-panel { bottom: 0; right: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .praxi-launcher span.praxi-label { display: none; }
}
