/* ============================================================
   Medisoft — Premium brand theme
   Silver / Chrome + Electric Blue + Warm Amber on dark + light contrast
   Inspired by the Medisoft silver-on-black logo aesthetic
   ============================================================ */

:root {
  /* Dark base layers — medium dark, breathable */
  --bg-0: #181c26;
  --bg-1: #1f2430;
  --bg-2: #272d3c;
  --bg-3: #2f3648;
  --bg-elev: #373e52;

  /* Light contrast layers (for break-up sections) */
  --light-0: #f5f3ee;   /* warm paper */
  --light-1: #faf8f3;
  --light-2: #eae6dc;
  --ink-0: #0a0b10;
  --ink-1: #1f242f;
  --ink-2: #4a5060;

  /* Hairline borders — more visible for clearer separation */
  --line:        rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-vivid:  rgba(255, 255, 255, 0.24);
  --line-dark:   rgba(10, 11, 16, 0.10);
  --line-dark-strong: rgba(10, 11, 16, 0.18);

  /* Text scale on dark — slightly brighter for better readability on lifted dark */
  --text-0: #ffffff;
  --text-1: #ebedf2;
  --text-2: #b0b5c0;
  --text-3: #767c88;
  --text-4: #4a4f5b;

  /* Text scale on light */
  --light-text-0: #0a0b10;
  --light-text-1: #1f242f;
  --light-text-2: #555b69;
  --light-text-3: #898f9b;

  /* Brand silver — chrome gradient */
  --silver-0: #ffffff;
  --silver-1: #e8ebf0;
  --silver-2: #c8ccd4;
  --silver-3: #8c919b;
  --silver-4: #5a5f68;

  /* Brand accents */
  --blue:      #3b82f6;
  --blue-soft: #60a5fa;
  --blue-deep: #1e40af;

  --amber:      #f59e0b;
  --amber-soft: #fbbf24;
  --amber-deep: #b45309;
}

* { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
html { scroll-behavior: auto; }

body {
  background: var(--bg-0);
  color: var(--text-1);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  /* Disable horizontal swipe / pinch-zoom on touch devices.
     Only vertical scrolling is allowed. */
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  overscroll-behavior-x: none;
  /* Block iOS Safari double-tap zoom */
  -webkit-touch-callout: none;
}
html {
  overflow-x: hidden;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  overscroll-behavior-x: none;
}

/* Allow inner scrollable containers (e.g. mock-tabs strip) to still pan horizontally
   when the user explicitly scrolls them */
.mock-tabs,
[data-allow-x-scroll] {
  touch-action: pan-x pan-y !important;
}

/* Defensive overflow containment — prevent any child from causing horizontal scroll */
section, header, footer, main, .hero-mock, .mock, .max-w-7xl, .max-w-8xl, .max-w-6xl, .max-w-5xl, .max-w-4xl {
  max-width: 100%;
}

/* Reduce visual chrome on cards nested inside .mock (dashboard demo)
   so they feel like sections of one panel, not "cards inside cards" */
.mock .surface {
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  min-width: 0;
}
.mock .surface.tone-blue,
.mock .surface.tone-amber,
.mock .surface.tone-silver { box-shadow: none; }

/* Grid containment — ensure grid items can shrink below their content's intrinsic width.
   Prevents text labels from forcing parents wider than the viewport. */
.grid > * { min-width: 0; }
.demo-picker-card,
.gallery-item,
.social-card,
.web-service { min-width: 0; max-width: 100%; }
/* Long words break gracefully on tiny viewports */
@media (max-width: 480px) {
  h1, h2, h3, h4, p, li, span { overflow-wrap: anywhere; word-break: normal; }
}

/* Lenis */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ============================================================
   Typography
   ============================================================ */
.font-display {
  font-family: 'Fraunces', 'Georgia', serif;
  font-weight: 360;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
  letter-spacing: -0.025em;
}
.italic-display {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}

.text-silver {
  background: linear-gradient(180deg, #ffffff 0%, #d8dae2 45%, #8c919b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-chrome {
  background: linear-gradient(135deg, #ffffff 0%, #c8ccd4 30%, #ffffff 50%, #8c919b 80%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Solid premium accent colors for blue/amber, brand keeps subtle white→blue gradient on "personalizado" */
.text-gradient-blue  { color: #60a5fa; -webkit-text-fill-color: #60a5fa; background: none; }
.text-gradient-amber { color: #fbbf24; -webkit-text-fill-color: #fbbf24; background: none; }
.text-gradient-brand {
  background: linear-gradient(120deg, #ffffff 0%, #c8ccd4 35%, #60a5fa 70%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Section base classes
   ============================================================ */
.section-dark { background: var(--bg-0); color: var(--text-1); }
.section-darker { background: var(--bg-1); color: var(--text-1); }
.section-elev {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  color: var(--text-1);
}

/* Light section — contrast break */
.section-light {
  background: var(--light-0);
  color: var(--ink-0);
  position: relative;
}
.section-light .text-silver { background: linear-gradient(180deg, #0a0b10 0%, #4a5060 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-light .text-text-1 { color: var(--light-text-1) !important; }
.section-light .text-text-2 { color: var(--light-text-2) !important; }
.section-light .text-text-3 { color: var(--light-text-3) !important; }
.section-light .text-text-0 { color: var(--light-text-0) !important; }
.section-light .chip {
  background: rgba(10, 11, 16, 0.04);
  border-color: var(--line-dark);
  color: var(--ink-1);
}
.section-light .chip-vivid {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(245, 158, 11, 0.06));
  border-color: rgba(59, 130, 246, 0.25);
  color: var(--ink-0);
}
.section-light .surface {
  background: #ffffff;
  border-color: var(--line-dark);
  box-shadow: 0 1px 2px rgba(10, 11, 16, 0.03), 0 8px 24px -8px rgba(10, 11, 16, 0.08);
}
.section-light .surface-hover:hover {
  border-color: var(--line-dark-strong);
  box-shadow: 0 1px 2px rgba(10, 11, 16, 0.03), 0 16px 40px -8px rgba(10, 11, 16, 0.15);
}
.section-light .icon-tile { border-color: var(--line-dark); }

/* ============================================================
   Ambient backgrounds — per-page theme variations for differentiation
   ============================================================ */
.mesh-hero {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(59, 130, 246, 0.26) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 80% 15%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 85%, rgba(245, 158, 11, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 90% 70%, rgba(96, 165, 250, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

/* Inicio — balance blue+amber+silver (default) */
body.theme-inicio .mesh-hero {
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(59, 130, 246, 0.26) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 80% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 85%, rgba(245, 158, 11, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 90% 70%, rgba(96, 165, 250, 0.14) 0%, transparent 60%);
}

/* Soluciones — amber dominante (energía, propuesta de valor) */
body.theme-soluciones .mesh-hero {
  background:
    radial-gradient(ellipse 70% 55% at 25% 18%, rgba(245, 158, 11, 0.32) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 85% 18%, rgba(251, 191, 36, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 85%, rgba(59, 130, 246, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 55% at 95% 75%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
}

/* Proyectos — azul dominante (profesional, resultados) */
body.theme-proyectos .mesh-hero {
  background:
    radial-gradient(ellipse 70% 55% at 18% 22%, rgba(59, 130, 246, 0.34) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 80% 18%, rgba(96, 165, 250, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 88%, rgba(232, 234, 239, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 95% 70%, rgba(245, 158, 11, 0.10) 0%, transparent 60%);
}

/* Demos — silver + violeta sutil (creativo, prototipo) */
body.theme-demos .mesh-hero {
  background:
    radial-gradient(ellipse 65% 55% at 22% 20%, rgba(232, 234, 239, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 80% 22%, rgba(96, 165, 250, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 85%, rgba(139, 107, 255, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 92% 78%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
}

/* Proceso — ámbar + plata cálida (camino, calidez del proceso) */
body.theme-proceso .mesh-hero {
  background:
    radial-gradient(ellipse 65% 55% at 25% 20%, rgba(245, 158, 11, 0.26) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 78% 20%, rgba(232, 234, 239, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 88%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 95% 72%, rgba(251, 191, 36, 0.16) 0%, transparent 60%);
}

/* Contacto — azul intenso (confianza, claridad) */
body.theme-contacto .mesh-hero {
  background:
    radial-gradient(ellipse 75% 60% at 20% 18%, rgba(59, 130, 246, 0.38) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 82% 22%, rgba(96, 165, 250, 0.26) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 88%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 95% 72%, rgba(245, 158, 11, 0.10) 0%, transparent 60%);
}

/* Subtle differentiator on the page-hero chip per theme */
body.theme-soluciones .chip-vivid::before { background: linear-gradient(135deg, var(--amber), var(--amber-soft)); box-shadow: 0 0 10px rgba(245, 158, 11, 0.8); }
body.theme-proyectos .chip-vivid::before { background: linear-gradient(135deg, var(--blue), var(--blue-soft)); box-shadow: 0 0 10px rgba(59, 130, 246, 0.8); }
body.theme-demos .chip-vivid::before { background: linear-gradient(135deg, #ffffff, var(--silver-2)); box-shadow: 0 0 10px rgba(232, 234, 239, 0.8); }
body.theme-proceso .chip-vivid::before { background: linear-gradient(135deg, var(--amber-soft), var(--blue-soft)); box-shadow: 0 0 10px rgba(251, 191, 36, 0.8); }
body.theme-contacto .chip-vivid::before { background: linear-gradient(135deg, var(--blue-soft), var(--blue)); box-shadow: 0 0 12px rgba(96, 165, 250, 0.9); }

.mesh-cool {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.14), transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.07), transparent 50%);
  pointer-events: none;
}

.mesh-warm {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.14), transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.12), transparent 45%);
  pointer-events: none;
}

.mesh-silver {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.09), transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
}
.bg-grid-fine {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
.section-light .bg-grid {
  background-image:
    linear-gradient(rgba(10, 11, 16, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 11, 16, 0.05) 1px, transparent 1px);
}
.section-light .bg-grid-fine {
  background-image:
    linear-gradient(rgba(10, 11, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 11, 16, 0.035) 1px, transparent 1px);
}

.radial-fade {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 50%, transparent 85%);
          mask-image: radial-gradient(ellipse at center, #000 0%, #000 50%, transparent 85%);
}
.fade-bottom {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

/* ============================================================
   Logo watermarks and brand displays
   ============================================================ */
.logo-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.05;
  filter: grayscale(1) brightness(1.3);
  z-index: 0;
}
.logo-watermark.center-bg {
  top: 50%; left: 50%;
  width: clamp(420px, 80%, 900px);
  transform: translate(-50%, -50%);
}

.brand-mark {
  position: relative;
  display: inline-block;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.55), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.brand-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.brand-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand-bar .mark {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: #000;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}
.brand-bar .mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-bar .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
}
.section-light .brand-bar { background: rgba(10, 11, 16, 0.04); border-color: var(--line-dark); }
.section-light .brand-bar .label { color: var(--ink-1); }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #c8ccd4 100%);
  color: #0a0b10;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 4px 14px -2px rgba(0, 0, 0, 0.6),
    0 10px 40px -10px rgba(59, 130, 246, 0.35);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 8px 20px -4px rgba(0, 0, 0, 0.7),
    0 18px 48px -10px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.50);
  transform: translateY(-1px);
}
.section-light .btn-secondary {
  background: rgba(10, 11, 16, 0.04);
  border-color: rgba(10, 11, 16, 0.22);
  color: #0a0b10;
}
.section-light .btn-secondary:hover {
  background: rgba(10, 11, 16, 0.08);
  border-color: rgba(10, 11, 16, 0.40);
}
.section-light .btn-secondary:hover {
  background: rgba(10, 11, 16, 0.06);
}

.btn-vivid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  /* Multi-stop gradient that includes amber at the right.
     We hide the amber side off-canvas using background-size + position,
     and slide it into view on hover. */
  background: linear-gradient(90deg,
    #3b82f6 0%,
    #60a5fa 30%,
    #60a5fa 50%,
    #fbbf24 80%,
    #f59e0b 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #ffffff;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 8px 24px -4px rgba(59, 130, 246, 0.55);
  transition: background-position .55s cubic-bezier(.2,.7,.2,1),
              transform .25s ease,
              box-shadow .35s ease;
}
.btn-vivid:hover {
  /* Slide the gradient so the amber side reveals on the right */
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32) inset,
    0 10px 26px -4px rgba(59, 130, 246, 0.45),
    0 14px 34px -6px rgba(245, 158, 11, 0.5);
}
/* Hero primary CTA gets slightly bigger size and stronger presence */
.btn-vivid-primary {
  padding: 15px 26px;
  font-size: 15.5px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  transition: gap .2s ease, color .2s ease;
}
.btn-link:hover { gap: 10px; color: var(--blue-soft); }
.section-light .btn-link { color: var(--ink-1); }
.section-light .btn-link:hover { color: var(--blue); }

/* ============================================================
   Chips & badges
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text-1);
  font-size: 12.5px;
  letter-spacing: -0.005em;
  font-weight: 500;
}
.chip-vivid {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(245, 158, 11, 0.06));
  border-color: rgba(59, 130, 246, 0.30);
  color: var(--text-0);
}
.chip-vivid::before {
  content: '';
  width: 6px; height: 6px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--amber));
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}
.chip-brand {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--line-strong);
  padding-left: 4px;
}
.chip-brand .mark {
  width: 20px; height: 20px; border-radius: 999px;
  background: #000; overflow: hidden;
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chip-brand .mark img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-live { background: rgba(245, 158, 11, 0.10); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.30); }
.badge-dev  { background: rgba(96, 165, 250, 0.10); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.30); }
.badge-soon { background: rgba(232, 234, 239, 0.05); color: #c8ccd4; border: 1px solid rgba(232, 234, 239, 0.20); }

.section-light .badge-live { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.35); }
.section-light .badge-dev  { background: rgba(59, 130, 246, 0.12); color: #1e40af; border-color: rgba(59, 130, 246, 0.30); }
.section-light .badge-soon { background: rgba(10, 11, 16, 0.06); color: #4a5060; border-color: rgba(10, 11, 16, 0.18); }

/* ============================================================
   Surfaces — lifted dark with clear elevation
   ============================================================ */
.surface {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 30px -8px rgba(0, 0, 0, 0.35);
}

.surface-hover {
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease,
              border-color .35s ease,
              background .35s ease;
}
.surface-hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.035) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 16px 40px -10px rgba(0, 0, 0, 0.55);
}

.card-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%),
              rgba(59, 130, 246, 0.18), transparent 40%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card-glow:hover::after { opacity: 1; }

/* tone-* now only uses brand colors: silver, blue, amber */
.tone-silver { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 30px -8px rgba(0, 0, 0, 0.4), 0 0 24px -6px rgba(232, 234, 239, 0.10); }
.tone-silver.surface-hover:hover { border-color: rgba(232, 234, 239, 0.25); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 40px -8px rgba(232, 234, 239, 0.20); }
.tone-silver.card-glow::after { background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(232, 234, 239, 0.14), transparent 40%); }

.tone-blue   { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 30px -8px rgba(0, 0, 0, 0.4), 0 0 24px -6px rgba(59, 130, 246, 0.22); }
.tone-blue.surface-hover:hover   { border-color: rgba(59, 130, 246, 0.40); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 44px -8px rgba(59, 130, 246, 0.40); }
.tone-blue.card-glow::after   { background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, 0.24), transparent 40%); }

.tone-amber  { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 30px -8px rgba(0, 0, 0, 0.4), 0 0 24px -6px rgba(245, 158, 11, 0.20); }
.tone-amber.surface-hover:hover  { border-color: rgba(245, 158, 11, 0.40); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 16px 40px -10px rgba(0, 0, 0, 0.6), 0 0 44px -8px rgba(245, 158, 11, 0.40); }
.tone-amber.card-glow::after  { background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 158, 11, 0.22), transparent 40%); }

/* Light-section surface tones */
.section-light .tone-silver { background: linear-gradient(165deg, #ffffff, #f5f3ee); border-color: var(--line-dark); }
.section-light .tone-blue   { background: linear-gradient(165deg, #ffffff, #eef4ff); border-color: rgba(59, 130, 246, 0.25); }
.section-light .tone-amber  { background: linear-gradient(165deg, #ffffff, #fff5e0); border-color: rgba(245, 158, 11, 0.30); }

/* Icon tiles */
.icon-tile {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.icon-tile-silver { background: linear-gradient(135deg, #ffffff, #c8ccd4); color: #0a0b10; border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 18px -4px rgba(232, 234, 239, 0.35); }
.icon-tile-blue   { background: linear-gradient(135deg, rgba(59, 130, 246, 0.30), rgba(59, 130, 246, 0.10)); color: #93c5fd; border-color: rgba(59, 130, 246, 0.40); box-shadow: 0 0 18px -4px rgba(59, 130, 246, 0.45); }
.icon-tile-amber  { background: linear-gradient(135deg, rgba(245, 158, 11, 0.30), rgba(245, 158, 11, 0.10)); color: #fbbf24; border-color: rgba(245, 158, 11, 0.40); box-shadow: 0 0 18px -4px rgba(245, 158, 11, 0.45); }
.icon-tile-ink    { background: linear-gradient(135deg, #232838, #131620); color: #c8ccd4; border-color: rgba(255, 255, 255, 0.1); }

.section-light .icon-tile-silver { background: linear-gradient(135deg, #1f242f, #0a0b10); color: #ffffff; border-color: rgba(10, 11, 16, 0.5); }
.section-light .icon-tile-blue   { background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.06)); color: #1e40af; border-color: rgba(59, 130, 246, 0.30); }
.section-light .icon-tile-amber  { background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.06)); color: #b45309; border-color: rgba(245, 158, 11, 0.35); }

/* ============================================================
   Navbar — keeps brand-forward presence
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .3s ease;
}
.navbar.scrolled { padding: 10px 0; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(8, 9, 13, 0);
  border: 1px solid transparent;
  transition: all .3s ease;
}
.navbar.scrolled .nav-inner {
  background: rgba(8, 9, 13, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.nav-link {
  position: relative;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--text-0); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
  opacity: 0;
  transition: opacity .2s ease;
}
.nav-link.is-active { color: var(--text-0); }
.nav-link.is-active::after { opacity: 1; }

/* Logo mark — bigger, more present */
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #000;
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  box-shadow:
    0 0 22px -4px rgba(59, 130, 246, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(59, 130, 246, 0.6), rgba(255, 255, 255, 0.4), rgba(245, 158, 11, 0.5), rgba(59, 130, 246, 0.6));
  filter: blur(8px);
  opacity: 0;
  z-index: -1;
  transition: opacity .4s ease;
}
.logo-mark:hover::after { opacity: 0.8; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }

.logo-mark.lg { width: 56px; height: 56px; border-radius: 16px; }
.logo-mark.xl { width: 88px; height: 88px; border-radius: 22px; }
.logo-mark.xxl { width: 128px; height: 128px; border-radius: 30px; }

/* ============================================================
   Hero dashboard mockup
   ============================================================ */
.mock {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #232838 0%, #181c26 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -20px rgba(59, 130, 246, 0.4);
  overflow: hidden;
}
.mock-window-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.mock-window-bar .dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

/* Mock tabs wrapper — handles horizontal scroll on small screens */
.mock-tabs-wrap {
  position: relative;
  margin-left: 14px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
}
.mock-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(28, 32, 44, 0.85) 70%, rgba(28, 32, 44, 0.95) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 0 10px 10px 0;
}
.mock-tabs-wrap.has-overflow::after { opacity: 1; }
.mock-tabs-scroll-hint {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #f59e0b);
  color: #ffffff;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.5);
  animation: tabHintNudge 1.6s ease-in-out infinite;
}
.mock-tabs-scroll-hint i { width: 12px; height: 12px; }
.mock-tabs-wrap.has-overflow .mock-tabs-scroll-hint { display: flex; }
.mock-tabs-wrap.tabs-touched .mock-tabs-scroll-hint { display: none; }
@keyframes tabHintNudge {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(3px); }
}

/* Mock tabs (Panel / Reportes / etc) — horizontally scrollable */
.mock-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}
.mock-tabs::-webkit-scrollbar { display: none; }
/* Subtle pulsing halo on the tabs wrapper (no overflow conflict) */
.mock-tabs-wrap::before {
  content: '';
  position: absolute;
  inset: -3px -8px;
  border-radius: 14px;
  background: radial-gradient(ellipse at center, rgba(251, 191, 36, 0.22) 0%, rgba(96, 165, 250, 0.14) 50%, transparent 78%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  animation: tabsGlow 2.6s ease-in-out infinite;
}
.mock-tabs-wrap.tabs-touched::before { animation: none; opacity: 0; transition: opacity .5s; }
@keyframes tabsGlow {
  0%, 100% { opacity: 0.4; transform: scale(0.96); }
  50% { opacity: 0.75; transform: scale(1.04); }
}

.mock-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 10.5px;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.mock-tab i { width: 11px; height: 11px; }
.mock-tab:hover {
  color: var(--text-0);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}
.mock-tab.is-active {
  color: #0a0b10;
  background: linear-gradient(180deg, #ffffff, #d8dae2);
  box-shadow: 0 2px 8px -2px rgba(255, 255, 255, 0.2);
}
/* Pulse dot on inactive tabs (subtle hint) */
.mock-tab:not(.is-active)::after {
  content: '';
  position: absolute;
  top: 3px; right: 4px;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--blue-soft);
  box-shadow: 0 0 6px var(--blue-soft);
  animation: tabDotPulse 2s ease-in-out infinite;
  opacity: 0.85;
}
.mock-tabs.tabs-touched .mock-tab::after { display: none; }
@keyframes tabDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.4); opacity: 1; }
}

.mock-interaction-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(90deg, rgba(30, 64, 175, 0.98), rgba(37, 99, 235, 0.98) 48%, rgba(180, 83, 9, 0.96));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.24) inset,
    0 18px 40px -22px rgba(59, 130, 246, 1);
  transition: opacity 0.35s ease, transform 0.35s ease, min-height 0.35s ease, padding 0.35s ease;
}
.mock-interaction-guide i,
.mock-interaction-guide svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #ffffff;
  filter: drop-shadow(0 1px 5px rgba(255, 255, 255, 0.34));
}
.mock-guide-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -10px rgba(255, 255, 255, 0.75);
}
.mock-guide-pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.62), 0 0 14px rgba(251, 191, 36, 0.9);
  animation: mockGuidePulse 1.7s ease-out infinite;
}
.mock-guide-arrow {
  width: 18px !important;
  height: 18px !important;
  margin-left: 2px;
  color: #fef3c7 !important;
  animation: mockGuideArrow 1.25s ease-in-out infinite;
}
.guide-mobile {
  display: none;
}
.mock.tabs-touched .mock-interaction-guide {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  overflow: hidden;
}
@keyframes mockGuidePulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.62), 0 0 14px rgba(251, 191, 36, 0.9); }
  70% { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0), 0 0 14px rgba(251, 191, 36, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0), 0 0 14px rgba(251, 191, 36, 0.9); }
}
@keyframes mockGuideArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 640px) {
  .mock-interaction-guide {
    justify-content: center;
    flex-wrap: wrap;
    min-height: 54px;
    padding: 10px 12px;
    gap: 7px;
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
  }
  .mock-guide-label {
    font-size: 9px;
    padding: 4px 7px;
  }
  .guide-desktop {
    display: none;
  }
  .guide-mobile {
    display: inline;
    font-weight: 900;
  }
  .mock-guide-arrow {
    margin-left: auto;
  }
}

/* ============================================================
   Demo Picker — sector selector (Hotel · Restaurante · Heladería · Constructora)
   Lives in normal flow above the dashboard mockups.
   ============================================================ */
.demo-picker {
  position: relative;
}
.demo-picker-header {
  text-align: center;
  margin-bottom: 16px;
  padding: 0 8px;
}
.demo-picker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.demo-picker-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.9), 0 0 0 0 rgba(251, 191, 36, 0.7);
  animation: pickerDotPulse 1.4s infinite;
}
@keyframes pickerDotPulse {
  0% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.9), 0 0 0 0 rgba(251, 191, 36, 0.6); }
  70% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.9), 0 0 0 10px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.9), 0 0 0 0 rgba(251, 191, 36, 0); }
}
.demo-picker-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin: 0 0 6px;
}
.demo-picker-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: #b0b5c0;
  max-width: 580px;
  margin: 0 auto;
}
.demo-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
@media (min-width: 768px) {
  .demo-picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

.demo-picker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.012) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  text-align: left;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  overflow: hidden;
  isolation: isolate;
  color: inherit;
}
.demo-picker-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
  pointer-events: none;
}
.demo-picker-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.55); }
.demo-picker-card:hover::before { opacity: 0.5; }
.demo-picker-card.is-active::before { opacity: 0.85; }
.demo-picker-card.is-active {
  border-color: rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Per-sector accent glow */
.demo-picker--hotel::before { background: radial-gradient(circle at 30% 30%, #3b82f6 0%, transparent 60%); }
.demo-picker--restaurante::before { background: radial-gradient(circle at 30% 30%, #f59e0b 0%, transparent 60%); }
.demo-picker--heladeria::before { background: radial-gradient(circle at 30% 30%, #ec4899 0%, transparent 60%); }
.demo-picker--constructora::before { background: radial-gradient(circle at 30% 30%, #94a3b8 0%, transparent 60%); }

.demo-picker-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  margin-bottom: 6px;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.demo-picker-card:hover .demo-picker-card-icon,
.demo-picker-card.is-active .demo-picker-card-icon { transform: scale(1.06); }
.demo-picker-card-icon i, .demo-picker-card-icon svg { width: 22px; height: 22px; }
.demo-picker--hotel .demo-picker-card-icon { background: linear-gradient(135deg, #1e40af, #3b82f6); border-color: rgba(96, 165, 250, 0.4); box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.5); }
.demo-picker--restaurante .demo-picker-card-icon { background: linear-gradient(135deg, #b45309, #f59e0b); border-color: rgba(251, 191, 36, 0.4); box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.5); }
.demo-picker--heladeria .demo-picker-card-icon { background: linear-gradient(135deg, #be185d, #ec4899); border-color: rgba(244, 114, 182, 0.4); box-shadow: 0 8px 24px -8px rgba(236, 72, 153, 0.5); }
.demo-picker--constructora .demo-picker-card-icon { background: linear-gradient(135deg, #475569, #94a3b8); border-color: rgba(148, 163, 184, 0.4); box-shadow: 0 8px 24px -8px rgba(148, 163, 184, 0.5); }

.demo-picker-card-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.1;
}
.demo-picker-card-meta {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #767c88;
}
.demo-picker-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ebedf2;
  transition: gap 0.3s ease, color 0.3s ease;
}
.demo-picker-card-cta i, .demo-picker-card-cta svg { width: 13px; height: 13px; transition: transform 0.3s ease; }
.demo-picker-card:hover .demo-picker-card-cta,
.demo-picker-card.is-active .demo-picker-card-cta { gap: 8px; color: #ffffff; }
.demo-picker-card.is-active .demo-picker-card-cta { color: #fbbf24; }
.demo-picker-card.is-active .demo-picker-card-cta i,
.demo-picker-card.is-active .demo-picker-card-cta svg { animation: ctaArrowNudge 1.4s ease-in-out infinite; }
@keyframes ctaArrowNudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, 2px); }
}

@media (max-width: 640px) {
  .demo-picker-card { padding: 14px 12px 12px; gap: 4px; border-radius: 14px; }
  .demo-picker-card-icon { width: 38px; height: 38px; border-radius: 10px; }
  .demo-picker-card-icon i, .demo-picker-card-icon svg { width: 18px; height: 18px; }
  .demo-picker-card-name { font-size: 14px; }
  .demo-picker-card-meta { font-size: 9.5px; letter-spacing: 0.16em; }
  .demo-picker-card-cta { font-size: 10.5px; margin-top: 4px; }
}

/* ============================================================
   Demo Callout — interactive indicator above the dashboard
   Lives in normal flow (NOT absolutely positioned) so it can
   never be clipped by overflow:hidden on parent sections.
   ============================================================ */
.demo-callout {
  position: relative;
}
.demo-callout-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 28px 16px;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(96, 165, 250, 0.55) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(245, 158, 11, 0.55) 0%, transparent 55%),
    linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #92400e 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 30px 80px -16px rgba(59, 130, 246, 0.55),
    0 18px 40px -10px rgba(245, 158, 11, 0.35),
    0 0 0 8px rgba(96, 165, 250, 0.10),
    0 0 40px 4px rgba(251, 191, 36, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  overflow: hidden;
  animation: calloutFloat 3.4s ease-in-out infinite;
  transform-origin: center bottom;
}
.demo-callout-shine {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: calloutShine 3.6s ease-in-out infinite;
  pointer-events: none;
}
.demo-callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.demo-callout-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7), 0 0 10px rgba(251, 191, 36, 0.9);
  animation: calloutDotPulse 1.4s infinite;
}
.demo-callout-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  margin: 0;
}
.demo-callout-cursor {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  animation: cursorPoint 1.2s ease-in-out infinite;
}
.demo-callout-cursor svg { width: 24px; height: 24px; }
.demo-callout-sub {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  max-width: 480px;
}
.demo-callout-sub strong {
  color: #ffffff;
  font-weight: 700;
}
.demo-callout-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 4px;
}
.demo-arrow {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.7));
  animation: demoArrowBounce 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.demo-arrow svg { width: 100%; height: 100%; }
.demo-arrow--d1 { animation-delay: 0.15s; color: #ffffff; }
.demo-arrow--d2 { animation-delay: 0.3s; color: #fbbf24; }

@keyframes calloutFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes calloutShine {
  0% { left: -40%; }
  60%, 100% { left: 120%; }
}
@keyframes calloutDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7), 0 0 10px rgba(251, 191, 36, 0.9); }
  70% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0), 0 0 10px rgba(251, 191, 36, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0), 0 0 10px rgba(251, 191, 36, 0.9); }
}
@keyframes cursorPoint {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(2px, -3px) rotate(4deg); }
}
@keyframes demoArrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(8px); opacity: 1; }
}

.demo-callout.is-hidden {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
  max-height: 0;
  margin: 0 !important;
  overflow: hidden;
}

@media (max-width: 640px) {
  .demo-callout-card { padding: 14px 18px 12px; gap: 6px; border-radius: 18px; }
  .demo-callout-title { font-size: 17px; gap: 7px; }
  .demo-callout-cursor { width: 22px; height: 22px; }
  .demo-callout-cursor svg { width: 18px; height: 18px; }
  .demo-callout-sub { font-size: 11.5px; }
  .demo-callout-arrows { gap: 24px; margin-top: 2px; }
  .demo-arrow { width: 20px; height: 20px; }
  .demo-callout-badge { font-size: 9.5px; letter-spacing: 0.18em; padding: 4px 10px; }
}


.mock-content { animation: mockFade .35s ease-out; }
@keyframes mockFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Web showcase (browser mockup for "we build websites" section)
   ============================================================ */
.browser-mock {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #232838 0%, #181c26 100%);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 30px 80px -20px rgba(0,0,0,0.7),
    0 0 60px -20px rgba(59,130,246,0.3);
  overflow: hidden;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.browser-bar .url-bar {
  flex: 1;
  margin: 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
  font-family: 'Manrope', sans-serif;
}
.browser-bar .url-bar i { width: 10px; height: 10px; color: #5fe3b6; }

.browser-content {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245,158,11,0.12), transparent 50%),
    linear-gradient(180deg, #1a1f2c 0%, #131620 100%);
  padding: 28px 24px;
}
.browser-content::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.live-preview-badge {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 9.5px;
  color: var(--text-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-preview-badge .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: pulse-dot 2s infinite;
}

/* Web service cards */
.web-service {
  position: relative;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.012) 100%);
  border: 1px solid var(--line);
  transition: all .35s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.web-service:hover {
  transform: translateY(-3px);
  border-color: var(--line-vivid);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.web-service .icon-bg {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(59,130,246,0.06));
  border: 1px solid rgba(59,130,246,0.30);
  color: #93c5fd;
}
.web-service.amber .icon-bg {
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(245,158,11,0.06));
  border-color: rgba(245,158,11,0.30);
  color: #fbbf24;
}
.web-service.silver .icon-bg {
  background: linear-gradient(135deg, rgba(232,234,239,0.18), rgba(232,234,239,0.06));
  border-color: rgba(232,234,239,0.25);
  color: #e8ebf0;
}

/* Stats bar (animated counter) */
.stat-counter {
  font-family: 'Fraunces', serif;
  font-weight: 360;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #d8dae2 50%, #8c919b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.floating-wa {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow:
    0 10px 30px -6px rgba(37, 211, 102, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
@media (max-width: 640px) {
  .floating-wa { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}
.floating-wa::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waPing 2.4s ease-out infinite;
}
@keyframes waPing {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.floating-wa svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.floating-wa:hover {
  transform: scale(1.08);
  box-shadow:
    0 16px 40px -8px rgba(37, 211, 102, 0.7),
    0 1px 0 rgba(255, 255, 255, 0.3) inset;
}
.floating-wa-label {
  position: absolute;
  right: 100%;
  margin-right: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0b10;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all .3s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.4);
}
.floating-wa-label::after {
  content: '';
  position: absolute;
  right: -5px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: #ffffff;
}
.floating-wa:hover .floating-wa-label { opacity: 1; transform: translateX(0); }

.bar-rise       { background: linear-gradient(180deg, #60a5fa 0%, rgba(96, 165, 250, 0.2) 100%); border-radius: 4px 4px 0 0; width: 100%; box-shadow: 0 -4px 12px -2px rgba(59, 130, 246, 0.5); }
.bar-rise.amber { background: linear-gradient(180deg, #fbbf24 0%, rgba(251, 191, 36, 0.2) 100%); box-shadow: 0 -4px 12px -2px rgba(245, 158, 11, 0.5); }
.bar-rise.silver{ background: linear-gradient(180deg, #ffffff 0%, rgba(232, 234, 239, 0.2) 100%); box-shadow: 0 -4px 12px -2px rgba(232, 234, 239, 0.4); }

.sparkline-path { stroke-width: 2; fill: none; filter: drop-shadow(0 1px 6px rgba(59, 130, 246, 0.55)); }

/* ============================================================
   Antes / Después
   ============================================================ */
.compare-card {
  border-radius: 22px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.compare-before {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.compare-after {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, transparent 100%);
  border: 1px solid rgba(59, 130, 246, 0.28);
}

/* ============================================================
   Timeline
   ============================================================ */
.timeline-wrap { position: relative; }
.timeline-rail {
  position: absolute;
  left: 32px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--line-strong) 12%, var(--line-strong) 88%, transparent 100%);
}
.timeline-rail-fill {
  position: absolute;
  left: 32px; top: 0;
  width: 1px;
  background: linear-gradient(180deg, #ffffff 0%, #60a5fa 50%, #f59e0b 100%);
  height: 0%;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}
.timeline-dot {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  z-index: 2;
  transition: all .3s ease;
}
.timeline-dot::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--text-3);
  transition: all .3s ease;
}
.timeline-step.is-active .timeline-dot { border-color: var(--blue-soft); }
.timeline-step.is-active .timeline-dot::after {
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
}

/* ============================================================
   Industry tiles
   ============================================================ */
.industry-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  transition: all .3s cubic-bezier(.2,.7,.2,1);
}
.industry-tile:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
  box-shadow: 0 12px 28px -10px rgba(59, 130, 246, 0.3);
}
.industry-tile .industry-icon { transition: color .25s ease; }
.industry-tile:hover .industry-icon { color: var(--blue-soft); }

.section-light .industry-tile {
  border-color: var(--line-dark);
  background: #ffffff;
}
.section-light .industry-tile:hover {
  border-color: rgba(59, 130, 246, 0.30);
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
  box-shadow: 0 12px 28px -10px rgba(59, 130, 246, 0.20);
}
.section-light .industry-tile .industry-icon { color: var(--ink-2); }
.section-light .industry-tile:hover .industry-icon { color: var(--blue); }

/* ============================================================
   Tabs
   ============================================================ */
.tab-btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid transparent;
  background: transparent;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text-0); background: rgba(255, 255, 255, 0.04); }
.tab-btn.is-active {
  color: #0a0b10;
  background: linear-gradient(180deg, #ffffff, #c8ccd4);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 22px -8px rgba(232, 234, 239, 0.4);
}
.section-light .tab-btn { color: var(--ink-2); }
.section-light .tab-btn:hover { color: var(--ink-0); background: rgba(10, 11, 16, 0.04); }

/* ============================================================
   Empresas (clients gallery)
   ============================================================ */
.empresa-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1f2430 0%, #131620 100%);
  transition: transform .4s cubic-bezier(.2,.7,.2,1),
              border-color .4s ease,
              box-shadow .4s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 8px 24px -8px rgba(0,0,0,0.4);
}
.empresa-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-vivid);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.10) inset,
    0 30px 60px -12px rgba(0, 0, 0, 0.7),
    0 0 60px -10px rgba(59, 130, 246, 0.30);
}
.section-light .empresa-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ee 100%);
  border-color: var(--line-dark);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 24px -8px rgba(10,11,16,0.10);
}
.section-light .empresa-card:hover {
  border-color: var(--line-dark-strong);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 60px -12px rgba(10, 11, 16, 0.20),
    0 0 50px -10px rgba(59, 130, 246, 0.16);
}

