/* =====================================================================
   CEROBYTE — v4 · SaaS moderno (estilo Stripe)
   Blanco, navy profundo para texto, índigo como acento, bandas
   diagonales suaves, tarjetas con sombra ligera, fotos reales.
   ===================================================================== */

:root {
  --white: #FFFFFF;
  --bg-soft: #F6F9FC;
  --ink: #0A2540;
  --ink-2: #425466;
  --muted: #6B7C93;
  --line: #E3E8EE;
  --line-strong: #CBD5E1;
  --primary: #5A13FF;
  --primary-2: #4A0FD6;
  --primary-soft: #EFE9FF;
  --teal: #0BB89C;
  --teal-soft: #E3F8F3;
  --pink: #FF5CA8;
  --pink-soft: #FFE9F3;
  --amber: #F5A623;
  --amber-soft: #FFF3DC;
  --sky: #00A3FF;
  --sky-soft: #E3F4FF;
  --wa: #25D366;
  --festyx: #C300E0;
  --breo: #0BB89C;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 3px rgba(10,37,64,.06), 0 4px 12px -4px rgba(10,37,64,.08);
  --shadow: 0 13px 27px -5px rgba(50,50,93,.18), 0 8px 16px -8px rgba(0,0,0,.18);
  --shadow-lg: 0 30px 60px -12px rgba(50,50,93,.25), 0 18px 36px -18px rgba(0,0,0,.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink-2); font-family: var(--font); font-size: 1.05rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--primary-soft); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(99,91,255,.45); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--soft { background: var(--bg-soft); }
