/* ============================================================
   TrankiTech — kit UI light (inspirado en estructura io.net)
   CSS puro, sin frameworks. Tokens → componentes → secciones.
   ============================================================ */

/* ---------- Tokens (paleta derivada de logo.png) ---------- */
/* Tipografía Geist (Vercel) — clara y legible, con letter-spacing sutil negativo.
   Servida desde jsDelivr; si falla, cae a system-ui. */
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Black.woff2") format("woff2");
  font-weight: 800; font-display: swap;
}

:root {
  --bg: #f7f9fd;
  --surface: #ffffff;
  --surface-2: #edf1f9;
  --text: #1f2430;         /* navy del logo */
  --text-dim: #5a6272;
  --accent: #2f6bff;       /* azul del logo */
  --accent-2: #6b9bff;     /* azul claro (gradientes) */
  --accent-ink: #ffffff;   /* texto sobre gradientes accent */
  --border: rgba(31, 36, 48, 0.10);
  --radius-card: 16px;
  --radius-pill: 100px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: -0.011em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.6em 1.2em; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 760px; }

/* ---------- Barra de anuncio (patrón io.net) ---------- */
.announce {
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.10), rgba(107, 155, 255, 0.08), rgba(47, 107, 255, 0.10));
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.announce-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; flex-wrap: wrap; padding: 0.5rem 1.25rem; text-align: center;
}
.announce-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent); box-shadow: 0 0 10px rgba(47, 107, 255, 0.5);
}
.announce strong { color: var(--text); }
.announce a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 253, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand-text { letter-spacing: -0.02em; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  color: var(--bg); font-weight: 800; font-size: 1.15rem;
}
.logo-mark-sm { width: 26px; height: 26px; font-size: 0.9rem; border-radius: 7px; }

/* Insignia con imagen de logo (logo-transparent.png) */
.logo-mark.logo-img { background: none; padding: 0; }
.logo-mark.logo-img img {
  width: 100%; height: 100%; object-fit: contain;
  display: block; border-radius: 4px;
}

.site-nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-dim); text-decoration: none;
  padding: 0.45em 0.8em; border-radius: var(--radius-pill);
  font-size: 0.92rem; transition: color 0.15s, background 0.15s;
}.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.site-nav .nav-cta {
  color: var(--accent-ink); background: linear-gradient(152deg, var(--accent), var(--accent-2)); font-weight: 600;
}
.site-nav .nav-cta:hover { filter: brightness(1.08); color: var(--accent-ink); }

/* Hamburguesa (móvil) — botón visible solo en pantallas pequeñas */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 0.8em 1.8em;
  border-radius: var(--radius-pill); text-decoration: none;
  font-weight: 600; font-size: 1rem; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  position: relative;
  background: linear-gradient(152deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 4px 20px rgba(47, 107, 255, 0.25);
  padding-right: 1.5em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, padding-right 0.2s ease;
}
/* Flecha revelada en hover (patrón "Get Started" io.net) */
.btn-primary::after {
  content: "→";
  position: absolute; right: 1.05em; top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0; font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { padding-right: 2.5em; box-shadow: 0 8px 28px rgba(47, 107, 255, 0.35); }
.btn-primary:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(47, 107, 255, 0.10), transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(107, 155, 255, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(31, 36, 48, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 100% 48px, 100%;
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(70px); z-index: 0;
}
.hero-orb-1 { width: 440px; height: 440px; top: -160px; left: 12%; background: rgba(47, 107, 255, 0.14); animation: orb-float 10s ease-in-out infinite; }
.hero-orb-2 { width: 320px; height: 320px; top: 40px; right: 10%; background: rgba(107, 155, 255, 0.12); animation: orb-float 13s ease-in-out infinite reverse; }

/* Glow que sigue al mouse (inspirado en in4m.au) */
.hero-glow {
  position: absolute; left: 50%; top: 55%;
  width: 780px; height: 780px; margin: -390px 0 0 -390px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.18) 0%, rgba(47, 107, 255, 0.08) 42%, rgba(47, 107, 255, 0) 70%);
  transition: left 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(28px) scale(1.04); }
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; padding: 0.35em 1.1em; margin-bottom: 1.2rem;
  border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600;
  color: var(--accent); background: rgba(47, 107, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.25);
}
.hero h1 { max-width: 14em; margin-left: auto; margin-right: auto; }
.hero h1 .grad {
  background: linear-gradient(92deg, var(--accent), var(--accent-2) 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 34em; margin: 0 auto; }

/* Diagrama de servicios: 5 flujos de transformación (inspirado en in4m.au) */
.svc-diagram { max-width: 920px; margin: 2.6rem auto 0; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(31, 36, 48, 0.03) 1px, transparent 1px),
    var(--surface-2);
  background-size: 100% 48px, 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-intro { color: var(--text-dim); max-width: 42em; font-size: 1.05rem; }

/* ---------- Grids y cards ---------- */
.grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  border-radius: var(--radius-card);
  padding: 1.6rem;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(152deg, rgba(47, 107, 255, 0.30), rgba(107, 155, 255, 0.25) 45%, rgba(31, 36, 48, 0.06)) border-box;
  box-shadow: 0 2px 10px rgba(31, 36, 48, 0.05);
}
.card h3 { color: var(--text); }
.card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }
.card ul { color: var(--text-dim); margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 0.95rem; }
.card li { margin-bottom: 0.3rem; }
.card-service {
  display: flex; flex-direction: column;
  overflow: hidden; padding-top: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(47, 107, 255, 0.16), 0 2px 10px rgba(31, 36, 48, 0.05);
}

