/* ==========================================================================
   Engánchate a la Red — estilos
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains";
  src: url("../fonts/jetbrains.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0b0b0d;
  --ink-2: #141418;
  --ink-3: #1d1d23;
  --line-dark: rgba(255, 255, 255, .10);
  --paper: #f3f0e9;
  --paper-2: #e9e5db;
  --line-light: rgba(11, 11, 13, .12);
  --text-light: #f5f4f0;
  --muted-light: #a3a29c;
  --text-dark: #0b0b0d;
  --muted-dark: #5d5b55;
  --lime: #d4ff3a;
  --lime-ink: #1a2200;
  --orange: #ff5b2e;
  --violet: #8b7bff;

  --display: "Bricolage", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1320px;
  --radius: 22px;
  --radius-s: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

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

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(212, 255, 58, .15);
}
.light .eyebrow { color: var(--muted-dark); }
.light .eyebrow::before { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 91, 46, .15); }

.h-xl, .h-l, .h-m {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}
.h-xl { font-size: clamp(38px, 12.2vw, 132px); letter-spacing: -.045em; line-height: .92; }
.h-l  { font-size: clamp(36px, 6vw, 84px); }
.h-m  { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.025em; line-height: 1.05; }

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted-light);
  max-width: 60ch;
  text-wrap: pretty;
}
.light .lead { color: var(--muted-dark); }

.hl { color: var(--lime); }
.light .hl { color: var(--orange); }
.serif-i { font-style: italic; font-weight: 400; letter-spacing: -.03em; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.btn {
  --bg: var(--lime); --fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: #fff;
  transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(212, 255, 58, .55); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px) rotate(-45deg); }

.btn--ghost {
  --bg: transparent; --fg: var(--text-light);
  box-shadow: inset 0 0 0 1.5px var(--line-dark);
}
.btn--ghost::after { background: var(--text-light); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--text-light); }

.btn--dark { --bg: var(--ink); --fg: var(--text-light); }
.btn--dark::after { background: var(--orange); }
.btn--dark:hover { box-shadow: 0 12px 30px -10px rgba(255, 91, 46, .55); }

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s, box-shadow .4s, transform .45s var(--ease);
}
.header.is-scrolled {
  background: rgba(11, 11, 13, .72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header.is-hidden { transform: translateY(-100%); }

.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  position: relative; z-index: 60;
}
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.03em;
  line-height: 1;
}
.logo__text span { font-weight: 400; color: var(--muted-light); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--muted-light);
  text-decoration: none;
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav a:not(.btn):hover { color: var(--text-light); background: rgba(255, 255, 255, .06); }
.nav a.is-active { color: var(--text-light); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; margin-left: 10px; }

.burger {
  display: none;
  position: relative; z-index: 60;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px;
  background: var(--text-light); border-radius: 2px;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* Menú móvil */
.mnav {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--ink);
  clip-path: circle(0 at calc(100% - 40px) 36px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .mnav {
  clip-path: circle(150% at calc(100% - 40px) 36px);
  visibility: visible;
  transition: clip-path .7s var(--ease), visibility 0s;
}
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav li { overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.mnav li a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0;
  font-family: var(--display);
  font-size: clamp(34px, 10vw, 56px);
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform .6s var(--ease);
}
.mnav li a small { font-family: var(--mono); font-size: 12px; color: var(--muted-light); letter-spacing: .1em; font-weight: 400; }
.menu-open .mnav li a { transform: none; }
.menu-open .mnav li:nth-child(2) a { transition-delay: .05s; }
.menu-open .mnav li:nth-child(3) a { transition-delay: .1s; }
.menu-open .mnav li:nth-child(4) a { transition-delay: .15s; }
.menu-open .mnav li:nth-child(5) a { transition-delay: .2s; }
.mnav__foot { display: grid; gap: 16px; }
.mnav__foot .btn { width: 100%; }
.mnav__foot p { margin: 0; color: var(--muted-light); font-size: 14px; text-align: center; }

.menu-open { overflow: hidden; }
.menu-open .header {
  z-index: 70;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 70%);
  opacity: .55;
}
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: .55;
  will-change: transform;
}
.blob--1 { width: 46vw; height: 46vw; min-width: 340px; min-height: 340px; right: -10vw; top: -8vw; background: radial-gradient(circle, var(--lime), transparent 65%); animation: float1 18s ease-in-out infinite; }
.blob--2 { width: 34vw; height: 34vw; min-width: 260px; min-height: 260px; right: 22vw; top: 18vh; background: radial-gradient(circle, var(--violet), transparent 65%); opacity: .45; animation: float2 22s ease-in-out infinite; }
.blob--3 { width: 26vw; height: 26vw; min-width: 200px; min-height: 200px; right: 4vw; top: 46vh; background: radial-gradient(circle, var(--orange), transparent 65%); opacity: .4; animation: float1 26s ease-in-out infinite reverse; }

