/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #F7F8F7;
  --bg-2: #EEF1F0;
  --paper: #FFFFFF;

  --ink: #101915;
  --ink-soft: #4B5854;
  --ink-mute: #7C8985;

  --accent: #0F766E;
  --accent-deep: #0B5A54;
  --accent-soft: rgba(15, 118, 110, .08);
  --accent-2: #0B5A54;
  --accent-2-deep: #0B5A54;
  --accent-2-soft: rgba(15, 118, 110, .08);
  --sun: #0F766E;
  --sun-soft: rgba(15, 118, 110, .08);
  --ok: #0F766E;
  --ok-soft: rgba(15, 118, 110, .08);

  --line: rgba(16, 25, 21, .11);
  --line-soft: rgba(16, 25, 21, .06);

  --nx-bg: #0A1628;
  --nx-accent: #2DD4BF;
  --nx-text: #F5F7FA;
  --nx-text-muted: #8A95A8;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 9px;

  --display: "Manrope", "Inter", ui-sans-serif, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.08; font-weight: 700; }
ul { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; }

.section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }

.card { background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line-soft); box-shadow: 0 30px 60px -38px rgba(7,52,49,.28); }

/* =============================================================
   4. Wave dividers
   ============================================================= */
.wave-divider { display: block; width: 100%; height: 60px; }
.wave-divider path { fill: var(--bg); }
.wave-divider.flip { transform: rotate(180deg); }
.wave-top-deep path { fill: var(--nx-bg); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 100px; font-weight: 700; font-size: 15px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .25s var(--ease-out);
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 28px -14px rgba(16,25,21,.45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(16,25,21,.5); }
.btn-teal { background: var(--accent); color: #fff; box-shadow: 0 14px 28px -14px rgba(15,118,110,.4); }
.btn-teal:hover { transform: translateY(-2px); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-deep); flex-shrink: 0;
}
.icon-badge svg { width: 23px; height: 23px; }
.icon-badge.coral { background: var(--accent-2-soft); color: var(--accent-2-deep); }
.icon-badge.sun { background: var(--sun-soft); color: var(--accent-deep); }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 14.5px; padding: 13px 15px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-note { font-size: 12.5px; color: var(--ink-mute); }
.form-success {
  display: none; align-items: flex-start; gap: 12px;
  background: var(--ok-soft); border: 1px solid rgba(15,118,110,.25); border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 14px; color: var(--accent-deep);
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
form.is-sent .field, form.is-sent .btn[type="submit"] { display: none; }
.form-error {
  display: none; align-items: flex-start; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 13px; color: var(--ink-soft); margin-top: 8px;
}
.form-error.show { display: flex; }

.stars { display: inline-flex; gap: 2px; color: var(--sun); }
.stars svg { width: 15px; height: 15px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* NexoWeb strip */
.nx-strip { background: var(--nx-bg); position: relative; z-index: 70; }
.nx-strip-inner { max-width: 1180px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; gap: 12px; }
.nx-mark { width: 24px; height: 24px; flex-shrink: 0; }
.nx-strip-text { font-size: 12.5px; color: var(--nx-text-muted); }
.nx-strip-text b { color: var(--nx-text); font-weight: 600; }
.nx-badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--nx-accent); border: 1px solid rgba(45,212,191,.35); background: rgba(45,212,191,.08);
  padding: 5px 10px; border-radius: 100px; white-space: nowrap;
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 60; padding: 16px 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border-radius: 100px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line-soft);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 20px 40px -30px rgba(7,52,49,.4);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links { display: none; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.nav-links a { position: relative; padding-block: 4px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent-2); transition: right .3s var(--ease-out); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { padding: 10px 18px; font-size: 13.5px; }
.nav-actions .btn-ghost { display: none; }

.lang-toggle {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 100px;
  border: 1px solid var(--line); background: transparent;
  font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
  color: var(--ink); transition: background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.lang-toggle:hover, .lang-toggle:focus-visible { background: var(--accent-soft); border-color: var(--accent); }
.lang-toggle.mobile {
  width: auto; height: auto; align-self: flex-start; margin-top: 4px;
  padding: 10px 14px; border-radius: 12px; font-size: 14px;
}

.nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 40px; height: 40px; border-radius: 100px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 12px;
  border-radius: var(--radius-md); background: rgba(255,255,255,.96); border: 1px solid var(--line-soft);
  backdrop-filter: blur(16px); box-shadow: 0 20px 40px -20px rgba(7,52,49,.3);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 13px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--accent-soft); }
.mobile-nav a:last-child { color: var(--accent-2-deep); }

/* Hero */
.hero { position: relative; padding: 56px 0 0; overflow: visible; }
.hero-glow {
  position: absolute; z-index: -1; inset: -10% -10% 20% -10%;
  background: radial-gradient(60% 55% at 22% 15%, rgba(15,118,110,.09), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; padding: 40px 0 80px; }
.hero-copy .hero-title { font-size: clamp(34px, 5.6vw, 56px); max-width: 14ch; margin-bottom: 20px; color: var(--ink); letter-spacing: -.015em; }
.hero-copy .hero-title .hl { color: var(--accent-deep); }
.hero-copy p.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-mute); font-weight: 600; }
.hero-trust-item svg { width: 16px; height: 16px; color: var(--accent-deep); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-visual-frame {
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 30px 60px -30px rgba(16,25,21,.35);
  border: 1px solid var(--line-soft);
}
.hero-visual-frame img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.hero-float-card {
  position: absolute; left: -14px; bottom: 20px; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; animation: floatY 6s ease-in-out infinite;
}
.hero-float-card.top { left: auto; right: -10px; top: 10%; bottom: auto; animation-delay: -3s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-float-card strong { display: block; font-size: 15px; font-family: var(--display); }
.hero-float-card span { font-size: 12px; color: var(--ink-mute); }

/* Stats */
.stats-strip { padding: 4px 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-tile { padding: 22px 18px; text-align: center; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); color: var(--accent-2-deep); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; font-weight: 600; }

/* Tech */
.tech-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.tech-copy p { color: var(--ink-soft); font-size: 16px; margin-bottom: 22px; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-chip { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.tech-chip svg { width: 15px; height: 15px; color: var(--accent-deep); flex-shrink: 0; }

.tech-photo {
  border-radius: var(--radius-lg); overflow: hidden; max-width: 420px; margin-inline: auto;
  border: 1px solid var(--line-soft);
  box-shadow: 0 30px 60px -34px rgba(16,25,21,.3);
}
.tech-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* About / Quiénes somos */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.about-copy p { color: var(--ink-soft); font-size: 16px; margin-bottom: 16px; }
.about-quote {
  margin-top: 28px; padding: 24px 26px; border-left: 3px solid var(--accent);
  background: var(--paper); border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.about-quote p { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 12px; font-style: normal; line-height: 1.35; }
.about-quote cite { font-style: normal; font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.about-quote cite b { color: var(--ink); }

.diff-list { display: flex; flex-direction: column; gap: 14px; }
.diff-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.diff-item .num { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--accent-deep); flex-shrink: 0; width: 34px; }
.diff-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.diff-item span { font-size: 13px; color: var(--ink-mute); }

/* Process steps */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 0; position: relative; }
.process-step { display: flex; gap: 18px; padding: 22px 0; position: relative; }
.process-step:not(:last-child) { border-bottom: 1px dashed var(--line); }
.process-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--display);
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.process-body h4 { font-size: 16.5px; margin-bottom: 4px; }
.process-body p { font-size: 14px; color: var(--ink-soft); }

/* Insurance badges */
.insurance-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.insurance-chip {
  padding: 9px 18px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft); letter-spacing: .01em;
}

/* En consulta (case feature) */
.case-feature { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.case-feature-img { border-radius: var(--radius-lg); overflow: hidden; }
.case-feature-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.case-feature-copy { padding: 30px 6px 0; }
.case-feature-copy .eyebrow { justify-content: flex-start; }
.case-feature-copy h3 { font-size: 24px; margin-bottom: 12px; }
.case-feature-copy p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 20px; }
.case-strip { display: grid; grid-template-columns: 1fr; gap: 12px; }
.case-strip a { border-radius: var(--radius-md); overflow: hidden; display: block; }
.case-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease-out); }
.case-strip a:hover img { transform: scale(1.06); }
.case-cap { font-size: 12px; color: var(--ink-mute); margin-top: 8px; }