/* Banda superior de servicio (patrón io.net) */
.svc-band {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -1.6rem 1.3rem; padding: 0.95rem 1.6rem;
  background: linear-gradient(152deg, var(--accent), var(--accent-2));
  color: #fff;
}
.svc-num {
  font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.32); line-height: 1;
}
.svc-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
  transition: transform 0.2s ease;
}
.card-service:hover .svc-mark { transform: scale(1.1) rotate(4deg); }

/* Puntos con check accent */
.card-service ul { list-style: none; padding-left: 0; margin: 0.7rem 0 0.4rem; }
.card-service li { position: relative; padding-left: 1.5rem; margin-bottom: 0.4rem; }
.card-service li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.card-cta {
  display: inline-flex; align-items: center; gap: 0.35rem;
  align-self: flex-start; margin-top: auto; padding-top: 1.2rem;
  color: var(--accent); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.card-cta::after { content: "→"; transition: transform 0.15s; }
.card-cta:hover { text-decoration: underline; }
.card-cta:hover::after { transform: translateX(3px); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  text-align: center; padding: clamp(3rem, 7vw, 5rem) 0;
  background: linear-gradient(152deg, rgba(47, 107, 255, 0.10), rgba(107, 155, 255, 0.08), var(--bg) 60%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-banner h2 { color: var(--text); }
.cta-banner p { color: var(--text-dim); max-width: 36em; margin: 0 auto 1.5em; }

/* ---------- Proceso (steps) ---------- */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius-card); padding: 1.5rem;
  box-shadow: inset 0 0 0 1px var(--border);
}
.step-num {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-weight: 700; font-size: 1.05rem; color: var(--accent);
  background: rgba(47, 107, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(47, 107, 255, 0.3);
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2rem; display: grid; gap: 0.8rem; }
.faq {
  background: var(--surface); border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--border);
}
.faq summary {
  cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600;
  list-style: none; position: relative; padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; font-weight: 400;
  transition: transform 0.2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 1.4rem 1.2rem; color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ---------- Contacto ---------- */
.contact-channels { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.8rem 0 2.5rem; }
.channel {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7em 1.3em; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--border); font-size: 0.95rem;
  transition: background 0.15s;
}
.channel:hover { background: var(--surface-2); }

.lead-form {
  background: var(--surface); border-radius: var(--radius-card); padding: 2rem;
  box-shadow: inset 0 0 0 1px var(--border);
}
.form-note { color: var(--text-dim); margin-bottom: 1.4rem; font-size: 0.95rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75em 1em;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}
.hp { position: absolute; left: -9999px; }  /* honeypot oculto */
.privacy-consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  color: var(--text-dim); font-size: 0.85rem;
  margin: 0.5rem 0 1.2rem; cursor: pointer; line-height: 1.5;
}
.privacy-consent input {
  width: auto; flex: 0 0 auto; margin-top: 0.25rem;
  accent-color: var(--accent); cursor: pointer;
}
.form-status { color: #dc2626; min-height: 1.4em; margin-top: 0.8rem; }

/* ---------- Footer multi-columna (patrón io.net) ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  background: var(--surface-2);
  color: var(--text-dim); font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 700; font-size: 1.05rem; margin: 0; }
.footer-tagline { margin: 0.8rem 0 1.3rem; max-width: 24em; }
.footer-col h4 { color: var(--text); margin: 0 0 0.9rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { margin: 1rem 0 0; font-size: 0.85rem; opacity: 0.8; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.footer-meta { font-size: 0.82rem; opacity: 0.7; margin: 0; }

/* ---------- Marquee de tecnologías (patrón io.net) ---------- */
.marquee-section { padding: 2.5rem 0 3.5rem; }
.marquee-title {
  text-align: center; color: var(--text-dim);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 1.6rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 1rem; padding-right: 1rem; }
.marquee-item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0.5em 1.2em; border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  white-space: nowrap;
}
.marquee-logo { height: 26px; width: auto; display: block; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- 404 (inspirado en in4m.au) ---------- */
.nf404 {
  position: relative; min-height: 82svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: clamp(48px, 7vw, 100px) clamp(18px, 3.5vw, 48px) 0;
}
.nf-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); animation: fadeIn 0.6s ease both;
}
.nf404 h1 {
  margin: 18px 0 0; max-width: 18ch;
  font-weight: 700; font-size: clamp(38px, 7vw, 96px);
  line-height: 0.94; letter-spacing: -0.042em;
  animation: revealUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.nf-sub {
  margin: 20px 0 0; max-width: 40ch; font-size: 17px; line-height: 1.5;
  color: var(--text-dim);
  animation: revealUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.1s;
}
.nf-ctas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: clamp(28px, 3.6vw, 44px);
  animation: fadeIn 0.9s ease both; animation-delay: 0.25s;
}
.nf-waves { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(140px, 26vh, 280px); z-index: 2; pointer-events: none; }
.nf-wave { position: absolute; inset: 0; }
.nf-wave svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.nf-wave-1 { animation: swell 10s ease-in-out infinite; }
.nf-wave-1 svg { animation: waveShift 28s linear infinite; }
.nf-wave-2 { animation: swell 13s ease-in-out 0.7s infinite; }
.nf-wave-2 svg { animation: waveShift 21s linear infinite reverse; height: 84%; }
.nf-wave-3 svg { animation: waveShift 40s linear infinite; height: 56%; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes swell {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.08); }
}
@keyframes waveShift { to { transform: translateX(-50%); } }