.section--white { background: var(--white); }
.section--black, .section--navy { background: var(--ink); color: #fff; }
.section--black h2, .section--black h3, .section--navy h2, .section--navy h3 { color: #fff; }
.section--line { border-top: 1px solid var(--line); }
.section--grey { background: var(--bg-soft); }

/* --- tipografía ------------------------------------------------------- */
.h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.accent, .text-gradient { color: var(--primary); }
.text-festyx { color: var(--festyx); }
.text-breo { color: var(--breo); }
.section--black .text-gradient, .section--navy .text-gradient { color: #A5B4FC; }

.eyebrow, .label { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: .9rem; letter-spacing: .01em; }
.eyebrow::before { display: none; }
.section--black .eyebrow, .section--navy .eyebrow { color: #A5B4FC; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lead { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* --- botones ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px -4px rgba(99,91,255,.55); }
.btn--primary:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn--ghost { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--white:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #12345c; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1FB458; transform: translateY(-1px); }
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.section--black .btn--ghost, .section--navy .btn--ghost, .brand-card .btn--ghost, .cta .btn--ghost, .quick .btn--ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.section--black .btn--ghost:hover, .section--navy .btn--ghost:hover, .brand-card .btn--ghost:hover, .cta .btn--ghost:hover, .quick .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--primary); }
.link-arrow svg { width: 16px; height: 16px; }

/* --- header ------------------------------------------------------------ */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.header.is-scrolled { border-color: var(--line); background: rgba(255,255,255,.95); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; color: var(--ink); }
.brand img { height: 32px; width: auto; }
.brand span { color: var(--primary); }
.nav { display: none; align-items: center; gap: .1rem; }
.nav a { padding: .5rem .8rem; border-radius: 999px; font-size: .95rem; color: var(--ink-2); font-weight: 600; transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: none; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99; background: var(--white); padding: .5rem var(--gutter) 2.5rem; overflow-y: auto; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease); }
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu a.mm-link { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.mobile-menu a.mm-link svg { width: 20px; height: 20px; color: var(--primary); }
.mobile-menu .mm-brands { display: grid; gap: .6rem; margin-top: 1.4rem; }
.mobile-menu .mm-brands a { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft); font-weight: 700; color: var(--ink); }
.mobile-menu .mm-brands small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.mobile-menu .mm-actions { display: grid; gap: .6rem; margin-top: 1.4rem; }
body.menu-open { overflow: hidden; }
@media (min-width: 960px) { .nav { display: flex; } .nav-cta { display: inline-flex; } .burger, .mobile-menu { display: none; } }

/* --- hero (banda diagonal estilo Stripe) --------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero__band { position: absolute; inset: -40% 0 auto 0; height: 125%; z-index: -1; transform: skewY(-7deg); transform-origin: top left; background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 35%, #ECFEFF 70%, #F0FDFA 100%); }
.hero__band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,91,255,.25), transparent); }
.hero__bg, .hero__grid, .orb, .marquee, .hcard, .terminal, .offer, .hero__kicker, .hero__photo { display: none; }
.hero__layout { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero__layout { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem .35rem .5rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 1.4rem; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero__title { max-width: 14ch; }
.hero__title .line { display: block; }
.hero__lead { max-width: 540px; margin-top: 1.3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line); max-width: 620px; }
.stat__num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.stat__num small { font-size: .55em; color: var(--primary); margin-left: .1em; font-weight: 700; }
.stat__label { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }

/* composición visual del hero: foto real + móvil con BREO */
.hero__visual { display: block; position: relative; min-height: 420px; }
@media (min-width: 1024px) { .hero__visual { min-height: 540px; } }
.hv__photo { position: absolute; right: 0; top: 0; width: 82%; height: 78%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hv__photo img { width: 100%; height: 100%; object-fit: cover; }
.hv__photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .4rem .7rem; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .75rem; font-weight: 700; color: var(--ink); }
.phone { position: absolute; left: 0; bottom: 0; width: 46%; max-width: 250px; border-radius: 28px; background: var(--ink); padding: 8px; box-shadow: var(--shadow-lg); }
.phone__screen { border-radius: 22px; background: #E5DDD5; overflow: hidden; }
.phone__bar { display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; background: #075E54; color: #fff; font-size: .72rem; font-weight: 600; }
.phone__bar i { width: 24px; height: 24px; border-radius: 50%; background: var(--breo); display: grid; place-items: center; font-style: normal; font-size: .6rem; }
.phone__bar small { display: block; font-weight: 400; opacity: .8; font-size: .62rem; }
.phone__chat { display: grid; gap: .4rem; padding: .7rem .6rem .9rem; }
.phone__chat .msg { padding: .45rem .6rem; border-radius: 10px; font-size: .68rem; line-height: 1.35; max-width: 90%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.phone__chat .msg--in { background: #fff; color: #111; border-top-left-radius: 2px; }
.phone__chat .msg--out { background: #DCF8C6; color: #111; justify-self: end; border-top-right-radius: 2px; }
.phone__chat .msg time { display: block; text-align: right; font-size: .55rem; color: #7a7a7a; margin-top: .15rem; }
.hv__card { position: absolute; right: -2%; bottom: 6%; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .8rem; max-width: 260px; }
.hv__card .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.hv__card .ic svg { width: 20px; height: 20px; }
.hv__card strong { display: block; color: var(--ink); font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.1; }
.hv__card span { font-size: .78rem; color: var(--muted); }
@media (max-width: 1023px) { .hero__visual { margin-top: .5rem; } .hv__card { right: 0; } }

/* --- partners strip ----------------------------------------------------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 2.6rem; }
.partner { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: #9AA9BC; text-align: center; transition: color .2s; }
.partner:hover { color: var(--ink); }
.partner small { display: block; font-weight: 500; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; color: #B4C0D0; margin-top: .05rem; }

/* --- servicios (tarjetas) ------------------------------------------------ */
.bento, .cards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento, .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento, .cards { grid-template-columns: repeat(4, 1fr); } .bento > .span-2, .cards > .span-2 { grid-column: span 2; } }
.card { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; min-height: 230px; }
.card::before { display: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.card__icon svg { width: 22px; height: 22px; }
.card__title { font-size: 1.15rem; }
.card__text { color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; }
.card__tags span { font-size: .74rem; font-weight: 600; padding: .25rem .55rem; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.card__link { position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.card__arrow { position: absolute; top: 1.3rem; right: 1.3rem; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink-2); transition: all .25s var(--ease); }
.card__arrow svg { width: 14px; height: 14px; }
.card:hover .card__arrow { background: var(--primary); color: #fff; }
.card--feature { background: linear-gradient(160deg, #F5F3FF, #EEF2FF 60%, #fff); }
.card--feature .card__title { font-size: 1.5rem; }
.card--feature .card__icon { background: var(--primary); color: #fff; }
.card--violet .card__icon { background: #F3E8FF; color: #7A3CFF; }
.card--green .card__icon { background: var(--teal-soft); color: var(--teal); }
.card--amber .card__icon { background: var(--amber-soft); color: #B7791F; }
.card--pink .card__icon { background: var(--pink-soft); color: #D6357F; }
.card--cyan .card__icon { background: var(--sky-soft); color: #0284C7; }
.card--feature.card--violet { background: linear-gradient(160deg, #F3E8FF, #F5F3FF 60%, #fff); } .card--feature.card--violet .card__icon { background: #7A3CFF; color: #fff; }
.index { display: none; }

/* --- IA ------------------------------------------------------------------ */
.ai { background: var(--bg-soft); }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; } .split--rev > :first-child { order: 2; } }
.feature-list { display: grid; gap: .8rem; margin-top: 1.8rem; }
.feature { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.feature__icon svg { width: 20px; height: 20px; }
.feature h4 { font-size: 1.05rem; margin-bottom: .2rem; }
.feature p { color: var(--ink-2); font-size: .93rem; }
.flow { border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.flow__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .92rem; color: var(--ink); }
.flow__head span:last-child { font-size: .78rem; color: var(--muted); font-weight: 500; }
.flow ol { padding: .5rem 1.3rem; counter-reset: f; }
.flow li { display: grid; grid-template-columns: 34px 1fr auto; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.flow li:last-child { border-bottom: 0; }
.flow li::before { counter-increment: f; content: counter(f, decimal-leading-zero); font-weight: 800; color: var(--primary); font-size: .8rem; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; }
.flow li strong { display: block; font-weight: 700; color: var(--ink); }
.flow li small { color: var(--muted); font-size: .82rem; }
.flow li .t { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.flow li.is-ai strong::after { content: "IA"; margin-left: .5rem; font-size: .62rem; font-weight: 800; padding: .15rem .45rem; border-radius: 999px; background: var(--primary); color: #fff; vertical-align: middle; }
.flow__foot { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); background: var(--bg-soft); font-size: .88rem; }
.flow__foot strong { color: var(--teal); }

/* --- marcas ------------------------------------------------------------ */
.brands { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .brands { grid-template-columns: 1fr 1fr; } }
.brand-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.5rem); min-height: 480px; display: flex; flex-direction: column; color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.brand-card::before, .brand-card::after, .brand-card__deco { display: none; }
.brand-card--festyx { background: #1E1B4B; }
.brand-card--breo { background: linear-gradient(160deg, #0F766E, #0BB89C); }
.brand-card__photo { position: absolute; inset: 0; z-index: -2; object-fit: cover; width: 100%; height: 100%; }
.brand-card__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,27,75,.15) 0%, rgba(30,27,75,.92) 65%); }
.brand-card__kicker { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.8); margin-bottom: .7rem; display: flex; align-items: center; gap: .5rem; }
.brand-card__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.brand-card__logo { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.brand-card__tag { margin-top: .8rem; font-size: 1.08rem; color: rgba(255,255,255,.9); max-width: 36ch; }
.brand-card__list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; }
.brand-card__list span { padding: .35rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.brand-card__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.brand-card .btn--white { color: var(--ink); }
.chat { margin-top: 1.4rem; display: grid; gap: .5rem; max-width: 380px; }
.chat .msg { padding: .6rem .85rem; border-radius: 12px; font-size: .9rem; line-height: 1.4; max-width: 88%; }
.chat .msg--in { background: rgba(255,255,255,.18); border-bottom-left-radius: 3px; }
.chat .msg--out { background: #fff; color: var(--ink); justify-self: end; border-bottom-right-radius: 3px; }

/* --- sectores ------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: .92rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.chip svg { width: 17px; height: 17px; color: var(--primary); }
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* --- proceso ------------------------------------------------------------- */
.steps { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 1.6rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step__num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: .95rem; }
.step h3 { font-size: 1.15rem; margin-top: 1rem; }
.step p { color: var(--ink-2); font-size: .93rem; margin-top: .5rem; }
.section--black .step, .section--navy .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; } .section--black .step p, .section--navy .step p { color: rgba(255,255,255,.7); }

/* --- CTA ------------------------------------------------------------------ */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(2.4rem, 6vw, 4.5rem); background: var(--ink); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 10% 0%, rgba(99,91,255,.55), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(11,184,156,.45), transparent 60%); }
.cta > * { position: relative; }
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta p { max-width: 54ch; margin: 1rem auto 0; color: rgba(255,255,255,.8); font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.8rem; }
.cta__price { display: inline-block; padding: 0 .3em; border-radius: .25em; background: var(--primary); color: #fff; }

/* --- contacto --------------------------------------------------------------- */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; } }
.contact__list { display: grid; gap: .6rem; margin-top: 1.8rem; }
.contact__item { display: flex; gap: .9rem; align-items: center; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); }
.contact__item .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.contact__item .ic svg { width: 19px; height: 19px; }
.contact__item strong { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.contact__item span, .contact__item a { color: var(--ink); font-size: .98rem; font-weight: 600; }
a.contact__item:hover { border-color: var(--primary); }
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99,91,255,.15); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7C93' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { margin-top: .25rem; accent-color: var(--primary); }
.check a { color: var(--ink-2); text-decoration: underline; }
.form__status { display: none; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }
.form__status.ok { display: block; background: var(--teal-soft); color: #0F766E; }
.form__status.err { display: block; background: #FEF2F2; color: #B91C1C; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* --- footer ------------------------------------------------------------------ */
.footer { background: var(--ink); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.footer h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 1rem; font-weight: 700; }
.footer li + li { margin-top: .5rem; }
.footer li a { color: rgba(255,255,255,.82); font-size: .95rem; }
.footer li a:hover { color: #fff; text-decoration: underline; }
.footer .brand { color: #fff; } .footer .brand span { color: #A5B4FC; }
.footer__about p { color: rgba(255,255,255,.65); margin-top: 1rem; max-width: 36ch; font-size: .95rem; }
.footer__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.footer__social a:hover { background: var(--primary); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: .85rem; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__bottom li + li { margin: 0; }

/* --- WhatsApp flotante -------------------------------------------------------- */
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -6px rgba(37,211,102,.6); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* --- reveal ----------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .05s; } .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .1s; } .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .15s; } .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .2s; } .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .25s; } .reveal-stagger.is-visible > *:nth-child(n+7) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; } }

/* --- páginas interiores ------------------------------------------------------------ */
.page-hero { position: relative; overflow: hidden; padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4.5rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero .hero__band { display: block; }
.page-hero__title { max-width: 16ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 1.3rem; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 12px; height: 12px; }
.grid-3 { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.mini { padding: 1.5rem; min-height: 0; }
.mini h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.mini p { color: var(--ink-2); font-size: .93rem; }
.mini .card__icon { margin-bottom: .5rem; width: 42px; height: 42px; }
.mini .card__icon svg { width: 20px; height: 20px; }
.checklist { display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: .15rem; }
.faq { display: grid; gap: .7rem; }
.faq details { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform .2s; flex: none; font-weight: 400; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--ink-2); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: .9rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose a { color: var(--primary); text-decoration: underline; }
.badge-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.4rem; }
.badge-row span { font-size: .78rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.related { display: grid; gap: .7rem; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.related a svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.related a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-top: 2rem; }
.stat-box { padding: 1.1rem 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat-box .stat__num { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.banner { margin: 0 0 clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 640px) { .banner img { aspect-ratio: 4 / 3; } }

/* =====================================================================
   CRO — captación de leads
   ===================================================================== */
.lead-hero { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .lead-hero { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.form--compact { gap: .75rem; padding: clamp(1.3rem, 2.5vw, 1.7rem); box-shadow: var(--shadow-lg); }
.form__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.form__sub { color: var(--muted); font-size: .92rem; margin-top: -.25rem; }
.form--compact .field input, .form--compact .field select, .form--compact .field textarea { padding: .75rem .9rem; }
.form--compact .field textarea { min-height: 84px; }
.form__offer { display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start; padding: .3rem .7rem; border-radius: 999px; background: var(--teal-soft); color: #0F766E; font-size: .78rem; font-weight: 700; }
.form__offer .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.trust { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin-top: 1.1rem; }
.trust span { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.trust svg { width: 15px; height: 15px; color: var(--teal); flex: none; }
.form .trust { margin-top: 0; justify-content: center; }
.form .trust span { font-size: .76rem; color: var(--muted); }
.quick { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--ink); color: #fff; align-items: center; box-shadow: var(--shadow); }
@media (min-width: 900px) { .quick { grid-template-columns: 1fr auto; } }
.quick h3 { font-size: 1.35rem; color: #fff; }
.quick p { color: rgba(255,255,255,.72); margin-top: .3rem; }
.quick__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(10,37,64,.2); }
.sticky-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem .5rem; border-radius: 999px; font-weight: 700; font-size: .88rem; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); }
.sticky-bar a svg { width: 18px; height: 18px; flex: none; }
.sticky-bar a.is-wa { background: var(--wa); color: #fff; border-color: transparent; }
.sticky-bar a.is-primary { background: var(--primary); color: #fff; border-color: transparent; }
@media (max-width: 959px) { body { padding-bottom: 76px; } .wa-float { display: none; } }
@media (min-width: 960px) { .sticky-bar { display: none; } }
.popup { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(10,37,64,.55); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.popup.is-open { opacity: 1; pointer-events: auto; }
.popup__box { position: relative; width: 100%; max-width: 440px; padding: clamp(1.5rem, 4vw, 2.2rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform .35s var(--ease); }
.popup.is-open .popup__box { transform: none; }
.popup__close { position: absolute; top: .9rem; right: .9rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--muted); }
.popup__close svg { width: 16px; height: 16px; }
.popup h3 { font-size: 1.5rem; margin-top: .7rem; }
.popup p { color: var(--ink-2); margin-top: .5rem; font-size: .95rem; }
.popup form { display: grid; gap: .7rem; margin-top: 1.2rem; }
.popup .check { font-size: .78rem; }

/* ajustes hero v4 */
.hero .hero__title { max-width: 17ch; }
.hero .hero__title .line { display: inline; }
@media (max-width: 1023px) {
  .hero__visual { min-height: 400px; }
  .hv__photo { width: 86%; height: 72%; }
  .phone { width: 40%; max-width: 200px; }
  .hv__card { max-width: 210px; padding: .7rem .9rem; }
  .hv__card strong { font-size: 1rem; }
}

/* composición hero v4: ajustes finales */
.hv__photo figcaption { top: 1rem; bottom: auto; }
@media (min-width: 1024px) {
  .hero__visual { min-height: 560px; }
  .hv__photo { height: 82%; }
  .phone { width: 42%; max-width: 230px; }
  .hv__card { bottom: 0; }
}
@media (max-width: 1023px) {
  .hero__visual { display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: 0; margin-top: 1rem; }
  .hv__photo { position: relative; grid-column: 1 / -1; width: 100%; height: 240px; right: auto; top: auto; }
  .phone { position: relative; left: auto; bottom: auto; width: 100%; max-width: 200px; margin-top: -110px; margin-left: .5rem; }
  .hv__card { position: relative; right: auto; bottom: auto; justify-self: end; margin-top: -56px; margin-right: .25rem; max-width: 200px; }
}
.hv__photo, .banner, .hero__photo { margin-inline: 0; }
.hv__photo { margin: 0; }

/* =====================================================================
   Estructura: menú desplegable, hubs, listados de zonas
   ===================================================================== */
.nav { position: relative; }
.nav .has-menu { position: relative; }
.nav .has-menu > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: .45rem; vertical-align: 2px; }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 620px; padding: 1rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease); z-index: 110; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; pointer-events: auto; transform: none; }
.menu__group h5 { margin: 0 0 .4rem; padding: 0 .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu__group a { display: block; padding: .45rem .6rem; border-radius: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.menu__group a small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.menu__group a:hover { background: var(--bg-soft); color: var(--primary); }
.menu__all { grid-column: 1 / -1; padding-top: .6rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.menu__all a { font-size: .88rem; font-weight: 700; color: var(--primary); }
.mobile-menu h5 { margin: 1.4rem 0 .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mobile-menu .mm-sub { display: grid; gap: .1rem; }
.mobile-menu .mm-sub a { padding: .6rem 0; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 1rem; }

/* listados de zonas */
.zones { display: grid; gap: 2rem; }
@media (min-width: 720px) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .zones { grid-template-columns: repeat(3, 1fr); } }
.zones h3 { font-size: 1.05rem; margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.zones ul { display: flex; flex-wrap: wrap; gap: .35rem; }
.zones li a { display: inline-block; padding: .35rem .7rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink); }
.zones li a:hover { border-color: var(--primary); color: var(--primary); }
.link-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.link-list a { display: inline-block; padding: .4rem .8rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink); }
.link-list a:hover { border-color: var(--primary); color: var(--primary); }

/* hub de servicios */
.hub { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .hub { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hub { grid-template-columns: repeat(3, 1fr); } }
.kw { font-size: .82rem; color: var(--muted); margin-top: .4rem; }

/* menú con tres grupos */
.menu { min-width: 860px; grid-template-columns: 1fr 1fr 1fr; }
.hub--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .hub--4 { grid-template-columns: repeat(4, 1fr); } }
.section--dark { background: #0F172A; color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead, .section--dark .card__text { color: rgba(255,255,255,.75); }
.section--dark .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.section--dark .card__title { color: #fff; }
.section--dark .card__tags span { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.section--dark .eyebrow { color: #C7D2FE; }
.kwtext { margin-top: 1.5rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--bg-soft); font-size: .88rem; color: var(--muted); }

/* logotipo real */
.brand__img { height: 40px; width: auto; }
.brand__mark { height: 34px; width: auto; margin-right: .1rem; }
.footer .brand { font-weight: 800; letter-spacing: .02em; }
.footer .brand span { color: #C4B5FD; }
@media (max-width: 400px) { .brand__img { height: 32px; } }
.hero__band { background: linear-gradient(135deg, #EEF0FF 0%, #F3EBFF 40%, #FDEBFA 75%, #F0FDFA 100%); }
.btn--primary { box-shadow: 0 4px 14px -4px rgba(90,19,255,.5); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(90,19,255,.15); }

/* =====================================================================
   Proyectos / casos de éxito
   ===================================================================== */
.projects { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.proj { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj__media { position: relative; aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; }
.proj__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.proj:hover .proj__media img { transform: scale(1.04); }
.proj__media .tag { position: absolute; left: .9rem; top: .9rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .75rem; font-weight: 700; color: var(--ink); }
.proj__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.4rem 1.5rem; }
.proj__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.proj__title { font-size: 1.2rem; }
.proj__summary { color: var(--ink-2); font-size: .93rem; }
.proj__services { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.proj__services span { font-size: .74rem; font-weight: 600; padding: .25rem .55rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.proj__link { position: absolute; inset: 0; z-index: 2; }

/* caso individual */
.case-hero { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .case-hero { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; } }
.case-hero__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); margin: 0; }
.case-hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.case-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
@media (min-width: 720px) { .case-facts { grid-template-columns: repeat(4, 1fr); } }
.case-facts > div { padding: 1rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-facts strong { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.case-facts span { font-weight: 700; color: var(--ink); font-size: .98rem; }
.case-block h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .8rem; }
.case-block p { color: var(--ink-2); max-width: 70ch; }
.testimonial { border-radius: var(--radius-lg); background: var(--primary-soft); padding: clamp(1.6rem, 4vw, 2.5rem); }
.testimonial blockquote { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; color: var(--ink); letter-spacing: -.01em; line-height: 1.4; }
.testimonial figcaption { margin-top: 1rem; color: var(--ink-2); font-size: .95rem; }
.case-nav { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: space-between; }

/* tarjeta de proyecto sin foto */
.proj__media--empty { display: grid; place-items: center; background: linear-gradient(135deg, #1E1B4B, #0A2540 60%, #123); }
.proj__initial { font-size: 4.5rem; font-weight: 800; color: rgba(255,255,255,.18); letter-spacing: -.04em; }

/* filtros de proyectos */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: all .2s var(--ease); }
.filters button small { font-size: .74rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.filters button:hover { border-color: var(--primary); color: var(--primary); }
.filters button.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filters button.is-active small { background: rgba(255,255,255,.2); color: #fff; }
.cat-section[hidden] { display: none; }
