/* ============================================================
   NÚCLEO DIGITAL — styles.css
   ------------------------------------------------------------
   Índice:
   1.  Variables y base
   2.  Utilidades (container, botones, eyebrow, reveal)
   3.  Header y navegación
   4.  Hero
   5.  Secciones genéricas
   6.  Servicios
   7.  Diferencial (why)
   8.  Proceso
   9.  Trabajos / Portfolio
   10. Demo
   11. CTA final
   12. Footer
   13. Toast
   14. Responsive
============================================================ */

/* ============================================================
   1. VARIABLES Y BASE
============================================================ */
:root {
  /* Paleta de marca */
  --dark: #0b0f19;
  --blue: #1e90ff;
  --violet: #7c3aed;
  --gray: #a7b0c0;
  --bg: #f4f4fc;

  /* Derivados */
  --dark-soft: #131a2b;
  --line: rgba(11, 15, 25, 0.08);
  --line-light: rgba(244, 244, 252, 0.12);
  --text: #0b0f19;
  --text-muted: #4b5468;
  --text-on-dark: #f4f4fc;
  --text-on-dark-muted: #a7b0c0;

  --grad: linear-gradient(120deg, var(--blue), var(--violet));
  --grad-soft: linear-gradient(120deg, rgba(30, 144, 255, 0.12), rgba(124, 58, 237, 0.12));

  /* Tipografía */
  --font-head: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Medidas */
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;

  --shadow-sm: 0 2px 10px rgba(11, 15, 25, 0.05);
  --shadow-md: 0 14px 40px -12px rgba(11, 15, 25, 0.14);
  --shadow-glow: 0 10px 34px -10px rgba(30, 144, 255, 0.45),
                 0 10px 34px -14px rgba(124, 58, 237, 0.4);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  text-wrap: balance;
}

::selection {
  background: rgba(30, 144, 255, 0.25);
}

/* Anclas: dejar lugar para el header fijo */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ============================================================
   2. UTILIDADES
============================================================ */
.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* Texto con degradado de marca */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(120deg, var(--blue), var(--violet) 55%, var(--blue));
  background-size: 230% 100%;
  background-position: 0% 0;
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(78, 96, 246, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background-position 0.5s ease;
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 96% 0;
  box-shadow: var(--shadow-glow);
}

/* Ghost: se adapta a fondo claro u oscuro vía currentColor */
.btn--ghost {
  border: 1.5px solid rgba(167, 176, 192, 0.45);
  color: inherit;
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 8px 24px -12px rgba(30, 144, 255, 0.4);
}

/* Motivo de marca: píxeles en escalera (tomado del isotipo) */
.pixels {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.pixels i {
  display: block;
}

.pixels i:nth-child(1) { width: 9px; height: 9px; background: var(--blue); }
.pixels i:nth-child(2) { width: 6px; height: 6px; background: var(--violet); }
.pixels i:nth-child(3) { width: 3px; height: 3px; background: var(--gray); }

/* Etiqueta de sección */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.eyebrow--light {
  color: var(--gray);
}

.eyebrow__num {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animación de aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Glows decorativos (hero / CTA) */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.glow--blue {
  width: 480px;
  height: 480px;
  background: rgba(30, 144, 255, 0.28);
  top: -160px;
  left: -120px;
}

.glow--violet {
  width: 520px;
  height: 520px;
  background: rgba(124, 58, 237, 0.26);
  bottom: -200px;
  right: -140px;
}

/* ============================================================
   3. HEADER Y NAVEGACIÓN
============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.header.is-scrolled {
  background: rgba(11, 15, 25, 0.94);
  border-bottom-color: var(--line-light);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo (isotipo + nombre) */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 46px;
  height: auto;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #f5f7fa;
}

.logo__name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo__tag {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
}

/* Navegación */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.25s ease;
  padding: 6px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-on-dark);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__cta {
  margin-left: 6px;
}

/* Hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-on-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   4. HERO
============================================================ */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--text-on-dark);
  padding: calc(var(--header-h) + 84px) 0 120px;
  overflow: hidden;
}

/* Grano sutil sobre las secciones oscuras */
.hero::after,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__bg {
  position: absolute;
  inset: 0;
}

/* Grid sutil de fondo */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167, 176, 192, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 176, 192, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}

.hero__accent {
  font-style: italic;
  padding-right: 0.08em; /* la itálica no queda cortada por el clip del degradado */
}

.hero__sub {
  font-size: 1.08rem;
  color: var(--text-on-dark-muted);
  max-width: 52ch;
  margin-bottom: 34px;
}

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

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hero__chips li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero__chips li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--grad);
}