/* ---------- Preloader: logo intacto gira como rueda 360° ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  animation: preloaderOut 0.4s ease 1.6s forwards;
}
.preloader img {
  width: 88px; height: 88px;
  animation: wheelSpin 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
}
html.tt-no-preload .preloader { display: none; }
@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes preloaderOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Watermark de marca en hero y CTA ---------- */
.hero::after {
  content: ""; position: absolute; right: -140px; top: 40px;
  width: 520px; height: 520px; z-index: 0; pointer-events: none;
  background: url("/assets/logo-transparent.png") center / contain no-repeat;
  opacity: 0.04; transform: rotate(-8deg);
}
.cta-banner::after {
  content: ""; position: absolute; left: -120px; bottom: -120px;
  width: 440px; height: 440px; z-index: 0; pointer-events: none;
  background: url("/assets/logo-transparent.png") center / contain no-repeat;
  opacity: 0.05; transform: rotate(6deg);
}
.cta-banner .container { position: relative; z-index: 1; }

/* ---------- Separador de secciones con logo ---------- */
.brand-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: 0.3rem 0;
}
.brand-divider span { height: 1px; width: min(140px, 16vw); background: var(--border); }
.brand-divider img { width: 22px; height: 22px; opacity: 0.45; display: block; }

/* ---------- Sello en CTA final ---------- */
.cta-seal { display: block; width: 56px; height: 56px; margin: 0 auto 1.3rem; }

