/* =========================================================
   CoreLink — Hoja de estilos principal
   Acentos según los colores oficiales del logotipo
   (documento "Identidad visual", oct. 2026) sobre fondo
   navy oscuro. Ajustá solo los tokens de :root.
   ========================================================= */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Marca */
  --abyss: #061423;      /* fondo principal oscuro */
  --deep: #0b2236;       /* superficies elevadas sobre oscuro */
  --line: #1a3d55;       /* bordes sobre oscuro */
  /* Colores oficiales del logo */
  --cyan-hot: #03f9fe;   /* cian intenso */
  --cyan: #09e9fb;       /* turquesa claro: acento principal */
  --blue-mid: #2ca3ed;   /* azul de transición */
  --blue: #3297ec;       /* azul tecnológico */
  --slogan: #4991dd;     /* azul del eslogan */
  --brand-gradient: linear-gradient(100deg, var(--cyan-hot) 0%, var(--cyan) 35%, var(--blue-mid) 75%, var(--blue) 100%);
  --cyan-ink: #1765b5;   /* azul legible sobre fondos claros (derivado del azul tecnológico) */
  --mist: #eaf3f6;       /* fondo claro */
  --paper: #ffffff;
  --ink: #0a1b2b;        /* texto sobre claro */
  --slate: #4f6577;      /* texto secundario sobre claro */
  --fog: #a3bccb;        /* texto secundario sobre oscuro */
  --error: #ff8a7a;
  --error-ink: #b42318;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4.25rem);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.section-light :focus-visible, .section-mist :focus-visible { outline-color: var(--cyan-ink); }

.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--abyss); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

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

/* ---------- Botones ---------- */
.btn {
  --bg: transparent; --fg: inherit; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.4em;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--cyan); --fg: var(--abyss); --bd: transparent; background-image: var(--brand-gradient); box-shadow: 0 8px 24px -10px rgba(9, 233, 251, .65); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(9, 233, 251, .85); filter: brightness(1.06); }