.empresa-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.empresa-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.empresa-card:hover .empresa-photo img { transform: scale(1.05); }

.empresa-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
}
.empresa-placeholder svg { width: 28%; height: auto; max-width: 110px; opacity: 0.40; }
.empresa-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.45;
}
.empresa-placeholder::after {
  content: '';
  position: absolute;
  width: 50%; max-width: 160px; aspect-ratio: 1;
  background-image: url("../images/isotipomedisfot.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.10;
  filter: grayscale(1) brightness(1.3);
  pointer-events: none;
}
.placeholder-blue   { background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.35), transparent 60%), linear-gradient(135deg, #0d1830, #050811); }
.placeholder-amber  { background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.30), transparent 60%), linear-gradient(135deg, #20170a, #0a0805); }
.placeholder-silver { background: radial-gradient(circle at 30% 30%, rgba(232, 234, 239, 0.22), transparent 60%), linear-gradient(135deg, #1a1e29, #0a0c12); }

.empresa-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 18px 18px;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(8, 9, 13, 0.5) 35%,
      rgba(8, 9, 13, 0.92) 75%,
      rgba(8, 9, 13, 0.98) 100%);
  z-index: 2;
}
.section-light .empresa-overlay {
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(10, 11, 16, 0.55) 35%,
      rgba(10, 11, 16, 0.94) 78%,
      rgba(10, 11, 16, 0.98) 100%);
}
.empresa-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 7px;
}
.empresa-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 19px;
  color: #ffffff;
  line-height: 1.12;
}
.empresa-sub {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}
.empresa-corner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  pointer-events: none;
}
.empresa-corner-brand {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  pointer-events: none;
}