@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6vw, 6vh) scale(1.12); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(5vw, -4vh) scale(.9); } }

.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .09;
  mix-blend-mode: overlay;
}

.hero__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--muted-light);
}
.badge b {
  display: inline-grid; place-items: center;
  height: 28px; padding: 0 10px;
  border-radius: 999px;
  background: var(--lime); color: var(--ink);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-light);
}
.status i {
  width: 8px; height: 8px; border-radius: 50%; background: #3dff8a;
  box-shadow: 0 0 0 0 rgba(61, 255, 138, .6);
  animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 255, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 138, 0); } }

.hero h1 { max-width: 14ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: none; } }

.rotator {
  position: relative;
  display: inline-grid;
  vertical-align: bottom;
  color: var(--lime);
}
.rotator > span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(40%);
  filter: blur(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
  white-space: nowrap;
}
.rotator > span.is-on { opacity: 1; transform: none; filter: none; }
.rotator > span.is-off { opacity: 0; transform: translateY(-40%); filter: blur(8px); }

.hero__bottom {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 32px;
  margin-top: clamp(28px, 5vh, 56px);
  padding-bottom: clamp(28px, 5vh, 48px);
}
.hero__bottom .lead { margin: 0; opacity: 0; animation: fade 1s .5s var(--ease) forwards; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; opacity: 0; animation: fade 1s .65s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Marquesina */
.marquee {
  position: relative;
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 18px 0;
  background: rgba(11, 11, 13, .5);
}
.marquee__track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  display: inline-flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--text-light);
}
.marquee__track span::after {
  content: "";
  width: 14px; height: 14px;
  background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(245, 244, 240, .55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section.light { background: var(--paper); color: var(--text-dark); }
.section.dark-2 { background: var(--ink-2); }
.section--stats { padding: 0 0 clamp(64px, 9vw, 120px); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section__head .eyebrow { grid-column: 1 / -1; }
.section__head .lead { margin: 0; }

/* --------------------------------------------------------------------------
   Manifiesto / valores
   -------------------------------------------------------------------------- */

.manifesto {
  font-family: var(--display);
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 clamp(56px, 8vw, 110px);
  max-width: 25ch;
  text-wrap: balance;
}
.manifesto .w { opacity: .14; transition: opacity .5s; }
.manifesto .w.on { opacity: 1; }
.manifesto .pill {
  display: inline-block;
  vertical-align: middle;
  width: 1.6em; height: .82em;
  border-radius: 999px;
  margin: 0 .08em;
  background: var(--orange);
  transform: translateY(-.06em);
}
.manifesto .pill--lime { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.manifesto .pill--violet { background: var(--violet); }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-light);
}
.value {
  padding: 32px 32px 8px 0;
}
.value + .value { padding-left: 32px; border-left: 1px solid var(--line-light); }
.value__n { font-family: var(--mono); font-size: 13px; color: var(--muted-dark); }
.value h3 { font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; margin: 18px 0 10px; font-weight: 700; }
.value p { margin: 0; color: var(--muted-dark); max-width: 36ch; }

/* --------------------------------------------------------------------------
   Servicios (bento)
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 300px;
  padding: clamp(24px, 2.4vw, 34px);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(212, 255, 58, .10), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: inset 0 0 0 1px rgba(212, 255, 58, .35); }

.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  margin-bottom: auto;
  color: var(--lime);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 36px 0 12px;
}
.card p { margin: 0; color: var(--muted-light); font-size: 16px; }
.card ul {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.card li {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--text-light);
}

.card--web { grid-column: span 4; grid-row: span 2; min-height: 520px; background: linear-gradient(160deg, #191a10 0%, var(--ink-2) 55%); }
.card--shop { grid-column: span 2; }
.card--cms { grid-column: span 2; }
.card--seo { grid-column: span 3; }
.card--ads { grid-column: span 3; }
.card--brand { grid-column: span 2; }
.card--print { grid-column: span 4; }
.card--host { grid-column: span 2; }
.card--care { grid-column: span 2; }
.card--apps { grid-column: span 2; }

.card--web .card__icon { background: var(--lime); color: var(--ink); box-shadow: none; }
.card--web h3 { font-size: clamp(32px, 4vw, 56px); max-width: 12ch; }
.card--web p { font-size: 18px; max-width: 46ch; }

/* Mini navegador dentro de la tarjeta principal */
.mock {
  position: absolute;
  right: -40px; top: 38px;
  width: min(58%, 460px);
  border-radius: 16px;
  background: #0f0f12;
  box-shadow: 0 0 0 1px var(--line-dark), 0 40px 80px -20px rgba(0, 0, 0, .7);
  transform: rotate(-4deg);
  transition: transform .8s var(--ease);
  z-index: -1;
}
.card--web:hover .mock { transform: rotate(-2deg) translateY(-6px); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-dark); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.mock__bar i:nth-child(1) { background: #ff5f57; }
.mock__bar i:nth-child(2) { background: #febc2e; }
.mock__bar i:nth-child(3) { background: #28c840; }
.mock__bar span { margin-left: 10px; flex: 1; height: 18px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-family: var(--mono); font-size: 10px; color: var(--muted-light); display: flex; align-items: center; padding-left: 8px; }
.mock__body { padding: 18px; display: grid; gap: 10px; }
.mock__hero { height: 92px; border-radius: 10px; background: linear-gradient(120deg, var(--lime), #9bd400 40%, var(--violet)); position: relative; overflow: hidden; }
.mock__hero::after { content: ""; position: absolute; left: 14px; bottom: 14px; width: 46%; height: 12px; border-radius: 4px; background: rgba(11, 11, 13, .75); box-shadow: 0 -20px 0 -2px rgba(11, 11, 13, .75); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__row b { height: 54px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.mock__line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.mock__line:last-child { width: 60%; }

/* Barras SEO */
.seo-chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 22px; }
.seo-chart i {
  flex: 1; border-radius: 6px 6px 2px 2px;
  background: rgba(255, 255, 255, .08);
  height: var(--h);
  transform-origin: bottom;
  transform: scaleY(.2);
  transition: transform 1.1s var(--ease);
}
.seo-chart i:last-child, .seo-chart i:nth-last-child(2) { background: var(--lime); }
.is-in .seo-chart i { transform: scaleY(1); }
.is-in .seo-chart i:nth-child(2) { transition-delay: .06s; }
.is-in .seo-chart i:nth-child(3) { transition-delay: .12s; }
.is-in .seo-chart i:nth-child(4) { transition-delay: .18s; }
.is-in .seo-chart i:nth-child(5) { transition-delay: .24s; }
.is-in .seo-chart i:nth-child(6) { transition-delay: .30s; }
.is-in .seo-chart i:nth-child(7) { transition-delay: .36s; }
.is-in .seo-chart i:nth-child(8) { transition-delay: .42s; }

/* Anuncio de buscador */
.serp {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 13px;
  line-height: 1.4;
}
.serp small { display: block; color: var(--muted-light); }
.serp small b { color: var(--text-light); font-weight: 700; margin-right: 6px; }
.serp strong { display: block; color: #9db4ff; font-weight: 500; font-size: 15px; margin: 2px 0; }
.serp span { color: var(--muted-light); }

/* Tarjetas impresas */
.card--print { flex-direction: row; gap: 28px; }
.card--print .card__txt { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.prints { position: relative; flex: 0 0 42%; min-height: 220px; }
.prints div {
  position: absolute;
  width: 78%; aspect-ratio: 85 / 54;
  border-radius: 10px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .7);
  transition: transform .7s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px 14px;
  font-family: var(--display);
}
.prints div:nth-child(1) { left: 0; top: 18%; background: var(--paper); color: var(--ink); transform: rotate(-9deg); }
.prints div:nth-child(2) { right: 0; top: 4%; background: var(--lime); color: var(--ink); transform: rotate(6deg); }
.card--print:hover .prints div:nth-child(1) { transform: rotate(-14deg) translate(-10px, 6px); }
.card--print:hover .prints div:nth-child(2) { transform: rotate(10deg) translate(8px, -6px); }
.prints b { font-size: 15px; letter-spacing: -.02em; }
.prints small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .05em; opacity: .7; }

/* --------------------------------------------------------------------------
   Cifras
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line-dark);
}
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 28px); }
.stat + .stat { border-left: 1px solid var(--line-dark); }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 700;
  letter-spacing: -.05em;
  white-space: nowrap;
  line-height: 1;
}
.stat b sup { font-size: .45em; vertical-align: super; color: var(--lime); margin-left: 2px; }
.stat > span { display: block; margin-top: 10px; color: var(--muted-light); font-size: 15px; max-width: 22ch; }

/* --------------------------------------------------------------------------
   Por qué una web
   -------------------------------------------------------------------------- */

.why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.why__item {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 var(--line-light), 0 0 0 1px var(--line-light);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.why__item:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(11, 11, 13, .35), 0 0 0 1px var(--line-light); }
.why__item b { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.why__item h3 { font-family: var(--display); font-size: 23px; letter-spacing: -.025em; line-height: 1.15; margin: 14px 0 8px; font-weight: 700; }
.why__item p { margin: 0; color: var(--muted-dark); font-size: 15.5px; }
.why__item--accent { background: var(--ink); color: var(--text-light); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.why__item--accent h3 { font-size: 28px; }
.why-hint {
  display: none; align-items: center; gap: 8px;
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-dark);
}
.why-hint svg { width: 16px; height: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.why__item--accent p { color: var(--muted-light); }

/* --------------------------------------------------------------------------
   Método
   -------------------------------------------------------------------------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px 48px;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--line-dark);
  align-items: start;
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line-dark); }
.step::after {
  content: "";
  position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.step.is-in::after { transform: scaleX(1); }
.step__n { font-family: var(--mono); font-size: 14px; color: var(--lime); padding-top: 10px; }
.step h3 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 0; }
.step p { margin: 0; color: var(--muted-light); }
.step p + p { margin-top: 12px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(56px, 7vw, 96px);
}
.pillar {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.pillar h3 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; }
.pillar h3 svg { width: 22px; height: 22px; color: var(--lime); flex: none; }
.pillar p { margin: 0; color: var(--muted-light); font-size: 15.5px; }

.quote {
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.1;
  max-width: 24ch;
  text-wrap: balance;
}
.quote::before { content: "“"; display: block; font-size: 2.2em; line-height: .6; color: var(--lime); margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Trabajos
   -------------------------------------------------------------------------- */

.filters {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 28px;
  padding: 2px var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-light);
  font-size: 15px;
  cursor: pointer;
  color: var(--text-dark);
  transition: background .25s, color .25s, box-shadow .25s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--text-dark); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--text-light); box-shadow: none; }
.chip sup { font-family: var(--mono); font-size: 10px; margin-left: 4px; opacity: .6; }

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.work {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-light);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s, opacity .35s;
}
.work::after {
  content: "";
  position: absolute; inset: auto -30% -60% auto; z-index: -1;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--c, var(--lime));
  opacity: 0; filter: blur(40px);
  transition: opacity .5s;
}
.work:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(11, 11, 13, .35), 0 0 0 1px var(--line-light); }
.work:hover::after { opacity: .45; }
.work[hidden] { display: none; }
.work__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.work__mono {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--ink); color: var(--c, var(--lime));
  font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.04em;
}
.work__type {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: var(--paper); color: var(--muted-dark);
  white-space: nowrap;
}
.work h3 { font-family: var(--display); font-size: 25px; letter-spacing: -.03em; line-height: 1.1; margin: auto 0 6px; padding-top: 32px; font-weight: 700; }
.work p { margin: 0; color: var(--muted-dark); font-size: 15px; line-height: 1.5; }
.work__meta { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--muted-dark); }
.work__meta svg { width: 14px; height: 14px; flex: none; }

.works__more { margin-top: 28px; display: flex; justify-content: center; }

/* --------------------------------------------------------------------------
   Preguntas frecuentes
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 48px 80px;
  align-items: start;
}
.faq-grid .section__head { display: block; margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-grid .section__head .h-l { margin: 18px 0 22px; }

.faq details {
  border-top: 1px solid var(--line-dark);
}
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lime); }
.faq summary i {
  position: relative; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  transition: background .3s, transform .4s var(--ease);
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease);
}
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--lime); color: var(--ink); transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq__body { padding: 0 56px 28px 0; color: var(--muted-light); }
.faq__body p { margin: 0 0 12px; }
.faq__body ul { margin: 0 0 12px; padding-left: 20px; }
.faq__body li { margin-bottom: 6px; }
.faq__body li::marker { color: var(--lime); }
.faq__body strong { color: var(--text-light); font-weight: 600; }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--lime);
  color: var(--ink);
  isolation: isolate;
}
.contact .eyebrow { color: rgba(11, 11, 13, .65); }
.contact .eyebrow::before { background: var(--ink); box-shadow: 0 0 0 4px rgba(11, 11, 13, .12); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 80px;
  align-items: start;
}
.contact h2 { margin: 18px 0 24px; }
.contact .lead { color: rgba(11, 11, 13, .7); }
.mail {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(19px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size .4s var(--ease); }
.mail:hover span { background-size: 0 2px; background-position: 100% 100%; }
.copy {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: rgba(11, 11, 13, .08);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .25s;
}
.copy:hover { background: rgba(11, 11, 13, .16); }
.copy svg { width: 16px; height: 16px; }
.where { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 500; }
.where svg { width: 18px; height: 18px; }

.form {
  display: grid; gap: 14px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 28px;
  background: var(--ink);
  color: var(--text-light);
  box-shadow: 0 50px 100px -40px rgba(11, 11, 13, .6);
}
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .form label > span {
  display: block;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 10px;
}
.form .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.form .opts label { position: relative; }
.form .opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form .opts span {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 14.5px;
  transition: background .2s, color .2s, box-shadow .2s;
  margin: 0;
  font-family: var(--body); letter-spacing: 0; text-transform: none; color: var(--text-light);
}
.form .opts input:checked + span { background: var(--lime); color: var(--ink); box-shadow: none; }
.form .opts input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  border: 0;
  background: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  color: var(--text-light);
  font: inherit;
  font-size: 16px;
  transition: box-shadow .25s;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #6c6b66; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime); }
.form .btn { width: 100%; margin-top: 6px; }
.form__note { margin: 0; font-size: 13px; color: var(--muted-light); text-align: center; }

.contact__big {
  position: absolute; left: 50%; bottom: -.18em; z-index: -1;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 22vw;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(11, 11, 13, .06);
  pointer-events: none;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.footer { padding: 64px 0 max(32px, env(safe-area-inset-bottom)); background: var(--ink); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer p { color: var(--muted-light); margin: 18px 0 0; max-width: 36ch; font-size: 15.5px; }
.footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); font-weight: 400; margin: 6px 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer ul a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--text-light); transition: color .2s; }
.footer ul a:hover { color: var(--lime); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 28px;
  font-size: 14px; color: var(--muted-light);
}
.totop { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.totop:hover { color: var(--lime); }
.totop svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Animaciones de aparición
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink); color: var(--text-light);
  box-shadow: 0 0 0 1px var(--line-dark), 0 20px 40px -10px rgba(0, 0, 0, .6);
  font-size: 15px;
  transition: transform .5s var(--ease), visibility 0s .5s;
  white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--web { grid-column: 1 / -1; grid-row: auto; min-height: 580px; }
  .card--web .mock { top: 24px; width: min(52%, 420px); }
  .card--brand { grid-column: 1 / -1; }
  .card--shop, .card--cms, .card--seo, .card--ads, .card--host, .card--care { grid-column: span 1; }
  .card--print { grid-column: 1 / -1; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 80px minmax(0, 1fr); }
  .step > div { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .burger { display: block; }

  .hero__bottom { grid-template-columns: 1fr; }
  .hero__ctas { justify-content: flex-start; }

  .section__head { grid-template-columns: 1fr; }

  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 26px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line-light); }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

  .pillars { grid-template-columns: 1fr; }

  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .section__head { position: static; }

  .contact__grid { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero__top { margin-bottom: 20px; }
  .status { display: none; }
  .hero__ctas { display: grid; grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .hero__grid { background-size: 48px 48px; }

  .bento { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 0; }
  .card h3 { margin-top: 28px; }
  .card--web { min-height: 0; padding-bottom: 0; }
  .card--web .card__icon { margin-bottom: 0; }
  .card--web .mock { position: relative; right: auto; top: auto; order: 10; width: calc(100% + 24px); margin: 32px 0 -40px 0; transform: rotate(-3deg); z-index: 0; }
  .card--print { flex-direction: column; }
  .prints { flex: none; min-height: 190px; margin: 6px 0 0; }
  .prints div { width: 64%; }

  .why {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px;
    scroll-padding-inline: var(--gutter);
  }
  .why::-webkit-scrollbar { display: none; }
  .why__item { flex: 0 0 82%; scroll-snap-align: start; }
  .why__item:hover { transform: none; }
  .why-hint { display: flex; }

  .stat b { font-size: 40px; }
  .stat > span { font-size: 14px; }

  .step { grid-template-columns: 1fr; gap: 12px; }
  .step > div { grid-column: auto; }
  .step__n { padding-top: 0; }

  .works { grid-template-columns: 1fr; gap: 12px; }
  .work { min-height: 0; padding: 22px; }
  .work h3 { padding-top: 22px; font-size: 23px; }

  .faq summary { padding: 22px 0; }
  .faq__body { padding-right: 0; }

  .form .row { grid-template-columns: 1fr; }
  .form { border-radius: 22px; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

@media (hover: none) {
  .card::before, .work::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
  .marquee__track { animation: none; }
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Ampliación: PrestaShop, webs de gestión, SEO local y trabajos destacados
   ========================================================================== */

/* ---------- Trabajos: rejilla de 6 columnas con destacados ---------- */
.works { grid-template-columns: repeat(6, 1fr); }
.work { grid-column: span 2; }
.work--featured { grid-column: span 3; }
.works.is-filtered .work--featured { grid-column: span 2; }

.work--featured {
  min-height: 340px;
  padding: clamp(26px, 2.6vw, 36px);
  background: var(--ink);
  color: var(--text-light);
  box-shadow: none;
}
.work--featured::after { opacity: .35; width: 340px; height: 340px; }
.work--featured:hover::after { opacity: .6; }
.work--featured .work__mono { width: 60px; height: 60px; font-size: 22px; background: var(--c); color: var(--ink); }
.work--featured .work__type { background: rgba(255, 255, 255, .08); color: var(--text-light); }
.work--featured h3 { font-size: clamp(28px, 3vw, 40px); }
.work--featured p { color: var(--muted-light); font-size: 16px; max-width: 46ch; }
.work--featured .work__meta { color: var(--muted-light); }
.work__star {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c);
}
.work__star::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.work__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.work__facts li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.work__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-weight: 600; font-size: 15px;
  color: var(--text-light); text-decoration: none;
  width: fit-content;
}
.work__link span { background: linear-gradient(var(--c), var(--c)) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; }
.work__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.work__link:hover svg { transform: translate(2px, -2px); }
.work:not(.work--featured) .work__link { color: var(--text-dark); font-size: 14px; margin-top: 14px; }