.btn-ghost { --fg: #fff; --bd: rgba(255, 255, 255, .28); }
.btn-ghost:hover { --bd: var(--cyan); --fg: var(--cyan); }
.btn-outline { --fg: var(--cyan); --bd: var(--cyan); }
.btn-outline:hover { --bg: var(--cyan); --fg: var(--abyss); }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-dark:hover { --bg: var(--cyan-ink); --bd: var(--cyan-ink); }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled { background: rgba(6, 20, 35, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex: none; }
.brand img { width: auto; max-width: none; }
.brand-iso { height: 36px; }
.brand-name { height: 17px; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 190px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a {
  position: relative; text-decoration: none; color: #d7e5ee; font-weight: 500; font-size: .97rem; padding: 6px 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: #fff; }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--deep); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; right: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 0;
  background:
    radial-gradient(60% 60% at 85% 30%, rgba(9, 233, 251, .16), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(50, 151, 236, .14), transparent 70%),
    var(--abyss);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(163, 188, 203, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 188, 203, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { color: var(--cyan); font-weight: 600; letter-spacing: .01em; font-size: var(--step--1); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; max-width: 18ch; text-wrap: balance; }
.hero-lead { margin-top: 22px; font-size: var(--step-1); line-height: 1.5; color: #c9dbe6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-alt { margin-top: 18px; color: var(--fog); font-size: var(--step--1); }
.hero-alt a { color: #fff; text-underline-offset: 3px; text-decoration-color: var(--cyan); }
.hero-alt a:hover { color: var(--cyan); }

/* Composición visual del hero */
.hero-visual { position: relative; aspect-ratio: 560 / 520; width: 100%; max-width: 560px; justify-self: end; }
.hero-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.link-path { fill: none; stroke: url(#link-grad); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 0; opacity: .8; }
.link-node { fill: var(--abyss); stroke: var(--cyan); stroke-width: 2; }

.mock-win {
  position: absolute; background: #0d2a42; border: 1px solid #23506d; border-radius: var(--radius-m);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(9, 233, 251, .05);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #0a2236; border-bottom: 1px solid #1d4560; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2c5874; }
.mock-bar span { margin-left: 8px; font-size: .72rem; color: var(--fog); background: #0d2a42; padding: 3px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-booking { left: 0; top: 0; width: 60%; }
.mock-body { padding: 16px; }
.mock-title { font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin-bottom: 12px; }
.mock-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.mock-days span { display: flex; flex-direction: column; align-items: center; font-size: .66rem; color: var(--fog); padding: 6px 0; border-radius: 8px; background: #0a2236; }
.mock-days b { font-size: .9rem; color: #fff; font-weight: 600; }
.mock-days .is-on { background: #1b64c0; color: #fff; }
.mock-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.mock-slots span { text-align: center; font-size: .78rem; padding: 7px 0; border-radius: 8px; border: 1px solid #23506d; color: #d7e5ee; transition: background-color .4s, color .4s, border-color .4s; }
.mock-slots .is-off { color: #8ea6b8; border-style: dashed; text-decoration: line-through; }
.mock-slots .slot-pick { background: var(--cyan); color: var(--abyss); border-color: var(--cyan); font-weight: 700; }
.mock-btn { display: block; text-align: center; font-size: .8rem; font-weight: 700; font-family: var(--font-display); background: #fff; color: var(--abyss); padding: 9px; border-radius: 999px; }

.mock-card { position: absolute; background: #f7fbfd; color: var(--ink); border-radius: var(--radius-m); padding: 14px 16px; box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .75); }
.mock-card-title { font-family: var(--font-display); font-weight: 700; font-size: .9rem; display: flex; justify-content: space-between; margin-bottom: 10px; }
.mock-card-title span { color: var(--slate); font-weight: 500; font-size: .75rem; }
.mock-crm { right: 0; top: 46%; width: 44%; }
.mock-crm li { display: flex; align-items: center; gap: 8px; font-size: .78rem; padding: 7px 0; border-top: 1px solid #e1ebf0; }
.mock-crm li em { margin-left: auto; font-style: normal; font-size: .68rem; color: var(--slate); background: #e8f0f4; padding: 2px 8px; border-radius: 999px; }
.mock-crm .crm-new em { background: #c9f4ef; color: #075e5a; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #b9c9d3; flex: none; }
.dot-cyan { background: var(--cyan); }
.dot-blue { background: var(--blue); }

.mock-wa {
  position: absolute; left: 4%; bottom: 0; width: 56%; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  background: #dcf8e8; color: #0b3b26; padding: 12px 14px; border-radius: 16px 16px 16px 4px; font-size: .8rem; line-height: 1.4;
  box-shadow: 0 24px 40px -22px rgba(0, 0, 0, .7);
}
.wa-ico { width: 28px; height: 28px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }
.wa-ico svg { width: 17px; height: 17px; }
.wa-check { grid-column: 2; justify-self: end; color: #34b7f1; font-size: .7rem; letter-spacing: -.1em; }

/* Secuencia de carga (una sola, orquestada) */
.js .hero-visual .mock-booking,
.js .hero-visual .mock-crm,
.js .hero-visual .mock-wa { opacity: 0; transform: translateY(14px); }
.js .hero-visual .link-path { stroke-dashoffset: 260; }
.js .hero-visual .link-node { opacity: 0; }
.js .hero-visual .slot-pick { background: transparent; color: #d7e5ee; border-color: #23506d; font-weight: 400; }
.js .hero-visual .crm-new { opacity: 0; }

.hero-visual.is-live .mock-booking { animation: rise .7s var(--ease) .1s forwards; }
.hero-visual.is-live .slot-pick { animation: pick .4s var(--ease) 1s forwards; }
.hero-visual.is-live .n1 { animation: fade .3s 1.3s forwards; }
.hero-visual.is-live .p1 { animation: draw .8s var(--ease) 1.35s forwards; }
.hero-visual.is-live .n2 { animation: fade .3s 2s forwards; }
.hero-visual.is-live .mock-crm { animation: rise .6s var(--ease) 1.9s forwards; }
.hero-visual.is-live .crm-new { animation: fade .5s 2.4s forwards; }
.hero-visual.is-live .n3 { animation: fade .3s 2.6s forwards; }
.hero-visual.is-live .p2 { animation: draw .8s var(--ease) 2.65s forwards; }
.hero-visual.is-live .n4 { animation: fade .3s 3.3s forwards; }
.hero-visual.is-live .mock-wa { animation: rise .6s var(--ease) 3.25s forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pick { to { background: var(--cyan); color: var(--abyss); border-color: var(--cyan); font-weight: 700; } }

.hero-strip { position: relative; margin-top: clamp(48px, 7vw, 88px); }
.hero-strip ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.hero-strip li { display: flex; align-items: center; gap: 10px; color: #c9dbe6; font-weight: 500; font-size: var(--step--1); }
.hero-strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--cyan); }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-dark { background: var(--abyss); color: #fff; }
.section-light { background: var(--paper); color: var(--ink); }
.section-mist { background: var(--mist); color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: var(--step-3); font-weight: 700; text-wrap: balance; }
.section-head p { margin-top: 16px; font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 40em; }
.section-dark .section-head p { color: var(--fog); }

/* Servicios */
#servicios { border-top: 1px solid var(--line); }
.svc-groups { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.svc-group-title { font-size: var(--step--1); font-weight: 600; color: var(--cyan); letter-spacing: 0; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.svc-group:first-child .svc-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.svc { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: rgba(9, 233, 251, .1); border: 1px solid rgba(9, 233, 251, .25); }
.svc-ico svg { width: 22px; height: 22px; }
.svc h4 { font-size: var(--step-1); font-weight: 600; }
.svc p { margin-top: 8px; color: var(--fog); font-size: .98rem; }
.svc-link { display: inline-block; margin-top: 12px; color: #fff; font-weight: 600; font-size: .92rem; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; text-decoration-thickness: 1.5px; transition: color .2s; }
.svc-link:hover { color: var(--cyan); }
.svc-group-infra { background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); }
.svc-group-infra .svc:last-child { border-bottom: 0; }
.svc-note { margin-top: 8px; padding: 20px; border-radius: var(--radius-m); background: linear-gradient(135deg, rgba(9, 233, 251, .14), rgba(50, 151, 236, .1)); border: 1px solid rgba(9, 233, 251, .35); }
.svc-note p { color: #d7e5ee; font-size: .97rem; margin-bottom: 14px; }
.svc-note strong { color: #fff; }

/* Soluciones por rubro */
.rubros { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.rubro-tabs { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid #dbe6ec; }
.rubro-tabs [role="tab"] {
  text-align: left; background: none; border: 0; cursor: pointer; padding: 12px 18px; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--slate); font-weight: 600; font-size: 1.02rem; transition: color .2s, border-color .2s, background-color .2s;
}
.rubro-tabs [role="tab"]:hover { color: var(--ink); background: var(--mist); }
.rubro-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-left-color: var(--cyan-ink); background: var(--mist); }
.rubro-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 48px); background: var(--mist); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 48px); min-height: 330px; }
.rubro-panel[hidden] { display: none; }
.rubro-panel.is-entering { animation: panelIn .35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rubro-panel h3 { font-size: var(--step-2); font-weight: 700; }
.rubro-pain { margin-top: 16px; color: var(--slate); font-size: var(--step-0); max-width: 32em; }
.rubro-sub { font-weight: 700; font-family: var(--font-display); font-size: .95rem; margin-bottom: 12px; }
.rubro-col .btn { margin-top: 24px; }

.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks-dark li { color: #d7e5ee; }
.checks-dark li::before { background-color: var(--cyan); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061423' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* Proyectos */
.section-projects { background: linear-gradient(180deg, var(--abyss), #071b2e); }
.project { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 4.5vw, 56px); overflow: hidden; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--cyan); border: 1px solid rgba(9, 233, 251, .45); border-radius: 999px; padding: 5px 12px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-hot); box-shadow: 0 0 0 4px rgba(9, 233, 251, .2); }
.project h3 { font-size: var(--step-4); font-weight: 700; margin-top: 18px; letter-spacing: -.04em; }
.project-lead { margin-top: 14px; color: #c9dbe6; font-size: var(--step-0); max-width: 34em; }
.project .checks { margin-top: 18px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.project-visual { position: relative; aspect-ratio: 5 / 4; }
.lumina-site { position: absolute; inset: 0 12% 14% 0; background: #f8f5f2; border-color: #d9d2cc; }
.lumina-site .mock-bar { background: #ece6e1; border-color: #d9d2cc; }
.lumina-site .mock-bar i { background: #cfc5bd; }
.lumina-site .mock-bar span { background: #fff; color: #6b5f57; }
.lumina-body { padding: 18px 20px; color: #2c2420; }
.lumina-nav { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.lumina-nav b { font-family: var(--font-display); margin-right: auto; letter-spacing: -.02em; }
.lumina-nav > span:not(.lumina-pill) { width: 34px; height: 6px; border-radius: 4px; background: #ddd3cb; }
.lumina-pill { font-size: .7rem; background: #2c2420; color: #fff; padding: 4px 10px; border-radius: 999px; }
.lumina-h { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2.2vw, 1.5rem); line-height: 1.2; margin: 22px 0 18px; max-width: 12em; letter-spacing: -.02em; }
.lumina-services { display: grid; gap: 8px; max-width: 56%; }
.lumina-services span { display: flex; align-items: center; gap: 10px; font-size: .78rem; background: #fff; border: 1px solid #ebe3dc; border-radius: 10px; padding: 8px 10px; }
.lumina-services i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #e9d6c8, #c9a993); }
.lumina-services em { margin-left: auto; font-style: normal; color: #6b5f57; }
.lumina-crm { right: 0; bottom: 0; width: 42%; }
.crm-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; padding: 6px 0; }
.crm-bars span { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.crm-caption { font-size: .72rem; color: var(--slate); margin-top: 6px; }
.demo-stamp { position: absolute; top: -6px; right: 4%; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .08em; color: var(--abyss); background: var(--brand-gradient); padding: 4px 10px; border-radius: 6px; transform: rotate(4deg); }

/* Tecnologías */
.section-tech { padding-top: 0; }
.tech-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.tech-inner h2 { font-size: var(--step-1); font-weight: 600; color: var(--fog); }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list li { font-family: var(--font-display); font-size: .9rem; font-weight: 500; color: #e3eef4; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 34, 54, .6); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about h2 { font-size: var(--step-3); font-weight: 700; text-wrap: balance; }
.about-copy p { margin-top: 18px; color: var(--slate); font-size: var(--step-0); max-width: 36em; }
.about-copy p:first-of-type { color: var(--ink); font-size: var(--step-1); line-height: 1.5; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #dbe6ec; border: 1px solid #dbe6ec; border-radius: var(--radius-l); overflow: hidden; }
.values li { background: var(--paper); padding: clamp(20px, 3vw, 28px); }
.values h3 { font-size: 1.05rem; font-weight: 600; }
.values p { margin-top: 8px; color: var(--slate); font-size: .96rem; }

/* Proceso (secuencia real: se numera) */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 0 20px 0 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--cyan-ink); color: var(--cyan-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; position: relative; z-index: 1; margin-bottom: 20px;
}
.steps li::after { content: ""; position: absolute; top: 24px; left: 48px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, #9fc3cc 0 6px, transparent 6px 12px); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.12rem; font-weight: 600; }
.steps p { margin-top: 8px; color: var(--slate); font-size: .96rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq h2 { font-size: var(--step-3); font-weight: 700; }
.faq-list details { border-bottom: 1px solid #dbe6ec; }
.faq-list details:first-child { border-top: 1px solid #dbe6ec; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--cyan-ink); font-size: 1.2rem; transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 44px 22px 0; color: var(--slate); }
.faq-list a { color: var(--cyan-ink); font-weight: 600; }

/* Contacto */
.section-contact { background: radial-gradient(60% 80% at 0% 0%, rgba(9, 233, 251, .12), transparent 60%), var(--abyss); }
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-intro h2 { font-size: var(--step-3); font-weight: 700; text-wrap: balance; }
.contact-intro > p { margin-top: 16px; color: var(--fog); font-size: var(--step-1); line-height: 1.5; }
.wa-card { display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 18px 20px; border-radius: var(--radius-m); background: var(--deep); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.wa-card:hover { border-color: #25d366; transform: translateY(-2px); }
.wa-card-ico { width: 48px; height: 48px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.wa-card-ico svg { width: 26px; height: 26px; }
.wa-card strong { display: block; font-family: var(--font-display); }
.wa-card span span { color: var(--fog); }
.social-row { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: #d7e5ee; text-decoration: none; }
.social-row svg { width: 22px; height: 22px; color: var(--cyan); }
.social-row:hover { color: #fff; }

.form { background: var(--paper); color: var(--ink); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.opt { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1.5px solid #c9d8e0; background: #fbfdfe;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6577' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 4px rgba(23, 101, 181, .15); }
.field [aria-invalid="true"] { border-color: var(--error-ink); }
.field-error { color: var(--error-ink); font-size: .85rem; margin-top: 5px; min-height: 0; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--slate); margin: 4px 0 6px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan-ink); flex: none; }
.consent a { color: var(--cyan-ink); font-weight: 600; }
.form .btn-block { margin-top: 14px; }
.form .btn-primary { --bg: var(--ink); --fg: #fff; --bd: var(--ink); background-image: none; box-shadow: none; filter: none; }
.form .btn-primary:hover { --bg: var(--cyan-ink); --bd: var(--cyan-ink); }
.form-status { margin-top: 14px; font-size: .95rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #067647; }
.form-status.is-error { color: var(--error-ink); }
.form-status a { color: inherit; font-weight: 700; }
.form-status .status-wa { display: flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 48px; border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font-family: var(--font-display); }
.form-status .status-wa:hover { background: #1fb457; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #040e19; color: var(--fog); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 32px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; max-width: 28em; font-size: .95rem; }
.footer-title { font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.site-footer li { margin: 9px 0; font-size: .95rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: .87rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .55);
  transition: transform .2s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* Páginas internas */
.page { padding: calc(var(--header-h) + 64px) 0 96px; background: var(--paper); color: var(--ink); min-height: 70vh; }
.page h1 { font-size: var(--step-3); font-weight: 700; margin-bottom: 20px; }
.page h2 { font-size: var(--step-1); margin: 32px 0 10px; }
.page p, .page li { color: var(--slate); max-width: 46em; margin-bottom: 12px; }
.page ul { list-style: disc; padding-left: 1.2em; }
.page a { color: var(--cyan-ink); font-weight: 600; }
.page .site-header { background: var(--abyss); }
.page-center { text-align: center; }
.page-center p { margin-inline: auto; }
.page-center .btn { margin-top: 24px; }
.page-center .btn-primary { --bg: var(--ink); --fg: #fff; --bd: var(--ink); color: #fff; background-image: none; box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav ul { gap: 18px; }
  .svc-groups { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding: 0 0 28px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li::after { top: 48px; bottom: 0; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #9fc3cc 0 6px, transparent 6px 12px); }
  .steps h3 { align-self: center; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .brand-iso { height: 32px; }
  .brand-name { height: 15px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--abyss); padding: 16px var(--gutter) 28px; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .nav-cta { margin-top: 8px; }
  .site-header, .site-header.is-scrolled { background: var(--abyss); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--line); }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 520px; }
  .rubros { grid-template-columns: 1fr; }
  .rubro-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid #dbe6ec; gap: 0; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .rubro-tabs::-webkit-scrollbar { display: none; }
  .rubro-tabs [role="tab"] { white-space: nowrap; margin: 0 0 -2px; border-left: 0; border-bottom: 2px solid transparent; padding: 12px 14px; }
  .rubro-tabs [role="tab"][aria-selected="true"] { border-bottom-color: var(--cyan-ink); background: none; }
  .rubro-panel { grid-template-columns: 1fr; min-height: 0; }
  .project { grid-template-columns: 1fr; }
  .about, .faq, .contact { grid-template-columns: 1fr; }
  .tech-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { max-width: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-strip ul { justify-content: flex-start; }
  .svc-group:first-child .svc-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .hero-links { display: none; }
  .mock-booking { width: 70%; }
  .mock-crm { width: 52%; top: 50%; }
  .mock-wa { left: 0; width: 62%; }
  .mock-bar span { font-size: .62rem; }
  .project-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