/* Card-wide clickable overlay link */
.empresa-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  border-radius: inherit;
}
.empresa-card { cursor: pointer; }
.empresa-corner-brand .chip-brand {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px;
}
.section-light .empresa-corner-brand .chip-brand {
  background: rgba(10, 11, 16, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Mobile: better breathing room for empresas grid */
@media (max-width: 640px) {
  .empresa-card { aspect-ratio: 4 / 4.6; border-radius: 16px; }
  .empresa-title { font-size: 15px; }
  .empresa-sub { font-size: 10.5px; }
  .empresa-meta { font-size: 9px; letter-spacing: 0.12em; }
  .empresa-overlay { padding: 14px 12px 12px; }
  .empresa-corner-badge .badge { font-size: 9px; padding: 3px 6px; }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Reveal init states (animations are fast now)
   ============================================================ */
/* Reveal classes — kept as identity classes only. No scroll-triggered animation. */
.reveal-up    { opacity: 1; transform: none; }
.reveal-fade  { opacity: 1; }
.reveal-scale { opacity: 1; transform: none; }
[data-stagger-item] { opacity: 1; transform: none; }

@keyframes float-a { 0%,100%{transform:translateY(0)translateX(0)} 50%{transform:translateY(-10px)translateX(4px)} }
@keyframes float-b { 0%,100%{transform:translateY(0)translateX(0)} 50%{transform:translateY(8px)translateX(-3px)} }
.float-a { animation: float-a 7s ease-in-out infinite; }
.float-b { animation: float-b 9s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
}
.pulse-amber {
  background: var(--amber-soft);
  width: 7px; height: 7px; border-radius: 999px;
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-brand {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0.6; }
}
.brand-pulse-glow {
  animation: pulse-brand 4s ease-in-out infinite;
}

/* ============================================================
   Mobile menu — premium fullscreen
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(13, 16, 24, 0.92);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(245, 158, 11, 0.12) 0%, transparent 50%);
}

.mobile-menu-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 20px 8px;
}

.mobile-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.015);
  transition: all .25s ease;
  overflow: hidden;
}
.mobile-link:hover,
.mobile-link.is-active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(245, 158, 11, 0.06));
  border-color: rgba(59, 130, 246, 0.25);
}
.mobile-link.is-active::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 24px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #60a5fa, #fbbf24);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.7);
}
.mobile-link-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-2);
  flex-shrink: 0;
  transition: all .25s ease;
}
.mobile-link:hover .mobile-link-icon,
.mobile-link.is-active .mobile-link-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.06));
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}
.mobile-link-text {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-0);
  flex: 1;
}
.mobile-link-arrow {
  color: var(--text-3);
  transition: transform .25s ease, color .25s ease;
}
.mobile-link:hover .mobile-link-arrow,
.mobile-link.is-active .mobile-link-arrow {
  color: var(--text-0);
  transform: translateX(4px);
}

.mobile-menu-footer {
  position: relative;
  padding: 24px 20px 32px;
  margin-top: auto;
}
.mobile-menu-footer .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 4px 0 22px;
}
.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.mobile-menu-contact a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 0;
  transition: color .2s ease;
}
.mobile-menu-contact a:hover { color: var(--text-0); }
.mobile-menu-contact a i { color: var(--blue-soft); }

.mobile-menu-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mobile-menu-social a {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  transition: all .25s ease;
}
.mobile-menu-social a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-vivid);
  color: var(--text-0);
  transform: translateY(-2px);
}

/* ============================================================
   Page transitions
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  transform: translateY(100%);
}
.page-transition-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(245, 158, 11, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, #0a0b10 0%, #050507 100%);
}
.page-transition-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Michroma', 'Manrope', sans-serif;
  font-size: clamp(28px, 5.5vw, 64px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}
.page-transition-mark .pt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.page-transition-mark .pt-logo {
  width: clamp(70px, 11vw, 130px);
  height: clamp(70px, 11vw, 130px);
  border-radius: 24px;
  background: #000;
  display: grid; place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 60px rgba(59, 130, 246, 0.55),
    0 0 30px rgba(232, 234, 239, 0.25);
}
.page-transition-mark .pt-logo img { width: 100%; height: 100%; object-fit: cover; }
.page-transition-mark .pt-name {
  font-weight: 400;
  background: linear-gradient(180deg, #ffffff 0%, #c8ccd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.page-transition-mark .pt-sub {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(9px, 1.1vw, 12px);
  letter-spacing: 0.4em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
}

.page-body { opacity: 1; transition: opacity .3s ease; }
.page-body.is-leaving { opacity: 0; }

/* ============================================================
   Section dividers (brand-marked)
   ============================================================ */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.brand-divider {
  display: flex; align-items: center; gap: 14px;
  max-width: 720px; margin: 0 auto;
}
.brand-divider .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), var(--line-strong), transparent);
}
.brand-divider .mark {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: #000;
  overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
  flex-shrink: 0;
}
.brand-divider .mark img { width: 100%; height: 100%; object-fit: cover; }
.section-light .brand-divider .line { background: linear-gradient(90deg, transparent, var(--line-dark-strong), var(--line-dark-strong), transparent); }

