/* =====================================================================
   CAYDEEM — Landing site
   Direction: "dark-tech" — premium tech studio. Deep teal / near-black
   surfaces, subtle glow + grid, glassmorphism cards, code/terminal
   motif, neon-ish blue + coral accents. High craft, confident.
   Vanilla CSS3, mobile-first, no frameworks. Opens via file://.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Brand palette (from the logo) */
  --teal:    #2b5a66;
  --teal-2:  #21454f;
  --blue:    #4fa3d1;
  --coral:   #d6503d;
  --ink:     #16242a;
  --paper:   #f6f9fa;
  --white:   #ffffff;

  /* Dark-tech surface system */
  --bg:        #0a1418;   /* page background, near-black teal */
  --bg-2:      #0d1b20;   /* alternating band */
  --panel:     #0f2027;   /* solid cards / footer */
  --glass:     rgba(255, 255, 255, 0.045);
  --glass-2:   rgba(255, 255, 255, 0.075);
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.17);

  /* Text on dark.
     --dim is the AA-safe muted tone (~7:1 on --bg). --mute was ~4:1 and
     failed AA for small text, so secondary/muted copy now uses --dim-2,
     which sits comfortably above the 4.5:1 threshold on the near-black bg. */
  --text:    #e9f1f3;
  --dim:     #a9bec4;
  --dim-2:   #9bb2b9;   /* AA-safe small-text muted (~5.2:1 on --bg) */
  --mute:    #7c939a;   /* decorative only — never load-bearing small text */

  /* Accent tints */
  --blue-12:  rgba(79, 163, 209, 0.14);
  --blue-22:  rgba(79, 163, 209, 0.24);
  --coral-12: rgba(214, 80, 61, 0.14);

  /* Signature gradients */
  --grad: linear-gradient(120deg, #4fa3d1 0%, #59b0cf 45%, #d6503d 100%);
  --grad-blue: linear-gradient(135deg, #4fa3d1, #3f8fbc);

  /* Type */
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;
  --shadow:    0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 90px -36px rgba(0, 0, 0, 0.85);

  /* Layout */
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  /* subtle teal glow wash behind everything */
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(79, 163, 209, 0.12), transparent 60%),
    radial-gradient(900px 560px at -8% 6%, rgba(214, 80, 61, 0.08), transparent 58%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* PERF: background-attachment:fixed forces a full-page repaint while
   scrolling, and combined with the header/card backdrop-filters this
   janks badly on mobile. Drop the fixed attachment on small screens. */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--white);
  font-weight: 700;
}

strong, b { color: var(--text); font-weight: 700; }

/* ---------------------------------------------------------------------
   3. ACCESSIBILITY HELPERS
   --------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  background: var(--blue);
  color: #06181f;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

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

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

.section { padding-block: clamp(72px, 10vw, 120px); position: relative; }

/* Alternating band gets a subtle tech grid + slightly different tone */
.section--alt { background: var(--bg-2); position: relative; overflow: hidden; }
.section--alt::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79, 163, 209, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 163, 209, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 90% at 50% 0%, #000 35%, transparent 78%);
  pointer-events: none;
}
.section--alt > .container { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  --pad-y: 12px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.25s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-blue);
  color: #06181f;
  box-shadow: 0 10px 26px -10px rgba(79, 163, 209, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(79, 163, 209, 0.85); }

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--white); background: var(--glass-2); transform: translateY(-2px); }

/* On the light coral/teal CTA band */
.btn-on-dark {
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}
.btn-on-dark:hover { transform: translateY(-2px); color: var(--teal-2); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.55); }

.btn-lg { --pad-y: 14px; --pad-x: 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------------
   6. HEADER / NAV
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 20, 24, 0.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 20, 24, 0.9);
  border-bottom-color: var(--line);
}
/* PERF: the blur on a sticky header is the most expensive thing on
   scroll. On small screens use a solid translucent bar instead. */
@media (max-width: 768px) {
  .site-header,
  .site-header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(9, 18, 22, 0.94);
  }
}