/* ---------- Página gracias: logo protagonista ---------- */
.thx-seal { position: relative; width: 140px; margin: 0 auto 1.8rem; animation: logoIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.thx-seal img { width: 140px; height: 140px; display: block; }
.thx-check {
  position: absolute; right: -8px; bottom: -8px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.35rem;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  animation: pop 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- Historia de marca (nosotros) ---------- */
.brand-story { text-align: center; }
.brand-story-logo { display: block; width: 120px; height: 120px; margin: 0 auto 1.6rem; }

/* ---------- Footer: logo protagonista ---------- */
.footer-logo { display: block; width: 96px; height: 96px; margin-bottom: 1.1rem; }

/* ---------- Responsive ---------- */
/* ===== Sección servicios mejorada (inspirada en RooMail) ===== */
.svc-enh { padding: clamp(2.5rem, 7vw, 5rem) 0; text-align: center; }
.svc-enh h2 { letter-spacing: -0.04em; }
.svc-enh-intro { margin: 0 auto; }

.svc-switch {
  display: inline-flex; margin: 2rem auto 0; gap: 4px;
  background: var(--surface-2); border-radius: var(--radius-pill);
  padding: 4px; box-shadow: inset 0 0 0 1px var(--border);
}
.svc-switch-btn {
  padding: 10px 26px; border-radius: var(--radius-pill); border: none;
  background: transparent; color: var(--text-dim);
  font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.svc-switch-btn.is-selected {
  background: var(--text); color: #fff;
}

.svc-panel { margin-top: clamp(1.6rem, 3.4vw, 2.75rem); }
.svc-panel[hidden] { display: none; }
.svc-panel-lead {
  color: var(--text-dim); max-width: 40em; margin: 0 auto clamp(1.4rem, 2.5vw, 2rem);
  font-size: 1.02rem;
}
.svc-panel-includes {
  color: var(--text-dim); font-size: 0.82rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin: 0 0 0.9rem; text-align: left;
}

/* Flow numerado */
.svc-flow {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0;
  text-align: left;
}
.svc-flow-card {
  display: flex; min-width: 0; flex: 1 1 0%;
  border-radius: 18px; border: 1.5px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s;
}
.svc-flow-card.is-active {
  flex: 2.1 1 0%; transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(47, 107, 255, 0.08);
  box-shadow: rgba(47, 107, 255, 0.9) 0 24px 50px -38px;
}
.svc-flow-card:hover {
  border-color: var(--accent);
  background: rgba(47, 107, 255, 0.06);
  box-shadow: rgba(47, 107, 255, 0.45) 0 20px 44px -20px;
  transform: translateY(-6px);
  z-index: 1;
}
.svc-flow-card:hover .svc-flow-num { background: var(--accent); color: #fff; }
.svc-flow-card:hover .svc-flow-line { background: rgba(47, 107, 255, 0.45); }
.svc-flow-inner {
  flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column;
  padding: clamp(18px, 2vw, 26px);
}
.svc-flow-top { display: flex; align-items: center; gap: 10px; }
.svc-flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2); color: var(--text-dim);
}
.svc-flow-card.is-active .svc-flow-num { background: var(--accent); color: #fff; }
.svc-flow-line { flex: 1 1 0%; height: 1px; background: var(--border); }
.svc-flow-card.is-active .svc-flow-line { background: rgba(47, 107, 255, 0.45); }
.svc-flow-title {
  display: block; margin-top: 16px;
  font-weight: 600; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.2;
  letter-spacing: -0.03em; color: var(--text);
}
.svc-flow-sub {
  display: block; margin-top: 8px;
  font-size: 13.5px; line-height: 1.45; color: var(--text-dim);
}
.svc-flow-desc {
  display: block; margin-top: 8px;
  font-size: 13.5px; line-height: 1.5; color: var(--text-dim);
}
.svc-flow-card.is-active .svc-flow-desc { border-top-color: rgba(47, 107, 255, 0.3); }
.svc-flow-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 26px; flex: 0 0 auto;
  font: 16px ui-monospace, SFMono-Regular, Menlo, monospace; color: #c3cbd2;
  cursor: default;
}

/* Progreso del servicio (dot-indicador) */
.svc-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: clamp(1.2rem, 2.5vw, 1.75rem);
}
.svc-progress-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
  transition: background 0.25s, transform 0.25s;
}
.svc-progress-dot:hover {
  transform: scale(1.5);
  background: var(--accent-2);
}
.svc-progress-dot.is-active {
  width: 26px; border-radius: 5px;
  background: var(--accent);
}