/* ============================================================
   Custom scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 999px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }
::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }

/* ============================================================
   Page hero
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 48px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .page-hero { padding-top: 90px; padding-bottom: 32px; }
}

/* Giant footer wordmark */
.giant-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 360;
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-size: clamp(80px, 18vw, 280px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* Spotlight follower */
.spotlight-follow {
  position: relative;
}
.spotlight-follow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.18), transparent 45%);
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================================
   Form
   ============================================================ */
.field-label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 600;
}
/* ============================================================
   Form inputs — bulletproof text visibility on dark theme
   ============================================================ */
.field-input,
.field-textarea,
.field-select,
.field-input:hover,
.field-textarea:hover,
.field-select:hover,
.field-input:focus,
.field-textarea:focus,
.field-select:focus,
.field-input:active,
.field-textarea:active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

.field-input,
.field-textarea,
.field-select {
  width: 100%;
  background-color: #1a1f2c !important;
  background-image: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.4;
  caret-color: #60a5fa;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: rgba(176, 181, 192, 0.6) !important;
  -webkit-text-fill-color: rgba(176, 181, 192, 0.6) !important;
  font-weight: 400;
  opacity: 1;
}

.field-input:hover,
.field-textarea:hover,
.field-select:hover {
  border-color: var(--line-vivid);
  background-color: #1f2433 !important;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  background-color: #1f2433 !important;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.field-textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b0b5c0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px;
}
.field-select option { background: #1a1f2c; color: #ffffff; }

/* Autofill — overlay solid bg to defeat browser yellow tint */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px #1a1f2c inset !important;
  box-shadow: 0 0 0 1000px #1a1f2c inset !important;
  caret-color: #60a5fa !important;
  -webkit-transition: background-color 99999s ease-in-out 0s, color 99999s ease-in-out 0s !important;
  transition: background-color 99999s ease-in-out 0s, color 99999s ease-in-out 0s !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  font-family: 'Manrope', sans-serif !important;
}

details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }

/* ============================================================
   Brand display block (used inside cards/CTA)
   ============================================================ */
.brand-display {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-display .ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: none;
}
.brand-display .ring.r2 {
  inset: -22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.brand-display .ring.r3 {
  inset: -36px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

body.theme-inicio .brand-display .ring {
  border-color: rgba(96, 165, 250, 0.22);
}
body.theme-inicio .brand-display .ring.r2 {
  border-color: rgba(96, 165, 250, 0.14);
}
body.theme-inicio .brand-display .ring.r3 {
  border-color: rgba(96, 165, 250, 0.08);
}
body.theme-inicio .hero-brand-display {
  margin-top: -0.35rem;
}

@media (min-width: 1024px) {
  body.theme-inicio #inicio.hero {
    padding-top: 9.25rem !important;
    padding-bottom: 5rem !important;
  }

  body.theme-inicio #inicio .text-center {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  body.theme-inicio .hero-brand-display {
    margin-top: 0;
    margin-bottom: 2.35rem !important;
  }

  body.theme-inicio .hero-brand-display .logo-mark.xl {
    width: 104px;
    height: 104px;
    border-radius: 26px;
  }

  body.theme-inicio .hero-brand-display .ring {
    inset: -14px;
    border-width: 2px;
  }

  body.theme-inicio .hero-brand-display .ring.r2 {
    inset: -32px;
    border-width: 2px;
  }

  body.theme-inicio .hero-brand-display .ring.r3 {
    inset: -52px;
    border-width: 2px;
  }

  body.theme-inicio .hero-title {
    max-width: 960px;
    margin-top: 2.25rem !important;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(82px, 7vw, 104px) !important;
    line-height: 0.96 !important;
    text-wrap: balance;
  }

  body.theme-inicio .hero-sub {
    max-width: 720px !important;
    margin-top: 2rem !important;
    font-size: 21px !important;
    line-height: 1.46 !important;
  }

  body.theme-inicio .hero-body {
    max-width: 760px !important;
    margin-top: 1.45rem !important;
    font-size: 16.5px !important;
    line-height: 1.75 !important;
  }

  body.theme-inicio .hero-cta {
    margin-top: 2.35rem !important;
    gap: 1rem !important;
  }

  body.theme-inicio .hero-cta .btn-vivid,
  body.theme-inicio .hero-cta .btn-secondary {
    min-height: 54px;
    padding-left: 28px;
    padding-right: 28px;
    font-size: 15.5px;
  }

  body.theme-inicio .hero-tagline {
    margin-top: 2.2rem !important;
  }

  body.theme-inicio .hero-mock {
    margin-top: 4.25rem !important;
  }

  body.theme-inicio .demo-picker {
    margin-bottom: 2.75rem !important;
  }
}

/* ============================================================
   Social pill (Facebook / Instagram / TikTok chips)
   ============================================================ */
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  color: #b0b5c0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.social-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.social-pill svg { flex-shrink: 0; }

/* ============================================================
   Social cards (homepage social section)
   ============================================================ */
.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
}
.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.6);
}
.social-card-glow {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  transition: opacity 0.45s ease;
  z-index: -1;
  pointer-events: none;
}
.social-card:hover .social-card-glow { opacity: 0.8; }
.social-card--fb .social-card-glow {
  background: radial-gradient(circle at 20% 30%, #1877F2 0%, transparent 60%);
}
.social-card--ig .social-card-glow {
  background: radial-gradient(circle at 70% 30%, #E1306C 0%, #F77737 35%, transparent 65%);
}
.social-card--tk .social-card-glow {
  background: radial-gradient(circle at 50% 30%, #25F4EE 0%, #FE2C55 50%, transparent 70%);
}

.social-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.social-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #ffffff;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.social-card:hover .social-card-icon { transform: scale(1.05); }
.social-card--fb .social-card-icon {
  background: linear-gradient(135deg, #1877F2 0%, #0a5dc2 100%);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 8px 24px -6px rgba(24, 119, 242, 0.55);
}
.social-card--ig .social-card-icon {
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
  border-color: rgba(247, 119, 55, 0.45);
  box-shadow: 0 8px 24px -6px rgba(225, 48, 108, 0.55);
}
.social-card--tk .social-card-icon {
  background: linear-gradient(135deg, #25F4EE 0%, #000000 50%, #FE2C55 100%);
  border-color: rgba(254, 44, 85, 0.45);
  box-shadow: 0 8px 24px -6px rgba(254, 44, 85, 0.55);
}
.social-card-icon svg { color: #ffffff; }

.social-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.social-card-platform {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #767c88;
}
.social-card-handle {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  font-family: 'Fraunces', Georgia, serif;
}
.social-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #b0b5c0;
}
.social-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ebedf2;
  transition: gap 0.3s ease, color 0.3s ease;
}
.social-card:hover .social-card-cta { gap: 10px; color: #ffffff; }
.social-card-cta i { transition: transform 0.3s ease; }

@media (max-width: 640px) {
  .social-card { padding: 22px; }
  .social-card-handle { font-size: 20px; }
}

/* ============================================================
   Customization cards (Tu sistema, tu negocio section)
   ============================================================ */
.custom-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.012) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.custom-card-preview { min-width: 0; }
.custom-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 28px 60px -22px rgba(0,0,0,0.55);
}
.custom-card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  color: #fff;
}
.custom-card-icon i, .custom-card-icon svg { width: 24px; height: 24px; }
.custom-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
}
.custom-card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #b0b5c0;
}
.custom-card-preview {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Mini browser-window preview inside the first custom card */
.preview-window {
  position: relative;
  border-radius: 12px;
  background: #1a1f2c;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding-top: 8px;
}
.preview-window .preview-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  margin-left: 5px;
}
.preview-window .preview-dot:first-of-type { margin-left: 10px; }
.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-top: 4px;
}
.preview-logo-slot {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1.5px dashed rgba(96,165,250,0.4);
  font-size: 9.5px;
  font-weight: 600;
  color: #60a5fa;
}
.preview-logo-slot i, .preview-logo-slot svg { width: 12px; height: 12px; }
.preview-business-name {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}
.preview-content { padding: 12px 12px 14px; }
.preview-line {
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 6px;
  width: 80%;
}
.preview-line-strong { background: rgba(96,165,250,0.4); width: 60%; height: 8px; }
.preview-line:last-child { width: 50%; }

