/* =========================================================
   Tema — cada token define su valor claro y oscuro con light-dark().
   El tema activo lo fija data-theme en <html> (ver script del <head>);
   sin JS se sigue la preferencia del sistema.
   ========================================================= */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

:root {
  /* Marca */
  --blue: #1f5bff;
  --blue-600: #1748d6;
  --accent: light-dark(#1f5bff, #86a8ff);          /* acentos de texto */
  --blue-50: light-dark(#eef3ff, rgba(77, 125, 255, .12));
  --blue-100: light-dark(#dde7ff, rgba(77, 125, 255, .24));
  --navy: #0c1f5c;

  /* Superficies y texto */
  --bg: light-dark(#ffffff, #060912);
  --bg-tint: light-dark(rgba(241, 245, 252, .72), rgba(120, 150, 255, .035));
  --surface: light-dark(#ffffff, #0c1326);
  --ink: light-dark(#0b1020, #eef2fb);
  --text: light-dark(#2a3142, #c4ccdd);
  --muted: light-dark(#5f6879, #8d97ad);
  --line: light-dark(#e4e8f0, rgba(255, 255, 255, .09));
  --line-strong: light-dark(#c8d2e6, rgba(255, 255, 255, .2));
  --disabled: light-dark(#b5bccb, #485069);
  --nav-bg: light-dark(rgba(255, 255, 255, .86), rgba(6, 9, 18, .78));
  --topbar-bg: light-dark(#0b1020, #03050b);

  /* Bloques siempre oscuros (FAQ, footer) */
  --dark: light-dark(#0a0f1e, rgba(8, 13, 28, .78));
  --dark-2: light-dark(#111a33, rgba(20, 30, 60, .7));
  --footer-bg: light-dark(#0a0f1e, rgba(3, 5, 11, .88));

  /* Decoración */
  --glow: light-dark(#cfe0ff, rgba(50, 90, 255, .3));
  --hero-line: light-dark(#b8cbf6, rgba(127, 163, 255, .22));
  --art-bg-1: light-dark(#e9f0ff, #111b38);
  --art-bg-2: light-dark(#f6f9ff, #0c1429);
  --art-node: light-dark(#ffffff, #16213f);
  --art-soft: light-dark(#cdd8f2, #2a3a66);
  --art-mid: light-dark(#9fb3e6, #4a63a8);
  --globe-1: light-dark(#ffffff, #1c2c5e);
  --globe-2: light-dark(#eaf1ff, #101b3c);
  --globe-3: light-dark(#cfdcff, #0a1230);
  --globe-line: light-dark(#b6c8f3, rgba(127, 163, 255, .3));
  --map-bg: light-dark(#eef3fb, #0b1224);
  --map-water: light-dark(#dce8fb, #0f1b3a);
  --map-road: light-dark(#ffffff, #1b2643);
  --map-block: light-dark(#e2eaf7, #131d37);
  --ph-text: light-dark(#8a5a00, #ffd98a);
  --ph-bg: light-dark(#fff4d6, rgba(255, 196, 77, .1));
  --ph-border: light-dark(#e7b74a, rgba(255, 196, 77, .45));

  /* Tipografía */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Forma y sombra */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-color: light-dark(rgba(11, 16, 32, .18), rgba(0, 0, 0, .6));
  --shadow-sm: 0 1px 2px light-dark(rgba(11, 16, 32, .06), rgba(0, 0, 0, .3)), 0 2px 8px light-dark(rgba(11, 16, 32, .04), rgba(0, 0, 0, .2));
  --shadow-md: 0 10px 30px -12px var(--shadow-color);
  --shadow-blue: 0 8px 22px -8px rgba(31, 91, 255, .55);

  --gutter: 24px;
  --max: 1200px;
  --nav-h: 72px;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.accent-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* Marcador visual para textos pendientes de sustituir */
.ph {
  display: inline-block;
  font-size: .85em;
  color: var(--ph-text);
  background: var(--ph-bg);
  border: 1px dashed var(--ph-border);
  padding: 0 6px;
  border-radius: 6px;
}
.ph--light { color: #ffd98a; background: rgba(255, 196, 77, .1); border-color: rgba(255, 196, 77, .45); }

/* =========================================================
   Fondo espacial (canvas animado en space.js)
   ========================================================= */
.space {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
}
:root[data-theme="dark"] .space {
  background:
    radial-gradient(40% 35% at 12% 18%, rgba(56, 92, 255, .16), transparent 70%),
    radial-gradient(35% 40% at 88% 62%, rgba(124, 77, 255, .12), transparent 70%),
    radial-gradient(50% 30% at 50% 110%, rgba(31, 91, 255, .14), transparent 70%);
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[hidden] { display: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================
   1. Topbar
   ========================================================= */
.topbar { background: var(--topbar-bg); color: #c9d1e3; font-size: 13px; }
.topbar__inner { display: flex; justify-content: center; gap: 28px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }

/* =========================================================
   2. Navegación
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .3s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px var(--shadow-color); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--ink); font-size: 18px; letter-spacing: -0.02em; }
.logo--light { color: #fff; }

.nav__menu { flex: 1; display: flex; justify-content: center; }
.nav__links { list-style: none; display: flex; gap: 6px; }
.nav__links a {
  display: block; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.nav__links a:hover { background: var(--blue-50); color: var(--accent); }
/* Pestaña activa: recuadro con borde suave */
.nav__links a[aria-current] { border-color: var(--line-strong); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  display: inline-grid; place-items: center;
  transition: border-color .15s ease, color .15s ease, background-color .3s ease;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--accent); }

/* Botón de tema: muestra luna en claro y sol en oscuro */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   3. Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 112px 0 128px; text-align: center; isolation: isolate; }
.hero__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__glow--a { width: 560px; height: 560px; left: -140px; top: -180px; background: radial-gradient(circle, var(--glow), transparent 70%); }
.hero__glow--b { width: 620px; height: 620px; right: -180px; bottom: -260px; background: radial-gradient(circle, var(--glow), transparent 70%); }
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(31, 91, 255, .18) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 10%, transparent 75%);
  opacity: .7;
}
:root[data-theme="dark"] .hero__dots { opacity: .35; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__lines path { fill: none; stroke: var(--hero-line); stroke-width: 1.2; opacity: .8; }
.hero__node {
  position: absolute; left: var(--x); top: var(--y);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 6px rgba(31, 91, 255, .12);
  animation: pulse 3.2s ease-in-out infinite;
}
.hero__node:nth-of-type(2n) { animation-delay: 1.4s; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(31, 91, 255, .04); } }

.hero__content { max-width: 1040px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .01em;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(31, 91, 255, .15); }
.eyebrow--plain { background: none; border: 0; box-shadow: none; padding: 0; color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.eyebrow--light { color: #8fb0ff; }

.hero__title { margin-top: 26px; font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.hero__title .accent-serif { font-size: 1.08em; letter-spacing: -0.02em; }
.hero__lead { margin: 24px auto 0; max-width: 620px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.hero__actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* =========================================================
   Secciones genéricas
   ========================================================= */
.section { padding: 112px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--dark); color: #b9c2d6; }
:root[data-theme="dark"] .section--dark { border-block: 1px solid var(--line); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .accent-serif { color: #7fa3ff; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__title { margin-top: 12px; font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; letter-spacing: -0.03em; }
.section__title .accent-serif { font-size: 1.1em; }
.section__lead { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* =========================================================
   4. Servicios
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background-color .3s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__art { border-bottom: 1px solid var(--line); }
.card__art svg { width: 100%; height: auto; }
.art-line { fill: none; stroke: var(--art-mid); stroke-width: 2; stroke-dasharray: 5 5; }
.art-node { fill: var(--art-node); stroke: var(--art-soft); stroke-width: 1.5; }
.art-node--blue { fill: var(--blue); stroke: none; }
.art-soft { fill: var(--art-soft); }
.art-mid { fill: var(--art-mid); }
.card__body { padding: 26px 26px 30px; }
.card__title { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card__body > p { color: var(--muted); font-size: 15.5px; }
.card__list { list-style: none; margin-top: 18px; display: grid; gap: 8px; font-size: 15px; }
.card__list li { display: flex; gap: 10px; align-items: baseline; }
.card__list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }

/* =========================================================
   5. Integraciones
   ========================================================= */
.integrations { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.integrations .section__title { text-align: left; }
.checklist { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 500; color: var(--ink); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%235b86ff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.globe { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.globe__svg { width: 100%; height: 100%; }
.globe__body { stroke: var(--globe-line); }
.globe__grid ellipse, .globe__grid line { fill: none; stroke: var(--globe-line); stroke-width: 1; }
.globe__grid { transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.globe__links path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 6; opacity: .7; animation: dash 6s linear infinite; }
.globe__points circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.globe__points .globe__core { fill: var(--blue); stroke: var(--surface); stroke-width: 3; }
:root[data-theme="dark"] .globe__svg { filter: drop-shadow(0 0 40px rgba(60, 100, 255, .25)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dash { to { stroke-dashoffset: -100; } }

.globe__tags { list-style: none; position: absolute; inset: 0; }
.globe__tags li {
  position: absolute; left: var(--tx); top: var(--ty);
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}

/* =========================================================
   6. Ubicación
   ========================================================= */
.location { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
.map {
  position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--map-bg);
}
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__bg { fill: var(--map-bg); }
.map__water { fill: var(--map-water); }
.map__roads { stroke: var(--map-road); }
.map__blocks { fill: var(--map-block); }
.map__pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  width: 48px; height: 48px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow-blue);
}
.map__pin svg { rotate: 45deg; }
.map__badge {
  position: absolute; left: 16px; top: 16px;
  padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.location__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 30px; display: flex; flex-direction: column; gap: 22px;
}
.location__card h3 { font-size: 22px; }
.info-list { margin: 0; display: grid; gap: 14px; }
.info-list div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.info-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; color: var(--ink); }
.location__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Google Maps no tiene tema oscuro en el embed: lo aproximamos invirtiendo colores */
:root[data-theme="dark"] .map iframe { filter: invert(.92) hue-rotate(190deg) saturate(.5) brightness(.95) contrast(.9); }

/* =========================================================
   7. Reserva / calendario
   ========================================================= */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { list-style: none; margin-top: 32px; display: grid; gap: 18px; counter-reset: step; }
.steps li { position: relative; padding-left: 52px; display: grid; gap: 2px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 700; color: var(--accent);
}
.steps strong { color: var(--ink); }
.steps span { color: var(--muted); font-size: 15px; }

.calendar {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md);
  padding: 26px; width: 100%; max-width: 460px; justify-self: end;
}
.calendar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calendar__month { font-weight: 700; color: var(--ink); }
.calendar__nav {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer;
}
.calendar__nav:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.calendar__nav:disabled { opacity: .35; cursor: not-allowed; }
.calendar__weekdays, .calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.calendar__weekdays { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.calendar__grid button {
  aspect-ratio: 1; border-radius: 10px; border: 0; background: var(--blue-50);
  font: 600 14px var(--font-sans); color: var(--accent); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.calendar__grid button:hover:not(:disabled) { background: var(--blue-100); }
.calendar__grid button:disabled { background: transparent; color: var(--disabled); cursor: default; font-weight: 500; }
.calendar__grid button[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.calendar__grid .is-empty { aspect-ratio: 1; }
.calendar__slots { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.calendar__slots-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.calendar__slot-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  padding: 9px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font: 600 14px var(--font-sans); color: var(--ink); cursor: pointer;
}
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.calendar__confirm { width: 100%; margin-top: 20px; }
.calendar__note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }

/* =========================================================
   8. FAQ
   ========================================================= */
.faq { max-width: 860px; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-sm);
  background: var(--dark-2); transition: border-color .2s ease, background-color .2s ease;
}
.faq__item[open] { border-color: rgba(127, 163, 255, .45); background: #131f3d; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative;
  font-weight: 600; font-size: 17px; color: #fff; border-radius: var(--radius-sm);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--blue); }
.faq__answer { padding: 0 24px 22px; color: #b9c2d6; }

/* =========================================================
   9. Demo
   ========================================================= */
.demo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 64px; border-radius: 28px;
  background: radial-gradient(120% 140% at 100% 0%, #1d3fb3 0%, var(--navy) 45%, #08132f 100%);
  color: #c8d4f5;
}
:root[data-theme="dark"] .demo { box-shadow: 0 0 0 1px rgba(127, 163, 255, .18), 0 30px 80px -30px rgba(31, 91, 255, .45); }
.demo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px);
  background-size: 22px 22px; opacity: .5;
}
.demo > * { position: relative; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  font-size: 13px; font-weight: 600; color: #fff;
}
.badge-soon__dot { width: 8px; height: 8px; border-radius: 50%; background: #ffc44d; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }
.demo__title { margin-top: 18px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; color: #fff; }
.demo__title .accent-serif { color: #9dbaff; font-size: 1.1em; }
.demo__copy p { margin-top: 16px; max-width: 460px; }
.demo__copy .btn { margin-top: 28px; }
.demo__window { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; overflow: hidden; }
.demo__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.demo__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.demo__flow { display: flex; align-items: center; justify-content: center; padding: 56px 22px; }
.flow-node {
  padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.flow-node--ai { background: var(--blue); border-color: transparent; box-shadow: 0 0 0 6px rgba(31, 91, 255, .25); }
.flow-edge { flex: 1; min-width: 20px; max-width: 70px; height: 2px; background: repeating-linear-gradient(90deg, #7fa3ff 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 24px 0; } }

/* =========================================================
   Blog (página "Próximamente")
   ========================================================= */
.hero--page { padding: 104px 0 72px; }
.hero__title--page { font-size: clamp(38px, 5.6vw, 66px); }
.section--compact { padding: 24px 0 112px; }
.post-skeletons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-skeleton {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.post-skeleton__img { aspect-ratio: 16 / 9; background: var(--blue-50); }
.post-skeleton__body { padding: 22px; display: grid; gap: 12px; }
.sk, .post-skeleton__img {
  background-image: linear-gradient(90deg, transparent 0%, light-dark(rgba(255, 255, 255, .7), rgba(255, 255, 255, .06)) 50%, transparent 100%);
  background-size: 200% 100%; background-repeat: no-repeat;
  animation: shimmer 1.8s ease-in-out infinite;
}
.sk { display: block; height: 10px; border-radius: 6px; background-color: var(--line); }
.sk--tag { width: 30%; height: 18px; border-radius: 999px; background-color: var(--blue-50); }
.sk--title { width: 85%; height: 18px; }
.sk--short { width: 55%; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.post-skeletons__note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 15px; }

/* =========================================================
   10. Footer
   ========================================================= */
.footer { background: var(--footer-bg); color: #9ba6bd; padding: 96px 0 32px; }
:root[data-theme="dark"] .footer { border-top: 1px solid var(--line); }
.footer__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer__cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; max-width: 680px; }
.footer__cta .accent-serif { color: #7fa3ff; font-size: 1.1em; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.footer__tagline { margin-top: 16px; max-width: 340px; }
.footer__heading { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a { text-decoration: none; transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px;
}

/* =========================================================
   11. Botones flotantes
   ========================================================= */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.floating__btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); text-decoration: none;
  transition: transform .15s ease, opacity .2s ease, visibility .2s;
}
.floating__btn:hover { transform: translateY(-2px) scale(1.04); }
.floating__btn--chat { background: #16a34a; box-shadow: 0 8px 22px -8px rgba(22, 163, 74, .6); }
.floating__btn--top { width: 44px; height: 44px; align-self: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.floating__btn--top[hidden] { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links a { padding: 8px 10px; }
  .integrations, .booking { gap: 40px; }
  .demo { padding: 48px; }
}

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 16px; padding: 16px var(--gutter) 24px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px var(--shadow-color);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 2px; }
  .nav__links a { padding: 12px 8px; border-radius: 10px; font-size: 16px; }
  .nav__cta-mobile { display: inline-flex; }

  .cards, .post-skeletons { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .integrations, .booking, .location, .demo { grid-template-columns: 1fr; }
  .integrations__copy, .booking__copy { text-align: center; }
  .integrations .section__title { text-align: center; }
  .checklist { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
  .steps { max-width: 420px; margin-inline: auto; text-align: left; }
  .calendar { justify-self: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 64px; }
  .topbar__inner { gap: 4px 18px; font-size: 12px; }
  .nav__actions { gap: 8px; }
  .hero { padding: 72px 0 88px; }
  .hero__node { display: none; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
  .section__lead { font-size: 16.5px; }

  /* En móvil las etiquetas del globo pasan a una lista debajo */
  .globe { aspect-ratio: auto; max-width: 360px; }
  .globe__svg { aspect-ratio: 1; height: auto; }
  .globe__tags { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
  .globe__tags li { position: static; box-shadow: var(--shadow-sm); font-size: 13px; padding: 6px 12px; }

  .map { min-height: 280px; }
  .location__card { padding: 24px; }
  .calendar { padding: 18px; }
  .calendar__slot-list { grid-template-columns: repeat(2, 1fr); }
  .faq__item summary { font-size: 16px; padding: 18px 54px 18px 18px; }
  .faq__item summary::after { right: 16px; }
  .faq__answer { padding: 0 18px 18px; }
  .demo { padding: 32px 22px; border-radius: 22px; gap: 32px; }
  .demo__flow { padding: 36px 12px; }
  .flow-node { padding: 10px 12px; font-size: 13px; }
  .footer { padding-top: 72px; }
  .footer__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .floating { right: 14px; bottom: 14px; transition: opacity .2s ease, visibility .2s; }
  /* En móvil no tapan los CTA del hero: aparecen al hacer scroll */
  .floating.is-hidden-mobile { opacity: 0; visibility: hidden; pointer-events: none; }
  .floating__btn { width: 48px; height: 48px; }
  .floating__btn--top { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
