/* ==========================================================================
   Darío Herrera — Portafolio
   Layout: lienzo oscuro con aurora cálida que sigue al cursor, bento de
   servicios en cristal, escaparate de proyectos con profundidad.
   ========================================================================== */
:root {
  --bg: #0b0b10;
  --bg-2: #12121a;
  --fg: #f4f1ec;
  --muted: #a7a3ad;
  --line: rgba(244, 241, 236, .09);
  --glass: rgba(255, 255, 255, .035);
  --glass-hi: rgba(255, 255, 255, .07);
  --c1: #ff6a3d;   /* coral */
  --c2: #ffb547;   /* ámbar */
  --c3: #e2488f;   /* rosa */
  --ok: #3ddc84;
  --grad: linear-gradient(100deg, var(--c3) 0%, var(--c1) 45%, var(--c2) 100%);

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r: 22px;
  --r-sm: 12px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--c1); color: var(--bg); }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%; max-width: calc(var(--max) + 64px); margin: 0 auto;
  padding-left: max(var(--gut-l), 4vw); padding-right: max(var(--gut-r), 4vw);
}
@media (min-width: 1400px) { .wrap { padding-left: 32px; padding-right: 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--fg); color: var(--bg); padding: .6rem 1rem; border-radius: 8px; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.eyebrow {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

/* --------------------------------------------------------------------------
   Aurora de fondo
   -------------------------------------------------------------------------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::after { /* grano fino */
  content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.blob--1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -18vmax; background: var(--c3); opacity: .32; animation: drift1 26s ease-in-out infinite alternate; }
.blob--2 { width: 46vmax; height: 46vmax; right: -16vmax; top: -6vmax; background: var(--c1); opacity: .30; animation: drift2 30s ease-in-out infinite alternate; }
.blob--3 { width: 38vmax; height: 38vmax; left: 30%; top: 55vh; background: var(--c2); opacity: .16; animation: drift3 34s ease-in-out infinite alternate; }
.blob--follow {
  width: 34vmax; height: 34vmax; left: 0; top: 0; margin: -17vmax 0 0 -17vmax;
  background: radial-gradient(circle, var(--c1), transparent 65%); opacity: .0; filter: blur(60px);
  transition: opacity .8s;
}
.blob--follow.is-on { opacity: .28; }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 16vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-18vmax, -8vmax) scale(1.2); } }
.aurora__fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, transparent 55vh, var(--bg) 120vh); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  padding-block: 14px;
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 8px 8px 8px 16px;
  background: rgba(14, 14, 20, .55);
  border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.logo__mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: var(--bg);
  font-family: var(--f-display); font-size: .72rem; font-weight: 700;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--muted);
  padding: .55rem .9rem; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--fg); background: var(--glass-hi); }