/* Color swatches preview */
.color-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.swatch {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 10px;
  display: grid;
  place-items: end;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,0.4);
  overflow: hidden;
}
.swatch span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  text-transform: uppercase;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swatch-yours {
  background: rgba(255,255,255,0.04);
  border: 1.5px dashed rgba(251,191,36,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fbbf24;
}
.swatch-yours i, .swatch-yours svg { width: 14px; height: 14px; }
.swatch-yours span { color: #fbbf24; text-shadow: none; }

/* Language translation list */
.language-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.language-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  min-width: 0;
}
.lang-from {
  font-size: 12px;
  color: #767c88;
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-to {
  font-size: 12.5px;
  font-weight: 700;
  color: #fbbf24;
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Phone mockup (PWA section)
   ============================================================ */
.phone-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.phone-1 { transform: rotate(-3deg); }
.phone-2 { transform: rotate(3deg) translateY(20px); }
.phone-frame {
  position: relative;
  width: 230px;
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  background: linear-gradient(165deg, #1f242f 0%, #0a0b10 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px;
  box-shadow:
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    inset 0 2px 4px rgba(255,255,255,0.06);
}
.phone-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(96,165,250,0.3), rgba(245,158,11,0.3));
  filter: blur(20px);
  z-index: -1;
  opacity: 0.5;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0a0b10;
  border-radius: 999px;
  z-index: 10;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
}
.phone-home {
  background:
    radial-gradient(ellipse at top, rgba(96,165,250,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(245,158,11,0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0c1226 0%, #1a1426 100%);
  padding: 36px 16px 14px;
  display: flex;
  flex-direction: column;
}
.phone-status-bar {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.phone-time {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}
.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
}
.phone-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  flex: 1;
  min-width: 0;
}
.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.app-bg {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.app-bg i, .app-bg svg { width: 22px; height: 22px; }
.app-icon span:not(.app-bg-label):not(.app-icon-pulse) {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-align: center;
  line-height: 1;
}
.app-icon-dim .app-bg { opacity: 0.35; }
.app-icon-highlight .app-bg-highlight {
  background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(251,191,36,0.18));
  border: 1.5px dashed rgba(251,191,36,0.6);
  animation: appIconPulse 2s ease-in-out infinite;
}
.app-icon-highlight .app-bg-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.app-icon-highlight .app-bg-inner i,
.app-icon-highlight .app-bg-inner svg { width: 14px; height: 14px; color: #fbbf24; }
.app-bg-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fbbf24 !important;
  text-transform: uppercase;
}
.app-icon-highlight span:last-child {
  color: #fbbf24 !important;
  font-weight: 700;
}
.app-icon-pulse {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251,191,36,0.7), 0 0 12px rgba(251,191,36,0.9);
  animation: appIconBadgePulse 1.4s infinite;
}
@keyframes appIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0.4), inset 0 0 0 1.5px rgba(251,191,36,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(251,191,36,0), inset 0 0 0 1.5px rgba(251,191,36,0.9); }
}
@keyframes appIconBadgePulse {
  0% { box-shadow: 0 0 0 0 rgba(251,191,36,0.7), 0 0 12px rgba(251,191,36,0.9); }
  70% { box-shadow: 0 0 0 8px rgba(251,191,36,0), 0 0 12px rgba(251,191,36,0.9); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36,0), 0 0 12px rgba(251,191,36,0.9); }
}
.phone-dock {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-width: 0;
}
.phone-dock .app-icon { gap: 0; }

/* Phone 2 — Tu sistema abierto (placeholder for screenshot) */
.phone-app {
  background: linear-gradient(180deg, #1a1f2c 0%, #0a0b10 100%);
  padding: 36px 0 0;
  display: flex;
  flex-direction: column;
}
.phone-app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.phone-app-logo-slot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(96,165,250,0.12);
  border: 1.5px dashed rgba(96,165,250,0.4);
  display: grid;
  place-items: center;
  color: #60a5fa;
  flex-shrink: 0;
}
.phone-app-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}
.phone-image-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.04) 10px, rgba(255,255,255,0.04) 20px);
  color: #767c88;
  margin: 10px;
  border-radius: 12px;
  border: 1.5px dashed rgba(255,255,255,0.12);
}

.phone-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b0b5c0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .phone-frame { width: 200px; }
  .phone-stage { gap: 12px; }
  .phone-1, .phone-2 { transform: none; }
}

/* ============================================================
   Gallery placeholder (real client screenshots)
   ============================================================ */
.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.012) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 28px 60px -22px rgba(0,0,0,0.55);
}
.gallery-image-slot {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border: 1.5px dashed rgba(255,255,255,0.14);
}
.gallery-image-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02) 12px, rgba(255,255,255,0.04) 12px, rgba(255,255,255,0.04) 24px);
  z-index: 0;
}
/* Real image inside the slot — fills cleanly with no dashed border */
.gallery-image-slot.has-image {
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a0b10;
}
.gallery-image-slot.has-image::before { display: none; }
.gallery-image-slot.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover .gallery-image-slot.has-image img { transform: scale(1.04); }
/* Soft vignette overlay so captions/tags stay readable */
.gallery-image-slot.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 11, 16, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.gallery-image-slot > * { position: relative; z-index: 1; }
.gallery-image-slot i, .gallery-image-slot svg { color: rgba(255,255,255,0.5); }
.gallery-image-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.3;
}
.gallery-tone-blue { background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.18), rgba(255,255,255,0.02) 70%); }
.gallery-tone-amber { background: radial-gradient(circle at 20% 20%, rgba(245,158,11,0.18), rgba(255,255,255,0.02) 70%); }
.gallery-tone-pink { background: radial-gradient(circle at 20% 20%, rgba(236,72,153,0.18), rgba(255,255,255,0.02) 70%); }
.gallery-tone-silver { background: radial-gradient(circle at 20% 20%, rgba(148,163,184,0.18), rgba(255,255,255,0.02) 70%); }

.gallery-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px 4px;
}
.gallery-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.gallery-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.gallery-meta {
  font-size: 12px;
  color: #898f9b;
}

@media (max-width: 640px) {
  .gallery-item { padding: 10px; gap: 10px; }
  .gallery-name { font-size: 14px; }
}

/* ============================================================
   Hand-drawn "click here" annotations (over the hero-mock area)
   Left arrow points at sector picker · Right at dashboard tabs
   ============================================================ */
.demo-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  display: none;
}
/* Only show on tablets and up (the annotations need horizontal space) */
@media (min-width: 1024px) {
  .demo-annotations { display: block; }
}

.demo-annotation {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.35));
}

.demo-annotation-left {
  top: 30px;
  left: -10px;
  width: 130px;
}
.demo-annotation-right {
  top: 30px;
  right: -10px;
  width: 130px;
}
@media (min-width: 1280px) {
  .demo-annotation-left { left: -40px; }
  .demo-annotation-right { right: -40px; }
}

.demo-annotation-text {
  font-family: 'Caveat', cursive;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 0 14px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(251, 191, 36, 0.35);
  letter-spacing: 0.01em;
}
.demo-annotation-left .demo-annotation-text {
  transform: rotate(-9deg);
  animation: annotationWiggleL 3.4s ease-in-out infinite;
  transform-origin: center bottom;
}
.demo-annotation-right .demo-annotation-text {
  transform: rotate(8deg);
  animation: annotationWiggleR 3.4s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes annotationWiggleL {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-4px); }
}
@keyframes annotationWiggleR {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-4px); }
}

.demo-annotation-arrow {
  width: 100%;
  height: auto;
  margin-top: -4px;
  overflow: visible;
}
.demo-annotation-left .demo-annotation-arrow { transform: translateX(8px); }
.demo-annotation-right .demo-annotation-arrow { transform: translateX(-8px); }

/* Animated "draw the arrow" effect using stroke-dasharray */
.annotation-stroke {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawStroke 1.6s ease-out 0.4s forwards, strokePulse 3.4s ease-in-out 2.4s infinite;
}
.annotation-tip {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawStroke 0.4s ease-out 1.9s forwards;
}
@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}
@keyframes strokePulse {
  0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 0 rgba(251, 191, 36, 0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7)); }
}

/* Hide annotations once the user has clicked something */
.demo-annotations.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ============================================================
   Multi-device monitoring banner (above the sector picker)
   ============================================================ */
.multidevice-banner {
  display: flex;
  justify-content: center;
}
.multidevice-banner-inner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, rgba(34,197,94,0.10) 50%, rgba(245,158,11,0.12) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px -10px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}
.multidevice-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.multidevice-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #ebedf2;
  transition: transform 0.4s ease, background 0.4s ease;
}
.multidevice-icon:nth-child(1) { animation: deviceIconFloat 3.5s ease-in-out infinite; }
.multidevice-icon:nth-child(2) { animation: deviceIconFloat 3.5s ease-in-out infinite 0.5s; background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(34,197,94,0.05)); border-color: rgba(34,197,94,0.30); color: #86efac; }
.multidevice-icon:nth-child(3) { animation: deviceIconFloat 3.5s ease-in-out infinite 1s; }
@keyframes deviceIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.multidevice-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.multidevice-eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #767c88;
}
.multidevice-headline {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}
@media (max-width: 640px) {
  .multidevice-banner-inner { padding: 10px 16px; gap: 10px; border-radius: 14px; }
  .multidevice-icon { width: 28px; height: 28px; border-radius: 8px; }
  .multidevice-icon i, .multidevice-icon svg { width: 16px; height: 16px; }
  .multidevice-headline { font-size: 12.5px; }
  .multidevice-eyebrow { font-size: 8.5px; letter-spacing: 0.18em; }
}