/* Métricas */
.svc-metrics {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 24px);
}
.svc-metric {
  flex: 1 1 220px; padding: 22px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface); text-align: center;
}
.svc-metric-value {
  display: block; font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1; color: var(--text);
  letter-spacing: -0.03em;
}
.svc-metric-label { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--text-dim); }

/* Planes (soporte continuo) */
.svc-plans {
  margin-top: clamp(1.75rem, 3.6vw, 2.75rem);
  display: flex; flex-wrap: wrap; align-items: stretch;
  gap: clamp(16px, 2vw, 24px); text-align: left;
}
.svc-plan {
  flex: 1 1 260px; display: flex; flex-direction: column;
  padding: 26px; border-radius: 18px;
  border: 1.5px solid var(--border); background: var(--surface);
}
.svc-plan.is-featured {
  border-color: var(--accent);
  background: rgba(47, 107, 255, 0.06);
  box-shadow: rgba(47, 107, 255, 0.9) 0 24px 50px -38px;
}
.svc-plan-badge {
  font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em;
}
.svc-plan.is-featured .svc-plan-badge { color: var(--accent); }
.svc-plan-name {
  margin-top: 10px; font-weight: 700;
  font-size: clamp(28px, 3vw, 36px); line-height: 1; color: var(--text);
}
.svc-plan-per { font-weight: 400; font-size: 14px; color: var(--text-dim); }
.svc-plan-text { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.svc-plan-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.svc-plan-list li {
  position: relative; padding-left: 1.4rem;
  font-size: 14px; line-height: 1.4; color: var(--text-dim);
}
.svc-plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.svc-plan-cta {
  margin-top: auto; padding-top: 22px; display: block; text-align: center;
  padding: 12px; border-radius: 12px;
  border: 1.5px solid var(--border); color: var(--text);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background 0.15s;
}
.svc-plan-cta:hover { background: var(--surface-2); }
.svc-plan.is-featured .svc-plan-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc-plan.is-featured .svc-plan-cta:hover { filter: brightness(1.08); }

.svc-panel-cta { margin-top: clamp(1.75rem, 3.6vw, 2.5rem); }

/* Marquee de tecnologías */
.svc-tech-marquee {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 140px, #000 calc(100% - 140px), transparent);
}
.svc-tech-track { display: flex; width: max-content; animation: svc-tech-scroll 50s linear infinite; }
.svc-tech-marquee:hover .svc-tech-track { animation-play-state: paused; }
.svc-tech-group { display: flex; align-items: center; gap: 30px; padding-right: 30px; flex: 0 0 auto; }
.svc-tech {
  display: flex; align-items: center; gap: 30px;
  font-weight: 500; font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text); letter-spacing: -0.035em; white-space: nowrap;
}
.svc-tech-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--accent); }
@keyframes svc-tech-scroll { to { transform: translateX(-50%); } }

@media (max-width: 720px) {
  .svc-flow-card, .svc-flow-card.is-active { flex: 1 1 100%; transform: none; }
  .svc-flow-arrow { width: 100%; padding: 0.4rem 0; justify-content: center; transform: rotate(90deg); }
  .svc-switch { display: flex; flex-wrap: wrap; justify-content: center; border-radius: 18px; }
  .svc-switch-btn { flex: 1 1 auto; padding: 9px 16px; font-size: 0.85rem; white-space: nowrap; }
}