/* --- Composición visual del hero --- */
.hero__visual {
  position: relative;
  min-height: 420px;
}

.hero__ring {
  position: absolute;
  inset: 8% 4%;
  border: 1px dashed rgba(167, 176, 192, 0.22);
  border-radius: 28px;
  transform: rotate(-3deg);
}

.float-card {
  position: absolute;
  background: rgba(19, 26, 43, 0.9);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  animation: float 7s ease-in-out infinite;
}

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

/* Mockup navegador */
.float-card--browser {
  top: 4%;
  left: 6%;
  width: 62%;
  z-index: 2;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
}

.browser__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(167, 176, 192, 0.35);
}

.browser__bar i:first-child { background: var(--blue); }
.browser__bar i:nth-child(3) { background: var(--violet); }

.browser__url {
  margin-left: 10px;
  font-size: 0.7rem;
  color: var(--gray);
  background: rgba(167, 176, 192, 0.1);
  padding: 3px 12px;
  border-radius: 999px;
}

.browser__body {
  padding: 22px 20px 24px;
}

.browser__blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.browser__blocks span {
  height: 44px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid rgba(30, 144, 255, 0.18);
}

/* Placeholders genéricos (líneas / botón) */
.ph-line {
  height: 9px;
  border-radius: 999px;
  background: rgba(167, 176, 192, 0.25);
  margin-bottom: 10px;
}

.ph-line--title {
  height: 14px;
  width: 85%;
  background: var(--grad);
  opacity: 0.9;
}

.ph-line--w70 { width: 70%; }
.ph-line--w50 { width: 50%; }

.ph-btn {
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: var(--grad);
  margin-top: 14px;
  box-shadow: 0 6px 18px -6px rgba(78, 96, 246, 0.6);
}

/* Tarjeta paleta */
.float-card--palette {
  right: 2%;
  top: 30%;
  width: 44%;
  padding: 20px;
  z-index: 3;
  animation-delay: 1.2s;
}

.palette__label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.palette__chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.palette__chips i {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(244, 244, 252, 0.14);
}

/* Tarjeta impresión */
.float-card--print {
  left: 10%;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  z-index: 4;
  animation-delay: 2.2s;
}

.float-card--print svg {
  color: var(--blue);
  flex-shrink: 0;
}

.float-card--print strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.84rem;
  color: var(--text-on-dark);
}

.float-card--print span {
  font-size: 0.74rem;
  color: var(--gray);
}

/* ============================================================
   4b. TICKER DE DISCIPLINAS
============================================================ */
.ticker {
  background: var(--dark);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  padding: 17px 0;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}

.ticker__group span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 244, 252, 0.85);
  white-space: nowrap;
}

/* Alternancia: palabras en contorno */
.ticker__group span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(167, 176, 192, 0.55);
}

.ticker__group i {
  width: 7px;
  height: 7px;
  background: var(--grad);
  flex-shrink: 0;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ============================================================
   5. SECCIONES GENÉRICAS
============================================================ */
.section {
  padding: 110px 0;
}

.section--tint {
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(30, 144, 255, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(124, 58, 237, 0.06), transparent),
    #eef0fa;
}

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(1.9rem, 3.7vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__title .grad-text {
  font-style: italic;
  padding-right: 0.08em;
}

.section__sub {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ============================================================
   6. SERVICIOS
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: svc;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  counter-increment: svc;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Índice editorial en la esquina */
.service-card::after {
  content: counter(svc, decimal-leading-zero);
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(11, 15, 25, 0.16);
  transition: color 0.3s ease;
}

.service-card:hover::after {
  color: var(--violet);
}

/* Filo degradado superior que aparece en hover */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 144, 255, 0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(30, 144, 255, 0.16);
  color: var(--blue);
  margin-bottom: 20px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
}

/* Alternancia azul / violeta, como los píxeles del isotipo */
.service-card:nth-child(even) .service-card__icon {
  color: var(--violet);
  border-color: rgba(124, 58, 237, 0.18);
}

.service-card:hover .service-card__icon {
  background: var(--grad);
  color: #fff;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   7. DIFERENCIAL (WHY)
============================================================ */
.why__layout {
  display: flex;
  justify-content: center;
}

.why__intro {
  max-width: 640px;
  text-align: center;
}

.why__intro .btn {
  margin-top: 28px;
}

/* ============================================================
   8. PROCESO
============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
}

/* Cada paso: hairline superior con segmento en degradado */
.process__step {
  position: relative;
  border-top: 1px solid rgba(11, 15, 25, 0.12);
  padding-top: 24px;
}

.process__step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--grad);
  transition: width 0.35s ease;
}

.process__step:hover::before {
  width: 100%;
}

/* Número fantasma en degradado */
.process__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: 3.2rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.28;
  margin-bottom: 14px;
  transition: opacity 0.35s ease;
}