.nav-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo: dark-teal wordmark sits on a light pill so it reads on dark */
.brand {
  display: inline-flex;
  background: var(--paper);
  padding: 7px 13px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.brand-logo { height: 28px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 20px; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
.primary-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 8px 13px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--dim);
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.primary-nav a:not(.btn):hover { color: var(--white); background: var(--glass); }

/* Scroll-spy active state — underline accent + brighter text */
.primary-nav a:not(.btn).is-active {
  color: var(--white);
}
.primary-nav a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.nav-cta { box-shadow: 0 6px 18px -8px rgba(79, 163, 209, 0.7); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 24px;
    background: rgba(10, 20, 24, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    /* The 6 links + CTA must never run off-screen on short viewports:
       cap the drawer to the visible area below the header and scroll
       internally if it overflows. dvh handles mobile browser chrome. */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.38s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; margin-bottom: 12px; }
  .primary-nav a:not(.btn) { padding: 13px 14px; font-size: 1.04rem; }
  .primary-nav a:not(.btn).is-active::after { left: 14px; right: auto; width: 18px; }
  .nav-cta { width: 100%; }
}

/* ---------------------------------------------------------------------
   7. HERO
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 72px);
  background: radial-gradient(ellipse 95% 70% at 74% -12%, #15303a, transparent 60%);
}
/* tech grid */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(79, 163, 209, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 163, 209, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 0%, #000 35%, transparent 80%);
  pointer-events: none;
}
/* coral glow bottom-left */
.hero::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  bottom: -140px; left: -120px;
  border-radius: 50%;
  background: var(--coral-12);
  filter: blur(120px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dim);
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-12);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--blue-12); }
  50%      { box-shadow: 0 0 0 7px rgba(79, 163, 209, 0.04); }
}

#hero-title {
  font-size: clamp(2.2rem, 5.6vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
/* gradient highlight words (with solid-color fallback for non-clip engines) */
.hl-blue,
.hl-coral {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hl-blue  { color: #8fd0ee; background-image: linear-gradient(120deg, var(--blue), #8fd0ee); }
.hl-coral { color: #f0866f; background-image: linear-gradient(120deg, var(--coral), #f0866f); }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--dim);
  max-width: 56ch;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(20px, 4vw, 40px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; flex-direction: column; line-height: 1.25; }
.hero-trust strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}
/* AA fix: was --mute (~4:1). Bumped to --dim-2 for small-text contrast. */
.hero-trust span { font-size: 0.84rem; color: var(--dim-2); }

/* ---------- Hero visual: device + code card + badge ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 440px;
}

/* Phone device */
.device {
  position: relative;
  width: min(290px, 78%);
  margin-left: auto;
  padding: 12px;
  background: linear-gradient(160deg, #1c3138, #0e1d22);
  border: 1px solid var(--line-2);
  border-radius: 38px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: floatB 8s ease-in-out infinite;
}
.device-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 18px;
  background: #0a161a;
  border-radius: 0 0 13px 13px;
  z-index: 2;
}
.device-screen {
  background: linear-gradient(175deg, #112027, #0b181d);
  border-radius: 28px;
  padding: 30px 16px 18px;
  overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.app-dot { width: 22px; height: 22px; border-radius: 8px; background: var(--grad); flex: none; }
.app-title { font-size: 0.82rem; font-weight: 600; color: var(--text); }

.app-card--hero {
  background: linear-gradient(140deg, rgba(79, 163, 209, 0.28), rgba(214, 80, 61, 0.16));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-card-line { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.55); }
.app-card-line.w-40 { background: rgba(255, 255, 255, 0.3); }

.app-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat-pill span { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim-2); }
.stat-pill b { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); }

.app-chart {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 14px;
}
.app-chart svg { width: 100%; height: auto; display: block; }

.app-row { display: flex; gap: 8px; }
.app-chip { flex: 1; height: 30px; border-radius: 9px; background: var(--glass); border: 1px solid var(--line); }
.app-chip--accent { background: var(--grad-blue); border-color: transparent; }

/* Floating code card */
.code-card {
  position: absolute;
  left: 0; bottom: 18px;
  width: min(248px, 64%);
  max-width: calc(100% - 16px);   /* never wider than the visual at 360px */
  background: linear-gradient(160deg, rgba(20, 36, 42, 0.96), rgba(11, 22, 26, 0.96));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: floatA 7s ease-in-out infinite;
  z-index: 3;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.cdot { width: 9px; height: 9px; border-radius: 50%; }
.cdot.r { background: var(--coral); }
.cdot.y { background: #e6b54f; }
.cdot.g { background: #5fc08a; }
.code-head em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim-2); }
.code-card pre {
  margin: 0;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--dim);
  /* The longest line fits; allow wrap as a safety net so a tiny 360px
     viewport never spawns a horizontal scrollbar inside the card. */
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
}
.c-key { color: #c98fe6; }
.c-cls { color: var(--blue); }
.c-fn  { color: #7fd6c0; }
.c-str { color: #f0a07f; }
.c-val { color: #e6b54f; }

/* Floating badge */
.float-badge {
  position: absolute;
  top: 6px; right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6);
  z-index: 4;
  animation: floatA 6.5s ease-in-out infinite;
}

@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

@media (max-width: 980px) {
  .device { margin-inline: auto; }
}
@media (max-width: 480px) {
  .hero-visual { min-height: 410px; }
  .device { width: 250px; }
  .code-card { width: 210px; }
}

/* ---------- Platform strip ---------- */
.logo-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(16px, 3vw, 30px);
  margin-top: clamp(44px, 7vw, 68px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.logo-strip > span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.logo-strip ul { display: flex; flex-wrap: wrap; gap: 10px clamp(16px, 3vw, 28px); }
.logo-strip li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--dim);
  transition: color 0.2s;
}
.logo-strip li:hover { color: var(--blue); }

/* ---------------------------------------------------------------------
   8. SECTION HEADS
   --------------------------------------------------------------------- */
/* Width utilities for decorative skeleton bars in the mockups */
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 58px); }
.kicker {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
}
.section-head h2,
.why-copy h2,
.contact-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.45rem); font-weight: 800; }
.section-lead { margin: 16px 0 0; max-width: 60ch; color: var(--dim); font-size: clamp(1rem, 1.4vw, 1.1rem); }

/* ---------------------------------------------------------------------
   9. SERVICIOS — cards
   --------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--glass-2); }
.card:hover::before { transform: scaleX(1); }

.card h3 { font-size: 1.14rem; margin-bottom: 8px; color: var(--white); }
.card p { color: var(--dim); font-size: 0.96rem; margin: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  transition: transform 0.25s var(--ease);
}
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.icon-blue  { color: var(--blue);  background: var(--blue-12); }
.icon-teal  { color: #79c6e6;       background: rgba(43, 90, 102, 0.4); }
.icon-coral { color: #f0866f;       background: var(--coral-12); }

/* PERF: backdrop-filter on every card is costly on mobile scroll. */
@media (max-width: 768px) {
  .card { backdrop-filter: none; background: rgba(255, 255, 255, 0.05); }
}

/* ---------------------------------------------------------------------
   10. PROCESO — numbered steps
   --------------------------------------------------------------------- */
.process-list {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .process-list { grid-template-columns: repeat(3, 1fr); } }

.process-step {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--blue); background: var(--glass-2); }
.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue); /* fallback */
  margin-bottom: 12px;
}
.process-step h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--white); }
.process-step p { color: var(--dim); font-size: 0.93rem; margin: 0; }