@media (max-width: 720px) {
  .nav-wrap { justify-content: space-between; flex-wrap: wrap; }
  .nav-toggle.is-enhanced { display: flex; }
  .site-nav {
    display: flex;
    flex-direction: column; align-items: stretch;
    width: 100%; padding: 0.8rem 0 0.3rem;
    border-top: 1px solid var(--border);
  }
  .site-nav.is-enhanced { display: none; }
  .site-nav.is-enhanced.is-open { display: flex; }
  .site-nav a {
    text-align: center; padding: 0.8em;
    font-size: 1rem;
  }
  .site-nav .nav-cta { margin-top: 0.5rem; }
  .hero { text-align: center; }
  .cta-row { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .preloader { display: none; }
}

/* Respetar el estado nativo del selector progresivo de servicios. */
.svc-switch[hidden] { display: none; }

/* ---------- Propuesta de valor: bloques con fondo deslizante ---------- */
.vp-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 2rem; isolation: isolate; }
.vp-item { min-width: 0; margin: 0; padding: 24px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; font: inherit; }
.vp-item h3, .vp-heading { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; }
.vp-item p, .vp-copy { display: block; margin: 0; color: var(--text-dim); font-size: .95rem; line-height: 1.6; }
button.vp-item { cursor: pointer; }
.vp-backdrop { position: absolute; z-index: -1; left: 0; top: 0; border-radius: 4px; background: #e9ebee; pointer-events: none; transition: transform .5s cubic-bezier(.75,0,0,1), width .5s cubic-bezier(.75,0,0,1), height .5s cubic-bezier(.75,0,0,1); }
@media (max-width: 760px) {
  .vp-track { display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; gap: 16px; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .vp-item { flex: 0 0 85%; scroll-snap-align: start; }
  .vp-track::-webkit-scrollbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vp-backdrop { transition: none; } }

/* Imágenes de servicios: ejemplos visuales con proporción estable. */
.svc-image { margin: 0 -1.6rem 1.5rem; overflow: hidden; background: #edf3ff; aspect-ratio: 3 / 2; border-bottom: 1px solid var(--border); }
.svc-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card-service:hover .svc-image img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) {
  .svc-image img { transition: none; }
  .card-service:hover .svc-image img { transform: none; }
}
.services-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 720px) { .services-visual-grid { grid-template-columns: minmax(0, 1fr); } }

/* Servicios: composición de producto con texto arriba e imagen abajo. */
.service-tiles-section { scroll-margin-top: 90px; }
.service-tiles-section > .container > h2, .service-tiles-section > .container > .section-intro { text-align: center; }
.service-tiles-section > .container > .section-intro { margin-left: auto; margin-right: auto; }
.service-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.service-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 28px; background: #fff; border: 1px solid #e7ecf5; }
.service-tile-copy { position: relative; z-index: 1; padding: 36px 32px 26px; text-align: center; flex: 1; }
.service-tile-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 12px; background: #edf3ff; color: #2f6bff; font-size: .8rem; font-weight: 700; }
.service-tile h3 { margin: 0 auto 18px; max-width: 420px; color: #1f2430; font-size: clamp(1.65rem,2.5vw,2.15rem); line-height: 1.12; letter-spacing: -.04em; }
.service-tile-copy > p { max-width: 420px; margin: 0 auto; color: #5a6272; font-size: .94rem; line-height: 1.65; }
.service-tile-link { display: inline-flex; align-items: center; gap: 8px; color: #235bd6; margin-top: 20px; font-size: .94rem; text-decoration: none; }
.service-tile-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-tile-link span { font-size: 1.4rem; line-height: 1; }
.service-tile-link:focus-visible { outline: 3px solid #2f6bff; outline-offset: 5px; border-radius: 3px; }
.service-tile-picture { aspect-ratio: 3 / 2; overflow: hidden; background: #edf3ff; }
.service-tile-picture img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-tile:hover .service-tile-picture img { transform: scale(1.025); }
@media (max-width: 720px) {
  .service-tiles { grid-template-columns: minmax(0,1fr); gap: 22px; margin-top: 30px; }
  .service-tile { border-radius: 22px; }
  .service-tile-copy { padding: 28px 22px 24px; }
  .service-tile h3 { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .service-tile-picture img { transition: none; }
  .service-tile:hover .service-tile-picture img { transform: none; }
}

/* Problemas: cinco pilares abiertos, con iconos y lectura centrada. */
.problems-pillars { scroll-margin-top: 90px; background: #f0f3f8; }
.problems-pillars > .container { max-width: 1240px; }
.problems-pillars h2, .problems-pillars .section-intro { text-align: center; }
.problems-pillars .section-intro { margin-left: auto; margin-right: auto; }
.problem-pillars-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 30px; margin-top: 58px; }
.problem-pillar { min-width: 0; text-align: center; }
.problem-icon { position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 20px; color: #18365c; }
.problem-icon::before { content: ''; position: absolute; z-index: -1; width: 48px; height: 54px; top: 0; left: 4px; background: #c8dcff; }
.problem-icon svg { position: relative; transform: translate(4px,5px); }
.problem-pillar h3 { margin: 0 0 12px; color: #17345c; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.02em; }
.problem-pillar p { margin: 0; font-size: .92rem; line-height: 1.75; color: #50627b; }
@media (min-width: 1061px) { .problem-pillar h3 { min-height: 2.6em; } }
@media (max-width: 1060px) {
  .problem-pillars-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px; }
}
@media (max-width: 720px) {
  .problem-pillars-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 24px; margin-top: 36px; }
  .problem-pillar:last-child { grid-column: 1 / -1; max-width: 320px; justify-self: center; }
}
@media (max-width: 420px) {
  .problem-pillars-grid { grid-template-columns: minmax(0,1fr); gap: 34px; }
  .problem-pillar { max-width: 310px; justify-self: center; }
  .problem-pillar h3 { font-size: 1.2rem; }
  .problem-icon { margin-bottom: 14px; }
}

/* Método de trabajo: cinco etapas en una lista ordenada. */
.process-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 32px; list-style: none; counter-reset: process-step; margin: 42px 0 0; padding: 0; }
.process-grid li { min-width: 0; counter-increment: process-step; padding-top: 22px; border-top: 2px solid #cbdcff; }
.process-grid li::before { content: '0' counter(process-step); display: block; margin-bottom: 20px; color: #2f6bff; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.process-grid h3 { margin: 0 0 14px; color: var(--text); font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; }
.process-grid p { margin: 0; color: var(--text-dim); font-size: .95rem; line-height: 1.75; }
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; } }
@media (max-width: 600px) { .process-grid { grid-template-columns: minmax(0,1fr); gap: 30px; margin-top: 30px; } }

/* Imágenes del proceso: materiales naturales y fotografía editorial. */
.process-illustrated { background: #fff; scroll-margin-top: 90px; }
.process-illustrated > .container { max-width: 1240px; }
.process-illustrated h2, .process-illustrated .section-intro { text-align: center; }
.process-illustrated .section-intro { margin-left: auto; margin-right: auto; }
.process-grid-illustrated { gap: 24px; }
.process-grid-illustrated li { border: 0; padding-top: 0; }
.process-grid-illustrated li::before { display: none; }
.process-stage-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; margin-bottom: 24px; background: #e9e1d5; }
.process-stage-number { display: block; margin-bottom: 12px; color: #21554f; font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.process-grid-illustrated h3 { font-size: 1.12rem; line-height: 1.35; }
.process-grid-illustrated p { font-size: .9rem; line-height: 1.7; }
@media (min-width: 961px) { .process-grid-illustrated h3 { min-height: 2.7em; } }
@media (max-width: 600px) { .process-grid-illustrated li { max-width: 420px; width: 100%; justify-self: center; } }

/* Fondos: base blanca, separaciones neutras y contacto azul tenue. */
:root { --bg: #fff; --surface-2: #f5f6f8; }
.hero { background: radial-gradient(ellipse at 50% 0%, #edf4ff 0%, transparent 65%), #fff; background-size: auto; }
.hero-orb { opacity: .35; }
.hero-glow { opacity: .3; }
.problems-pillars, .service-tiles-section { background: #f5f6f8; }
.service-tile { background: #fff; }
.process-illustrated, [data-value-carousel] { background: #fff; }
.contact-section, .cta-banner { background: #eef4ff; }
.contact-section .lead-form { background: #fff; }
.site-footer { --text: #fff; --text-dim: #c4d0e3; --border: rgba(255,255,255,.15); background: #142238; color: #c4d0e3; }
.site-footer .footer-brand, .site-footer .footer-col h4 { color: #fff; }
.site-footer .footer-col a { color: #d5e0f2; }
.site-footer .footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-col a:focus-visible { outline: 2px solid #9bbcff; outline-offset: 5px; }
.site-footer .footer-logo { background: #fff; padding: 12px; border-radius: 16px; }
.site-footer .footer-col p, .site-footer .footer-meta { opacity: 1; }