/* Pain -> fix */
.pain-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pain-card { padding: 28px 26px; }
.pain-line { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pain-line svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--accent-2-deep); }
.pain-text { font-size: 14px; color: var(--ink-mute); text-decoration: line-through; text-decoration-color: var(--line); }
.fix-line { display: flex; align-items: flex-start; gap: 12px; }
.fix-line svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--accent-deep); }
.fix-text { font-size: 15.5px; font-weight: 600; color: var(--ink); }

/* Services */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.service-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease-out); }
.service-card:hover { transform: translateY(-6px); }
.service-card h3 { font-size: 19px; }
.service-card p { font-size: 14px; color: var(--ink-soft); }
.service-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-mute); }
.service-meta b { color: var(--accent-2-deep); font-weight: 800; font-size: 15px; font-family: var(--display); }
.svc-ideal { font-size: 12px; color: var(--accent-deep); font-weight: 600; }

/* Booking widget — flagship */
.booking-section { position: relative; }
.booking-halo { position: absolute; inset: -20% -10% -10% -10%; z-index: -1; background: radial-gradient(50% 45% at 50% 30%, rgba(15,118,110,.10), transparent 72%); filter: blur(70px); pointer-events: none; }
.next-slot-strip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 40px; padding: 10px 20px;
  background: #fff; border-radius: 100px; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.next-slot-strip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.next-slot-wrap { display: flex; justify-content: center; }