.nav .nav__cta { background: var(--fg); color: var(--bg); font-weight: 600; margin-left: 6px; }
.nav .nav__cta:hover { background: var(--c2); color: var(--bg); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 999px; padding: 0;
  background: var(--glass-hi); border: 1px solid var(--line); cursor: pointer; position: relative;
}
.nav-toggle span { position: absolute; left: 13px; width: 16px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.5rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .98rem; border: 1px solid var(--line);
  background: var(--glass); color: var(--fg);
  transition: transform .25s var(--ease), background .2s, border-color .2s;
}
.btn:hover { background: var(--glass-hi); border-color: rgba(255,255,255,.2); }
.btn--primary { background: var(--grad); color: #1a0d08; border: 0; box-shadow: 0 10px 40px -10px rgba(255, 106, 61, .7); }
.btn--primary:hover { background: var(--grad); filter: brightness(1.08); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5rem); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__copy { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  background: var(--glass-hi); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--fg);
}
.pill__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-left: -.35rem; border: 2px solid rgba(255,255,255,.2); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.045em;
  margin: 1.5rem 0 1.5rem;
}
.hero__title .line { display: block; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 52ch; }
.hero__lead strong { color: var(--fg); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__meta div { display: flex; flex-direction: column; gap: .15rem; }
.hero__meta dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero__meta dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Escena de dispositivos */
.scene { position: relative; aspect-ratio: 1 / .92; max-width: 100%; perspective: 1400px; }
.scene__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.device {
  position: absolute; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.3);
  background: var(--bg-2);
}
.device--browser { left: 0; top: 6%; width: 86%; aspect-ratio: 16 / 11; transform: translateZ(0); }
.device--phone { right: 0; bottom: 0; width: 34%; aspect-ratio: 9 / 18.5; border-radius: 26px; border: 6px solid #1c1c26; transform: translateZ(80px); }
.chip-float {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem .9rem; border-radius: 14px; font-size: .8rem; font-weight: 600;
  background: rgba(20, 20, 28, .75); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  transform: translateZ(120px);
  animation: bob 6s ease-in-out infinite;
}
.chip-float b { font-family: var(--f-mono); font-weight: 500; }
.chip-float--a { left: -3%; bottom: 14%; }
.chip-float--b { right: 6%; top: 0; animation-delay: -3s; }
.chip-float .sw { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; color: #1a0d08; font-size: .7rem; }
@keyframes bob { 50% { translate: 0 -8px; } }

.bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.07); font-family: var(--f-mono); font-size: .62rem; color: var(--muted); }
.bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.bar i:first-child { background: #ff5f57; } .bar i:nth-child(2) { background: #febc2e; } .bar i:nth-child(3) { background: #28c840; }
.bar span { margin-left: 8px; padding: 2px 10px; border-radius: 6px; background: rgba(255,255,255,.05); }

/* Mock restaurante (navegador hero + tarjeta) */
.resto { height: calc(100% - 30px); display: grid; grid-template-columns: 1.25fr 1fr; background: #17100c; color: #f5e8d6; }
.resto__hero {
  padding: 9%; display: flex; flex-direction: column; justify-content: flex-end; gap: .55em;
  background: radial-gradient(110% 80% at 15% 105%, #d9541e 0%, transparent 60%), radial-gradient(70% 60% at 100% 0%, #5a2c14, transparent 70%), #17100c;
  font-size: clamp(.5rem, 1vw, .78rem);
}
.resto__eyebrow { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .12em; opacity: .75; font-size: .85em; }
.resto__title { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 4.2em; line-height: .9; }
.resto__btn { align-self: flex-start; padding: .55em 1em; border-radius: 999px; background: #f5e8d6; color: #17100c; font-weight: 700; font-size: .9em; }
.resto__menu { padding: 10% 9%; display: flex; flex-direction: column; justify-content: center; gap: .6em; border-left: 1px solid rgba(245, 232, 214, .12); font-size: clamp(.48rem, .9vw, .72rem); }
.resto__menu p { display: flex; justify-content: space-between; gap: .5em; padding-bottom: .45em; border-bottom: 1px dashed rgba(245, 232, 214, .2); }
.resto__menu .h { font-family: Georgia, serif; font-style: italic; font-size: 1.7em; border: 0; }

/* Mock móvil SaaS */
.app { height: 100%; background: #f6f6fa; color: #15151f; padding: 14% 9% 9%; display: flex; flex-direction: column; gap: 7%; font-size: clamp(.42rem, .8vw, .62rem); }
.app__top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1.3em; }
.app__top i { width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--grad); }
.app__kpi { background: #15151f; color: #fff; border-radius: 1.2em; padding: 10%; }
.app__kpi small { opacity: .6; font-family: var(--f-mono); text-transform: uppercase; font-size: .8em; }
.app__kpi strong { display: block; font-size: 2.6em; letter-spacing: -.04em; line-height: 1.1; }
.app__chart { display: flex; align-items: flex-end; gap: 6%; height: 22%; }
.app__chart i { flex: 1; height: var(--h); border-radius: .4em; background: #d9d9e6; }
.app__chart i.on { background: var(--c1); }
.app__row { display: flex; align-items: center; gap: .8em; padding: .7em; background: #fff; border-radius: .9em; border: 1px solid #e6e6ef; }
.app__row b { width: 2.2em; height: 2.2em; border-radius: .6em; background: #ffe2d6; flex: none; }
.app__row:nth-of-type(2) b { background: #ffeccc; }
.app__row span { display: flex; flex-direction: column; line-height: 1.25; }
.app__row em { font-style: normal; opacity: .55; font-size: .9em; }

/* --------------------------------------------------------------------------
   Logos / marquee de sectores
   -------------------------------------------------------------------------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.25rem; background: rgba(11, 11, 16, .4); }
.ticker__track { display: flex; gap: 3rem; width: max-content; animation: ticker 40s linear infinite; align-items: center; }
.ticker__track span { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.02em; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.ticker__track span::after { content: "✦"; font-size: .7em; color: var(--c1); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem) 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__head > div { min-width: 0; max-width: 40rem; }
.section__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.7rem); line-height: 1.02; letter-spacing: -.04em; margin-top: .9rem; }
.section__note { color: var(--muted); max-width: 40ch; }

/* Tarjeta de cristal con brillo que sigue al ratón */
.glass {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 140, 90, .14), transparent 60%);
}
.glass:hover::before { opacity: 1; }

/* Bento de servicios */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc { padding: clamp(1.5rem, 2.6vw, 2.2rem); display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.svc--resto { grid-column: span 4; }
.svc--corp { grid-column: span 2; }
.svc--saas { grid-column: span 3; }
.svc--care { grid-column: span 3; }
.svc__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--glass-hi); border: 1px solid var(--line); margin-bottom: .6rem;
}
.svc__icon svg { width: 22px; height: 22px; stroke: var(--c2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -.03em; line-height: 1.15; }
.svc p { color: var(--muted); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: 1rem; }
.chips li { font-size: .78rem; font-weight: 500; padding: .3rem .7rem; border-radius: 999px; background: var(--glass-hi); border: 1px solid var(--line); color: var(--fg); }
.svc--resto { display: grid; grid-template-columns: 1fr .85fr; gap: 1.5rem 2rem; align-items: stretch; }
.svc--resto .svc__body { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.mini-menu {
  align-self: stretch; border-radius: 16px; padding: 1.25rem; background: #17100c; color: #f5e8d6;
  display: flex; flex-direction: column; gap: .55rem; font-size: .85rem; border: 1px solid rgba(245,232,214,.1);
  background-image: radial-gradient(90% 60% at 100% 100%, rgba(217, 84, 30, .35), transparent 70%);
}
.mini-menu .h { font-family: Georgia, serif; font-style: italic; font-size: 1.35rem; margin-bottom: .2rem; }
.mini-menu p { display: flex; justify-content: space-between; gap: .75rem; border-bottom: 1px dashed rgba(245,232,214,.2); padding-bottom: .45rem; }
.mini-menu p span:last-child { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.mini-menu .qr { margin-top: auto; display: flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .7rem; opacity: .8; border: 0; }
.mini-menu .qr i { width: 30px; height: 30px; border-radius: 4px; background:
  conic-gradient(from 90deg at 30% 30%, #f5e8d6 25%, transparent 0) 0 0/10px 10px, #17100c; border: 3px solid #f5e8d6; }

/* --------------------------------------------------------------------------
   Proyectos
   -------------------------------------------------------------------------- */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proj { padding: 14px; display: flex; flex-direction: column; min-width: 0; transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s; }
.proj:hover { border-color: rgba(255,255,255,.18); }
.proj__shot {
  position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%;
  border: 1px solid rgba(255,255,255,.08); background: var(--bg-2);
}
.proj__shot > .mockwrap { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .7s var(--ease); }
.proj:hover .proj__shot > .mockwrap { transform: scale(1.035); }
.proj__info { padding: 1.25rem .6rem .5rem; display: flex; flex-direction: column; gap: .5rem; }
.proj__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.proj__cat { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.badge { font-size: .7rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; border: 1px dashed rgba(255, 181, 71, .5); color: var(--c2); }
.proj h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.03em; }
.proj__info > p { color: var(--muted); }

.mock-saas { flex: 1; display: grid; grid-template-columns: 17% 1fr; background: #f6f6fa; min-height: 0; }
.mock-saas__side { background: #15151f; padding: 16% 18%; display: flex; flex-direction: column; gap: 10%; }
.mock-saas__side b { height: 7px; border-radius: 4px; background: #34344a; }
.mock-saas__side b:first-child { background: var(--c1); }
.mock-saas__main { padding: 6%; display: flex; flex-direction: column; gap: 6%; min-width: 0; }
.mock-saas__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.mock-saas__kpis p { background: #fff; border: 1px solid #e4e4ee; border-radius: 10px; padding: 8% 10%; display: flex; flex-direction: column; color: #15151f; }
.mock-saas__kpis small { font-family: var(--f-mono); font-size: clamp(.4rem, .7vw, .58rem); text-transform: uppercase; opacity: .55; }
.mock-saas__kpis strong { font-size: clamp(.9rem, 1.8vw, 1.5rem); letter-spacing: -.04em; }
.mock-saas__chart { flex: 1; background: #fff; border: 1px solid #e4e4ee; border-radius: 10px; padding: 5%; display: flex; align-items: flex-end; gap: 4%; }
.mock-saas__chart i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: #d9d9e6; transition: height .6s var(--ease); }
.mock-saas__chart i.on { background: linear-gradient(180deg, var(--c2), var(--c1)); }

.mock-corp { flex: 1; background: #e8ece8; padding: 7%; display: flex; flex-direction: column; justify-content: space-between; color: #1b2722; min-height: 0; }
.mock-corp__nav { display: flex; justify-content: space-between; font-size: clamp(.45rem, .8vw, .62rem); font-weight: 700; }
.mock-corp__nav span { display: flex; gap: 1.2em; font-weight: 500; opacity: .7; }
.mock-corp__title { font-family: var(--f-display); font-size: clamp(1.1rem, 2.8vw, 2.3rem); font-weight: 700; line-height: .95; letter-spacing: -.05em; }
.mock-corp__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3%; height: 36%; }
.mock-corp__grid i { border-radius: 8px; background: linear-gradient(160deg, #82948a, #34443c); }
.mock-corp__grid i:nth-child(2) { background: linear-gradient(160deg, #cbd2c9, #8d998e); }
.mock-corp__grid i:nth-child(3) { background: #1b2722; }

.mock-shop { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 6%; background: #fff6ec; min-height: 0; }
.mock-shop__item { display: flex; flex-direction: column; gap: .35rem; font-size: clamp(.5rem, .9vw, .74rem); color: #3a2313; min-height: 0; }
.mock-shop__item i { flex: 1; border-radius: 10px; background: #dcb690; position: relative; }
.mock-shop__item i::after { content: ""; position: absolute; left: 30%; right: 30%; top: 20%; bottom: 14%; border-radius: 6px 6px 10px 10px; background: #3a2313; }
.mock-shop__item:nth-child(2) i { background: #a9c6a2; }
.mock-shop__item:nth-child(3) i { background: #ec9781; }
.mock-shop__item p { font-weight: 700; }
.mock-shop__item span { font-family: var(--f-mono); }

.proj .chips { padding-top: .5rem; }
.badge--real { border-style: solid; border-color: rgba(61, 220, 132, .5); color: var(--ok); }
.badge--own { border-style: solid; border-color: rgba(255, 106, 61, .55); color: var(--c1); }

/* Hogar Santa Rita (recreación de su panel de citas) */
.mock-rita { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #3b4a55; }
.mock-rita__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.mock-rita__card {
  position: relative; width: 58%; background: #fff; color: #212529; border-radius: 10px;
  padding: 4% 5%; display: flex; flex-direction: column; gap: .5em; align-items: stretch;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); font-size: clamp(.45rem, .85vw, .7rem);
}
.mock-rita__logo { width: 38%; align-self: center; }
.mock-rita__h { font-weight: 700; font-size: 1.25em; text-align: center; }
.mock-rita__days, .mock-rita__hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; }
.mock-rita__days span, .mock-rita__hours span { border: 1px solid #dee2e6; border-radius: .4em; text-align: center; padding: .35em 0; font-variant-numeric: tabular-nums; }
.mock-rita__days span { display: flex; flex-direction: column; font-size: .9em; color: #6c757d; }
.mock-rita__days b { color: #212529; font-size: 1.2em; }
.mock-rita__days .on, .mock-rita__hours .on { background: #0d6efd; border-color: #0d6efd; color: #fff; }
.mock-rita__days .on b { color: #fff; }
.mock-rita__hours .off { color: #adb5bd; text-decoration: line-through; }
.mock-rita__btn { background: #0d6efd; color: #fff; border-radius: .4em; text-align: center; font-weight: 700; padding: .55em; margin-top: .2em; }

/* Censo de palomas (recreación del panel de clubes) */
.mock-col { flex: 1; min-height: 0; display: grid; grid-template-columns: 26% 1fr; background: #f1f1f1; font-size: clamp(.42rem, .8vw, .64rem); }
.mock-col__side { background: #212529; color: #fff; padding: 8% 7%; display: flex; flex-direction: column; gap: .35em; }
.mock-col__side img { width: 46%; align-self: center; margin-bottom: .6em; border-radius: 50%; }
.mock-col__side span { padding: .45em .6em; border-radius: .35em; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-col__side .on { background: #0d6efd; opacity: 1; }
.mock-col__main { padding: 5% 6%; display: flex; flex-direction: column; gap: 5%; min-width: 0; color: #212529; }
.mock-col__h { font-weight: 700; font-size: 1.35em; }
.mock-col__h em { font-style: normal; font-weight: 500; color: #6c757d; font-size: .8em; }
.mock-col__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.mock-col__kpis p { background: #fff; border-radius: .5em; padding: 6% 8%; border-top: 3px solid #ffc107; display: flex; flex-direction: column; }
.mock-col__kpis small { color: #6c757d; }
.mock-col__kpis b { font-size: 1.6em; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mock-col__table { background: #fff; border-radius: .5em; overflow: hidden; }
.mock-col__table p { display: grid; grid-template-columns: 1.3fr 1fr .9fr; padding: .5em .8em; border-top: 1px solid #eee; font-variant-numeric: tabular-nums; }
.mock-col__table .th { background: #ffc107; font-weight: 700; border: 0; }
.mock-col__table .ok { color: #198754; font-weight: 600; }
.mock-col__table .wait { color: #b8860b; font-weight: 600; }

/* RapidBill (recreación de su landing) */
.mock-rb { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4%; padding: 0 6%; background: #fff; color: #111827; font-size: clamp(.45rem, .85vw, .7rem); }
.mock-rb__copy { display: flex; flex-direction: column; gap: .6em; }
.mock-rb__brand { font-weight: 800; color: #4338ca; }
.mock-rb__h { font-weight: 800; font-size: 2.1em; line-height: 1.05; letter-spacing: -.03em; }
.mock-rb__sub { color: #374151; }
.mock-rb__btn { align-self: flex-start; background: #111827; color: #fff; border-radius: 1em; padding: .7em 1.2em; font-weight: 600; }
.mock-rb__phone { background: #000; border-radius: 1.6em; padding: .45em; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); height: 84%; display: flex; }
.mock-rb__inv { flex: 1; background: #fff; border-radius: 1.25em; padding: 12% 10%; display: flex; flex-direction: column; gap: .45em; font-size: .9em; }
.mock-rb__inv .co { font-weight: 700; color: #4338ca; font-size: 1.15em; }
.mock-rb__inv .meta { color: #6b7280; margin-bottom: .4em; }
.mock-rb__inv .line, .mock-rb__inv .total { display: flex; justify-content: space-between; gap: .5em; border-bottom: 1px solid #e5e7eb; padding-bottom: .35em; font-variant-numeric: tabular-nums; }
.mock-rb__inv .total { border: 0; font-weight: 800; margin-top: auto; }

/* --------------------------------------------------------------------------
   Proceso (secuencia real: A → D)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; position: relative; }
.step { padding: 1.75rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; counter-increment: s; }
.step__n {
  font-family: var(--f-display); font-weight: 700; font-size: 2.6rem; line-height: 1; letter-spacing: -.05em;
  margin-bottom: 1.5rem;
}
.step__n::before { content: "0" counter(s); }
.step h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: .97rem; }
.step__time { margin-top: auto; padding-top: .9rem; font-family: var(--f-mono); font-size: .72rem; color: var(--c2); letter-spacing: .04em; }

/* --------------------------------------------------------------------------
   Sobre mí
   -------------------------------------------------------------------------- */
.about { display: grid; gap: 16px; }
.about__card { padding: clamp(14px, 1.6vw, 18px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: stretch; }
.about__photo { position: relative; margin: 0; border-radius: calc(var(--r) - 6px); overflow: hidden; max-width: 100%; }
.about__photo img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; }
.about__photo figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; padding: .8rem 1rem; border-radius: 14px;
  background: rgba(14, 14, 20, .6); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.about__photo figcaption strong { font-weight: 700; }
.about__photo figcaption span { font-size: .85rem; color: var(--muted); }
.about__text { display: flex; flex-direction: column; gap: 1.1rem; justify-content: center; padding: clamp(.5rem, 2vw, 1.5rem) clamp(.5rem, 2vw, 1.5rem) clamp(.5rem, 2vw, 1.5rem) 0; min-width: 0; }
.about__big { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.25; letter-spacing: -.03em; }
.about__text > p:not(.about__big) { color: var(--muted); max-width: 62ch; }
.about__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.1rem; min-width: 0; }
.stat__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__l { font-size: .9rem; color: var(--muted); }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; margin-top: .4rem; }
.principles li { display: flex; gap: .7rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.principles li::before { content: "✓"; color: var(--c2); font-weight: 700; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq__item { padding: 0; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  padding: 1.3rem 1.5rem; font-weight: 600; font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass-hi); border: 1px solid var(--line); font-style: normal; transition: transform .3s var(--ease), background .3s;
}
.faq__item[open] summary i { transform: rotate(45deg); background: var(--c1); color: #1a0d08; border-color: transparent; }
.faq__item p { padding: 0 1.5rem 1.4rem; color: var(--muted); max-width: 68ch; }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact { padding-block: clamp(4.5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem); }
.contact__card {
  position: relative; overflow: hidden; border-radius: 32px;
  padding: clamp(2rem, 6vw, 5rem);
  background: radial-gradient(120% 140% at 0% 0%, rgba(226, 72, 143, .55), transparent 55%),
              radial-gradient(120% 140% at 100% 100%, rgba(255, 181, 71, .45), transparent 55%),
              linear-gradient(135deg, #2a1220, #301a10);
  border: 1px solid rgba(255,255,255,.12);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 2.5rem; align-items: end;
}
.contact__card > * { min-width: 0; }
.contact__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 5rem); line-height: .98; letter-spacing: -.05em; margin: 1rem 0 2rem; }
.methods { display: flex; flex-direction: column; gap: 1rem; }
.method { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.method__label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 241, 236, .75); }
.method__row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.method__value {
  font-family: var(--f-mono); font-size: clamp(.95rem, 2vw, 1.25rem); color: var(--fg); text-decoration: none;
  padding: .8rem 1.1rem; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14);
  user-select: all; -webkit-user-select: all; word-break: break-all; min-width: 0;
  transition: border-color .2s;
}
.method__value:hover { border-color: rgba(255,255,255,.35); }
.copy, .wa {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none;
  padding: .8rem 1.15rem; border-radius: 14px; border: 0; background: var(--fg); color: var(--bg);
  display: inline-flex; align-items: center; transition: background .2s;
}
.copy:hover { background: var(--c2); }
.copy.is-done { background: var(--ok); }
.wa { background: #25d366; color: #06210f; }
.wa:hover { background: #3ee07c; }
.contact__list { display: flex; flex-direction: column; gap: .2rem; }
.contact__list li { display: flex; gap: .8rem; padding: .7rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact__list li span { font-family: var(--f-mono); font-size: .75rem; color: var(--c2); padding-top: .2rem; }
.contact__promise { margin-top: 1.25rem; font-size: .9rem; color: rgba(244, 241, 236, .75); }

.footer { border-top: 1px solid var(--line); padding-block: 1.75rem; color: var(--muted); font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--fg); }

/* --------------------------------------------------------------------------
   Entrada inicial del hero (termina siempre visible)
   -------------------------------------------------------------------------- */
.intro { animation: rise .9s var(--ease) both; }
.intro--2 { animation-delay: .08s; } .intro--3 { animation-delay: .16s; } .intro--4 { animation-delay: .24s; } .intro--5 { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .scene { max-width: 620px; width: 100%; margin: 0 auto; }
  .svc--resto, .svc--corp, .svc--saas, .svc--care { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__card { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .about__text { padding: 0 .5rem .75rem; }
  .about__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__card { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 10px;
    background: rgba(18, 18, 26, .92); border: 1px solid var(--line); border-radius: 22px;
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .header .wrap { position: relative; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .95rem 1rem; font-size: 1.05rem; color: var(--fg); }
  .nav .nav__cta { margin: 4px 0 0; text-align: center; }
  .work { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .svc--resto { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step__n { margin-bottom: .5rem; }
  .about__stats { gap: 12px; }
  .stat { padding: 1.2rem; }
  .principles { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .chip-float { font-size: .7rem; padding: .45rem .65rem; }
  .chip-float--a { left: 0; }
  .method__value { flex: 1 1 100%; text-align: center; }
  .method__row .copy, .method__row .wa { flex: 1; justify-content: center; }
  .logo__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .blob, .chip-float, .pill__dot { animation: none; }
  .ticker__track { animation-duration: 120s; }
  .intro { animation: none; }
}
