/* ========================================
   PAGES.CSS — Paginas internas (referencia: marketer.com)
   Fondo crema, titulares serif en verde profundo,
   maqueta enmarcada con lineas, paneles con degradado gris azulado.
======================================== */

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

:root {
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;

  --cream: #fffefb;
  --surface: #f7f6f3;
  --soft: #ebeae6;
  --line: rgba(93, 88, 76, .13);
  --ink: #111210;
  --green: #0d2c21;
  --action: #071812;
  --body: #4f524d;
  --muted: #7a7a72;
  --check: #1d8a4a;

  --frame: 1300px;
  --gutter: 40px;
  --gutter-sm: 20px;
  --space: clamp(72px, 8vw, 120px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { background: var(--cream); scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* Marco con lineas verticales (sello de marketer.com) */
.frame { max-width: var(--frame); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.block { padding: var(--space) var(--gutter); border-top: 1px solid var(--line); }
.block.flush { border-top: none; }
.block.tight { padding-top: calc(var(--space) * .6); padding-bottom: calc(var(--space) * .6); }

/* ── Tipografia ── */
.display, .title, .statement { font-family: var(--serif); font-weight: 400; color: var(--green); letter-spacing: -.02em; line-height: 1.08; }
.display { font-size: clamp(2.6rem, 4.6vw, 4rem); }
.title { font-size: clamp(2rem, 3.4vw, 3rem); }
.statement { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.12; max-width: 46rem; color: var(--ink); }
.soft { color: #8a877e; }
.intro-text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink); line-height: 1.55; max-width: 30rem; }
.text { color: var(--body); font-size: 1rem; line-height: 1.65; }
.kicker { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; margin-bottom: 1.2rem; display: block; }
.num { font-size: .78rem; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; gap: .65rem; height: 44px; padding: 0 1.15rem; border-radius: 999px; font-size: .95rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-dark { background: var(--action); color: #fff; padding-left: .4rem; }
.btn-dark:hover { background: #12291f; }
.btn-dark .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--action); display: grid; place-items: center; }
.btn-dark .dot svg { width: 13px; height: 13px; }
.btn-plain { background: var(--action); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #b9b5aa; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 500; color: var(--ink); }
.link svg { width: 10px; height: 10px; transition: transform .2s; }
.link:hover svg { transform: translate(2px, -2px); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; } .d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ========================================
   NAV
======================================== */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 254, 251, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-inner { max-width: 1440px; margin: 0 auto; height: 68px; padding: 0 70px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-nav .logo { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; color: var(--ink); }
.site-nav .logo img { height: 24px; width: auto; }
.site-nav .logo-light { display: none; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink); opacity: .85; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav-right { display: flex; align-items: center; gap: 1.6rem; }
.nav-right .nav-mail { font-size: .95rem; color: var(--muted); }
.nav-right .nav-mail:hover { color: var(--ink); }
.nav-cta { height: 40px; padding: 0 1.1rem; border-radius: 999px; background: var(--action); color: #fff; display: inline-flex; align-items: center; font-size: .92rem; font-weight: 500; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; color: var(--ink); }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: .8rem; padding: 0 var(--gutter-sm); opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-mobile-menu.open { opacity: 1; pointer-events: auto; }
.nav-mobile-menu a { font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3rem); color: var(--green); line-height: 1.15; }
.nav-mobile-menu a.btn { font-family: var(--sans); font-size: 1rem; margin-top: 1.4rem; width: fit-content; }

/* ========================================
   HERO
======================================== */
.p-hero { padding: clamp(56px, 7vw, 96px) var(--gutter) 0; }
.p-hero-top { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line); }
.p-hero-top .intro-text { justify-self: end; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--ink); }
.p-hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; padding: 2.4rem 0 2.6rem; }

/* Panel con degradado gris azulado + textura */
.media {
  position: relative; border-radius: 20px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(110% 90% at 88% 85%, #7d9fca 0%, transparent 55%),
    radial-gradient(80% 70% at 8% 12%, #eef1f6 0%, transparent 60%),
    radial-gradient(70% 60% at 40% 100%, #a9bfdc 0%, transparent 60%),
    linear-gradient(135deg, #dce3ee 0%, #b4c6de 55%, #94b0d4 100%);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 6vw, 72px);
}
.media::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%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)'/%3E%3C/svg%3E");
}
.media.flat { border-radius: 0; }
.media > * { position: relative; z-index: 1; }

/* App mock dentro de los paneles */
.app { background: #fff; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(20, 40, 70, .45); overflow: hidden; font-size: .82rem; max-width: 960px; margin: 0 auto; }
.app-top { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid #eceae4; }
.app-top i { width: 8px; height: 8px; border-radius: 50%; background: #e3e1da; }
.app-top .url { margin-left: .8rem; font-size: .74rem; color: var(--muted); background: var(--surface); padding: .2rem .7rem; border-radius: 6px; }
.app-body { display: grid; grid-template-columns: 200px 1fr; min-height: 300px; }
.app-side { border-right: 1px solid #eceae4; padding: 1rem .8rem; display: flex; flex-direction: column; gap: .25rem; color: var(--body); }
.app-side span { padding: .4rem .6rem; border-radius: 7px; }
.app-side span.on { background: var(--surface); color: var(--ink); font-weight: 500; }
.app-side small { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .8rem .6rem .2rem; }
.app-main { padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.app-main h4 { font-weight: 500; font-size: .95rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kpi { border: 1px solid #eceae4; border-radius: 10px; padding: .7rem .8rem; }
.kpi span { display: block; font-size: .7rem; color: var(--muted); }
.kpi b { font-weight: 500; font-size: 1rem; }
.kpi b .count { display: inline; font-size: inherit; color: inherit; font-variant-numeric: tabular-nums; }
.chart { height: 120px; border: 1px solid #eceae4; border-radius: 10px; padding: .8rem; display: flex; align-items: flex-end; gap: 6px; }
.chart span { flex: 1; background: #d6e1ef; border-radius: 4px 4px 1px 1px; }
.chart span.hi { background: #3b6fb6; }
.rows { border: 1px solid #eceae4; border-radius: 10px; overflow: hidden; }
.rows div { display: flex; justify-content: space-between; padding: .55rem .8rem; color: var(--body); }
.rows div + div { border-top: 1px solid #eceae4; }
.tag-ok { font-size: .7rem; color: var(--check); background: #e2f2e7; padding: .1rem .5rem; border-radius: 999px; }
.tag-wait { font-size: .7rem; color: #3b5f91; background: #e4ecf7; padding: .1rem .5rem; border-radius: 999px; }

.site-mock { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; padding: 1.8rem; align-items: center; }
.site-mock h5 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.05; color: var(--green); margin-bottom: .8rem; }
.bar { height: 9px; border-radius: 5px; background: #eceae4; margin-bottom: .45rem; }
.fake-btn { display: inline-block; margin-top: .5rem; font-size: .72rem; background: var(--action); color: #fff; padding: .4rem .9rem; border-radius: 999px; }
.site-img { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, #e7ece4, #c9d8c6 60%, #9fb99c); }

.phones { display: flex; justify-content: center; gap: 1.4rem; align-items: flex-end; }
.phone { width: 210px; background: #fff; border-radius: 30px; border: 7px solid var(--action); padding: .9rem .7rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: 0 30px 60px -30px rgba(20, 40, 70, .5); }
.phone.small { width: 180px; transform: translateY(-24px); }
.phone .notch { width: 50px; height: 5px; border-radius: 4px; background: #eceae4; margin: 0 auto .3rem; }
.notif { display: flex; gap: .55rem; align-items: center; background: var(--surface); border-radius: 12px; padding: .55rem .6rem; font-size: .68rem; line-height: 1.3; color: var(--body); }
.notif i { width: 22px; height: 22px; border-radius: 7px; background: var(--green); flex-shrink: 0; }
.notif i.b { background: #3b6fb6; }
.notif b { display: block; color: var(--ink); font-weight: 500; font-size: .72rem; }

/* ========================================
   STEPPER (indice lateral numerado)
======================================== */
.stepper { display: grid; grid-template-columns: 280px 1fr; border-top: 1px solid var(--line); }
.stepper-nav { border-right: 1px solid var(--line); padding: 3.4rem 0; }
.stepper-nav ol { list-style: none; position: sticky; top: 110px; display: flex; flex-direction: column; }
.stepper-nav a { display: flex; gap: 1.1rem; padding: .7rem var(--gutter); font-size: 1.05rem; color: #9d9a91; border-left: 2px solid transparent; margin-left: -1px; transition: color .2s, border-color .2s; }
.stepper-nav a span { font-size: .8rem; padding-top: .2rem; font-variant-numeric: tabular-nums; }
.stepper-nav a.active { color: var(--ink); border-color: var(--ink); }
.step-block { padding: 3.4rem 3rem; }
.step-block + .step-block { border-top: 1px solid var(--line); }
.step-block .title { margin: .9rem 0 .9rem; }
.step-block .text { max-width: 36rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.check { display: flex; gap: .8rem; padding: 1.4rem 1.6rem 1.4rem 0; color: var(--body); font-size: .98rem; line-height: 1.55; }
.check + .check { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.check svg { width: 16px; height: 16px; color: var(--check); flex-shrink: 0; margin-top: .25rem; }
.check b { color: var(--ink); font-weight: 500; }
.step-media { margin-top: 2rem; }

/* ========================================
   TARJETAS (4 columnas estilo servicios de marketer)
======================================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.p-card { display: flex; flex-direction: column; gap: .7rem; }
.p-card .visual { aspect-ratio: 4 / 3; border-radius: 10px; margin-bottom: .9rem; display: grid; place-items: center; overflow: hidden; }
.p-card .visual.surface { background: var(--soft); aspect-ratio: 16 / 9; }
.p-card .visual svg { width: 44px; height: 44px; color: var(--green); fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.p-card .media.visual { padding: 0; }
.p-card .media.visual svg { color: #fff; }
.p-card .kind { font-size: .92rem; font-weight: 500; color: var(--ink); }
.p-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.08; letter-spacing: -.015em; color: var(--ink); }
.p-card p { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.p-card .link { margin-top: auto; padding-top: .8rem; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }
.section-head .text { justify-self: end; max-width: 28rem; }

/* ========================================
   CIFRAS / CHIPS
======================================== */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.4rem; }
.figure b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4vw, 3.4rem); color: var(--green); line-height: 1; letter-spacing: -.02em; }
.figure span { display: block; color: var(--muted); margin-top: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { font-size: .92rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }

/* ========================================
   LISTA DE PROYECTOS
======================================== */
.table { border-top: 1px solid var(--line); }
.t-row { display: grid; grid-template-columns: 1.1fr 1.7fr 1.5fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.t-row h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.t-row p { color: var(--body); font-size: .96rem; }
.t-row .stack { font-size: .82rem; color: var(--muted); }
.badge { font-size: .76rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--body); white-space: nowrap; }

/* Casos con enlace (sitios web) */
.case { display: flex; flex-direction: column; gap: .5rem; }
.case .media { aspect-ratio: 1 / 1; border-radius: 10px; display: flex; align-items: flex-end; padding: 1.4rem; margin-bottom: 1rem; }
.case .media strong { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1; color: var(--green); }
.case .media .domain { position: absolute; top: 1.2rem; left: 1.2rem; font-size: .74rem; color: var(--ink); background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: .25rem .65rem; border-radius: 999px; }
.case .kind { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.case p { color: var(--muted); font-size: .95rem; }
.case .link { margin-top: .5rem; }
.media.v2 { background: radial-gradient(90% 80% at 15% 85%, #6e8fbb 0%, transparent 55%), linear-gradient(160deg, #c8d5e6, #8fa9cc); }
.media.v3 { background: radial-gradient(90% 80% at 80% 20%, #9db3cf 0%, transparent 55%), linear-gradient(200deg, #b9c9dd, #6f8fb9); }

/* ========================================
   CTA FINAL (banda con degradado)
======================================== */
.cta-band { text-align: center; padding: clamp(90px, 11vw, 150px) var(--gutter); }
.cta-band .display { color: var(--ink); max-width: 48rem; margin: 0 auto 1.4rem; font-size: clamp(2.3rem, 4vw, 3.4rem); }
.cta-band .display .soft { color: #5f6670; }
.cta-band p { color: #3d4450; font-size: 1.15rem; max-width: 32rem; margin: 0 auto 2.2rem; line-height: 1.55; }
.cta-band .actions { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(20, 30, 50, .2); background: rgba(255, 255, 255, .35); }

/* ========================================
   FOOTER
======================================== */
.site-footer .footer-top { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 4.5rem var(--gutter) 3.5rem; }
.site-footer .logo { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.site-footer .logo img { height: 24px; }
.footer-tag { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.footer-tag .soft { display: block; }
.f-col h4 { font-size: .9rem; font-weight: 400; color: var(--muted); margin-bottom: 1.1rem; }
.f-col a { display: block; width: fit-content; font-size: .98rem; color: var(--ink); margin-bottom: .7rem; }
.f-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f-social { display: flex; gap: .6rem; align-items: center; align-self: center; }
.f-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); transition: background .25s, color .25s, transform .25s; }
.f-social a:hover { background: #071812; color: #fff; transform: translateY(-2px); }
.f-social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem var(--gutter); border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ========================================
   TEXTO LEGAL
======================================== */
.prose { max-width: 44rem; }
.prose .updated { font-size: .85rem; color: var(--muted); margin-bottom: 2.4rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.15; color: var(--green); margin: 2.6rem 0 .8rem; }
.prose p, .prose li { color: var(--body); font-size: 1.04rem; line-height: 1.75; }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; margin-top: .6rem; display: flex; flex-direction: column; gap: .35rem; }
.prose li::marker { color: var(--check); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }


/* ========================================
   SERVICIOS (services.html)
======================================== */
.svc-index { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.svc-index a { padding: 1.4rem 1.2rem; font-size: .98rem; color: var(--ink); display: flex; flex-direction: column; gap: .5rem; transition: background .2s; }
.svc-index a + a { border-left: 1px solid var(--line); }
.svc-index a:hover { background: var(--surface); }
.svc-index span { font-size: .78rem; font-weight: 600; color: var(--green); letter-spacing: .04em; }

.svc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; scroll-margin-top: 80px; }
.svc.flip .svc-text { order: 2; }
.svc .num { display: block; margin-bottom: 1.1rem; }
.svc .title { margin-bottom: 1.1rem; }
.svc .text { max-width: 34rem; }
.svc .checks { margin-top: 1.8rem; }
.svc .check:nth-child(odd) { border-left: none; padding-left: 0; }
.svc .check:nth-child(even) { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.svc .check:nth-child(n+3) { border-top: 1px solid var(--line); }
.page-fun .display, .page-fun .title, .page-fun .statement { font-family: 'Carter One', var(--serif); color: #000; font-weight: 400; letter-spacing: -.005em; line-height: 1.1; }
.page-fun .display { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
.page-fun .title { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.page-fun .statement { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; }
@media (max-width: 768px) { .svc .check:nth-child(even) { border-left: none; padding-left: 0; } .svc .check + .check { border-top: 1px solid var(--line); } }
.svc-link { margin-top: 1.8rem; }
.svc-visual.media { border-radius: 20px; min-height: 420px; display: flex; align-items: center; justify-content: center; }

/* Duo de ilustraciones (sitios web) */
.duo { position: relative; min-height: 460px; }
.duo img { position: absolute; height: auto; filter: drop-shadow(0 30px 40px rgba(20, 40, 70, .18)); }
.duo-back { width: 66%; right: 0; top: 0; animation: duoFloat 7s ease-in-out infinite; animation-delay: -3s; }
.duo-front { width: 72%; left: 0; bottom: 0; animation: duoFloat 6s ease-in-out infinite; }
@keyframes duoFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.duo-tag { position: absolute; z-index: 2; font-size: .82rem; font-weight: 500; background: #fff; color: var(--ink); border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(20, 40, 70, .35); }
.tag-a { left: 6%; bottom: 4%; }
.tag-b { right: 4%; top: 2%; }

/* Chat (IA) */
.chat-mock { width: min(100%, 380px); background: #fff; border-radius: 18px; padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; box-shadow: 0 30px 60px -30px rgba(20, 40, 70, .45); font-size: .86rem; }
.cm-head { display: flex; align-items: center; gap: .6rem; padding-bottom: .7rem; border-bottom: 1px solid #eceae4; margin-bottom: .2rem; }
.cm-head i { width: 32px; height: 32px; border-radius: 10px; background: var(--green); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 600; }
.cm-head b { display: block; font-weight: 500; }
.cm-head small { color: var(--check); font-size: .72rem; }
.cm { max-width: 85%; padding: .55rem .8rem; border-radius: 14px; line-height: 1.4; }
.cm.in { background: var(--surface); align-self: flex-start; border-top-left-radius: 4px; }
.cm.out { background: var(--action); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }

/* Tarjeta de lealtad */
.loyalty { width: min(100%, 380px); background: linear-gradient(150deg, #12382b, var(--action)); color: #fff; border-radius: 20px; padding: 1.5rem; box-shadow: 0 30px 60px -28px rgba(7, 24, 18, .6); display: flex; flex-direction: column; gap: 1.3rem; }
.ly-top { display: flex; justify-content: space-between; align-items: baseline; }
.ly-top b { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.ly-top span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.ly-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.ly-stamps i { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .35); display: grid; place-items: center; font-style: normal; font-size: 1.2rem; }
.ly-stamps i.on { border: none; background: radial-gradient(circle at 35% 30%, #8ee6b4, #3fb37a); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .2); }
.ly-stamps i.gift { border-style: solid; border-color: rgba(255, 255, 255, .6); }
.ly-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .82rem; }
.ly-foot span { opacity: .7; }

@media (max-width: 1100px) { .svc-index { grid-template-columns: repeat(3, 1fr); } .svc-index a:nth-child(4) { border-left: none; } .svc-index a:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 768px) {
  .svc-index { grid-template-columns: 1fr; } .svc-index a + a { border-left: none; border-top: 1px solid var(--line); } .svc-index a { flex-direction: row; gap: 1rem; padding: 1rem 0; }
  .svc { grid-template-columns: 1fr; } .svc.flip .svc-text { order: 0; }
  .svc-visual.media { min-height: 320px; padding: 1.4rem; }
  .duo { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .duo img { animation: none; } }


/* ========================================
   PAGINAS "VIVAS" (body.page-fun): services, platforms
   Recursos del home: emojis, tarjetas 3D, contadores, chips flotantes
======================================== */
.page-fun .soft { color: #8a877e; }

/* Chips flotantes del hero */
.page-fun .p-hero .media { position: relative; overflow: visible; }
.float-chip {
  position: absolute; z-index: 3; background: #fff; color: #000; font-size: .9rem; font-weight: 500;
  padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  box-shadow: 0 16px 34px -16px rgba(20, 40, 70, .45); white-space: nowrap;
  animation: chipFloat 5s ease-in-out infinite;
}
.fc-1 { left: -1.2rem; top: 18%; }
.fc-2 { right: -1.4rem; top: 40%; animation-delay: -1.6s; }
.fc-3 { left: 12%; bottom: -1.1rem; animation-delay: -3.2s; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }

/* Cifras con contador */
.fun-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); padding: 0; overflow-x: clip; }
.fun-stats .fs { background: var(--cream); padding: clamp(2rem, 4vw, 3rem) var(--gutter); }
.fun-stats b { display: block; font-family: 'Carter One', var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: #000; font-variant-numeric: tabular-nums; }
.fun-stats b .count { font: inherit; }
.fun-stats .fs > span { display: block; color: var(--muted); margin-top: .7rem; max-width: 16rem; }
.fun-stats b .count { display: inline; margin: 0; color: inherit; }
.page-fun .t-row h3, .page-fun .p-card h3, .page-fun .case strong { font-family: 'Carter One', var(--serif); font-weight: 400; color: #000; letter-spacing: -.005em; }
.page-fun .t-row h3 { font-size: 1.35rem; }
.fun-stats .fs.reveal { transform: translateX(-60px); }
.fun-stats .fs.reveal:last-child { transform: translateX(60px); }
.fun-stats .fs.reveal.in { transform: none; }

/* Tarjetas pastel 3D con emoji */
.fun-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; perspective: 1400px; padding: .5rem 0 1.5rem; }
.fun-card {
  --rx: 8deg; --ry: 0deg; --mx: 50%; --my: 0%; --lift: 0px;
  position: relative; border-radius: 22px; padding: 1.5rem 1.4rem 1.6rem; min-height: 340px;
  display: flex; flex-direction: column; gap: .6rem; transform-style: preserve-3d;
  transform: translateY(calc(0px - var(--lift))) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .4s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 0 var(--edge), 0 22px 30px -12px rgba(12, 21, 19, .25), 0 46px 70px -30px rgba(12, 21, 19, .3);
}
.fun-card.tilting { transition: transform .15s linear, box-shadow .4s; }
.fun-card:hover { --lift: 10px; }
.fun-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 55%); opacity: .35; transition: opacity .3s; }
.fun-card:hover::after { opacity: .8; }
.fun-card .kind { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(0, 0, 0, .55); transform: translateZ(24px); }
.fun-card h3 { font-family: 'Carter One', var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.12; color: #000; transform: translateZ(40px); }
.fun-card p { color: rgba(0, 0, 0, .62); font-size: .95rem; transform: translateZ(30px); }
.fun-emoji { align-self: center; margin: auto 0; font-size: 3.8rem; line-height: 1; transform: translateZ(70px); filter: drop-shadow(0 14px 12px rgba(12, 21, 19, .25)); animation: funFloat 4s ease-in-out infinite; }
.fun-card:nth-child(2) .fun-emoji { animation-delay: -1s; } .fun-card:nth-child(3) .fun-emoji { animation-delay: -2s; } .fun-card:nth-child(4) .fun-emoji { animation-delay: -3s; }
@keyframes funFloat { 0%, 100% { transform: translateZ(70px) translateY(0) rotate(-4deg); } 50% { transform: translateZ(70px) translateY(-8px) rotate(4deg); } }
.bg-lime { background: linear-gradient(160deg, #eefcba, #e4f89c 60%); --edge: #bfd66a; }
.bg-lavender { background: linear-gradient(160deg, #efeaff, #e3dcff 60%); --edge: #bdb1ef; }
.bg-mint { background: linear-gradient(160deg, #d6f7ec, #b9efdf 60%); --edge: #86d6bd; }
.bg-sky { background: linear-gradient(160deg, #e9f2fd, #d7e8fb 60%); --edge: #a8c6ec; }

/* Emojis en pasos y proyectos */
.step-emoji { display: inline-block; margin-right: .5rem; animation: funBob 3.5s ease-in-out infinite; }
@keyframes funBob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-5px) rotate(6deg); } }
.row-emoji { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-right: .7rem; border-radius: 12px; background: var(--surface); font-size: 1.1rem; vertical-align: middle; transition: transform .3s; }
.page-fun .t-row { transition: background .25s, transform .25s; border-radius: 12px; }
.page-fun .t-row:hover { background: var(--surface); transform: translateX(6px); }
.page-fun .t-row:hover .row-emoji { transform: scale(1.15) rotate(-8deg); }
.page-fun a.p-card { transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.page-fun a.p-card:hover { transform: translateY(-6px); }

@media (max-width: 1100px) { .fun-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .fun-stats, .fun-cards { grid-template-columns: 1fr; }
  .fun-stats .fs.reveal:nth-child(even) { transform: translateX(60px); }
  .fun-stats .fs.reveal.in { transform: none; }
  .fun-card { min-height: 280px; --rx: 4deg; }
  .fun-cards { gap: 2rem; }
  .fc-1 { left: .4rem; top: -1rem; } .fc-2 { right: .4rem; top: auto; bottom: 30%; } .fc-3 { left: 1rem; bottom: -1rem; }
  .float-chip { font-size: .78rem; padding: .45rem .8rem; }
}
@media (prefers-reduced-motion: reduce) { .float-chip, .fun-emoji, .step-emoji { animation: none; } }


/* CRM en vivo: robot Spline conectado a 5 canales (services 03), fondo blanco */
.crm-live {
  position: relative; aspect-ratio: 600 / 440; width: 100%; border-radius: 24px; overflow: hidden; container-type: inline-size;
  background: radial-gradient(55% 55% at 50% 50%, #e7f8f4 0%, #fff 70%);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -36px rgba(20, 40, 70, .35);
}
.crm-live::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(12, 21, 19, .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(65% 65% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(65% 65% at 50% 50%, #000, transparent); }
.crm-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.wire { fill: none; stroke: #e2e8e6; stroke-width: 3; }
.wire-flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 16 26; animation: wireFlow 1.4s linear infinite; opacity: .85; }
@keyframes wireFlow { to { stroke-dashoffset: -42; } }
.pulse { filter: drop-shadow(0 0 5px currentColor); }

.crm-node { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.crm-node .ic { width: 11cqw; height: 11cqw; min-width: 36px; min-height: 36px; border-radius: 30%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .9), 0 14px 26px -10px rgba(12, 21, 19, .35); animation: nodePulse 2.8s ease-in-out infinite; }
.crm-node .ic svg { width: 52%; height: 52%; }
.crm-node b { font-size: clamp(.6rem, 2.1cqw, .82rem); font-weight: 600; color: #0c1513; white-space: nowrap; background: rgba(255, 255, 255, .85); padding: .1rem .45rem; border-radius: 999px; }
.n-mail .ic { animation-delay: -.6s; } .n-agenda .ic { animation-delay: -1.2s; } .n-tel .ic { animation-delay: -1.8s; } .n-db .ic { animation-delay: -2.4s; }
.n-db { flex-direction: column-reverse; }
@keyframes nodePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

.crm-core { position: absolute; z-index: 2; left: 50%; top: 50%; width: 38%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.core-ring { position: absolute; inset: -5%; border-radius: 50%; border: 1px solid rgba(13, 148, 136, .3); background: radial-gradient(circle, rgba(94, 234, 212, .18), transparent 70%); box-shadow: 0 0 50px rgba(13, 148, 136, .15); animation: ringPulse 3s ease-in-out infinite; }
@keyframes ringPulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.05); opacity: 1; } }
.crm-core spline-viewer { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border-radius: 50%; overflow: hidden; display: block; }
/* respaldo por si la marca de agua llega a cargar antes del script */
.spline-cover { position: absolute; right: -2%; bottom: -1%; width: 62%; height: 18%; border-radius: 999px; background: radial-gradient(60% 100% at 50% 50%, #e9f8f4, rgba(233, 248, 244, 0)); pointer-events: none; }

.crm-event { position: absolute; z-index: 3; font-size: clamp(.62rem, 2.1cqw, .8rem); color: #0c1513; background: #fff; border: 1px solid var(--line); padding: .4rem .75rem; border-radius: 12px; box-shadow: 0 14px 28px -14px rgba(12, 21, 19, .4); white-space: nowrap; opacity: 0; animation: evPop 10s ease-in-out infinite; }
.crm-event b { font-weight: 600; color: #1d8a4a; }
.ev-1 { left: 22%; top: 22%; }
.ev-2 { left: 4%; bottom: 8%; animation-delay: 2.5s; }
.ev-3 { right: 20%; top: 22%; animation-delay: 5s; }
.ev-4 { right: 4%; bottom: 8%; animation-delay: 7.5s; }
@keyframes evPop { 0%, 100% { opacity: 0; transform: translateY(8px) scale(.96); } 5%, 20% { opacity: 1; transform: none; } 25% { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .wire-flow, .crm-node .ic, .core-ring { animation: none; } .crm-event { animation: none; opacity: 0; } }

/* WALLET (services 04): celular con tarjetas de lealtad + tarjeta flotando */
.ly-visual { container-type: inline-size; }
.ly-scene { position: relative; width: 100%; height: clamp(360px, 70cqw, 460px); }
.wallet-phone {
  position: absolute; left: 5%; top: 50%; transform: translateY(-50%) rotate(-3deg);
  width: clamp(200px, 42cqw, 260px); aspect-ratio: 9 / 18.5;
  background: #f2f2f7; border: 8px solid #0d0f0f; border-radius: 38px; padding: 1.4rem .7rem .7rem;
  box-shadow: 0 40px 70px -30px rgba(20, 40, 70, .55), inset 0 0 0 1px rgba(255, 255, 255, .4);
  overflow: hidden; display: flex; flex-direction: column; gap: .5rem; z-index: 2;
}
.wp-notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 38%; height: 18px; background: #0d0f0f; border-radius: 0 0 12px 12px; }
.wp-status { display: flex; justify-content: space-between; align-items: center; font-size: .62rem; font-weight: 600; color: #000; padding: 0 .35rem; margin-top: -.6rem; }
.wp-sig { display: flex; gap: 2px; align-items: flex-end; }
.wp-sig i { width: 3px; background: #000; border-radius: 1px; }
.wp-sig i:nth-child(1) { height: 4px; } .wp-sig i:nth-child(2) { height: 6px; } .wp-sig i:nth-child(3) { height: 8px; }
.wp-head { display: flex; justify-content: space-between; align-items: center; padding: .3rem .3rem .2rem; }
.wp-head b { font-size: 1.15rem; font-weight: 700; color: #000; letter-spacing: -.02em; }
.wp-btn { width: 22px; height: 22px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; font-size: .9rem; line-height: 1; }
.wp-stack { display: flex; flex-direction: column; }
.wcard { gap: .4rem; position: relative; border-radius: 12px; padding: .6rem .7rem; height: 92px; margin-top: -58px; color: #fff; display: flex; justify-content: space-between; align-items: flex-start; box-shadow: 0 -4px 10px -6px rgba(0, 0, 0, .35); font-size: .7rem; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.wcard:first-child { margin-top: 0; }
.wc-name { font-weight: 700; font-size: .74rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wc-meta { font-size: .56rem; opacity: .85; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.wc-cafe { background: linear-gradient(135deg, #7a4a2c, #4b2a17); }
.wc-barber { background: linear-gradient(135deg, #1f2937, #0b0f14); }
.wc-spa { background: linear-gradient(135deg, #a7f3d0, #5ccfa7); color: #0b3a2c; }
.wc-pizza { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.wcard.peek { transform: translateY(-14px); }
.wc-front { height: auto; flex-direction: column; align-items: stretch; gap: .55rem; padding: .75rem; background: linear-gradient(150deg, #12382b, #071812); margin-top: -46px; }
.wc-row { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.wc-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; }
.wc-stamps i { aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .35); display: grid; place-items: center; font-style: normal; font-size: .7rem; }
.wc-stamps i.on { border: none; background: radial-gradient(circle at 35% 30%, #8ee6b4, #3fb37a); }
.wc-foot { font-size: .58rem; } .wc-foot span { opacity: .7; }

.ly-float { position: absolute; right: 3%; top: 50%; bottom: auto; width: 44% !important; max-width: 300px; padding: 1rem 1.1rem !important; gap: .75rem !important; transform: rotate(5deg); z-index: 3; animation: lyFloat 6s ease-in-out infinite; }
.ly-float .ly-top b { font-size: 1.15rem; white-space: nowrap; }
.ly-float .ly-top span { display: none; }
.ly-float .ly-stamps { gap: .35rem; }
.ly-float .ly-stamps i { font-size: .85rem; }
.ly-float .ly-foot { font-size: .7rem; }
@keyframes lyFloat { 0%, 100% { transform: translateY(-50%) rotate(5deg); } 50% { transform: translateY(calc(-50% - 12px)) rotate(3deg); } }
.ly-chip { position: absolute; right: 8%; top: 12%; z-index: 4; background: #fff; color: #000; font-size: .82rem; font-weight: 500; padding: .5rem .9rem; border-radius: 999px; box-shadow: 0 14px 30px -14px rgba(20, 40, 70, .5); animation: chipFloat 5s ease-in-out infinite; }
@media (max-width: 768px) { .ly-float { width: 46% !important; right: 2%; padding: .8rem !important; gap: .55rem !important; } .ly-float .ly-top b { font-size: .95rem !important; } .ly-float .ly-top span { display: none; } .ly-float .ly-top b { font-size: 1.1rem; } .ly-float .ly-foot { font-size: .66rem; } .ly-chip { font-size: .7rem; top: 4%; right: 2%; } .wallet-phone { left: 2%; width: 50%; } .ly-scene { height: 430px; } .ly-float .ly-stamps { gap: .22rem; } .ly-float .ly-stamps i { font-size: .6rem; } .ly-float .ly-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .ly-float, .ly-chip { animation: none; } }

/* IPHONE + ANDROID (services 05) */
.duo-phones { container-type: inline-size; }
.dp-scene { position: relative; width: 100%; height: clamp(380px, 76cqw, 480px); }
.dev { position: absolute; top: 50%; width: clamp(168px, 36cqw, 220px); aspect-ratio: 9 / 19; background: #0d0f0f; box-shadow: 0 40px 70px -30px rgba(20, 40, 70, .6), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.dev-screen { position: absolute; background: #f6f7f9; overflow: hidden; display: flex; flex-direction: column; gap: .55rem; padding: 1.9rem .75rem .9rem; font-size: .66rem; color: #111; }
.iphone { left: 12%; border-radius: 40px; padding: 9px; transform: translateY(-50%) rotate(-7deg); animation: devFloatA 6s ease-in-out infinite; z-index: 2; }
.iphone .dev-screen { inset: 9px; border-radius: 32px; }
.android { right: 12%; border-radius: 26px; padding: 5px; transform: translateY(-46%) rotate(6deg); animation: devFloatB 6.5s ease-in-out infinite; animation-delay: -2s; }
.android .dev-screen { inset: 5px; border-radius: 22px; padding-bottom: 2.1rem; }
@keyframes devFloatA { 0%, 100% { transform: translateY(-50%) rotate(-7deg); } 50% { transform: translateY(calc(-50% - 12px)) rotate(-5deg); } }
@keyframes devFloatB { 0%, 100% { transform: translateY(-46%) rotate(6deg); } 50% { transform: translateY(calc(-46% - 12px)) rotate(4deg); } }
.island { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34%; height: 18px; background: #0d0f0f; border-radius: 999px; }
.punch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; background: #0d0f0f; border-radius: 50%; }
.dev-status { position: absolute; top: 9px; left: 1rem; right: 1rem; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .6rem; }
.st-icons { display: flex; gap: 2px; align-items: flex-end; }
.st-icons i { width: 3px; background: #111; border-radius: 1px; }
.st-icons i:nth-child(1) { height: 4px; } .st-icons i:nth-child(2) { height: 6px; } .st-icons i:nth-child(3) { height: 8px; }
.home-ind { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 36%; height: 4px; border-radius: 999px; background: #111; }
.nav-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 1.7rem; display: flex; justify-content: space-around; align-items: center; background: #eceef1; color: #444; font-size: .72rem; }
.as-head { display: flex; justify-content: space-between; align-items: center; }
.as-head small { display: block; color: #6b7280; font-size: .6rem; }
.as-head b { font-family: 'Carter One', var(--serif); font-weight: 400; font-size: .95rem; }
.as-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(150deg, #a78bfa, #7c3aed); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .62rem; }
.as-next { background: linear-gradient(150deg, #12382b, #071812); color: #fff; border-radius: 14px; padding: .65rem .7rem; display: flex; flex-direction: column; gap: .15rem; }
.as-next small { opacity: .7; font-size: .56rem; }
.as-next b { font-size: .78rem; font-weight: 600; }
.as-btn { margin-top: .35rem; align-self: flex-start; background: #fff; color: #071812; font-weight: 600; font-size: .56rem; padding: .25rem .6rem; border-radius: 999px; }
.as-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.as-actions span { background: #fff; border-radius: 12px; padding: .45rem .2rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .54rem; font-weight: 600; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .2); }
.as-actions i { font-style: normal; font-size: .95rem; }
.as-list { background: #fff; border-radius: 12px; overflow: hidden; }
.as-list div { display: flex; justify-content: space-between; padding: .45rem .6rem; font-size: .58rem; }
.as-list div + div { border-top: 1px solid #eef0f2; }
.as-list b { color: #1d8a4a; font-weight: 600; }
.app-notif { position: absolute; top: 1.7rem; left: .55rem; right: .55rem; z-index: 4; background: rgba(255, 255, 255, .96); border-radius: 12px; padding: .5rem .6rem; font-size: .58rem; font-weight: 600; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45); transform: translateY(-160%); animation: notifDrop 7s ease-in-out infinite; }
.android .app-notif { animation-delay: 3.5s; border-radius: 10px; }
@keyframes notifDrop { 0%, 8% { transform: translateY(-160%); } 14%, 42% { transform: translateY(0); } 50%, 100% { transform: translateY(-160%); } }
.os-tag { position: absolute; z-index: 3; background: #fff; color: #000; font-size: .8rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; box-shadow: 0 12px 26px -12px rgba(20, 40, 70, .5); }
.tag-ios { left: 8%; bottom: 7%; }
.tag-android { right: 8%; top: 7%; }
@media (max-width: 768px) { .iphone { left: 3%; } .android { right: 3%; } .dev { width: 46%; } .dp-scene { height: 440px; } }
@media (prefers-reduced-motion: reduce) { .iphone, .android { animation: none; } .app-notif { animation: none; transform: none; } }


/* PAPEL RASGADO (statement de services) */
.torn-block { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; padding: clamp(80px, 9vw, 120px) clamp(24px, 4vw, 48px) !important; }
.torn-block > *:not(.torn) { position: relative; z-index: 1; }
.torn-kicker { margin: 0; font-family: 'Boogaloo', 'Carter One', serif; font-size: clamp(1.15rem, 1.8vw, 1.5rem); color: #8a877e; background: var(--surface, #f7f6f3); border: 1px solid var(--line, #e7e5df); padding: .3rem 1.1rem; border-radius: 999px; }
.page-fun .torn-block .statement { margin: 0; max-width: 15ch; font-family: 'Spicy Rice', 'Carter One', serif; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: 0; text-wrap: balance; }
.torn-mark { position: relative; display: inline-block; white-space: nowrap; }
.torn-mark::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .26em; z-index: -1; background: #b9efdf; border-radius: 6px; transform: rotate(-1.2deg) scaleX(0); transform-origin: left; transition: transform .9s .5s cubic-bezier(.16, 1, .3, 1); }
.statement.in .torn-mark::after { transform: rotate(-1.2deg) scaleX(1); }
.svc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem; }
.svc-chips a { font-size: .95rem; font-weight: 500; color: #000; background: #fff; border: 1px solid var(--line, #e7e5df); padding: .55rem 1.05rem; border-radius: 999px; box-shadow: 0 10px 22px -16px rgba(20, 40, 70, .45); transition: transform .25s, box-shadow .25s, background .25s; }
.svc-chips a:hover { transform: translateY(-3px) rotate(-2deg); background: #b9efdf; box-shadow: 0 16px 26px -16px rgba(20, 40, 70, .55); }
.svc { scroll-margin-top: 80px; }
.torn { position: absolute; width: clamp(80px, 10vw, 140px); height: auto; aspect-ratio: 180 / 260; overflow: visible; pointer-events: none; }
.torn.tl { top: 0; left: 0; }
.torn.br { bottom: 0; right: 0; transform: rotate(180deg); }
.torn-g { filter: drop-shadow(0 7px 5px rgba(0, 0, 0, .28)); }
.torn-paper { fill: #000; }
.torn-fiber { fill: #fff; }
@media (max-width: 768px) { .torn-block { padding: 120px 18px !important; } .torn { width: 70px; } .svc-chips a { font-size: .85rem; padding: .45rem .85rem; } }

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1100px) {
  .nav-inner { padding: 0 var(--gutter); }
  .nav-links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .stepper { grid-template-columns: 1fr; }
  .stepper-nav { display: none; }
  .step-block { padding: 3rem var(--gutter); }
  .t-row { grid-template-columns: 1fr 1.6fr auto; }
  .t-row .stack { grid-column: 2; }
  .site-footer .footer-top { grid-template-columns: 1fr auto; }
}
@media (max-width: 768px) {
  :root { --gutter: var(--gutter-sm); }
  .frame { border-left: none; border-right: none; }
  .nav-right .nav-mail, .nav-right .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { height: 62px; }
  .p-hero-top, .section-head { grid-template-columns: 1fr; gap: 1.4rem; }
  .p-hero-top .intro-text, .section-head .text { justify-self: start; }
  .cards, .cards.three, .cards.two { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .check + .check { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .figures { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .site-mock { grid-template-columns: 1fr; }
  .phone.small { display: none; }
  .t-row { grid-template-columns: 1fr auto; gap: .4rem 1rem; }
  .t-row p, .t-row .stack { grid-column: 1 / -1; }
  .t-row .badge { grid-column: 2; grid-row: 1; }
  .site-footer .footer-top { grid-template-columns: 1fr; }
  .site-footer .f-social { justify-self: start; }
}

[hidden] { display: none !important; }