/* ---------------------------------------------------------------------
   11. TECNOLOGÍAS — chips + marquee
   --------------------------------------------------------------------- */
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s;
}
.tech-chip:hover { border-color: var(--blue); transform: translateY(-2px); background: var(--glass-2); }
.tech-mark {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--m, var(--blue));
  flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--m, var(--blue)) 18%, transparent);
}

/* Marquee: two identical sets scroll left; the second is aria-hidden.
   Edges fade out via a mask so chips don't pop at the boundary. */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set {
  display: flex;
  gap: 12px;
  padding-right: 12px;    /* keep spacing consistent across the seam */
  flex: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   12. PROYECTOS
   --------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .projects-grid { grid-template-columns: repeat(4, 1fr); } }

.project-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.project-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
@media (max-width: 768px) {
  .project-card { backdrop-filter: none; background: rgba(255, 255, 255, 0.05); }
}

/* Device-screen "thumbnails" rendered purely with CSS/SVG */
.project-screen {
  position: relative;
  aspect-ratio: 5 / 4;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow: hidden;
}
.pscreen--food   { background: linear-gradient(150deg, #4fa3d1, #2b5a66); }
.pscreen--fin    { background: linear-gradient(150deg, #2b5a66, #21454f); }
.pscreen--health { background: linear-gradient(150deg, #4fa3d1, #d6503d); }
.pscreen--logi   { background: linear-gradient(150deg, #d6503d, #7c4a72); }

.pscreen-top { display: flex; gap: 5px; }
.pscreen-top span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); }

.pscreen-hero { height: 46px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); }
.pscreen-line { height: 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.45); }

.pscreen-cta {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
}

.pscreen-balance {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  margin: 4px 0;
}
.pscreen-balance small { font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; opacity: 0.9; }
.pscreen-bars { display: flex; align-items: flex-end; gap: 7px; height: 60px; margin-top: auto; }
.pscreen-bars i { flex: 1; height: var(--h, 50%); border-radius: 4px 4px 2px 2px; background: rgba(255, 255, 255, 0.9); }

.pscreen-pulse {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px;
  margin: 4px 0;
}
.pscreen-pulse svg { width: 100%; height: auto; display: block; }

/* CSS-only "map" — layered radial dots + a faint grid, image-free. */
.pscreen-map {
  position: relative;
  flex: 1;
  border-radius: 10px;
  margin: 4px 0;
  min-height: 70px;
  background-color: rgba(255, 255, 255, 0.12);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 80%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
  overflow: hidden;
}
.pscreen-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--white); transform: rotate(-45deg); }
.map-pin.a { top: 60%; left: 16%; }
.map-pin.b { top: 22%; right: 14%; background: #ffd3ca; }

.project-body { padding: 18px 20px 22px; }
.project-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.project-card h3 { font-size: 1.18rem; margin-bottom: 6px; color: var(--white); }
.project-body p { color: var(--dim); font-size: 0.92rem; margin: 0 0 8px; }
.project-result {
  margin: 12px 0 0 !important;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
/* Result badge — credible, specific metric per project */
.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #bfe6c9;
  background: rgba(95, 192, 138, 0.14);
  border: 1px solid rgba(95, 192, 138, 0.3);
  border-radius: 999px;
}

/* ---------------------------------------------------------------------
   13. POR QUÉ CAYDEEM — value list + stats
   --------------------------------------------------------------------- */
.why-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 920px) {
  .why-grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 5vw, 60px); }
}