/* ---------- PrestaShop ---------- */
.ps {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: stretch;
}
.ps__shop {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
}
.ps__shop::before {
  content: ""; position: absolute; z-index: -1;
  width: 420px; height: 420px; right: -140px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 255, 58, .28), transparent 65%);
}
.ps__big {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .9;
}
.ps__big sup { font-size: .4em; color: var(--lime); vertical-align: super; }
.ps__shop > div > p { margin: 12px 0 0; color: var(--muted-light); max-width: 34ch; }

.store {
  border-radius: 16px;
  background: #121216;
  box-shadow: 0 0 0 1px var(--line-dark);
  padding: 14px;
}
.store__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted-light); }
.store__bar b { display: inline-flex; align-items: center; gap: 6px; color: var(--text-light); font-family: var(--display); font-size: 14px; letter-spacing: -.02em; }
.store__bar b::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--lime); }
.store__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.store__item { border-radius: 10px; background: rgba(255, 255, 255, .05); padding: 8px; }
.store__item i { display: block; aspect-ratio: 4 / 3; border-radius: 7px; margin-bottom: 8px; background: linear-gradient(135deg, var(--a, #2a2a33), var(--b, #3a3a46)); }
.store__item s { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); text-decoration: none; }
.store__item s + s { width: 60%; margin-top: 5px; }
.store__item u { display: block; margin-top: 8px; height: 18px; border-radius: 6px; background: var(--lime); opacity: .9; }

.store-wrap { position: relative; }
.orders { position: absolute; right: -6px; top: -64px; display: grid; gap: 8px; z-index: 2; width: min(250px, 70%); }
.order {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: rgba(30, 30, 36, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--line-dark), 0 20px 40px -20px rgba(0, 0, 0, .8);
  font-size: 13px; line-height: 1.25;
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.order i { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-style: normal; font-weight: 700; font-size: 14px; }
.order small { display: block; color: var(--muted-light); font-size: 11.5px; }
.is-in .order { opacity: 1; transform: none; }
.is-in .order:nth-child(2) { transition-delay: .5s; }
.is-in .order:nth-child(3) { transition-delay: 1s; }

.ps__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ps__item {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-light);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.ps__item:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(11, 11, 13, .35), 0 0 0 1px var(--line-light); }
.ps__item svg { width: 26px; height: 26px; color: var(--orange); }
.ps__item h3 { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; line-height: 1.15; margin: 14px 0 6px; font-weight: 700; }
.ps__item p { margin: 0; color: var(--muted-dark); font-size: 15px; line-height: 1.5; }

/* ---------- Webs de gestión (banner) ---------- */
.apps { padding: clamp(40px, 6vw, 80px) 0; background: var(--paper); }
.apps__box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(139, 123, 255, .55), transparent 55%),
    radial-gradient(80% 90% at 0% 100%, rgba(255, 91, 46, .25), transparent 60%),
    #17142b;
  color: var(--text-light);
  overflow: hidden;
  isolation: isolate;
}
.apps__box::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 40%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 80% 40%, #000, transparent 70%);
}
.apps .eyebrow::before { background: var(--violet); box-shadow: 0 0 0 4px rgba(139, 123, 255, .25); }
.apps h2 { margin: 18px 0 20px; }
.apps .lead { color: #c9c5e0; }
.apps__feats {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px;
}
.apps__feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.apps__feats svg { width: 20px; height: 20px; flex: none; color: var(--lime); margin-top: 1px; }
.apps__for { margin: 26px 0 0; font-size: 14.5px; color: #a9a4c7; }
.apps__for strong { color: var(--text-light); font-weight: 600; }
.apps .btn { margin-top: 28px; }

.phone-wrap { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.phone {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  padding: 12px;
  background: #0b0b0d;
  box-shadow: 0 0 0 2px #2b2840, 0 60px 100px -30px rgba(0, 0, 0, .8);
  transform: rotate(4deg);
  transition: transform .8s var(--ease);
}
.apps__box:hover .phone { transform: rotate(1deg) translateY(-6px); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: #000; z-index: 3; }
.phone__screen {
  height: 100%;
  border-radius: 34px;
  background: #f6f4ff;
  color: #17142b;
  padding: 52px 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  font-size: 12px;
}
.phone__screen h4 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: -.03em; }
.phone__screen h4 small { display: block; font-family: var(--body); font-size: 11px; font-weight: 500; color: #7a7596; letter-spacing: 0; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-chips span { padding: 6px 10px; border-radius: 999px; background: #e7e3fb; font-weight: 600; font-size: 11px; }
.ph-chips span.on { background: #17142b; color: #fff; }
.ph-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; }
.ph-days span { padding: 7px 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e4e0f5; font-size: 10px; color: #7a7596; line-height: 1.2; }
.ph-days span b { display: block; font-size: 14px; color: #17142b; }
.ph-days span.on { background: var(--violet); box-shadow: none; color: #efeaff; }
.ph-days span.on b { color: #fff; }
.ph-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-slots span { padding: 8px 0; text-align: center; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e4e0f5; font-weight: 600; }
.ph-slots span.off { color: #c4c0d6; text-decoration: line-through; box-shadow: none; background: transparent; }
.ph-slots span.on { background: var(--lime); box-shadow: none; }
.ph-sum { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e4e0f5; line-height: 1.35; }
.ph-sum small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #7a7596; }
.ph-sum b { display: block; font-family: var(--display); font-size: 15px; letter-spacing: -.02em; margin: 2px 0; }
.ph-sum span { font-size: 11.5px; color: #4b4666; }
.ph-btn { padding: 12px; border-radius: 14px; background: #17142b; color: #fff; text-align: center; font-weight: 700; font-size: 13px; }

.notif {
  position: absolute;
  display: flex; gap: 10px; align-items: center;
  width: 250px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  color: #17142b;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  font-size: 12.5px; line-height: 1.3;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 4;
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.notif i { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: #17142b; color: var(--lime); font-style: normal; }
.notif i svg { width: 18px; height: 18px; }
.notif small { display: block; color: #6c6788; }
.notif--1 { left: -4%; top: 1%; }
.notif--2 { right: -10%; bottom: 36%; }
.is-in .notif { opacity: 1; transform: none; }
.is-in .notif--2 { transition-delay: .5s; }

/* ---------- SEO local ---------- */
.local {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: center;
}
.local h2 { margin: 18px 0 22px; }
.local__pts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.local__pts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.local__pts i {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(212, 255, 58, .1); color: var(--lime);
}
.local__pts i svg { width: 22px; height: 22px; }
.local__pts h3 { margin: 0 0 4px; font-family: var(--display); font-size: 20px; letter-spacing: -.02em; font-weight: 700; }
.local__pts p { margin: 0; color: var(--muted-light); font-size: 15.5px; }

.map {
  position: relative;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 42%, #1a1c12, var(--ink-2) 70%);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  overflow: hidden;
}
.map svg { width: 100%; height: auto; }
.map__ring { fill: none; stroke: rgba(255, 255, 255, .09); stroke-dasharray: 3 6; }
.map__ringlbl { fill: #6c6b66; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.map__sea { fill: #6c6b66; font-family: var(--mono); font-size: 10px; letter-spacing: .3em; }
.map__line { stroke: rgba(212, 255, 58, .35); stroke-width: 1; stroke-dasharray: 2 4; }
.map__dot { fill: var(--lime); }
.map__dot--ref { fill: #6c6b66; }
.map__lbl { fill: var(--text-light); font-family: var(--body); font-size: 14px; font-weight: 600; }
.map__lbl--ref { fill: var(--muted-light); font-weight: 500; }
.map__home { fill: var(--lime); }
.map__pulse { fill: none; stroke: var(--lime); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.map__pulse--2 { animation-delay: 1.3s; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.map__home-lbl { fill: var(--lime); font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.map__legend {
  position: absolute; left: 18px; bottom: 16px;
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted-light);
}
.map__legend span { display: inline-flex; align-items: center; gap: 6px; }
.map__legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.map__legend span:last-child::before { background: #6c6b66; }

.towns { margin-top: clamp(40px, 5vw, 64px); }
.towns h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); font-weight: 400; margin: 0 0 16px; }
.towns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li {
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: 15px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.towns li:hover { background: var(--lime); color: var(--ink); box-shadow: none; }

/* ---------- Responsive de lo nuevo ---------- */
@media (max-width: 1100px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .work, .work--featured, .works.is-filtered .work--featured { grid-column: span 1; }
  .ps { grid-template-columns: 1fr; }
  .apps__box { grid-template-columns: 1fr; }
  .phone-wrap { padding: 30px 0 10px; }
  .card--apps { grid-column: 1 / -1; }
}

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

@media (max-width: 640px) {
  .works { grid-template-columns: 1fr; }
  .work--featured { min-height: 0; }
  .ps__list { grid-template-columns: 1fr; gap: 12px; }
  .ps__item { padding: 22px; }
  .orders { position: static; width: auto; margin-bottom: 10px; }
  .order:nth-child(3) { display: none; }
  .store__bar span { display: none; }
  .apps { padding: 24px 0; }
  .apps__box { border-radius: 26px; padding: 28px 20px 8px; gap: 8px; }
  .apps__feats { grid-template-columns: 1fr; }
  .apps .btn { width: 100%; }
  .phone { width: 240px; }
  .notif { width: 210px; font-size: 11.5px; padding: 10px 12px; }
  .notif--1 { left: 0; top: 6%; }
  .notif--2 { right: 0; bottom: 36%; }
  .map { border-radius: 22px; }
  .map__legend { position: static; padding: 0 18px 16px; }
  .map__lbl { font-size: 19px; }
  .map__home-lbl { font-size: 25px; }
  .map__ringlbl { font-size: 13px; }
  .map__sea { font-size: 13px; }
}

/* ---------- Formulario de contacto real ---------- */
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; line-height: 1.45; color: var(--text-light); }
.form .check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lime); cursor: pointer; }
.form .check span { display: inline; margin: 0; font-family: var(--body); font-size: 14.5px; letter-spacing: 0; text-transform: none; color: var(--text-light); }
.form__legal { margin: -4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted-light); }
.form__legal strong { color: var(--text-light); font-weight: 600; }
.form__estado { margin: 0; min-height: 1.4em; font-size: 14.5px; text-align: center; color: var(--muted-light); }
.form__estado.es-error { color: #ff8a6b; }
.form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #ff8a6b !important; }
.form--ok { text-align: center; justify-items: center; padding: clamp(36px, 5vw, 56px) clamp(22px, 3vw, 36px); }
.form--ok:focus { outline: none; }
.form--ok h3 { font-family: var(--display); font-size: clamp(28px, 3vw, 36px); letter-spacing: -.03em; margin: 6px 0 0; }
.form--ok p { margin: 0; color: var(--muted-light); max-width: 34ch; }
.form__okicon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.form__okicon svg { width: 30px; height: 30px; }

.form[hidden], .form--ok[hidden] { display: none !important; }