.booking-widget { padding: 10px; max-width: 680px; margin-inline: auto; overflow: hidden; border-width: 1px; border-color: var(--line); }
.booking-steps { display: flex; gap: 6px; padding: 18px 24px 0; }
.booking-step-dot { flex: 1; height: 5px; border-radius: 100px; background: var(--line-soft); }
.booking-step-dot.active { background: var(--accent-2); }
.booking-panel { padding: 24px; }
.booking-panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-mute); margin-bottom: 16px; font-family: var(--sans); font-weight: 800; }

.svc-chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.svc-chip { text-align: left; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; transition: border-color .15s var(--ease-out), background .15s var(--ease-out); }
.svc-chip:hover { border-color: var(--ink-mute); }
.svc-chip.selected { border-color: var(--accent-2); background: var(--accent-2-soft); }
.svc-chip .svc-chip-name { font-weight: 700; font-size: 13.5px; display: block; }
.svc-chip .svc-chip-meta { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; display: block; }

.doc-chip-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.doc-chip { display: flex; align-items: center; gap: 7px; padding: 8px 13px 8px 8px; border-radius: 100px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; }
.doc-chip.selected { border-color: var(--accent-2); background: var(--accent-2-soft); }
.avatar-mini { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 9.5px; color: #fff; flex-shrink: 0; }

.cal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.cal-day { text-align: center; padding: 10px 4px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.cal-day .dname { font-size: 10.5px; color: var(--ink-mute); text-transform: uppercase; font-weight: 700; }
.cal-day .dnum { font-family: var(--display); font-weight: 800; font-size: 18px; margin-top: 2px; }
.cal-day.selected { border-color: var(--accent-2); background: var(--accent-2-soft); }

.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-chip { font-size: 12px; text-align: center; padding: 9px 4px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-variant-numeric: tabular-nums; font-weight: 600; }
.time-chip:hover { border-color: var(--ink-mute); }
.time-chip.selected { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.time-chip.full { color: var(--ink-mute); text-decoration: line-through; border-style: dashed; cursor: not-allowed; }

.booking-actions { display: flex; gap: 10px; padding: 4px 24px 24px; }
.booking-actions .btn { flex: 1; }

/* Ola / assistant section */
.assistant-section { position: relative; overflow: hidden; }
.assistant-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.assistant-copy .eyebrow { color: var(--accent-2-deep); }
.assistant-copy .eyebrow::before { background: var(--accent); }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.suggestion-chip {
  padding: 11px 18px; border-radius: 100px; background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.suggestion-chip:hover { border-color: var(--accent); transform: translateY(-2px); }

.ola-preview-card { padding: 0; overflow: hidden; max-width: 420px; margin-inline: auto; }
.ola-preview-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: var(--ink); color: #fff; }
.ola-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ola-avatar svg { width: 20px; height: 20px; color: #fff; }
.ola-preview-head strong { font-size: 14.5px; display: block; }
.ola-preview-head span { font-size: 11.5px; opacity: .75; display: flex; align-items: center; gap: 5px; }
.ola-preview-head .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.ola-preview-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.ola-bubble { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.ola-bubble.bot { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; }
.ola-bubble.user { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

/* Floating chat widget (site-wide) */
.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 36px -14px rgba(7,52,49,.5);
  transition: transform .3s var(--ease-out);
}
.chat-launcher:hover { transform: scale(1.08); }
.chat-launcher svg { width: 26px; height: 26px; color: #fff; }
.chat-launcher .chat-badge {
  position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-2-deep); border: 2px solid #fff;
}

.chat-panel {
  position: fixed; bottom: 96px; right: 22px; z-index: 80;
  width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 140px));
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(7,52,49,.45);
  display: flex; flex-direction: column;
}
.chat-panel[hidden] { display: none; }
.chat-panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); color: #fff; flex-shrink: 0; }
.chat-panel-head strong { font-size: 14.5px; display: block; }
.chat-panel-head span { font-size: 11px; opacity: .75; }
.chat-panel-close { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-panel-close:hover { background: rgba(255,255,255,.12); }
.chat-panel-close svg { width: 16px; height: 16px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); min-height: 200px; }
.chat-bubble { max-width: 86%; padding: 11px 14px; border-radius: 15px; font-size: 13.5px; line-height: 1.5; }
.chat-bubble.bot { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-bubble.user { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-bubble.fallback { background: var(--accent-2-soft); color: var(--accent-2-deep); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.fallback a { text-decoration: underline; font-weight: 700; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; background: var(--bg-2); flex-shrink: 0; }
.chat-suggestions button { font-size: 11.5px; padding: 7px 12px; border-radius: 100px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.chat-suggestions button:hover { border-color: var(--accent); }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); flex-shrink: 0; background: #fff; }
.chat-input-row input { flex: 1; border: 1px solid var(--line); border-radius: 100px; padding: 10px 16px; font-size: 13.5px; font-family: var(--sans); }
.chat-input-row input:focus { outline: none; border-color: var(--accent); }
.chat-send { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-send svg { width: 17px; height: 17px; color: #fff; }
.chat-typing { display: flex; gap: 4px; padding: 12px 14px; align-self: flex-start; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-mute); animation: typingBounce 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Team */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.team-card { padding: 32px 24px 26px; text-align: center; }
.team-avatar { width: 82px; height: 82px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 28px; color: #fff; margin: 0 auto 18px; box-shadow: 0 14px 26px -12px rgba(7,52,49,.4); }
.team-card-body h3 { font-size: 18px; }
.team-card-body .role { font-size: 12.5px; color: var(--accent-2-deep); font-weight: 700; margin: 4px 0 10px; }
.team-card-body p.bio { font-size: 13.5px; color: var(--ink-soft); }

/* Testimonials */
.testi-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-mute); border: 1px dashed var(--line); border-radius: 100px; padding: 6px 12px; margin-top: 10px; }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testi-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.testi-card p { font-size: 14.5px; color: var(--ink); line-height: 1.65; }
.testi-person { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.testi-person strong { font-size: 13.5px; display: block; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery-grid a { overflow: hidden; border-radius: var(--radius-md); display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s var(--ease-out); }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid .span-2 { grid-column: span 1; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-weight: 700; font-size: 15.5px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: var(--accent-2-deep); border-radius: 2px; transition: transform .3s var(--ease-out); }
.faq-item summary .plus::before { inset: 9px 0; height: 2.5px; }
.faq-item summary .plus::after { inset: 0 9px; width: 2.5px; }
.faq-item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item .faq-a { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-soft); }

/* Soporte / contact */
.support-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.support-info { padding: 30px; }
.support-info h3 { font-size: 19px; margin-bottom: 18px; }
.support-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.support-row:last-child { margin-bottom: 0; }
.support-row strong { display: block; font-size: 13.5px; }
.support-row span, .support-row a { font-size: 13px; color: var(--ink-soft); }
.support-form { padding: 30px; }
.support-form h3 { font-size: 19px; margin-bottom: 18px; }

/* Closing CTA */
.cta { background: var(--nx-bg); padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.cta-mark { width: 34px; height: 34px; margin: 0 auto 26px; }
.cta h2 { color: var(--nx-text); font-size: clamp(28px, 3.8vw, 40px); max-width: 640px; margin: 0 auto 16px; }
.cta p { color: var(--nx-text-muted); max-width: 480px; margin: 0 auto 32px; font-size: 16px; }
.cta-note { margin-top: 20px; font-size: 12.5px; color: var(--nx-text-muted); }

/* Footer */
footer { padding: 56px 0 30px; border-top: 1px solid var(--line-soft); background: var(--bg-2); }
.footer-top { display: flex; flex-direction: column; gap: 28px; margin-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.footer-tag { font-size: 13.5px; color: var(--ink-soft); max-width: 34ch; margin-top: 10px; }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: 12px; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-mute); }
.footer-bottom a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px; }
.footer-demo-note { font-size: 11.5px; color: var(--ink-mute); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }

/* Credits page */
.page-credits main { padding: 60px 0 100px; }
.page-credits h1 { font-size: 30px; margin-bottom: 20px; }
.credits-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-soft); }
.credits-list a { text-decoration: underline; text-underline-offset: 2px; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 13.5px; color: var(--accent-deep); font-weight: 700; }

/* =============================================================
   7. Focus-visible for interactive game-like controls
   ============================================================= */
.svc-chip:focus-visible, .doc-chip:focus-visible, .cal-day:focus-visible, .time-chip:focus-visible,
.suggestion-chip:focus-visible, .chat-launcher:focus-visible {
  outline: 3px solid var(--accent-deep); outline-offset: 2px;
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .field-row.two { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .diff-list { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions .btn-ghost { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-copy .hero-title { max-width: 12ch; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .assistant-grid { grid-template-columns: 1.1fr .9fr; }
  .about-grid { grid-template-columns: 1.2fr .8fr; }
  .tech-grid { grid-template-columns: 1fr .8fr; }
  .case-feature { grid-template-columns: 1.3fr .9fr; align-items: center; }
  .case-feature.reverse .case-feature-img { order: 2; }
  .case-feature.reverse .case-feature-copy { order: 1; }
}

@media (min-width: 1280px) {
  .hero-copy .hero-title { font-size: clamp(46px, 4.6vw, 64px); }
}

/* =============================================================
   9. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-float-card { animation: none; }
  .next-slot-strip .dot { animation: none; }
}

@media (max-width: 539px) {
  .chat-panel { right: 16px; bottom: 88px; }
  .chat-launcher { right: 16px; bottom: 16px; }
}