.why-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list li div { font-size: 0.99rem; color: var(--dim); }
.why-list strong { color: var(--white); }
.why-list svg {
  flex: none;
  width: 28px; height: 28px;
  padding: 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), #6fc0e6);
  box-shadow: 0 10px 18px -10px rgba(79, 163, 209, 0.6);
}
/* checkmark stroke is inline #06181f (near-black) on the light blue box */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-card { background: var(--panel); padding: 30px 26px; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--white), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--white); /* fallback */
}
/* AA fix: stat labels were --mute (~4:1). Bumped to --dim-2. */
.stat-label { display: block; margin-top: 10px; font-size: 0.88rem; color: var(--dim-2); line-height: 1.45; }

/* ---------------------------------------------------------------------
   14. CONTACTO
   --------------------------------------------------------------------- */
.contact-center { max-width: 720px; margin: 0 auto; text-align: center; }
.contact-actions { margin-top: 30px; }

.contact-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-center .contact-chips { justify-content: center; }
.contact-chips a,
.chip-static {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dim);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.contact-chips a:hover { border-color: var(--blue); color: var(--white); transform: translateY(-2px); }
.chip-static { cursor: default; }
.chip-ic { display: inline-flex; color: var(--blue); }
.chip-ic svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------
   15. CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 55%, #1a3640 100%);
  color: var(--white);
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 163, 209, 0.45), transparent 68%);
  filter: blur(50px);
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  bottom: -180px; left: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 80, 61, 0.4), transparent 68%);
  filter: blur(54px);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(56px, 8vw, 92px);
}
.cta-inner h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; margin-bottom: 14px; color: var(--white); }
.cta-inner p { color: rgba(255, 255, 255, 0.9); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 52ch; margin: 0 auto 28px; }

/* ---------------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  background: #07100e;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr; }
}
.footer-brand img {
  height: 30px; width: auto;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: 10px;
  display: inline-block;
  box-sizing: content-box;
}
.footer-brand p { color: var(--dim-2); font-size: 0.94rem; max-width: 42ch; margin: 0; }

.footer-nav h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); margin-bottom: 14px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { font-size: 0.92rem; color: var(--dim-2); transition: color 0.2s; }
.footer-nav a:hover { color: var(--blue); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  /* AA fix: copyright/legal were --mute (~4:1). Now --dim-2. */
  color: var(--dim-2);
}
.footer-bottom p { margin: 0; }
.legal { color: var(--dim-2); }

/* ---------------------------------------------------------------------
   17. BACK-TO-TOP
   --------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 90;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06181f;
  background: var(--grad-blue);
  border: none;
  border-radius: 50%;
  box-shadow: 0 14px 30px -10px rgba(79, 163, 209, 0.7);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top svg { width: 22px; height: 22px; }
.to-top[hidden] { display: none; }     /* keep [hidden] authoritative until JS un-hides */
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(79, 163, 209, 0.85); }

/* ---------------------------------------------------------------------
   18. SCROLL-REVEAL
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition-delay: var(--reveal-delay, 0s);
}

/* ---------------------------------------------------------------------
   19. REDUCED MOTION
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .device, .code-card, .float-badge, .eyebrow .dot { animation: none !important; }
  .marquee-track { animation: none !important; }   /* stop the auto-scroll */
}