.process__step:hover .process__num {
  opacity: 1;
}

.process__step h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process__step p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ============================================================
   9. TRABAJOS / PORTFOLIO
============================================================ */
.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.chip {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(167, 176, 192, 0.45);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.chip.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(78, 96, 246, 0.55);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.work-card.is-hidden {
  display: none;
}

/* Área visual del placeholder */
.work-card__visual {
  height: 210px;
  display: grid;
  place-items: center;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

/* Crosshairs de plano técnico en las esquinas */
.work-card__visual::before,
.work-card__visual::after {
  content: "+";
  position: absolute;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: rgba(167, 176, 192, 0.65);
  pointer-events: none;
}

.work-card__visual::before { top: 10px; left: 12px; }
.work-card__visual::after { bottom: 10px; right: 12px; }

.work-card__visual--a { background: linear-gradient(135deg, #12203a, #0b0f19); }
.work-card__visual--b { background: linear-gradient(135deg, #f0e9ff, #e2ecff); }
.work-card__visual--c { background: linear-gradient(135deg, #e2ecff, #ece5ff); }
.work-card__visual--d { background: linear-gradient(135deg, #0b0f19, #241a3f); }
.work-card__visual--e { background: linear-gradient(135deg, #e9f3ff, #f0e9ff); }
.work-card__visual--f { background: linear-gradient(135deg, #101b31, #1c1230); }

.work-card__info {
  padding: 20px 22px 24px;
}

.work-card__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-soft);
  color: var(--violet);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.work-card__info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.work-card__info p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

.work-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Mini mockups dentro de las cards --- */

/* Navegador */
.mini-browser {
  width: 82%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px -12px rgba(11, 15, 25, 0.4);
  transition: transform 0.35s ease;
}

.work-card:hover .mini-browser {
  transform: translateY(-5px) scale(1.02);
}

.mini-browser__bar {
  display: flex;
  gap: 4px;
  padding: 7px 10px;
  background: #eef0fa;
}

.mini-browser__bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9cfdd;
}

.mini-browser__hero {
  height: 42px;
  margin: 10px;
  border-radius: 6px;
  background: var(--grad);
  opacity: 0.85;
}

.mini-browser__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 10px 12px;
}

.mini-browser__cols span {
  height: 26px;
  border-radius: 5px;
  background: #e4e7f2;
}

.mini-browser--dark {
  background: var(--dark-soft);
}

.mini-browser--dark .mini-browser__bar {
  background: #0b0f19;
}

.mini-browser--dark .mini-browser__cols span {
  background: rgba(167, 176, 192, 0.18);
}

/* Branding */
.mini-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.35s ease;
}

.work-card:hover .mini-brand {
  transform: scale(1.05);
}

.mini-brand__logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 14px 30px -10px rgba(78, 96, 246, 0.6);
}

.mini-brand__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mini-brand__lines i {
  height: 7px;
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.25);
}

.mini-brand__lines i:first-child { width: 90px; background: rgba(11, 15, 25, 0.5); }
.mini-brand__lines i:last-child { width: 60px; }

.mini-brand__chips {
  display: flex;
  gap: 6px;
}

.mini-brand__chips b {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(11, 15, 25, 0.12);
}

/* Gráfica impresa */
.mini-print {
  position: relative;
  width: 70%;
  height: 100%;
}

.mini-print__flyer {
  position: absolute;
  left: 8%;
  top: 12%;
  width: 58%;
  height: 76%;
  background: #fff;
  border-radius: 8px;
  padding: 14px 12px;
  box-shadow: 0 16px 36px -12px rgba(11, 15, 25, 0.35);
  transform: rotate(-5deg);
  transition: transform 0.35s ease;
}

.mini-print__flyer i {
  display: block;
  height: 30px;
  border-radius: 5px;
  background: var(--grad);
  margin-bottom: 10px;
}

.mini-print__flyer em {
  display: block;
  height: 6px;
  width: 80%;
  border-radius: 999px;
  background: #dfe3ef;
  margin-bottom: 6px;
}

.mini-print__card {
  position: absolute;
  right: 4%;
  bottom: 16%;
  width: 46%;
  height: 34%;
  border-radius: 8px;
  background: var(--dark);
  box-shadow: 0 14px 30px -10px rgba(11, 15, 25, 0.45);
  transform: rotate(6deg);
  transition: transform 0.35s ease;
}

.mini-print__card::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: var(--grad);
}

.work-card:hover .mini-print__flyer { transform: rotate(-8deg) translateY(-4px); }
.work-card:hover .mini-print__card { transform: rotate(9deg) translateY(-3px); }

/* Cartelería */
.mini-sign {
  width: 78%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mini-sign__board {
  width: 100%;
  padding: 16px 10px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 0 40px rgba(78, 96, 246, 0.55);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.work-card:hover .mini-sign__board {
  box-shadow: 0 0 60px rgba(78, 96, 246, 0.8);
  transform: translateY(-3px);
}

.mini-sign__board span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: #fff;
}

.mini-sign__front {
  width: 84%;
  height: 44px;
  border-radius: 0 0 10px 10px;
  background: rgba(167, 176, 192, 0.16);
  border: 1px solid rgba(167, 176, 192, 0.25);
  border-top: none;
}

/* ============================================================
   10. DEMO
============================================================ */
.demo-panel {
  position: relative;
  background: var(--dark);
  color: var(--text-on-dark);
  border-radius: 28px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}

.demo-panel::before,
.demo-panel::after {
  content: "+";
  position: absolute;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  color: rgba(167, 176, 192, 0.45);
  pointer-events: none;
  z-index: 1;
}

.demo-panel::before { top: 18px; left: 22px; }
.demo-panel::after { bottom: 18px; right: 22px; }

.demo-panel__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 85% 20%, rgba(124, 58, 237, 0.3), transparent),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(30, 144, 255, 0.25), transparent);
  pointer-events: none;
}

.demo-panel__content {
  position: relative;
}

.demo-panel__content h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.demo-panel__content p {
  color: var(--text-on-dark-muted);
  margin-bottom: 30px;
  max-width: 46ch;
}

.demo-panel__visual {
  position: relative;
}

.demo-screen {
  background: rgba(19, 26, 43, 0.9);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.6);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.demo-panel:hover .demo-screen {
  transform: rotate(0deg) translateY(-4px);
}

.demo-screen__bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-light);
}

.demo-screen__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(167, 176, 192, 0.35);
}

.demo-screen__bar i:first-child { background: var(--blue); }
.demo-screen__bar i:nth-child(3) { background: var(--violet); }

.demo-screen__body {
  padding: 26px 22px 30px;
}

/* ============================================================
   11. CTA FINAL
============================================================ */
.cta {
  position: relative;
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 110px 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.cta__title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cta__title .grad-text {
  font-style: italic;
  padding-right: 0.08em;
}

/* Píxeles flotantes de marca */
.px-cluster {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--blue);
  opacity: 0.5;
  box-shadow: 22px 9px 0 -4px var(--violet),
              -17px 27px 0 -6px rgba(167, 176, 192, 0.45);
  animation: float 9s ease-in-out infinite;
}

.px-cluster--a { top: 20%; left: 12%; }
.px-cluster--b { bottom: 24%; right: 11%; animation-delay: 1.6s; }

.cta__sub {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}

.cta__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 34px;
  font-size: 0.9rem;
  color: var(--gray);
}

.cta__contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta__contact svg {
  color: var(--blue);
}

/* ============================================================
   12. FOOTER
============================================================ */
.footer {
  background: var(--dark);
  color: var(--text-on-dark);
  border-top: 1px solid var(--line-light);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
}

.footer__desc {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  max-width: 30ch;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: 6px;
}

.footer__col a,
.footer__col span {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  transition: color 0.25s ease;
  width: fit-content;
}

.footer__col a:hover {
  color: var(--blue);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line-light);
  font-size: 0.82rem;
  color: var(--gray);
}

.footer__bottom p:first-child {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ============================================================
   13. TOAST (aviso demo)
============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--dark-soft);
  color: var(--text-on-dark);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.88rem;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 200;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   14. RESPONSIVE
============================================================ */
@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero__visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .demo-panel {
    grid-template-columns: 1fr;
    padding: 48px 36px;
  }

  .demo-panel__visual {
    max-width: 440px;
  }

  /* Navegación mobile */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid var(--line-light);
    padding: 16px 24px 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 12px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(244, 244, 252, 0.06);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin: 14px 0 0;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, 100% - 40px);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-bottom: 80px;
  }

  .services-grid,
  .work-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
  }

  .float-card--browser { width: 78%; left: 0; }
  .float-card--palette { width: 54%; right: 0; }
  .float-card--print { left: 4%; }

  .demo-panel {
    padding: 40px 24px;
  }

  .px-cluster {
    display: none;
  }

  .ticker__group {
    gap: 24px;
    padding-right: 24px;
  }

  .ticker__group span {
    font-size: 0.72rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo__tag {
    display: none;
  }
}