/* ============================================================
   Per-sector theming on each .mock dashboard
   ============================================================ */
/* Default fallback */
.mock[data-theme] {
  --sector-accent: #3b82f6;
  --sector-deep: #1e40af;
  --sector-soft: #60a5fa;
  --sector-glow: rgba(59,130,246,0.5);
  --sector-bg: rgba(59,130,246,0.06);
  --sector-border: rgba(59,130,246,0.22);
}

/* Hotel — olive green (Los Cedros inspiration) */
.mock[data-theme="olive"] {
  --sector-accent: #84a173;
  --sector-deep: #5a7152;
  --sector-soft: #a8c195;
  --sector-glow: rgba(132,161,115,0.55);
  --sector-bg: rgba(132,161,115,0.07);
  --sector-border: rgba(132,161,115,0.28);
}

/* Restaurante — warm brown / amber (La Reliquia inspiration) */
.mock[data-theme="warm"] {
  --sector-accent: #b45309;
  --sector-deep: #7c2d12;
  --sector-soft: #fbbf24;
  --sector-glow: rgba(180,83,9,0.55);
  --sector-bg: rgba(180,83,9,0.07);
  --sector-border: rgba(180,83,9,0.28);
}

/* Heladería — rose / pink */
.mock[data-theme="rose"] {
  --sector-accent: #ec4899;
  --sector-deep: #be185d;
  --sector-soft: #f9a8d4;
  --sector-glow: rgba(236,72,153,0.5);
  --sector-bg: rgba(236,72,153,0.06);
  --sector-border: rgba(236,72,153,0.26);
}

/* Constructora — deep wine / burgundy (Grupo Siga inspiration) */
.mock[data-theme="wine"] {
  --sector-accent: #7c1d3c;
  --sector-deep: #4c1228;
  --sector-soft: #be3455;
  --sector-glow: rgba(124,29,60,0.55);
  --sector-bg: rgba(124,29,60,0.10);
  --sector-border: rgba(124,29,60,0.32);
}

/* Apply theme accents — sector color strip at the top of the window */
.mock[data-theme]::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sector-accent), var(--sector-soft), var(--sector-accent));
  border-radius: 16px 16px 0 0;
  z-index: 5;
}

/* Tint the window-bar with sector */
.mock[data-theme] .mock-window-bar {
  background: linear-gradient(180deg, var(--sector-bg), rgba(255,255,255,0.02));
  border-bottom-color: var(--sector-border);
}

/* Sidebar active item gets sector accent */
.mock[data-theme] aside li:first-of-type {
  background: var(--sector-bg) !important;
  border-color: var(--sector-border) !important;
}
.mock[data-theme] aside li:first-of-type i {
  color: var(--sector-soft) !important;
}

/* Active tab keeps white, but rest get a hint of sector color on hover */
.mock[data-theme] .mock-tab:hover:not(.is-active) {
  background: var(--sector-bg);
  color: #ffffff;
}

/* Sector-tinted shadow on the whole mock */
.mock[data-theme] {
  box-shadow:
    0 30px 70px -20px var(--sector-glow),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.06) inset;
}

/* ============================================================
   Mini phone preview floating beside each dashboard (xl+ only)
   ============================================================ */
.mock-phone-side {
  position: absolute;
  right: -200px;
  top: 18px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 5;
}
.mock-phone-frame {
  position: relative;
  width: 170px;
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  background: linear-gradient(165deg, #1f242f 0%, #0a0b10 100%);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 7px;
  box-shadow:
    0 30px 60px -15px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    inset 0 2px 4px rgba(255,255,255,0.06);
}
.mock-phone-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--sector-accent), var(--sector-soft));
  filter: blur(14px);
  z-index: -1;
  opacity: 0.4;
}
.mock-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 14px;
  background: #0a0b10;
  border-radius: 999px;
  z-index: 10;
}
.mock-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #0c0e14 0%, #1a1f2c 100%);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
}
.mock-phone-status {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  z-index: 6;
}
.mock-phone-app-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sector-border);
  background: var(--sector-bg);
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
}
.mock-phone-logo {
  width: 18px; height: 18px;
  border-radius: 5px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sector-accent), var(--sector-deep));
  color: #ffffff;
  flex-shrink: 0;
}
.mock-phone-logo i, .mock-phone-logo svg { width: 11px; height: 11px; }
.mock-phone-content {
  flex: 1;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.mock-phone-kpi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.mock-phone-kpi-main {
  background: linear-gradient(135deg, var(--sector-bg), rgba(255,255,255,0.02));
  border-color: var(--sector-border);
}
.mock-phone-kpi-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #898f9b;
}
.mock-phone-kpi-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}
.mock-phone-progress {
  margin-top: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.mock-phone-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sector-soft), var(--sector-accent));
  border-radius: 999px;
}
.mock-phone-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: var(--sector-soft);
}
.mock-phone-trend i, .mock-phone-trend svg { width: 10px; height: 10px; }
.mock-phone-kpi-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}
.mock-phone-kpi-small {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}
.mock-phone-kpi-value-sm {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.mock-phone-list-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #767c88;
  margin-top: 2px;
}
.mock-phone-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-phone-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #ebedf2;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.02);
}
.mock-phone-list .dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--sector-soft);
  box-shadow: 0 0 6px var(--sector-glow);
  flex-shrink: 0;
}
.mock-phone-list .dot-dim { background: rgba(255,255,255,0.18); box-shadow: none; }
.mock-phone-list .time {
  font-size: 9px;
  font-weight: 700;
  color: #898f9b;
}
.mock-phone-caption {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sector-soft);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--sector-border);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.mock-phone-caption i, .mock-phone-caption svg { width: 11px; height: 11px; }

/* ============================================================
   MOBILE COMPACTION — overrides for screens ≤ 640px
   Aggressive padding/margin/typography reduction for phones only.
   Desktop visuals stay intact.
   ============================================================ */
@media (max-width: 640px) {

  /* --- HERO --- */
  .hero {
    padding-top: 4.5rem !important;       /* 72px */
    padding-bottom: 2rem !important;       /* 32px */
  }
  .hero-title { font-size: 34px !important; line-height: 1.02 !important; margin-top: 0.85rem !important; }
  .hero-sub { font-size: 14.5px !important; margin-top: 0.85rem !important; line-height: 1.5 !important; }
  .hero-cta { margin-top: 1.25rem !important; gap: 0.55rem !important; width: 100% !important; }
  .hero-cta .btn-vivid,
  .hero-cta .btn-secondary { width: 100% !important; justify-content: center !important; }
  .hero-mock { margin-top: 1.25rem !important; }
  /* Page-hero (inner pages) */
  .page-hero-title { font-size: 32px !important; line-height: 1.0 !important; margin-top: 0.85rem !important; }
  .page-hero-sub { font-size: 14px !important; margin-top: 0.85rem !important; }

  /* --- HOMEPAGE SECTIONS (compact py + tight headers) --- */
  #personalizacion,
  #celular,
  #galeria,
  #que-es,
  #empresas,
  #soluciones-preview,
  #adaptable,
  #paginas-web,
  #redes,
  #cta,
  section.section-darker,
  section.section-dark,
  section.section-light,
  section.section-elev {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  /* Headlines inside sections — uniform, smaller, tighter */
  section h2.font-display {
    font-size: 24px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
  }
  section h3.font-display,
  section h3.text-2xl,
  section h3.text-xl {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  /* Section header bottom-margin */
  section .text-center.mb-8,
  section .text-center.mb-10,
  section .text-center.mb-12,
  section .text-center.mb-14 { margin-bottom: 1.5rem !important; }
  section .text-center > p { margin-top: 0.65rem !important; font-size: 13px !important; line-height: 1.5 !important; }

  /* --- DEMO PICKER & BANNER --- */
  .multidevice-banner { margin-bottom: 0.65rem !important; }
  .multidevice-banner-inner { padding: 8px 12px !important; gap: 8px !important; border-radius: 12px !important; }
  .multidevice-icon { width: 26px !important; height: 26px !important; border-radius: 7px !important; }
  .multidevice-icon i, .multidevice-icon svg { width: 14px !important; height: 14px !important; }
  .multidevice-eyebrow { font-size: 8px !important; letter-spacing: 0.16em !important; }
  .multidevice-headline { font-size: 11.5px !important; }

  .demo-picker { margin-bottom: 0.85rem !important; }
  .demo-picker-header { margin-bottom: 0.75rem !important; padding: 0 4px !important; }
  .demo-picker-badge { padding: 4px 10px !important; font-size: 8.5px !important; letter-spacing: 0.16em !important; margin-bottom: 8px !important; }
  .demo-picker-title { font-size: 19px !important; line-height: 1.15 !important; margin-bottom: 4px !important; }
  .demo-picker-sub { font-size: 11.5px !important; line-height: 1.45 !important; }
  .demo-picker-grid { gap: 6px !important; }
  .demo-picker-card { padding: 10px 10px 9px !important; gap: 2px !important; border-radius: 12px !important; }
  .demo-picker-card-icon { width: 32px !important; height: 32px !important; border-radius: 8px !important; margin-bottom: 2px !important; }
  .demo-picker-card-icon i, .demo-picker-card-icon svg { width: 16px !important; height: 16px !important; }
  .demo-picker-card-name { font-size: 13px !important; }
  .demo-picker-card-meta { font-size: 8.5px !important; letter-spacing: 0.14em !important; }
  .demo-picker-card-cta { font-size: 10px !important; margin-top: 4px !important; gap: 3px !important; }

  /* --- CUSTOMIZATION CARDS --- */
  .custom-card { padding: 16px 14px !important; gap: 8px !important; border-radius: 14px !important; }
  .custom-card-icon { width: 40px !important; height: 40px !important; border-radius: 10px !important; }
  .custom-card-icon i, .custom-card-icon svg { width: 18px !important; height: 18px !important; }
  .custom-card-title { font-size: 15px !important; }
  .custom-card-desc { font-size: 12.5px !important; line-height: 1.5 !important; }
  .swatch span { font-size: 8px !important; }
  .language-list li { padding: 6px 8px !important; }
  .lang-from { font-size: 11px !important; }
  .lang-to { font-size: 11.5px !important; }

  /* --- PHONE / PWA SECTION --- */
  #celular .grid { gap: 1.25rem !important; }
  #celular .phone-frame { width: 180px !important; }
  #celular .phone-stage { gap: 8px !important; }
  #celular ul.mt-5 { margin-top: 1rem !important; }
  #celular ul li { gap: 0.5rem !important; }

  /* --- GALLERY --- */
  .gallery-item { padding: 8px !important; gap: 8px !important; border-radius: 14px !important; }
  .gallery-name { font-size: 13px !important; }
  .gallery-meta { font-size: 11px !important; }
  .gallery-tag { font-size: 8.5px !important; letter-spacing: 0.14em !important; padding: 2px 6px !important; }

  /* --- SOCIAL CARDS (homepage) --- */
  .social-card { padding: 18px 16px !important; gap: 10px !important; }
  .social-card-icon { width: 44px !important; height: 44px !important; border-radius: 12px !important; }
  .social-card-handle { font-size: 18px !important; }
  .social-card-desc { font-size: 12.5px !important; line-height: 1.5 !important; }

  /* --- QUICK-NAV CARDS, CTA FINAL --- */
  .cta-final { padding: 24px 20px !important; border-radius: 16px !important; }
  .cta-final h2.font-display { font-size: 22px !important; }
  .cta-final p { font-size: 13px !important; margin-top: 0.75rem !important; }
  .cta-final .mt-10 { margin-top: 1.25rem !important; }
  .cta-final .mt-7 { margin-top: 1rem !important; }

  /* --- BRAND-BAR (eyebrow chips) --- */
  .brand-bar { padding: 5px 10px !important; }
  .brand-bar .label { font-size: 9.5px !important; letter-spacing: 0.14em !important; }
  .brand-bar .mark { width: 14px !important; height: 14px !important; }

  /* --- INDUSTRIES MARQUEE --- */
  .fade-bottom { margin-top: 1.75rem !important; }
  .marquee { font-size: 13px !important; }

  /* --- BRAND DIVIDER --- */
  .py-3.bg-base-0 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }

  /* --- FOOTER --- */
  footer.section-darker { padding-top: 3rem !important; padding-bottom: 1.5rem !important; }
  footer .grid.lg\:grid-cols-12 { gap: 1.75rem !important; }
  footer .mt-16 { margin-top: 1.5rem !important; padding-top: 1.5rem !important; }

  /* --- INNER GAPS --- */
  section .grid.gap-4,
  section .grid.gap-5 { gap: 0.65rem !important; }
  section .mt-10, section .mt-12, section .mt-14 { margin-top: 1.5rem !important; }
  section .mt-7, section .mt-9 { margin-top: 1.25rem !important; }

  /* Stats counters bar */
  section.section-darker .py-10 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

  /* --- WEB SERVICES CARDS --- */
  .web-service { padding: 14px !important; border-radius: 14px !important; }
  .web-service .icon-bg { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
  .web-service .icon-bg i, .web-service .icon-bg svg { width: 18px !important; height: 18px !important; }
  .web-service h4 { font-size: 14px !important; margin-top: 0.85rem !important; }
  .web-service p { font-size: 12px !important; margin-top: 0.4rem !important; line-height: 1.45 !important; }

  /* --- QUICK NAV CARDS (Proyectos/Demos/Proceso) --- */
  section a.surface.p-7,
  section .surface.p-7 { padding: 14px !important; }
  section a.surface .icon-tile { width: 36px !important; height: 36px !important; }
  section a.surface h3 { font-size: 15px !important; margin-top: 0.85rem !important; }
  section a.surface p { font-size: 12px !important; margin-top: 0.35rem !important; line-height: 1.45 !important; }

  /* --- DASHBOARD MOCK (homepage demo) --- */
  .mock { border-radius: 14px !important; }
  .mock-window-bar { padding: 7px 10px !important; }
  .mock-window-bar .dot { width: 7px !important; height: 7px !important; }
  .mock-tab { padding: 4px 8px !important; font-size: 9.5px !important; }
  .mock .col-span-12 { padding: 14px !important; }
  .mock .surface.p-4 { padding: 10px !important; }
  .mock .surface.p-5 { padding: 12px !important; }

  /* --- SOLUTION PREVIEW (#soluciones-preview) --- */
  #soluciones-preview .surface { padding: 16px !important; border-radius: 14px !important; }

  /* --- BROWSER MOCKUP IN #paginas-web --- */
  #paginas-web .browser-mock { border-radius: 14px !important; }

  /* --- TAGS / CHIPS reduced on mobile --- */
  .chip { padding: 4px 8px !important; font-size: 10px !important; gap: 4px !important; }

  /* --- ICON TILES (used in many places) --- */
  .icon-tile { width: 40px !important; height: 40px !important; border-radius: 11px !important; }

  /* --- HEADLINES (catch-all for missed h2/h3 styles) --- */
  section h2.text-3xl,
  section h2.text-4xl,
  section h2.text-5xl,
  section h2.text-6xl { font-size: 24px !important; line-height: 1.12 !important; letter-spacing: -0.02em !important; }
  section h3.text-3xl,
  section h3.text-4xl,
  section h3.text-2xl { font-size: 18px !important; line-height: 1.15 !important; }

  /* --- SPACER REDUCTIONS in stagger grids --- */
  section[id] .grid.gap-3 { gap: 0.5rem !important; }

  /* --- MARQUEE label band --- */
  .marquee + .marquee { display: none !important; } /* hide duplicated marquee on mobile */

  /* --- FAQ details cards --- */
  details.surface.p-6 { padding: 14px !important; border-radius: 12px !important; }
  details.surface summary span.text-\[15px\] { font-size: 13px !important; }
}

@media (max-width: 640px) {
  body.theme-inicio #inicio.hero {
    width: 100%;
    max-width: 100vw;
    padding-top: 5.35rem !important;
    padding-bottom: 3rem !important;
  }

  body.theme-inicio #inicio > .relative.max-w-7xl {
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw !important;
    overflow: hidden;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  body.theme-inicio #inicio .text-center {
    width: min(100%, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
    margin-left: 0;
    margin-right: auto;
  }

  body.theme-inicio .logo-watermark.center-bg {
    width: min(360px, 88vw) !important;
  }

  body.theme-inicio .hero-brand-display {
    margin-top: 0 !important;
    margin-bottom: 1.05rem !important;
  }

  body.theme-inicio .hero-brand-display .logo-mark.xl {
    width: 76px;
    height: 76px;
    border-radius: 20px;
  }

  body.theme-inicio .hero-chip {
    margin-bottom: 1.05rem !important;
  }

  body.theme-inicio .hero-title {
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 32px !important;
    line-height: 1.08 !important;
    margin-top: 1.15rem !important;
    text-wrap: balance;
  }

  body.theme-inicio .hero-sub {
    max-width: min(16.75rem, calc(100vw - 4rem)) !important;
    margin-top: 1.1rem !important;
    font-size: 14.5px !important;
    line-height: 1.62 !important;
  }

  body.theme-inicio .hero-body {
    max-width: min(17rem, calc(100vw - 4rem)) !important;
    margin-top: 0.95rem !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
  }

  body.theme-inicio .hero-cta {
    margin-top: 1.65rem !important;
    gap: 0.75rem !important;
    width: min(17rem, calc(100vw - 4rem)) !important;
    max-width: calc(100vw - 4rem);
    margin-left: auto;
    margin-right: auto;
  }

  body.theme-inicio .hero-cta .btn-vivid,
  body.theme-inicio .hero-cta .btn-secondary {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    border-radius: 14px;
  }

  body.theme-inicio .hero-tagline {
    width: 100%;
    max-width: min(16.75rem, calc(100vw - 4rem));
    margin-top: 1.45rem !important;
    gap: 0.65rem !important;
    line-height: 1.55;
    white-space: normal;
  }

  body.theme-inicio .hero-tagline span:nth-child(1),
  body.theme-inicio .hero-tagline span:nth-child(3) {
    width: 1.75rem !important;
    flex: 0 0 1.75rem;
  }

  body.theme-inicio .hero-mock {
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
    margin-left: 0;
    margin-right: auto;
    margin-top: 2.1rem !important;
  }

  body.theme-inicio .demo-picker {
    margin-bottom: 1.35rem !important;
  }

  body.theme-inicio .demo-picker-header {
    margin-bottom: 1.05rem !important;
    padding-inline: 0 !important;
  }

  body.theme-inicio .demo-picker-title {
    max-width: min(17rem, calc(100vw - 4rem));
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 20px !important;
    line-height: 1.16 !important;
    margin-bottom: 0.55rem !important;
  }

  body.theme-inicio .demo-picker-sub {
    max-width: min(17rem, calc(100vw - 4rem)) !important;
    font-size: 12.5px !important;
    line-height: 1.58 !important;
  }

  body.theme-inicio .demo-picker-grid {
    max-width: min(22rem, calc(100vw - 2.5rem));
    margin-left: auto;
    margin-right: auto;
    gap: 10px !important;
  }

  body.theme-inicio .demo-picker-card {
    box-sizing: border-box;
    padding: 13px 12px 12px !important;
    gap: 5px !important;
    border-radius: 14px !important;
  }

  body.theme-inicio .demo-picker-card-icon {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 4px !important;
  }

  body.theme-inicio .mock {
    margin-inline: -0.25rem;
    border-radius: 16px !important;
  }

  body.theme-inicio .mock-window-bar {
    padding: 9px 10px !important;
  }

  body.theme-inicio .mock .col-span-12 {
    padding: 16px !important;
  }

  body.theme-inicio section.section-darker,
  body.theme-inicio section.section-dark,
  body.theme-inicio section.section-light,
  body.theme-inicio section.section-elev {
    padding-top: 3rem !important;
    padding-bottom: 3.15rem !important;
  }

  body.theme-inicio section .text-center.mb-8,
  body.theme-inicio section .text-center.mb-10,
  body.theme-inicio section .text-center.mb-12,
  body.theme-inicio section .text-center.mb-14 {
    margin-bottom: 2rem !important;
  }

  body.theme-inicio section .grid.gap-4,
  body.theme-inicio section .grid.gap-5 {
    gap: 0.95rem !important;
  }

  body.theme-inicio .cta-final {
    padding: 30px 22px !important;
  }

  body.theme-inicio .cta-final .brand-display {
    margin-bottom: 1.9rem !important;
  }
}
