/* ==========================================================================
   Upcofly 2026 — rediseño
   Estructura inspirada en las páginas de producto de Google (fondo blanco,
   titulares centrados, píldoras, tarjetas de color con maquetas de UI),
   con la identidad de Upcofly: Agrandir + DM Sans, azul #51bae5,
   verde #64d99b, amarillo #ffcd57, crema #f2efe9 y negro #1c1d21.
   ========================================================================== */

@font-face { font-family: "Agrandir Heavy"; src: url(fonts/Agrandir-GrandHeavy.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Agrandir"; src: url(fonts/Agrandir-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/DMSans-normal.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/DMSans-italic.woff2) format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --white: #fff;
  --cream: #f2efe9;
  --cream-2: #e9e4da;
  --soft: #f7f5f1;
  --paper: #faf8f4;
  --ink: #1c1d21;
  --ink-2: #26272c;
  --ink-3: #2f3036;
  --text: #45474d;
  --muted: #6b6d73;
  --blue: #51bae5;
  --blue-soft: #dcf1fa;
  --blue-deep: #0e6a92;
  --green: #64d99b;
  --green-soft: #dcf6e8;
  --green-deep: #13703f;
  --yellow: #ffcd57;
  --yellow-soft: #fff1cc;
  --lilac: #d6b0ff;        /* derivado del morado corporativo #c10fff */
  --lilac-soft: #f1e4ff;
  --line: #e3e0d9;
  --line-inv: rgba(255,255,255,.12);

  --f-display: "Agrandir Heavy", "Agrandir", "DM Sans", system-ui, sans-serif;
  --f-alt: "Agrandir", "DM Sans", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1296px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-s: 14px; --r-m: 24px; --r-l: 32px; --r-xl: 40px;
  --sec: clamp(4.5rem, 8vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 2px rgba(28,29,33,.06), 0 8px 28px -10px rgba(28,29,33,.18);
  --shadow-l: 0 2px 6px rgba(28,29,33,.06), 0 30px 60px -24px rgba(28,29,33,.35);
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); font-optical-sizing: none; font-variation-settings: "opsz" 24; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.up-skip { position: absolute; left: -999px; top: 1rem; z-index: 200; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 999px; }
.up-skip:focus { left: 1rem; }
.up-wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.up-wrap--narrow { width: min(100% - 2 * var(--gutter), 780px); }
.up-icon { width: 1.25em; height: 1.25em; flex: none; }
.up-sec--tight { padding-block: clamp(2rem, 4vw, 3rem) var(--sec); }

/* ------------------------------------------------------ tipografía */
.g-sec { padding-block: var(--sec); position: relative; }
.g-sec--soft { background: var(--soft); }
.g-eyebrow { font: 600 1rem/1.3 var(--f-body); color: var(--blue-deep); margin: 0 0 1rem; }
.g-h1 { font: 800 clamp(2.3rem, 1.1rem + 4vw, 4.6rem)/1.04 var(--f-display); letter-spacing: -.015em; text-wrap: balance; margin: 0 auto 1.4rem; max-width: 20ch; }
.g-h1--left { margin-left: 0; text-align: left; }
.g-h2 { font: 800 clamp(1.9rem, 1.05rem + 2.8vw, 3.6rem)/1.06 var(--f-display); letter-spacing: -.012em; text-align: center; text-wrap: balance; max-width: 22ch; margin: 0 auto clamp(2.2rem, 4vw, 3.4rem); }
.g-h2--left { text-align: left; margin-left: 0; }
.g-h2 .up-rotate { color: var(--blue-deep); font-family: var(--f-alt); font-weight: 400; }
.g-sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--text); max-width: 62ch; margin: 0 auto 1.6rem; }
.g-sub--left { margin-left: 0; }
.g-lead { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.6; color: var(--text); }
.g-lead p:last-child { margin-bottom: 0; }
.g-center { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); display: flex; justify-content: center; }
.g-sub.g-center { display: block; margin-top: -1.4rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.g-center--top { margin: calc(-1 * clamp(1rem, 2vw, 1.8rem)) 0 clamp(2.2rem, 4vw, 3.2rem); }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.6rem; }

/* ---------------------------------------------------------- botones */
.up-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 3rem; padding: .8rem 1.5rem; border-radius: 999px; background: var(--blue); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2; border: 0; cursor: pointer; transition: background .2s, box-shadow .2s, transform .25s var(--ease); }
.up-btn:hover { background: #3eaedc; box-shadow: 0 6px 18px -8px rgba(14,106,146,.6); }
.up-btn:active { transform: scale(.98); }
.up-btn__arrow { display: inline-grid; font-style: normal; transition: transform .3s var(--ease); }
.up-btn__arrow .up-icon { width: 1.05rem; height: 1.05rem; }
.up-btn:hover .up-btn__arrow { transform: translate(2px, -2px); }
.up-btn--light { background: var(--white); }
.up-btn--light:hover { background: var(--cream); }
.up-btn--block { width: 100%; justify-content: center; }
.g-pill { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .5rem 1.15rem; border-radius: 999px; background: var(--blue); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; transition: background .2s; }
.g-pill:hover { background: #3eaedc; }
.g-pill--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.g-pill--outline:hover { background: var(--soft); }
.g-textlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--blue-deep); text-decoration: none; }
.g-textlink .up-icon { width: 1.05rem; height: 1.05rem; transition: transform .3s var(--ease); }
.g-textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.g-textlink:hover .up-icon { transform: translate(2px, -2px); }
.g-round { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); cursor: pointer; transition: background .2s; }
.g-round:hover { background: var(--cream-2); }
.g-round .up-icon { width: 1.25rem; height: 1.25rem; transform: rotate(45deg); }
.g-round[data-prev] .up-icon { transform: rotate(-135deg); }
.g-round--sm { width: 2.4rem; height: 2.4rem; }
.up-chip { display: inline-block; padding: .38rem .75rem; border-radius: 999px; font: 600 .75rem/1 var(--f-body); background: var(--blue-soft); color: var(--blue-deep); }
.up-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.4rem; }
.up-crumbs a { text-decoration: none; }
.up-crumbs a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- topbar */
.g-topbar { font-size: .86rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.g-topbar__in { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 1rem; }
.g-topbar nav, .g-topbar__info { display: flex; gap: 1.4rem; }
.g-topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.g-topbar a:hover { color: var(--ink); }
.g-topbar .up-icon { width: 1rem; height: 1rem; }
.g-navbtns { display: flex; gap: .5rem; }
/* ------------------------------------------------------------ header */
.up-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.up-header.is-scrolled { background: rgba(242, 239, 233, .82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.up-header__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 80px; }
.up-logo img { width: 124px; height: auto; }
.up-nav { display: flex; align-items: center; gap: 1.8rem; }
.up-nav__list { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.up-nav__link { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-radius: 999px; font-weight: 500; text-decoration: none; background: none; border: 0; cursor: pointer; transition: background .2s; }
.up-nav__link:hover, .up-nav__item--mega.is-open > .up-nav__link { background: rgba(20, 20, 22, .07); }
.up-nav__plus { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.up-nav__item--mega.is-open .up-nav__plus { transform: rotate(45deg); }
.up-nav__item--mega { position: static; }
.up-mega { position: absolute; left: 50%; top: calc(100% - 6px); width: min(100vw - 2 * var(--gutter), 1080px); transform: translate(-50%, 8px);
  display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 1.5rem; padding: 1.6rem; border-radius: var(--r-l); background: var(--paper); box-shadow: 0 30px 70px -20px rgba(20,20,22,.35), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
.up-nav__item--mega.is-open .up-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.up-mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.up-mega .up-eyebrow { margin: .4rem .7rem 1rem; }
.up-mega__col--marketing .up-eyebrow::before { background: var(--green); }
.up-mega__col--diseno .up-eyebrow::before { background: var(--blue); }
.up-mega a { display: flex; gap: .85rem; align-items: center; padding: .6rem .7rem; border-radius: var(--r-s); text-decoration: none; transition: background .2s; }
.up-mega a:hover { background: var(--cream); }
.up-mega__ico { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; flex: none; }
.up-mega__col--marketing .up-mega__ico { background: var(--green-soft); color: var(--green-deep); }
.up-mega__col--diseno .up-mega__ico { background: var(--blue-soft); color: var(--blue-deep); }
.up-mega strong { display: block; font-weight: 600; font-size: .98rem; }
.up-mega small { display: block; color: var(--muted); font-size: .83rem; line-height: 1.35; }
.up-mega a.up-mega__promo { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .4rem; padding: 1.5rem; background: var(--ink); color: var(--cream); border-radius: var(--r-m); position: relative; min-height: 100%; }
.up-mega a.up-mega__promo:hover { background: var(--ink-3); }
.up-mega__promo strong { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.05; }
.up-mega__promo span:not(.up-eyebrow) { color: rgba(242,239,233,.7); font-size: .9rem; }
.up-mega__promo .up-eyebrow { margin: 0 0 auto; }
.up-mega__promo .up-icon { position: absolute; top: 1.4rem; right: 1.4rem; width: 1.6rem; height: 1.6rem; color: var(--blue); }
.up-burger { display: none; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; }
.up-burger span { position: absolute; left: 50%; width: 1.15rem; height: 2px; background: var(--cream); transform: translateX(-50%); transition: transform .3s var(--ease), top .3s; }
.up-burger span:first-child { top: 42%; }
.up-burger span:last-child { top: 56%; }
.nav-open .up-burger span:first-child { top: 50%; transform: translateX(-50%) rotate(45deg); }
.nav-open .up-burger span:last-child { top: 50%; transform: translateX(-50%) rotate(-45deg); }

/* ---------------------------------------------------------- contacto */
.up-contact-sec { background: var(--cream-2); scroll-margin-top: 80px; }
.up-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.up-contact__info .up-display { margin-bottom: 1.4rem; }
.up-contact__info .up-rotate { color: var(--blue-deep); font-family: var(--f-alt); font-weight: 400; }
.up-contact__list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.up-contact__list li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.up-contact__list .up-icon { width: 2.6rem; height: 2.6rem; padding: .65rem; border-radius: 50%; background: var(--ink); color: var(--cream); }
.up-contact__list a { text-decoration: none; }
.up-contact__list a:hover { text-decoration: underline; }
.up-contact__dl { display: grid; gap: 1.4rem; margin: 2.4rem 0 0; }
.up-contact__dl dt { font: 600 .75rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.up-contact__dl dd { margin: 0; font: 400 1.3rem/1.35 var(--f-alt); }
.up-contact__dl a { text-decoration: none; }
.up-hero--contact .up-contact__form { position: relative; z-index: 1; }

/* -------------------------------------------------------- formulario */
.up-form { background: var(--white); border-radius: var(--r-l); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow); display: grid; gap: 1.15rem; }
.up-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.up-field { display: grid; gap: .45rem; font-size: .88rem; font-weight: 600; border: 0; margin: 0; padding: 0; min-width: 0; }
.up-field input, .up-field select, .up-field textarea { width: 100%; padding: .9rem 1rem; border-radius: var(--r-s); border: 1.5px solid transparent; background: #f4f1eb; font-size: 1rem; font-weight: 400; transition: border-color .2s, background .2s; }
.up-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141416' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; padding-right: 2.6rem; }
.up-field input:focus, .up-field select:focus, .up-field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.up-field textarea { resize: vertical; min-height: 110px; }
.up-field legend { margin-bottom: .6rem; padding: 0; }
.up-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.up-chipbox { position: relative; cursor: pointer; }
.up-chipbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.up-chipbox span { display: inline-block; padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.up-chipbox:hover span { border-color: var(--ink); }
.up-chipbox input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.up-chipbox input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.up-check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.up-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--ink); flex: none; }
.up-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.up-form__error { margin: 0; padding: .9rem 1rem; border-radius: var(--r-s); background: #fde8e4; color: #8a1f0c; font-size: .93rem; }
.up-form [aria-invalid="true"] { border-color: #d0432a; }
.up-form--done { text-align: center; justify-items: center; padding-block: 3.5rem; }
.up-form__ok { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--green); }
.up-form__ok .up-icon { width: 1.8rem; height: 1.8rem; }

/* -------------------------------------------------------------- prose */
.up-prose { font-size: 1.1rem; line-height: 1.72; }
.up-prose > :first-child { margin-top: 0; }
.up-prose h2 { font: 800 clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem)/1.08 var(--f-display); margin: 3.2rem 0 1.1rem; letter-spacing: -.01em; }
.up-prose .up-kicker + h2, .up-prose .up-kicker + h3 { margin-top: 0; }
.up-prose h3 { font: 400 clamp(1.3rem, 1.1rem + .6vw, 1.65rem)/1.15 var(--f-alt); margin: 2.4rem 0 .8rem; letter-spacing: -.015em; }
.up-prose ul, .up-prose ol { padding-left: 1.3rem; }
.up-prose li { margin-bottom: .45rem; }
.up-prose li::marker { color: var(--blue-deep); }
.up-prose a { color: var(--blue-deep); }
.up-prose table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: .98rem; background: var(--paper); border-radius: var(--r-s); overflow: hidden; }
.up-prose th, .up-prose td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.up-prose th { background: var(--ink); color: var(--cream); font-weight: 600; }
.up-media { margin: 2rem 0; border-radius: var(--r-m); overflow: hidden; background: var(--ink-2); }
.up-media img, .up-media video { width: 100%; }
.up-media + .up-media { margin-top: -1rem; }
.up-casepage__cover { margin: 2.5rem 0 0; border-radius: var(--r-l); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(20,20,22,.5); }
.up-casepage__cover img { width: 100%; max-height: 640px; object-fit: cover; }
.up-hero--case .up-case__meta { margin-bottom: 1.2rem; }
.up-hero--case .up-display { max-width: 22ch; }


/* cabecera blanca (sobrescribe la base) */
.up-header { background: var(--white); }
.up-header.is-scrolled { background: rgba(255,255,255,.92); box-shadow: 0 1px 0 var(--line), 0 6px 20px -14px rgba(28,29,33,.3); }
.up-header__in { height: 68px; }
.up-nav__link { font-size: .97rem; }
.up-mega { background: var(--white); }
.up-mega a:hover { background: var(--soft); }

/* -------------------------------------------------------------- hero */
.g-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; }
.g-hero__in { display: flex; flex-direction: column; align-items: center; }
.g-hero .g-actions { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.g-media { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 7.2; }
.g-media video { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.g-media__card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(340px, 80%); text-align: left; }
.g-hero--case { padding-bottom: 2rem; }
.g-hero--case .up-case__meta { justify-content: center; margin-bottom: 1rem; }
.g-hero--case .g-h1 { max-width: 24ch; }
.g-hero--404 { min-height: 60vh; display: grid; align-items: center; }
.g-hero--contact { text-align: left; }

/* escenario de color con maqueta (heros de servicio y bloques) */
.g-stage { position: relative; display: grid; place-items: center; min-height: clamp(320px, 38vw, 480px); padding: 2.5rem 1.5rem; border-radius: var(--r-xl); overflow: hidden;
  background-image: radial-gradient(rgba(28,29,33,.12) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.g-stage--marketing { background-color: var(--green); }
.g-stage--diseno { background-color: var(--blue); }
.g-stage--soft { background-color: var(--cream); }
.g-stage__mock { width: min(360px, 100%); transform: rotate(-2deg); transition: transform .6s var(--ease); text-align: left; }
.g-stage:hover .g-stage__mock { transform: rotate(0) translateY(-4px); }
.g-stage__chip { position: absolute; left: 1.5rem; bottom: 1.5rem; padding: .6rem 1rem; border-radius: 999px; background: var(--white); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); text-align: left; }

/* ------------------------------------------------------------- logos */
.up-logos { padding: 1.8rem 0; overflow: hidden; border-block: 1px solid var(--line); }
.up-logos__track { display: flex; width: max-content; animation: up-marquee 50s linear infinite; }
.up-logos:hover .up-logos__track { animation-play-state: paused; }
.up-logos ul { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 4.5rem); list-style: none; margin: 0; padding: 0 clamp(1.25rem, 2.5vw, 2.25rem); }
.up-logos img { height: 28px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0); opacity: .42; transition: opacity .25s; }
.up-logos img:hover { opacity: .8; }
@keyframes up-marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------ palabra que rota */
.up-rotate { display: inline-block; }
.up-rotate > span { display: inline-block; }
.up-rotate.is-out > span { animation: up-word-out .3s var(--ease) forwards; }
.up-rotate.is-inw > span { animation: up-word-in .45s var(--ease) both; }
@keyframes up-word-out { to { opacity: 0; transform: translateY(-.3em); } }
@keyframes up-word-in { from { opacity: 0; transform: translateY(.3em); } }

/* ---------------------------------------------------------- carrusel */
.g-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.g-carousel__track::-webkit-scrollbar { display: none; }
.g-carousel__track > * { scroll-snap-align: start; }
.g-carousel__ctrl { display: flex; justify-content: space-between; align-items: center; margin-top: 1.6rem; }
.g-carousel__arrows, .g-carousel__state { display: flex; align-items: center; gap: .6rem; }
.g-progress { position: relative; width: 4.5rem; height: 6px; border-radius: 3px; background: var(--cream-2); overflow: hidden; }
.g-progress i { position: absolute; inset: 0; background: var(--blue-deep); transform-origin: left; transform: scaleX(0); }
.g-carousel.is-playing .g-progress i { animation: g-prog var(--dur, 6s) linear forwards; }
@keyframes g-prog { to { transform: scaleX(1); } }
.g-pause { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.g-carousel.is-paused .g-pause { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-block: 6px solid transparent; margin-left: 3px; }

.g-slide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: clamp(380px, 34vw, 480px); border-radius: var(--r-xl); overflow: hidden; }
.g-slide__txt { padding: clamp(1.8rem, 4vw, 3.6rem); }
.g-slide__txt h3 { font: 800 clamp(1.5rem, 1.05rem + 1.4vw, 2.4rem)/1.08 var(--f-display); letter-spacing: -.01em; margin-bottom: 1rem; text-wrap: balance; }
.g-slide__txt p:not(.g-eyebrow) { color: rgba(28,29,33,.78); max-width: 44ch; }
.g-slide .g-eyebrow { color: var(--ink); opacity: .75; }
.g-slide .g-textlink { color: var(--ink); }
.g-slide__mock { align-self: stretch; display: grid; place-items: center; padding: 2rem; background: rgba(255,255,255,.28); }
.g-slide__mock .mk { width: min(340px, 100%); }
.g-slide--green { background: var(--green); }
.g-slide--blue { background: var(--blue); }
.g-slide--yellow { background: var(--yellow); }
.g-slide--ink { background: var(--ink); color: var(--white); }
.g-slide--ink p:not(.g-eyebrow), .g-slide--ink .g-eyebrow, .g-slide--ink .g-textlink { color: rgba(255,255,255,.85); }
.g-slide--ink .g-slide__mock { background: rgba(255,255,255,.06); }

/* ------------------------------------------------- sección oscura + tabs */
.g-dark { background: var(--ink); color: var(--white); }
.g-dark .g-h2 { color: var(--white); }
.g-sub--inv { color: rgba(255,255,255,.75); }
.g-tabs { display: flex; width: max-content; max-width: 100%; margin: 0 auto clamp(2.2rem, 4vw, 3rem); padding: 5px; gap: 4px; border-radius: 999px; background: var(--ink-3); overflow-x: auto; }
.g-tabs [role=tab] { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.8); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.g-tabs [role=tab] .up-icon { width: 1.1rem; height: 1.1rem; }
.g-tabs [role=tab][aria-selected=true] { background: var(--white); color: var(--ink); }
.g-panel[hidden] { display: none; }
.g-scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.g-scard { position: relative; display: flex; flex-direction: column; min-height: 400px; border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .4s var(--ease); }
.g-scard:hover { transform: translateY(-6px); }
.g-scard--blue { background: var(--blue); } .g-scard--yellow { background: var(--yellow); } .g-scard--green { background: var(--green); }
.g-scard__txt { padding: 1.8rem 1.8rem 1rem; }
.g-scard__txt b { display: block; font: 800 1.45rem/1.1 var(--f-display); margin-bottom: .5rem; padding-right: 2.5rem; }
.g-scard__txt span { color: rgba(28,29,33,.78); }
.g-scard__mock { margin-top: auto; padding: 0 1.4rem; transform: translateY(18px); transition: transform .5s var(--ease); }
.g-scard:hover .g-scard__mock { transform: translateY(6px); }
.g-scard__mock .mk { width: 100%; box-shadow: 0 -10px 30px -18px rgba(28,29,33,.4); }
.g-scard__go { position: absolute; top: 1.4rem; right: 1.4rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255,255,255,.65); transition: transform .35s var(--ease), background .2s; }
.g-scard:hover .g-scard__go { background: var(--white); transform: rotate(45deg); }

/* ------------------------------------------------------- tarjetas color */
.g-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.g-cards > * { grid-column: span 2; }
.g-cards--4 > *, .g-cards--2 > * { grid-column: span 3; }
.g-cards--5 > :nth-child(n+4) { grid-column: span 3; }
.g-card { display: flex; flex-direction: column; min-height: 280px; padding: clamp(1.6rem, 2.6vw, 2.2rem); border-radius: var(--r-l); }
.g-card--blue { background: var(--blue-soft); } .g-card--yellow { background: var(--yellow-soft); } .g-card--green { background: var(--green-soft); }
.g-sec--soft .g-card--blue { background: var(--blue); } .g-sec--soft .g-card--yellow { background: var(--yellow); } .g-sec--soft .g-card--green { background: var(--green); }
.g-card__n { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--white); font: 800 .95rem/1 var(--f-display); margin-bottom: auto; }
.g-card h3 { font: 800 clamp(1.25rem, 1.05rem + .6vw, 1.6rem)/1.12 var(--f-display); letter-spacing: -.01em; margin: 2.2rem 0 .7rem; }
.g-card p { margin: 0; color: var(--text); }
.g-sec--soft .g-card p { color: rgba(28,29,33,.8); }

.g-dcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.g-dcard { padding: 2rem; border-radius: var(--r-l); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-inv); }
.g-dcard__ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--green); color: var(--ink); margin-bottom: 2rem; }
.up-area-diseno .g-dcard__ico { background: var(--blue); }
.g-dcard h3 { font: 800 1.3rem/1.15 var(--f-display); margin-bottom: .7rem; }
.g-dcard p { margin: 0; color: rgba(255,255,255,.72); }

/* -------------------------------------------------------- split / intro */
.g-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.g-split--media { align-items: center; }
.g-intro { padding-top: clamp(1rem, 3vw, 2rem); }
.g-intro .g-h2 { margin-bottom: 0; }
.g-qlist { list-style: none; margin: 0; padding: 0; }
.g-qlist li { position: relative; padding: 1rem 0 1rem 2.6rem; border-top: 1px solid var(--line); font-size: 1.12rem; color: var(--ink); }
.g-qlist li::before { content: "?"; position: absolute; left: 0; top: .95rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--blue-soft); color: var(--blue-deep); font: 800 .85rem/1 var(--f-display); }
.g-checks { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; }
.g-checks li { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.08rem; }
.g-checks .up-icon { width: 1.8rem; height: 1.8rem; padding: .35rem; border-radius: 50%; background: var(--green); flex: none; margin-top: .05rem; }

/* ------------------------------------------------------------ pasos */
.g-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 2.5rem 2rem; text-align: center; max-width: 1100px; }
.g-steps--3 { --n: 3; } .g-steps--5 { --n: 5; } .g-steps--6 { --n: 3; }
.g-step h3 { font: 800 1.3rem/1.15 var(--f-display); margin: 1.4rem 0 .6rem; }
.g-step p { color: var(--text); margin: 0 auto; max-width: 28ch; }
.g-badge { display: inline-grid; place-items: center; width: 96px; height: 96px; font: 400 2.6rem/1 var(--f-alt); color: var(--ink); background: var(--green); }
.g-badge--scallop { background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%2364d99b'%3E%3Ccircle cx='50' cy='50' r='38'/%3E%3Ccircle cx='50' cy='13' r='12'/%3E%3Ccircle cx='71.7' cy='20.1' r='12'/%3E%3Ccircle cx='85.2' cy='38.6' r='12'/%3E%3Ccircle cx='85.2' cy='61.4' r='12'/%3E%3Ccircle cx='71.7' cy='79.9' r='12'/%3E%3Ccircle cx='50' cy='87' r='12'/%3E%3Ccircle cx='28.3' cy='79.9' r='12'/%3E%3Ccircle cx='14.8' cy='61.4' r='12'/%3E%3Ccircle cx='14.8' cy='38.6' r='12'/%3E%3Ccircle cx='28.3' cy='20.1' r='12'/%3E%3C/g%3E%3C/svg%3E"); }
.g-badge--blob { border-radius: 58% 42% 50% 50% / 46% 58% 42% 54%; background: var(--blue); }
.g-badge--square { border-radius: 26%; background: var(--yellow); }
.g-badge--circle { border-radius: 50%; }
.g-badge--flower { border-radius: 50% 50% 50% 12%; background: var(--blue); }
.g-badge--pill { border-radius: 999px; width: 120px; background: var(--yellow); }

/* ----------------------------------------------------------- testimonios */
.g-quotes .g-carousel__track { grid-auto-columns: 100%; }
.g-quote { display: grid; grid-template-columns: .85fr 1.15fr; margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--soft); min-height: 360px; }
.g-quote__side { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.8rem, 4vw, 3rem); }
.g-quote--blue .g-quote__side { background: var(--blue); } .g-quote--yellow .g-quote__side { background: var(--yellow); } .g-quote--green .g-quote__side { background: var(--green); }
.g-quote__mark .up-icon { width: 3rem; height: 3rem; }
.g-quote__side p { font: 800 clamp(1.4rem, 1rem + 1.3vw, 2.2rem)/1.1 var(--f-display); margin: 0; text-wrap: balance; }
.g-quote__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.8rem, 4vw, 3.5rem); }
.g-quote blockquote { margin: 0 0 2rem; }
.g-quote blockquote p { font: 400 clamp(1.15rem, 1rem + .5vw, 1.45rem)/1.45 var(--f-alt); margin: 0; }
.g-quote figcaption { display: flex; align-items: center; gap: .8rem; }
.g-quote figcaption b { display: block; }
.g-quote figcaption small { color: var(--muted); }
.g-quote__av { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--f-display); }

/* --------------------------------------------------------------- casos */
.up-cases__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
.up-case { position: relative; display: flex; flex-direction: column; gap: .8rem; text-decoration: none; }
.up-case--wide { grid-column: 1 / -1; }
.up-case__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--cream); }
.up-case--wide .up-case__img { aspect-ratio: 21 / 9; }
.up-case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.up-case:hover .up-case__img img { transform: scale(1.04); }
.up-case__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.up-case__t { font: 800 clamp(1.2rem, 1rem + .6vw, 1.55rem)/1.15 var(--f-display); padding-right: 3.5rem; }
.up-case__go { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--soft); transition: transform .35s var(--ease), background .2s; }
.up-case:hover .up-case__go { transform: rotate(45deg); background: var(--blue); }

/* ----------------------------------------------------------------- CTA */
.g-cta { padding-block: clamp(2rem, 4vw, 3rem); }
.g-cta__in { text-align: center; padding: clamp(3rem, 7vw, 6rem) clamp(1.4rem, 4vw, 3rem); border-radius: var(--r-xl); background: var(--cream); background-image: radial-gradient(rgba(28,29,33,.08) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.g-cta__in .g-h2 { margin-bottom: 1.2rem; }
.up-area-marketing .g-cta__in { background-color: var(--green-soft); }
.up-area-diseno .g-cta__in { background-color: var(--blue-soft); }

/* -------------------------------------------------------- más servicios */
.up-more__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.up-more .g-eyebrow { color: var(--ink); }
.up-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.up-more a { display: flex; align-items: center; gap: .7rem; padding: .85rem 1.1rem; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 500; transition: background .2s; }
.up-more__col--marketing a:hover, .up-more__col--marketing a[aria-current] { background: var(--green); }
.up-more__col--diseno a:hover, .up-more__col--diseno a[aria-current] { background: var(--blue); }
.up-more__col p { font-weight: 600; margin-bottom: 1rem; }

/* ----------------------------------------------------- maquetas de UI */
.mk { font: 400 13px/1.4 var(--f-body); color: var(--ink); text-align: left; }
.mk b { font-weight: 600; }
.mk-card { background: var(--white); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-l); }
.mk-sk { display: block; height: 8px; width: var(--w, 70%); margin: 7px 0; border-radius: 4px; background: #ebe8e1; }
.mk-sk--b { height: 10px; background: #d9d5cc; }
.mk-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.mk-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--soft); font-size: 11.5px; font-weight: 600; }
.mk-pill .up-icon { width: 13px; height: 13px; }
.mk-pill--on { background: var(--ink); color: #fff; }
.mk-btn { display: block; margin-top: 12px; padding: 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); text-align: center; font-weight: 600; }
.mk-btn--y { background: var(--yellow); color: var(--ink); }
.mk-h { display: block; font: 800 15px/1.2 var(--f-display); margin-bottom: 4px; }
.mk-tag { margin: 0 0 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.mk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mk-top .up-icon { width: 18px; height: 18px; }
.mk-stars { color: #f2a900; letter-spacing: 1px; font-size: 12px; }
/* perfil (hero) */
.mk-cover { height: 72px; margin: -16px -16px 12px; border-radius: 18px 18px 0 0; background: linear-gradient(120deg, var(--blue), var(--green)); }
.mk-tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.mk-tabs .is-on { color: var(--blue-deep); font-weight: 600; box-shadow: 0 8px 0 -6px var(--blue-deep); }
.mk-spark { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.mk-spark > .up-icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--green-soft); color: var(--green-deep); }
.mk-spark div { flex: 1; }
/* seo */
.mk-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 12px; }
.mk-search .up-icon { width: 16px; height: 16px; color: var(--muted); }
.mk-res { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #f0ede6; }
.mk-res div { flex: 1; min-width: 0; }
.mk-res b { display: block; font-size: 12px; }
.mk-res i { display: block; font-style: normal; color: var(--blue-deep); font-weight: 600; font-size: 13.5px; }
.mk-res--top { background: var(--green-soft); margin: 0 -8px; padding: 10px 8px; border-radius: 12px; border: 0; }
.mk-fav { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 12px/1 var(--f-display); flex: none; }
.mk-fav--g { background: #e4e0d8; }
.mk-badge { padding: 4px 8px; border-radius: 999px; background: var(--green); font-weight: 700; font-size: 11px; }
/* ads */
.mk-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 6px; }
.mk-bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--blue); }
.mk-bars span:nth-child(1) { height: 30%; } .mk-bars span:nth-child(2) { height: 42%; } .mk-bars span:nth-child(3) { height: 38%; } .mk-bars span:nth-child(4) { height: 55%; }
.mk-bars span:nth-child(5) { height: 62%; } .mk-bars span:nth-child(6) { height: 58%; } .mk-bars span:nth-child(7) { height: 78%; } .mk-bars span:nth-child(8) { height: 96%; background: var(--green); }
/* marketplace */
.mk-prod { display: flex; gap: 12px; align-items: center; }
.mk-prod div { flex: 1; }
.mk-prod__img { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 14px; background: var(--yellow-soft); color: #9a6b00; flex: none; }
.mk-prod__img .up-icon { width: 30px; height: 30px; }
/* analítica */
.mk-chart { width: 100%; height: 110px; }
.mk-chart__area { fill: var(--blue-soft); }
.mk-chart__line { fill: none; stroke: var(--blue-deep); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mk-kpis div { padding: 8px 10px; border-radius: 12px; background: var(--soft); }
.mk-kpis small { display: block; color: var(--muted); font-size: 11px; }
.mk-kpis b .up-icon { width: 18px; height: 18px; color: var(--green-deep); }
/* bandeja */
.mk-mail { display: flex; gap: 10px; align-items: center; padding: 9px 6px; border-radius: 12px; }
.mk-mail div { flex: 1; min-width: 0; }
.mk-mail--on { background: var(--blue-soft); }
.mk-av { width: 28px; height: 28px; border-radius: 50%; background: #e4e0d8; display: grid; place-items: center; flex: none; font: 800 12px/1 var(--f-display); }
.mk-mail--on .mk-av { background: var(--ink); color: #fff; }
.mk-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-deep); }
/* branding */
.mk-swatches { display: flex; gap: 6px; }
.mk-swatches span { flex: 1; height: 44px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.mk-type { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.mk-type div { flex: 1; }
.mk-aa { font: 800 40px/1 var(--f-display); }
.mk-logo-ph { flex: 1; display: grid; place-items: center; height: 54px; border-radius: 12px; background: var(--soft); }
.mk-logo-ph--inv { background: var(--ink); color: #fff; }
/* consultoría */
.mk-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-note { display: grid; place-items: center; min-height: 58px; border-radius: 12px; background: var(--c); font-weight: 700; transform: rotate(-1.5deg); }
.mk-note:nth-child(even) { transform: rotate(1.5deg); }
.mk-note--wide { grid-column: 1 / -1; color: #fff; transform: none; }
/* naming */
.mk-name { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; margin-top: 6px; border-radius: 12px; background: var(--soft); }
.mk-name b { font: 800 14px/1 var(--f-display); }
.mk-name--on { background: var(--green-soft); }
.mk-name--on span { display: inline-flex; align-items: center; gap: 4px; color: var(--green-deep); font-weight: 600; font-size: 12px; }
.mk-name--on .up-icon { width: 14px; height: 14px; }
.mk-name .mk-sk { margin: 0; }
/* packaging */
.mk-pack { display: grid; place-items: center; padding: 20px; }
.mk-box { position: relative; width: 170px; height: 190px; }
.mk-box__front { position: absolute; left: 0; bottom: 0; width: 120px; height: 150px; border-radius: 6px; background: var(--white); display: grid; place-items: center; box-shadow: var(--shadow-l); }
.mk-box__front b { font: 800 20px/1 var(--f-display); text-align: center; }
.mk-box__side { position: absolute; left: 120px; bottom: 0; width: 50px; height: 150px; background: var(--cream-2); transform: skewY(-30deg); transform-origin: left bottom; border-radius: 0 6px 6px 0; }
.mk-box__top { position: absolute; left: 0; bottom: 150px; width: 120px; height: 29px; background: var(--ink); transform: skewX(-60deg); transform-origin: left bottom; border-radius: 6px 6px 0 0; }
/* motion */
.mk-screen { position: relative; height: 130px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; overflow: hidden; }
.mk-play .up-icon { width: 42px; height: 42px; color: #fff; }
.mk-shape { position: absolute; border-radius: 50%; }
.mk-shape--1 { width: 60px; height: 60px; background: var(--blue); left: 14px; top: 14px; animation: mk-float 4s ease-in-out infinite; }
.mk-shape--2 { width: 34px; height: 34px; border-radius: 8px; background: var(--yellow); right: 20px; bottom: 16px; animation: mk-float 3s ease-in-out infinite reverse; }
@keyframes mk-float { 50% { transform: translateY(-10px) rotate(20deg); } }
.mk-timeline { display: flex; gap: 4px; margin-top: 12px; }
.mk-timeline span { height: 16px; border-radius: 4px; background: var(--blue-soft); flex: 2; }
.mk-timeline span:nth-child(2) { background: var(--green-soft); flex: 3; }
.mk-timeline span:nth-child(3) { background: var(--yellow-soft); flex: 1.5; }
.mk-keys { display: flex; justify-content: space-between; margin-top: 8px; }
.mk-keys i { width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }
/* cámara */
.mk-viewfinder { position: relative; height: 200px; border-radius: 12px; background: linear-gradient(160deg, #cfe9f5, #f6e3b0); overflow: hidden; }
.mk-rec { position: absolute; top: 10px; left: 12px; font-weight: 700; font-size: 11px; color: #d23; background: rgba(255,255,255,.8); padding: 3px 7px; border-radius: 6px; }
.mk-grid { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 33%, rgba(255,255,255,.7) 33%, rgba(255,255,255,.7) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255,255,255,.7) 66%, rgba(255,255,255,.7) calc(66% + 1px), transparent calc(66% + 1px)), linear-gradient(transparent 33%, rgba(255,255,255,.7) 33%, rgba(255,255,255,.7) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255,255,255,.7) 66%, rgba(255,255,255,.7) calc(66% + 1px), transparent calc(66% + 1px)); }
.mk-focus { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border: 2px solid var(--white); border-radius: 8px; }
/* navegador */
.mk-browser { padding: 0; overflow: hidden; }
.mk-bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; background: var(--soft); }
.mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d5cc; }
.mk-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--white); font-size: 11px; color: var(--muted); }
.mk-page { padding: 16px; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.mk-tiles span { height: 46px; border-radius: 10px; background: var(--blue-soft); }
.mk-tiles span:nth-child(2) { background: var(--yellow-soft); } .mk-tiles span:nth-child(3) { background: var(--green-soft); }
/* entrada */
.mk-ticket { display: flex; padding: 0; overflow: hidden; }
.mk-ticket__l { flex: 1; padding: 16px; border-right: 2px dashed var(--line); }
.mk-ticket__l small { color: var(--muted); font-weight: 600; }
.mk-ticket__l b { display: block; font: 800 20px/1.1 var(--f-display); margin: 4px 0; }
.mk-ticket__r { display: grid; place-items: center; width: 74px; background: var(--yellow); }
.mk-ticket__r .up-icon { width: 30px; height: 30px; }

/* ----------------------------------------------------------- contacto */
.up-contact-sec { background: var(--soft); }
.up-contact__info .g-h1 .up-rotate { color: var(--blue-deep); font-family: var(--f-alt); font-weight: 400; }
.up-contact__list .up-icon { background: var(--blue-soft); color: var(--blue-deep); }
.up-form { box-shadow: var(--shadow); }
.up-field input, .up-field select, .up-field textarea { background: var(--soft); }
.up-chipbox input:checked + span { background: var(--blue); color: var(--ink); border-color: var(--blue); }

/* -------------------------------------------------------------- pie */
.g-footer { background: var(--soft); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .95rem; }
.g-footer a { text-decoration: none; color: var(--text); }
.g-footer a:hover { color: var(--ink); text-decoration: underline; }
.g-footer__top { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.g-footer__top p { margin: 0; color: var(--muted); }
.g-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.g-footer__h { font-weight: 600; margin-bottom: 1rem; }
.g-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; color: var(--text); }
.g-footer__bottom { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: 1.6rem; color: var(--muted); font-size: .88rem; }
.g-footer__bottom nav { display: flex; gap: 1.4rem; flex: 1; }
.g-footer__brand { font: 800 1.4rem/1 var(--f-display); color: var(--ink); }

/* --------------------------------------------------- animación entrada */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .up-logos__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .up-logos ul[aria-hidden] { display: none; }
  .up-logos ul { flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .up-mega { grid-template-columns: 1fr 1fr; }
  .up-mega__promo { grid-column: 1 / -1; min-height: 0 !important; }
  .g-scards { grid-template-columns: repeat(2, 1fr); }
  .g-steps, .g-steps--5 { grid-template-columns: repeat(2, 1fr); }
  .g-footer__cols { grid-template-columns: 1fr 1fr; }
  .g-topbar nav { display: none; }
}
@media (max-width: 900px) {
  .up-burger { display: block; z-index: 2; }
  .up-nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 1.5rem; padding: 96px var(--gutter) 2rem; background: var(--white); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .4s var(--ease), visibility .3s; }
  .nav-open .up-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .up-nav__list { flex-direction: column; gap: 0; }
  .up-nav__link { width: 100%; justify-content: space-between; padding: 1.1rem 0; border-radius: 0; border-bottom: 1px solid var(--line); font: 800 1.35rem/1.1 var(--f-display); }
  .up-nav__link:hover, .up-nav__item--mega.is-open > .up-nav__link { background: none; }
  .up-mega { position: static; width: auto; transform: none; display: none; grid-template-columns: 1fr; padding: 1rem 0; box-shadow: none; background: none; opacity: 1; visibility: visible; }
  .up-nav__item--mega.is-open .up-mega { display: grid; transform: none; }
  .g-navbtns .g-pill { flex: 1; justify-content: center; min-height: 3rem; }
  .g-split, .up-contact, .up-more__grid { grid-template-columns: 1fr; }
  .g-slide { grid-template-columns: 1fr; }
  .g-slide__mock { padding: 1.5rem 1.5rem 2rem; }
  .g-cards > *, .g-cards--4 > *, .g-cards--5 > :nth-child(n+4) { grid-column: span 3; }
  .g-dcards { grid-template-columns: 1fr; }
  .g-quote { grid-template-columns: 1fr; }
  .g-media { aspect-ratio: 4 / 5; }
  .up-cases__grid { grid-template-columns: 1fr; }
  .up-case--wide .up-case__img { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .g-topbar { display: none; }
  .up-header__in { height: 64px; }
  .up-logo img { width: 104px; }
  .g-carousel__track { grid-auto-columns: 92%; }
  .g-scards { grid-template-columns: 1fr; }
  .g-scard { min-height: 340px; }
  .g-scard__txt b { font-size: 1.22rem; padding-right: 3rem; }
  .g-cards > *, .g-cards--4 > *, .g-cards--5 > :nth-child(n+4) { grid-column: 1 / -1; }
  .g-card { min-height: 0; }
  .g-card h3 { margin-top: 1.4rem; }
  .g-steps, .g-steps--5, .g-steps--6 { grid-template-columns: 1fr; }
  .up-form__grid, .up-more ul { grid-template-columns: 1fr; }
  .g-footer__cols { grid-template-columns: 1fr; }
  .g-stage__chip { left: 1rem; right: 1rem; bottom: 1rem; text-align: center; }
  .g-stage { padding-bottom: 5rem; }
  .g-actions .up-btn { width: 100%; justify-content: center; }
}

/* Carruseles (áreas y testimonios): a todo el ancho, sin contenedor (petición de David) */
.g-carousel .g-carousel__track { margin-inline: calc(50% - 50vw); padding-inline: clamp(.75rem, 1.6vw, 1.5rem); scroll-padding-inline: clamp(.75rem, 1.6vw, 1.5rem); grid-auto-columns: calc(100vw - 2 * clamp(.75rem, 1.6vw, 1.5rem) - 6rem); }
@media (max-width: 600px) { .g-carousel .g-carousel__track { grid-auto-columns: calc(100vw - 3rem); } }

/* Paleta ampliada: lila (del morado corporativo #c10fff), crema y blanco */
.g-scard--lilac { background: var(--lilac); }
.g-scard--cream { background: var(--cream); }
.g-scard--white { background: var(--white); }
.g-scard--cream .g-scard__mock .mk, .g-scard--white .g-scard__mock .mk { box-shadow: 0 0 0 1px var(--line), 0 -10px 30px -18px rgba(28,29,33,.35); }
.g-scard--white .g-scard__go, .g-scard--cream .g-scard__go { background: var(--soft); }
.g-card--lilac { background: var(--lilac-soft); }
.g-card--cream { background: var(--cream); }
.g-sec--soft .g-card--lilac { background: var(--lilac); }
.g-sec--soft .g-card--cream { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.g-quote--lilac .g-quote__side { background: var(--lilac); }
.g-quote--cream .g-quote__side { background: var(--ink); color: var(--white); }

/* Sin azul oscuro no corporativo: sólo #51bae5 y negro (petición de David) */
:root { --blue-deep: var(--ink); }
.g-eyebrow { display: inline-block; padding: .42rem .95rem; border-radius: 999px; background: var(--blue); color: var(--ink); font-size: .9rem; line-height: 1.2; }
.g-slide .g-eyebrow { background: rgba(255,255,255,.65); opacity: 1; }
.g-slide--ink .g-eyebrow { background: rgba(255,255,255,.14); color: var(--white); }
.g-textlink { color: var(--ink); text-decoration: none; background: linear-gradient(var(--blue), var(--blue)) 0 100% / 100% 3px no-repeat; padding-bottom: 2px; }
.g-textlink:hover { text-decoration: none; background-size: 100% 100%; border-radius: 4px; }
.g-slide--ink .g-textlink { color: var(--white); }
.g-slide--ink .g-textlink:hover { color: var(--ink); }
.g-h2 .up-rotate, .up-contact__info .g-h1 .up-rotate { color: var(--ink); background: linear-gradient(transparent 58%, var(--blue) 58%, var(--blue) 92%, transparent 92%); padding-inline: .06em; }
.g-progress i { background: var(--blue); }
.mk-tabs .is-on { box-shadow: 0 8px 0 -6px var(--blue); }
.mk-chart__line { stroke: var(--ink); }
.mk-dot { background: var(--blue); }

/* Antetítulo v3: texto negro sin fondo + punto azul corporativo */
.g-eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: 0; background: none; border-radius: 0; color: var(--ink); font: 600 .98rem/1.3 var(--f-body); letter-spacing: .01em; }
.g-eyebrow::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--blue); flex: none; }
.g-slide .g-eyebrow { background: none; }
.g-slide .g-eyebrow::before { background: var(--ink); }
.g-slide--ink .g-eyebrow { background: none; color: var(--white); }
.g-slide--ink .g-eyebrow::before { background: var(--blue); }

/* Titulares que rotan: siempre 2 líneas (altura fija) y palabra en degradado que alterna */
.g-rot .g-rot__fixed, .g-rot .up-rotate { display: block; white-space: nowrap; }
.g-h2.g-rot { font-size: clamp(1.35rem, 6.1vw, 3.6rem); max-width: none; }
.g-h1.g-rot { font-size: clamp(2.3rem, 1.1rem + 4vw, 4.6rem); }
.g-rot .up-rotate, .g-h2 .g-rot .up-rotate, .up-contact__info .g-h1.g-rot .up-rotate { font-family: var(--f-display); font-weight: 800; background: none; padding: 0 .04em .08em; line-height: 1.12; }
.g-rot .up-rotate > span { background-image: var(--g, linear-gradient(90deg, #51bae5, #c10fff)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.g-rot .up-rotate[data-tone="0"] { --g: linear-gradient(90deg, #51bae5 0%, #c10fff 100%); }
.g-rot .up-rotate[data-tone="1"] { --g: linear-gradient(90deg, #3fcf86 0%, #51bae5 100%); }
.g-rot .up-rotate[data-tone="2"] { --g: linear-gradient(90deg, #c10fff 0%, #51bae5 100%); }
.g-rot .up-rotate[data-tone="3"] { --g: linear-gradient(90deg, #f5b301 0%, #3fcf86 100%); }

/* Palabra que rota: colores planos corporativos que se alternan (sin degradado) */
.g-rot .up-rotate > span { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; color: inherit; }
.g-rot .up-rotate { color: #51bae5; transition: color .2s; }
.g-rot .up-rotate[data-tone="1"] { color: #c10fff; }
.g-rot .up-rotate[data-tone="2"] { color: #64d99b; }
.g-rot .up-rotate[data-tone="3"] { color: #51bae5; }

/* Enlaces de texto sin línea azul */
.g-textlink, .g-textlink:hover { background: none; padding-bottom: 0; border-radius: 0; }
.g-textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.g-slide--ink .g-textlink:hover { color: var(--white); }

/* Titulares ~15 % más pequeños */
.g-h1 { font-size: clamp(2rem, 1rem + 3.3vw, 3.9rem); }
.g-h2 { font-size: clamp(1.7rem, 1rem + 2.2vw, 3rem); }
.g-h2.g-rot { font-size: clamp(1.25rem, 5.2vw, 3rem); }
.g-h1.g-rot { font-size: clamp(2rem, 1rem + 3.3vw, 3.9rem); }
.g-slide__txt h3 { font-size: clamp(1.4rem, 1rem + 1.15vw, 2.1rem); }
.g-quote__side p { font-size: clamp(1.3rem, .95rem + 1.1vw, 1.9rem); }

/* Palabra que rota: sólo azul corporativo */
.g-rot .up-rotate, .g-rot .up-rotate[data-tone] { color: #51bae5; }

/* ------------------------------------------------ casos de éxito (carrusel) */
.g-cases { background: var(--ink); color: var(--white); overflow: hidden; }
.g-cases__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.g-cases__head .g-h2 { color: var(--white); margin: 0; }
.g-cases .g-textlink, .g-cases .g-textlink:hover { color: var(--white); }
.g-cases .g-round { background: var(--ink-3); color: var(--white); }
.g-cases .g-round:hover { background: #3a3b42; }
.g-cases .g-progress { background: var(--ink-3); }
.g-case { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; min-height: clamp(440px, 38vw, 600px); border-radius: var(--r-xl); overflow: hidden; color: var(--ink); background: var(--ink-2); }
.g-case__img { position: relative; display: block; overflow: hidden; }
.g-case__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.g-case.is-active .g-case__img img, .g-case:hover .g-case__img img { transform: scale(1); }
.g-case__panel { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: clamp(1.6rem, 3.4vw, 3.2rem); }
.g-case--blue .g-case__panel { background: var(--blue); } .g-case--yellow .g-case__panel { background: var(--yellow); }
.g-case--lilac .g-case__panel { background: var(--lilac); } .g-case--green .g-case__panel { background: var(--green); } .g-case--cream .g-case__panel { background: var(--cream); }
.g-case__n { font: 800 clamp(2.8rem, 2rem + 2.6vw, 5rem)/.9 var(--f-display); letter-spacing: -.03em; margin-bottom: auto; }
.g-case__n small { font-size: .32em; letter-spacing: 0; opacity: .55; margin-left: .2em; vertical-align: top; }
.g-case__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.g-case__chip { padding: .38rem .8rem; border-radius: 999px; background: rgba(255,255,255,.6); font-weight: 600; font-size: .8rem; }
.g-case__t { font: 800 clamp(1.45rem, 1.05rem + 1.3vw, 2.3rem)/1.08 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.g-case__t a { text-decoration: none; }
.g-case__ex { margin: 0; color: rgba(28,29,33,.8); max-width: 40ch; }
.g-case__btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; padding: .8rem 1.4rem; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; transition: transform .25s var(--ease); }
.g-case__btn .up-icon { width: 1.05rem; height: 1.05rem; transition: transform .3s var(--ease); }
.g-case__btn:hover .up-icon { transform: translate(2px, -2px); }
.g-cases .g-carousel__track { gap: clamp(.75rem, 1.2vw, 1.25rem); }

/* rejilla de la página de casos */
.g-casegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.g-casegrid .g-case { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0; }
.g-casegrid .g-case__img { aspect-ratio: 16 / 10; }
.g-casegrid .g-case__img img { transform: none; transition: transform 1s var(--ease); }
.g-casegrid .g-case:hover .g-case__img img { transform: scale(1.04); }
.g-casegrid .g-case__n { font-size: 1rem; margin: 0; }
.g-casegrid .g-case__n small { font-size: .8em; }
.g-casegrid .g-case__t { font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); }

@media (max-width: 900px) {
  .g-case { grid-template-columns: 1fr; grid-template-rows: 56vw auto; min-height: 0; }
  .g-case__n { font-size: 2.4rem; margin-bottom: .4rem; }
  .g-cases__head { flex-direction: column; align-items: flex-start; }
  .g-casegrid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { .g-cases .g-carousel__track { align-items: start; } }
/* sin contador: el contenido del panel se apoya abajo */
.g-case__chips { margin-top: auto; }
.g-casegrid .g-case__chips { margin-top: 0; }
.up-note { font-size: .85rem; color: var(--muted); margin-top: -.6rem; }
.up-prose td:last-child strong { color: var(--ink); background: var(--green-soft); padding: .15rem .5rem; border-radius: 999px; white-space: nowrap; }

/* ------------------------------------------- página «Resultados»: rejilla */
.g-results { padding-top: clamp(2.5rem, 5vw, 4rem); }
.g-rgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: start; }
.g-rc { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, transform .4s var(--ease); }
.g-rc:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-l); }
.g-rc__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--cream); }
.g-rc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-rc:hover .g-rc__img img { transform: scale(1.04); }
.g-rc__body { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: clamp(1.4rem, 2.6vw, 2.2rem); }
.g-rc__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.g-rc__chip { padding: .35rem .75rem; border-radius: 999px; font-weight: 600; font-size: .78rem; background: var(--soft); }
.g-rc--blue .g-rc__chip { background: var(--blue); } .g-rc--yellow .g-rc__chip { background: var(--yellow); }
.g-rc--lilac .g-rc__chip { background: var(--lilac); } .g-rc--green .g-rc__chip { background: var(--green); } .g-rc--cream .g-rc__chip { background: var(--cream); }
.g-rc__t { font: 800 clamp(1.3rem, 1.05rem + .8vw, 1.75rem)/1.1 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.g-rc__t a { text-decoration: none; }
.g-rc__ex { margin: 0; color: var(--text); }
.g-rc__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; width: 100%; }
.g-rc__stat { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border-radius: var(--r-m); background: var(--soft); }
.g-rc--blue .g-rc__stat { background: var(--blue-soft); } .g-rc--yellow .g-rc__stat { background: var(--yellow-soft); }
.g-rc--lilac .g-rc__stat { background: var(--lilac-soft); } .g-rc--green .g-rc__stat { background: var(--green-soft); } .g-rc--cream .g-rc__stat { background: var(--cream); }
.g-rc__stat b { font: 800 clamp(1.7rem, 1.3rem + 1vw, 2.3rem)/1 var(--f-display); letter-spacing: -.02em; }
.g-rc__stat span { font-weight: 600; font-size: .92rem; line-height: 1.25; margin-top: .3rem; }
.g-rc__stat small { color: var(--muted); font-size: .82rem; }
.g-rc__per { margin: -.2rem 0 0; font-size: .8rem; color: var(--muted); }
.g-rc__hl { width: 100%; padding-top: .9rem; border-top: 1px solid var(--line); }
.g-rc__hl p { font-weight: 600; margin: 0 0 .6rem; }
.g-rc__hl ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; }
.g-rc__hl li { display: flex; gap: .5rem; align-items: flex-start; font-size: .93rem; color: var(--text); }
.g-rc__hl .up-icon { width: 1.15rem; height: 1.15rem; padding: .15rem; border-radius: 50%; background: var(--green); color: var(--ink); margin-top: .1rem; }
.g-rc__btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem; padding: .75rem 1.3rem; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; }
.g-rc__btn .up-icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.g-rc__btn:hover .up-icon { transform: translate(2px, -2px); }
@media (max-width: 900px) { .g-rgrid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .g-rc__hl ul { grid-template-columns: 1fr; } }

/* ----------------------- «Resultados»: rejilla escalonada tipo Wanatop, imagen Upcofly */
.g-wcases { background: var(--ink); color: var(--white); padding-block: clamp(3.5rem, 7vw, 6rem); }
.g-wcases__intro { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.g-wcases__label { margin: 0; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.25); font: 600 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); max-width: 280px; }
.g-wcases__lead { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.75); max-width: 60ch; }
.g-wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.g-wgrid__col { display: grid; gap: 1.25rem; }
.g-wgrid__col:nth-child(2) { margin-top: 2.5rem; }
.g-wgrid__col:nth-child(3) { margin-top: -1rem; }
.g-wc { position: relative; border-radius: var(--r-m); overflow: hidden; color: var(--ink); isolation: isolate; transition: transform .45s var(--ease); }
.g-wc:hover { transform: translateY(-6px); }
.g-wc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.1); transition: transform 1.2s var(--ease); }
.g-wc:hover .g-wc__bg { transform: scale(1.06); }
.g-wc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); opacity: .9; transition: opacity .4s; }
.g-wc:hover::before { opacity: .84; }
.g-wc--green { --c: var(--green); } .g-wc--blue { --c: var(--blue); } .g-wc--lilac { --c: var(--lilac); } .g-wc--yellow { --c: var(--yellow); }
.g-wc__in { display: flex; flex-direction: column; padding: clamp(1.6rem, 2.6vw, 2.3rem); }
.g-wc__brand { margin: .4rem 0 .3rem; text-align: center; font: 800 clamp(1.5rem, 1.1rem + 1vw, 2.1rem)/1 var(--f-display); letter-spacing: -.02em; }
.g-wc__tags { margin: 0 0 1.6rem; text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.g-wc__t { font: 400 1.25rem/1.25 var(--f-alt); margin-bottom: .7rem; text-wrap: balance; }
.g-wc__ex { margin: 0 0 1.2rem; font-size: .98rem; line-height: 1.55; color: rgba(28,29,33,.85); }
.g-wc__rows { list-style: none; margin: 0 0 .8rem; padding: 0; }
.g-wc__rows li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(28,29,33,.28); }
.g-wc__rows li:first-child { border-top: 1px solid rgba(28,29,33,.28); }
.g-wc__rows b { font: 400 clamp(2rem, 1.5rem + 1.4vw, 2.8rem)/1 var(--f-alt); letter-spacing: -.03em; white-space: nowrap; }
.g-wc__rows span { text-align: right; font-size: .86rem; line-height: 1.3; font-weight: 600; }
.g-wc__rows small { display: block; font-weight: 400; opacity: .75; font-size: .8rem; }
.g-wc__rows li.is-text { justify-content: flex-end; padding: .55rem 0; }
.g-wc__rows li.is-text span { font-weight: 500; }
.g-wc__per { margin: 0 0 1rem; font-size: .75rem; opacity: .7; }
.g-wc__btn { align-self: flex-end; display: inline-flex; align-items: center; gap: .45rem; margin-top: .4rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1.5px solid currentColor; color: var(--ink); text-decoration: none; font: 600 .8rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; transition: background .25s, color .25s; }
.g-wc__btn .up-icon { width: .95rem; height: .95rem; }
.g-wc__btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (max-width: 1080px) {
  .g-wgrid { grid-template-columns: repeat(2, 1fr); }
  .g-wgrid__col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 0; }
}
@media (max-width: 700px) {
  .g-wcases__intro, .g-wgrid, .g-wgrid__col:nth-child(3) { grid-template-columns: 1fr; }
  .g-wgrid__col:nth-child(n) { margin-top: 0; }
}
.g-wc__bg { filter: grayscale(1) blur(3px) contrast(1.05); transform: scale(1.08); }
.g-wc:hover .g-wc__bg { transform: scale(1.12); }
.g-wc::before { opacity: .93; }
.g-wc:hover::before { opacity: .88; }
.g-wc--short .g-wc__in { min-height: 260px; justify-content: center; }
.g-wc--short .g-wc__btn { align-self: center; margin-top: 1rem; }
@media (max-width: 700px) {
  .g-wgrid { display: flex; flex-direction: column; gap: 1rem; }
  .g-wgrid__col { display: contents; }
  .g-wc { order: var(--o); }
}
@media (max-width: 700px) { .g-wgrid .g-wgrid__col:nth-child(n) { display: contents; } }

/* Logotipos de cliente en negro */
.g-wc__brand--logo { display: grid; place-items: center; height: 64px; margin: .4rem 0 .5rem; }
.g-wc__brand--logo img { max-height: 46px; max-width: 72%; width: auto; object-fit: contain; filter: brightness(0); }
.g-case__logo { max-height: 42px; max-width: 220px; width: auto; object-fit: contain; filter: brightness(0); margin-bottom: auto; }
.g-case__chips { margin-top: auto; }

/* ======================================================================
   Ficha de caso «rica» (estructura tipo Wanatop, imagen Upcofly)
   ====================================================================== */
.cs { --t: var(--green); }
.cs--blue { --t: var(--blue); } .cs--lilac { --t: var(--lilac); } .cs--yellow { --t: var(--yellow); } .cs--green { --t: var(--green); }
.cs-label { display: inline-block; margin: 0 0 1.4rem; padding-bottom: .9rem; min-width: 220px; border-bottom: 1px solid currentColor; font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }

/* cabecera */
.cs-hero { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 6vw, 5rem) 0 0; overflow: hidden; }
.cs-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cs-crumbs { font-size: .88rem; color: rgba(255,255,255,.55); margin-bottom: 2rem; }
.cs-crumbs a { color: inherit; text-decoration: none; }
.cs-crumbs a:hover { color: var(--white); }
.cs-title { font: 800 clamp(3rem, 1.4rem + 6vw, 7.4rem)/.92 var(--f-display); letter-spacing: -.03em; color: var(--t); margin: 0 0 1.2rem; text-wrap: balance; }
.cs-sector { display: inline-block; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.3); font: 600 .8rem/1.3 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cs-hero__side { padding-left: clamp(0rem, 3vw, 2.5rem); border-left: 1px solid rgba(255,255,255,.15); }
.cs-logo { max-height: 48px; max-width: 220px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.6rem; }
.cs-headline { font: 400 clamp(1.3rem, 1rem + .9vw, 1.8rem)/1.25 var(--f-alt); margin-bottom: 1.2rem; text-wrap: balance; }
.cs-hero__side p { color: rgba(255,255,255,.72); }
.cs-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.cs-chip { padding: .38rem .8rem; border-radius: 999px; background: var(--t); color: var(--ink); font-weight: 600; font-size: .8rem; }

/* escaparate: navegador + móvil */
.cs-show { position: relative; margin-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.cs-show::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 100vw; height: 45%; transform: translateX(-50%); background: var(--t); z-index: 0; }
.cs-browser { position: relative; z-index: 1; border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); }
.cs-browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ecebe7; }
.cs-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3cfc6; }
.cs-browser__bar span { margin-left: 12px; padding: 3px 14px; border-radius: 999px; background: var(--white); font-size: 12px; color: var(--muted); }
.cs-browser img { display: block; width: 100%; aspect-ratio: 1200 / 760; object-fit: cover; object-position: top; }
.cs-browser--big { width: 86%; }
.cs-phone { position: relative; z-index: 2; border-radius: 34px; padding: 9px; background: var(--ink); box-shadow: 0 30px 70px -25px rgba(0,0,0,.6); }
.cs-phone img { display: block; width: 100%; border-radius: 26px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.cs-phone--float { position: absolute; right: 0; bottom: clamp(1.5rem, 4vw, 3rem); width: clamp(150px, 22%, 270px); transform: rotate(3deg); }

/* resultados */
.cs-results { position: relative; background: var(--ink); color: var(--white); padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.cs-arrow { position: absolute; left: 0; top: 0; width: 100%; height: clamp(120px, 18vw, 260px); fill: none; stroke: var(--blue); stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.cs-results__h { position: relative; text-align: center; font: 800 clamp(2.6rem, 1.4rem + 4.6vw, 6rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--t); margin: clamp(3rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.cs-nums { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); }
.cs-nums--2 { --n: 2; } .cs-nums--4 { --n: 4; }
.cs-num { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: .5rem 1.5rem 1.5rem; }
.cs-num + .cs-num { border-left: 1px solid rgba(255,255,255,.25); }
.cs-num b { font: 800 clamp(2.8rem, 1.6rem + 3.6vw, 5.4rem)/1 var(--f-display); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--white); white-space: nowrap; }
.cs-num span { font: 400 1.2rem/1.25 var(--f-alt); margin-top: .5rem; }
.cs-num small { color: rgba(255,255,255,.6); font-size: .92rem; }
.cs-period { text-align: center; margin: 2.5rem auto 0; font-size: .82rem; color: rgba(255,255,255,.5); max-width: 70ch; }

/* objetivos */
.cs-goals { background: var(--t); color: var(--ink); padding-block: clamp(3.5rem, 7vw, 6rem); }
.cs-goals__grid { display: grid; grid-template-columns: .8fr 2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cs-orbit { width: 130px; height: 130px; fill: none; stroke: rgba(28,29,33,.45); stroke-width: 1.5; animation: up-spin 30s linear infinite; }
.cs-orbit .f { fill: var(--ink); stroke: none; }
.cs-orbit circle.f:nth-of-type(4) { fill: var(--white); }
.cs-goals__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; margin-bottom: 1.6rem; }
.cs-obj { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.cs-obj li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: center; }
.cs-obj__n { position: relative; font: 400 2.6rem/1 var(--f-alt); }
.cs-obj__n::after { content: ""; position: absolute; left: 1.6rem; top: 50%; width: 1.4rem; height: 1.5px; background: var(--ink); }
.cs-obj p { margin: 0; font-size: 1.08rem; font-weight: 500; }

/* qué hicimos */
.cs-acts { padding-block: var(--sec); background: var(--white); }
.cs-label--dark { color: var(--ink); }
.cs-acts__h { font: 800 clamp(1.8rem, 1.1rem + 2.2vw, 3rem)/1.06 var(--f-display); letter-spacing: -.012em; max-width: 20ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cs-act { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.cs-act:nth-of-type(even) .cs-act__txt { order: 2; }
.cs-act__n { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--t); font: 800 1rem/1 var(--f-display); margin-bottom: 1.2rem; }
.cs-act h3 { font: 800 clamp(1.4rem, 1.05rem + 1vw, 2rem)/1.1 var(--f-display); margin-bottom: .8rem; }
.cs-act p { color: var(--text); font-size: 1.08rem; margin: 0; }
.cs-act--text { grid-template-columns: 1fr; }
.cs-act--text .cs-act__txt { max-width: 640px; order: 0 !important; }
.cs-act__media .cs-browser { box-shadow: var(--shadow-l); transition: transform .6s var(--ease); }
.cs-act:hover .cs-browser { transform: translateY(-6px); }

/* móviles */
.cs-mobile { background: var(--soft); padding-block: var(--sec); text-align: center; }
.cs-mobile .cs-label { color: var(--ink); }
.cs-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 1rem; }
.cs-phones .cs-phone:nth-child(2) { transform: translateY(-2rem); }

@media (max-width: 900px) {
  .cs-hero__grid, .cs-goals__grid, .cs-act { grid-template-columns: 1fr; }
  .cs-hero__side { padding-left: 0; border-left: 0; }
  .cs-act:nth-of-type(even) .cs-act__txt { order: 0; }
  .cs-browser--big { width: 100%; }
  .cs-phone--float { width: 34%; right: -2%; bottom: -1rem; }
  .cs-nums, .cs-nums--4, .cs-nums--2 { grid-template-columns: 1fr 1fr; }
  .cs-num + .cs-num { border-left: 0; }
  .cs-num { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.5rem; }
}
@media (max-width: 600px) {
  .cs-nums, .cs-nums--4, .cs-nums--2 { grid-template-columns: 1fr; }
  .cs-phones { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .cs-phone { border-radius: 18px; padding: 4px; }
  .cs-phone img { border-radius: 14px; }
  .cs-phones .cs-phone:nth-child(2) { transform: translateY(-1rem); }
  .cs-show::before { height: 30%; }
}

/* Carrusel de la portada: maqueta grande que sale por la esquina inferior derecha */
.g-slide { position: relative; overflow: hidden; }
.g-slide__mock { position: relative; align-self: stretch; padding: 0; background: none; min-height: 100%; }
.g-slide--ink .g-slide__mock { background: none; }
.g-slide__mock::before, .g-slide__mock::after { content: ""; position: absolute; border-radius: 28px; pointer-events: none; }
.g-slide__mock::before { width: 78%; height: 88%; right: -14%; bottom: -26%; background: rgba(255,255,255,.35); transform: rotate(-12deg); transform-origin: bottom right; transition: transform 1s var(--ease); }
.g-slide__mock::after { width: 120px; height: 120px; border-radius: 50%; left: 8%; top: 12%; background: rgba(255,255,255,.28); }
.g-slide--ink .g-slide__mock::before { background: rgba(255,255,255,.08); }
.g-slide--ink .g-slide__mock::after { background: var(--blue); opacity: .35; }
.g-slide__mock .mk { position: absolute; right: -2%; bottom: -10%; width: 340px; transform-origin: bottom right; transform: translateY(40px) rotate(-6deg) scale(1.55); transition: transform 1.1s var(--ease); box-shadow: 0 40px 80px -30px rgba(28,29,33,.55); }
.g-slide.is-active .g-slide__mock .mk, .g-slide:hover .g-slide__mock .mk { transform: translateY(0) rotate(-6deg) scale(1.55); }
.g-slide.is-active .g-slide__mock::before { transform: rotate(-8deg); }
@media (max-width: 1200px) { .g-slide__mock .mk { transform: translateY(40px) rotate(-6deg) scale(1.3); } .g-slide.is-active .g-slide__mock .mk, .g-slide:hover .g-slide__mock .mk { transform: rotate(-6deg) scale(1.3); } }
@media (max-width: 900px) {
  .g-slide__mock { min-height: 330px; }
  .g-slide__mock .mk { right: -4%; bottom: -14%; width: 300px; transform: rotate(-6deg) scale(1.08) !important; }
}
/* sin flecha ni órbitas: la sección de resultados arranca más compacta */
.cs-results { padding-top: clamp(4rem, 8vw, 6.5rem); }
.cs-results__h { margin-top: 0; }
/* Carrusel portada: sin círculo ni placa de fondo; maqueta más grande */
.g-slide__mock::before, .g-slide__mock::after { display: none; }
.g-slide__mock .mk { right: -4%; bottom: -14%; transform: translateY(40px) rotate(-6deg) scale(1.8); }
.g-slide.is-active .g-slide__mock .mk, .g-slide:hover .g-slide__mock .mk { transform: rotate(-6deg) scale(1.8); }
@media (max-width: 1200px) { .g-slide__mock .mk { transform: translateY(40px) rotate(-6deg) scale(1.5); } .g-slide.is-active .g-slide__mock .mk, .g-slide:hover .g-slide__mock .mk { transform: rotate(-6deg) scale(1.5); } }
@media (max-width: 900px) { .g-slide__mock .mk { transform: rotate(-6deg) scale(1.2) !important; } }

/* Carrusel de casos: tarjeta entera de color con la foto de fondo y el contenido encima */
.g-case { grid-template-columns: 1fr; isolation: isolate; --c: var(--blue); background: var(--ink-2); }
.g-case--blue { --c: var(--blue); } .g-case--yellow { --c: var(--yellow); } .g-case--lilac { --c: var(--lilac); } .g-case--green { --c: var(--green); } .g-case--cream { --c: var(--cream); }
.g-case__img { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.g-case__img img { filter: grayscale(1) blur(2px) contrast(1.05); transform: scale(1.1); }
.g-case.is-active .g-case__img img, .g-case:hover .g-case__img img { transform: scale(1.03); }
.g-case::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); opacity: .92; transition: opacity .5s; }
.g-case:hover::before { opacity: .86; }
.g-case__panel, .g-case--blue .g-case__panel, .g-case--yellow .g-case__panel, .g-case--lilac .g-case__panel, .g-case--green .g-case__panel, .g-case--cream .g-case__panel { background: none; }
.g-case__panel { justify-content: flex-end; max-width: 760px; padding: clamp(1.8rem, 4.5vw, 4rem); }
.g-case__logo { max-height: clamp(44px, 5vw, 70px); max-width: 300px; margin-bottom: auto; }
.g-case__t { font-size: clamp(1.7rem, 1.1rem + 2vw, 3.1rem); }
.g-case__ex { font-size: 1.08rem; max-width: 52ch; }
.g-case__chip { background: rgba(255,255,255,.55); }
@media (max-width: 900px) {
  .g-case { grid-template-rows: auto; min-height: 460px; }
}
.g-case__img img { filter: grayscale(1) blur(7px) contrast(.9); }
.g-case::before { opacity: .95; }
.g-case:hover::before { opacity: .9; }

/* ======================================================================
   Ficha de proyecto web (estructura tipo Awwwards, marca Upcofly)
   ====================================================================== */
.aw { --t: var(--green); --bg1: #ecebe6; --bg2: var(--soft); background: var(--bg1); }
.aw--blue { --t: var(--blue); } .aw--lilac { --t: var(--lilac); } .aw--yellow { --t: var(--yellow); } .aw--green { --t: var(--green); }
.aw-kick { font: 500 .85rem/1 var(--f-body); margin: 0 0 1.4rem; color: var(--ink); }
.aw-kick--line { padding-bottom: 1.4rem; margin-bottom: 2rem; border-bottom: 1px dashed rgba(28,29,33,.3); }
.aw-h { font: 800 clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem)/1.08 var(--f-display); letter-spacing: -.015em; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* cabecera */
.aw-top { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem); }
.aw-top__bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.aw-badge { display: grid; place-items: center; gap: .1rem; min-width: 64px; padding: .5rem .7rem; border: 1px solid var(--ink); border-radius: 8px; text-align: center; }
.aw-badge small { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.aw-badge b { font: 800 1.15rem/1 var(--f-display); }
.aw-crumbs { margin: .6rem auto 0; font-size: .85rem; color: var(--muted); }
.aw-crumbs a { color: inherit; text-decoration: none; }
.aw-visit { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border: 1px solid var(--ink); border-radius: 8px; font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .2s, color .2s; }
.aw-visit .up-icon { width: 1rem; height: 1rem; }
.aw-visit:hover { background: var(--ink); color: var(--white); }
.aw-title { text-align: center; font: 800 clamp(3.2rem, 1.2rem + 8vw, 9rem)/.9 var(--f-display); letter-spacing: -.035em; margin: clamp(1.5rem, 4vw, 3rem) 0 1rem; text-wrap: balance; }
.aw-sub { text-align: center; color: var(--text); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); margin: 0; }

/* marco */
.aw-frame { position: relative; border-radius: 14px; background: var(--ink); padding: clamp(1.2rem, 4vw, 3.5rem); }
.aw-frame__card { border-radius: 10px; background: #f3f2ee; padding: clamp(1rem, 3.5vw, 3.4rem); display: grid; place-items: center; overflow: hidden; }
.aw-frame__card img { width: 100%; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 40px -24px rgba(0,0,0,.35); aspect-ratio: 1200 / 800; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.aw-frame:hover .aw-frame__card img { transform: scale(1.015); }
.aw-frame--hero .aw-frame__card img { aspect-ratio: 1200 / 760; }
.aw-dock { position: absolute; z-index: 2; left: 50%; top: clamp(.6rem, 2vw, 1.4rem); transform: translateX(-50%); display: flex; align-items: center; gap: .25rem; padding: .35rem; border-radius: 10px; background: rgba(28,29,33,.92); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); white-space: nowrap; max-width: calc(100% - 1rem); overflow-x: auto; scrollbar-width: none; }
.aw-dock a { padding: .55rem .85rem; border-radius: 7px; color: rgba(255,255,255,.75); text-decoration: none; font-size: .85rem; font-weight: 500; }
.aw-dock a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.aw-dock__logo { display: grid; place-items: center; height: 2.4rem; padding: 0 .8rem; border-radius: 7px; background: rgba(255,255,255,.08); margin-right: .2rem; }
.aw-dock__logo img { height: 1.2rem; width: auto; max-width: 110px; filter: brightness(0) invert(1); }
.aw-dock a.aw-dock__cta { background: var(--t); color: var(--ink); font-weight: 600; margin-left: .3rem; }

/* elementos */
.aw-sec { padding-block: clamp(3.5rem, 7vw, 6rem); }
.aw-sec--light { background: var(--bg2); }
.aw-els { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
.aw-el { margin: 0; }
.aw-el .aw-frame { padding: clamp(1rem, 3vw, 2.4rem); }
.aw-el .aw-frame__card { padding: clamp(.8rem, 2.5vw, 2rem); }
.aw-el figcaption, .aw-in figcaption { display: flex; align-items: baseline; gap: .5rem; margin-top: .9rem; font-size: 1.02rem; }
.aw-el figcaption span, .aw-in figcaption span { font-size: .72rem; color: var(--muted); }
.aw-el figcaption u, .aw-in figcaption u { text-decoration: none; font-weight: 600; box-shadow: inset 0 -2px 0 var(--t); }
.aw-frame--phone .aw-frame__card { aspect-ratio: 1200 / 800; }
.aw-ph { width: min(40%, 230px); border-radius: 22px; padding: 6px; background: var(--ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.aw-ph img { display: block; width: 100%; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; border-radius: 17px; box-shadow: none; }
.aw-frame--phone .aw-ph { width: min(34%, 200px); }

/* paleta */
.aw-pal { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 2rem; align-items: center; }
.aw-pal__txt { margin: 0; max-width: 24ch; color: var(--text); }
.aw-stack { position: relative; height: clamp(260px, 30vw, 380px); }
.aw-sw { position: absolute; top: 0; bottom: 0; left: calc(var(--i) * 13%); right: calc((var(--n) - 1 - var(--i)) * 0% + 0px); width: calc(100% - (var(--n) - 1) * 13%); border-radius: 8px; background: var(--c); box-shadow: -10px 0 30px -12px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.06); display: flex; flex-direction: column; justify-content: space-between; padding: 1rem 1.2rem; transition: transform .5s var(--ease); }
.aw-stack:hover .aw-sw { transform: translateX(calc(var(--i) * 8px)); }
.aw-sw__hex { font-size: .85rem; color: var(--ink); mix-blend-mode: difference; filter: invert(1); }
.aw-sw__aa { align-self: flex-end; font: 400 clamp(3rem, 2rem + 3vw, 5.4rem)/1 var(--f-alt); color: var(--ink); mix-blend-mode: difference; filter: invert(1); }
.aw-sw:not(:last-child) .aw-sw__aa { visibility: hidden; }
.aw-fonts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.aw-fonts li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.aw-font__aa { grid-row: span 2; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 8px; background: var(--ink); color: var(--white); font: 400 1.3rem/1 var(--f-alt); }
.aw-fonts b { font-size: 1.05rem; }
.aw-fonts small { color: var(--muted); }

/* herramientas y descripción */
.aw-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.aw-pill { padding: .65rem 1.1rem; border-radius: 999px; border: 1px solid rgba(28,29,33,.25); font-weight: 600; font-size: .92rem; background: var(--white); }
.aw-desc { font: 400 clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem)/1.25 var(--f-alt); letter-spacing: -.015em; margin: 0; max-width: 34ch; }

/* por dentro */
.aw-ins { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
.aw-in { margin: 0; }
.aw-in__card { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 14px; background: #e9e7e1; padding: clamp(1.2rem, 4vw, 3rem); overflow: hidden; }
.aw-in__card > img { width: 100%; height: 100%; object-fit: contain; }
.aw-in__desk { width: 100%; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0,0,0,.4); }
.aw-in__desk img { display: block; width: 100%; aspect-ratio: 1200 / 800; object-fit: cover; object-position: top; }
.aw-in__card--phones { display: flex; justify-content: center; gap: clamp(.8rem, 2vw, 1.4rem); }
.aw-in__card--phones .aw-ph { width: min(36%, 200px); }

/* resultados tipo «score» */
.aw-score { background: var(--bg2); padding-block: clamp(3.5rem, 7vw, 6rem); }
.aw-big { font: 800 clamp(3rem, 1.4rem + 7vw, 8.4rem)/.95 var(--f-display); letter-spacing: -.035em; margin: 0; }
.aw-big--val { text-align: center; display: flex; align-items: baseline; justify-content: center; gap: .25em; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.aw-big--val small { font: 500 clamp(.9rem, .8rem + .4vw, 1.2rem)/1.2 var(--f-body); letter-spacing: 0; color: var(--muted); }
.aw-arrow { font-family: var(--f-body); font-weight: 300; }
.aw-cols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); border: 1px solid rgba(28,29,33,.15); }
.aw-cols--2 { --n: 2; } .aw-cols--4 { --n: 4; }
.aw-col { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem 1.1rem; }
.aw-col + .aw-col { border-left: 1px solid rgba(28,29,33,.15); }
.aw-col__l { font-size: .82rem; min-height: 2.4em; }
.aw-col__bar { height: 34px; border-block: 1px solid rgba(28,29,33,.15); margin: 0 -1rem; background: linear-gradient(90deg, var(--t) 0 var(--w, 82%), transparent var(--w, 82%)); }
.aw-col b { font: 800 1.5rem/1 var(--f-display); margin-top: .3rem; }
.aw-col small { color: var(--muted); font-size: .82rem; }
.aw-note { margin: 1.2rem 0 0; font-size: .8rem; color: var(--muted); }

/* tabla */
.aw-table { background: var(--bg2); padding-block: 0 clamp(4rem, 8vw, 6.5rem); }
.aw-table table { width: 100%; border-collapse: collapse; }
.aw-table th { text-align: left; font-weight: 500; font-size: .82rem; color: var(--muted); padding: .8rem .6rem; border-bottom: 1px dashed rgba(28,29,33,.3); }
.aw-table td { padding: 1.2rem .6rem; border-bottom: 1px dashed rgba(28,29,33,.3); vertical-align: middle; }
.aw-table td b { display: block; font-size: 1.05rem; }
.aw-table td span { color: var(--text); font-size: .95rem; }
.aw-t__n { width: 3.5rem; font: 800 1rem/1 var(--f-display); color: var(--muted); }
.aw-t__tag { width: 9rem; text-align: center; font-weight: 600; font-size: .85rem; background: rgba(28,29,33,.05); }
.aw-table tr:hover td { background: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .aw-els, .aw-ins { grid-template-columns: 1fr; }
  .aw-pal { grid-template-columns: 1fr; }
  .aw-cols, .aw-cols--4 { grid-template-columns: 1fr 1fr; }
  .aw-col:nth-child(3) { border-left: 0; }
  .aw-col:nth-child(n+3) { border-top: 1px solid rgba(28,29,33,.15); }
  .aw-dock a:not(.aw-dock__cta) { display: none; }
  .aw-crumbs { display: none; }
}
@media (max-width: 600px) {
  .aw-cols, .aw-cols--4, .aw-cols--2 { grid-template-columns: 1fr; }
  .aw-col + .aw-col { border-left: 0; border-top: 1px solid rgba(28,29,33,.15); }
  .aw-t__tag { display: none; }
  .aw-frame { padding: .8rem; }
  .aw-dock { position: static; transform: none; margin: 0 auto .8rem; width: max-content; }
}
.aw-sw { justify-content: flex-start; }
.aw-sw__hex { writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; color: var(--ink, #1c1d21); mix-blend-mode: normal; filter: none; font-weight: 600; letter-spacing: .04em; }
.aw-sw:last-child .aw-sw__hex { writing-mode: horizontal-tb; transform: none; }
.aw-sw__aa { margin-top: auto; color: var(--ink, #1c1d21); mix-blend-mode: normal; filter: none; }
.aw-table .aw-t { margin: 0; background: none; border-radius: 0; font-size: 1rem; }
.aw-table .aw-t th { background: none; color: var(--muted); font-weight: 500; }
.aw-table .aw-t td, .aw-table .aw-t th { border-bottom: 1px dashed rgba(28,29,33,.3); }
/* Fichas de proyecto web: color de detalle siempre azul corporativo */
.aw, .aw--blue, .aw--lilac, .aw--yellow, .aw--green { --t: var(--blue); }

/* Menú de cada proyecto: flotando abajo, fijo al hacer scroll */
.aw-dock, .aw-dock:is(*) { position: fixed; z-index: 60; top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); margin: 0; width: auto; max-width: calc(100vw - 1.5rem);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); transition: opacity .3s, transform .4s var(--ease); }
.aw-dock.is-hidden { opacity: 0; transform: translate(-50%, 140%); pointer-events: none; }
@media (max-width: 900px) { .aw-dock a:not(.aw-dock__cta) { display: inline-block; } }
@media (max-width: 600px) { .aw-dock a { padding: .5rem .6rem; font-size: .8rem; } .aw-dock__logo { display: none; } }
@media (max-width: 600px) { .aw-dock a[href="#herramientas"], .aw-dock a[href="#paleta"] { display: none; } }

/* Carruseles: arrancan alineados con el contenido a la izquierda y desbordan por la derecha */
.g-carousel .g-carousel__track {
  --pl: max(var(--gutter), (100vw - var(--wrap)) / 2);
  padding-left: var(--pl); padding-right: var(--gutter);
  scroll-padding-left: var(--pl);
  grid-auto-columns: min(calc(100vw - var(--pl) - 7rem), 1180px);
}
@media (max-width: 600px) { .g-carousel .g-carousel__track { grid-auto-columns: calc(100vw - var(--pl) - 2.5rem); } }
/* Pasos: 4 colores distintos seguidos (verde, azul, amarillo, lila) */
.g-badge--circle { background: var(--lilac); }
.g-badge--flower { background: var(--green); }
.g-badge--pill { background: var(--blue); }

/* ---- Detalles tipo Awwwards en la portada ---- */
.g-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin: -.3rem 0 1.4rem; font-size: .86rem; color: var(--muted); }
.g-meta b { color: var(--ink); }
.g-meta__chip { padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; background: var(--white); transition: border-color .2s; }
.g-meta__chip:hover { border-color: var(--ink); }
.g-meta span + .g-meta__chip, .g-meta__chip + span { position: relative; }
.g-dock { position: absolute; left: 50%; bottom: clamp(1rem, 3vw, 2rem); transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: .2rem; padding: .35rem; border-radius: 10px; background: rgba(28,29,33,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 40px -12px rgba(0,0,0,.6); white-space: nowrap; max-width: calc(100% - 1.5rem); overflow-x: auto; scrollbar-width: none; }
.g-dock a { padding: .6rem .85rem; border-radius: 7px; color: rgba(255,255,255,.72); text-decoration: none; font-size: .86rem; font-weight: 500; transition: color .2s, background .2s; }
.g-dock a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.g-dock .g-dock__logo { display: grid; place-items: center; padding: .55rem .8rem; background: rgba(255,255,255,.08); margin-right: .15rem; }
.g-dock__logo img { height: 1.05rem; width: auto; }
.g-dock a.g-dock__cta { background: var(--blue); color: var(--ink); font-weight: 600; margin-left: .25rem; }
.g-dock a.g-dock__cta:hover { background: #3eaedc; }
@media (max-width: 700px) { .g-dock a:not(.g-dock__cta):not(.g-dock__logo) { display: none; } }

.g-lhead { margin-bottom: clamp(2rem, 4vw, 3rem); }
.g-lhead__k { font-size: .85rem; font-weight: 500; margin: 0 0 1rem; }
.g-lhead__h { font: 800 clamp(1.9rem, 1.2rem + 2.2vw, 3rem)/1.06 var(--f-display); letter-spacing: -.015em; margin: 0; }

.g-bighead { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.g-bighead__k { font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.75); margin: 0 0 1.2rem; }
.g-bighead__h { position: relative; display: inline-block; font: 800 clamp(3rem, 1rem + 8.5vw, 9rem)/.88 var(--f-display); letter-spacing: -.04em; color: var(--white); margin: 0; }
.g-bighead__star { position: absolute; right: -.42em; top: .02em; display: grid; place-items: center; width: .5em; height: .5em; border-radius: 50%; background: var(--blue); color: var(--ink); }
.g-bighead__star .up-icon { width: 55%; height: 55%; }
.g-bighead__s { margin: 1.4rem 0 0; color: rgba(255,255,255,.75); }
.g-more { text-align: center; margin: clamp(2rem, 4vw, 3rem) 0 0; font-size: .92rem; color: var(--muted); }
.g-cases .g-more { color: rgba(255,255,255,.65); }
.g-more a { display: inline-flex; align-items: center; gap: .4rem; margin-left: .6rem; color: inherit; text-decoration: none; font-weight: 600; }
.g-cases .g-more a { color: var(--white); }
.g-more a .up-icon { width: 1rem; height: 1rem; transform: rotate(45deg); }
.g-more u { text-decoration: none; box-shadow: inset 0 -1.5px 0 currentColor; }
.g-bighead__star { right: -.58em; }
.g-bighead__h { font-size: clamp(2.2rem, .6rem + 8.4vw, 9rem); margin-right: .5em; margin-left: .1em; }
.g-bighead__h { font-size: clamp(1.6rem, .2rem + 8vw, 9rem); }

/* Home: cabecera no fija; la botonera del vídeo pasa a flotar fija abajo al hacer scroll */
body.home .up-header, body.home .up-header.is-scrolled { position: relative; box-shadow: none; background: var(--white); }
.g-dock.is-fixed { position: fixed; z-index: 60; bottom: max(1rem, env(safe-area-inset-bottom)); animation: g-dock-in .45s var(--ease) both; }
.g-dock.is-fixed.is-hidden { opacity: 0; transform: translate(-50%, 140%); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
@keyframes g-dock-in { from { opacity: 0; transform: translate(-50%, 120%); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 700px) {
  .g-dock.is-fixed a[href="/casos-exito/"], .g-dock.is-fixed a[href="/contacto/"] { display: inline-block; }
  .g-dock.is-fixed a { padding: .55rem .6rem; font-size: .8rem; }
}
.g-dock.is-fixed.is-hidden { animation: none; }
/* Botonera de la home: se fija arriba en el punto exacto en que llega (sin salto) */
.g-dock.is-fixed { top: 14px; bottom: auto; animation: none; transform: translateX(-50%); }
.g-dock.is-fixed.is-hidden { transform: translate(-50%, -160%); }
/* Botonera de la home: aparece abajo al empezar a hacer scroll */
.g-dock.is-fixed { top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); animation: g-dock-up .5s var(--ease) both; }
.g-dock.is-fixed.is-hidden { animation: none; transform: translate(-50%, 160%); }
@keyframes g-dock-up { from { opacity: 0; transform: translate(-50%, 140%); } to { opacity: 1; transform: translate(-50%, 0); } }
/* Logo de las botoneras flotantes sin recuadro ni fondo distinto */
.g-dock .g-dock__logo, .g-dock .g-dock__logo:hover, .aw-dock__logo { background: none; }
/* Home: hero y cabecera en arena (mismo tono que la cabecera de las fichas de caso) */
:root { --sand: #ecebe6; }
body.home .g-topbar, body.home .up-header, body.home .up-header.is-scrolled { background: var(--sand); }
body.home .g-topbar { border-bottom-color: rgba(28,29,33,.08); }
body.home .g-hero--home { background: var(--sand); }
body.home .g-pill--outline { box-shadow: inset 0 0 0 1.5px rgba(28,29,33,.18); }
/* Toda la web: cabecera y hero de cada página en arena */
.g-topbar, .up-header, .up-header.is-scrolled, .g-hero { background: var(--sand); }
.up-header.is-scrolled { background: rgba(236,235,230,.92); }
.g-topbar { border-bottom-color: rgba(28,29,33,.08); }
.g-pill--outline { box-shadow: inset 0 0 0 1.5px rgba(28,29,33,.18); }
/* Botoneras flotantes algo más arriba */
.g-dock.is-fixed, .aw-dock, .aw-dock:is(*) { bottom: max(2.25rem, calc(env(safe-area-inset-bottom) + 1rem)); }

/* ---------------------------------------------------- formulario multipaso */
.up-ms__head { display: none; }
.up-ms__pane { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.1rem; }
.up-ms__q { padding: 0; margin-bottom: .4rem; font: 800 clamp(1.3rem, 1.05rem + .8vw, 1.7rem)/1.15 var(--f-display); display: flex; align-items: baseline; gap: .7rem; }
.up-ms__n { font: 600 .8rem/1 var(--f-body); color: var(--muted); }
.up-ms__lab { margin: .6rem 0 -.4rem; font-weight: 600; font-size: .88rem; }
.up-chips[aria-invalid="true"] .up-chipbox span { border-color: #d0432a; }
.up-ms__nav { display: none; }
.up-ms .up-ms__send { width: 100%; justify-content: center; }
/* con JS: un paso cada vez */
.up-ms.is-ms .up-ms__head { display: block; margin-bottom: .4rem; }
.up-ms__bar { height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.up-ms__bar i { display: block; height: 100%; width: 33%; background: var(--blue); border-radius: 2px; transition: width .5s var(--ease); }
.up-ms__steps { list-style: none; display: flex; justify-content: space-between; margin: .7rem 0 0; padding: 0; font-size: .8rem; color: var(--muted); }
.up-ms__steps li { display: flex; align-items: center; gap: .4rem; }
.up-ms__steps li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--line); transition: background .3s; }
.up-ms__steps li.is-on { color: var(--ink); font-weight: 600; }
.up-ms__steps li.is-on::before, .up-ms__steps li.is-done::before { background: var(--blue); }
.up-ms.is-ms .up-ms__pane { display: none; }
.up-ms.is-ms .up-ms__pane.is-on { display: grid; animation: up-ms-in .45s var(--ease) both; }
@keyframes up-ms-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.up-ms.is-ms .up-ms__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.up-ms.is-ms .up-ms__send { display: none; width: auto; }
.up-ms.is-ms.is-last .up-ms__send { display: inline-flex; }
.up-ms.is-ms.is-last .up-ms__next { display: none; }
.up-ms__nav .up-btn { margin-left: auto; }
.up-ms__back { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; padding: .6rem 0; font-weight: 600; color: var(--muted); cursor: pointer; }
.up-ms__back:hover { color: var(--ink); }
.up-ms__backi { width: 1rem; height: 1rem; transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .up-ms.is-ms .up-ms__pane.is-on { animation: none; } }
.up-ms__back[hidden] { display: none; }

/* Carrusel de casos: cifras a la derecha, como en la rejilla de «Resultados» */
.g-case { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
.g-case__side { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.8rem, 4.5vw, 4rem) clamp(1.8rem, 4.5vw, 4rem) clamp(1.8rem, 4.5vw, 4rem) 0; color: var(--ink); }
.g-case__side-k { margin: 0 0 .8rem; font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.g-case__side .g-wc__rows { margin: 0; }
.g-case__side .g-wc__rows b { font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3.4rem); }
.g-case__per { margin: .9rem 0 0; font-size: .75rem; opacity: .7; }
@media (max-width: 900px) {
  .g-case { grid-template-columns: 1fr; }
  .g-case__side { padding: 0 1.8rem 1.8rem; }
  .g-case__panel { padding-bottom: 1.2rem; }
}

/* ---- «Nos adaptamos a tus objetivos» (portada) ---- */
.g-adapt__top { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.g-adapt__h { font: 800 clamp(2.2rem, 1.1rem + 3.8vw, 5rem)/1 var(--f-display); letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.g-adapt__no { position: relative; display: inline; color: #b9b6ae; }
.g-adapt__no::after { content: ""; position: absolute; left: -.05em; right: -.05em; top: 52%; height: .11em; background: var(--blue); border-radius: 99px; transform: scaleX(0); transform-origin: left; transition: transform 1.1s .35s var(--ease); }
.g-adapt.is-in .g-adapt__no::after, .no-js .g-adapt__no::after { transform: scaleX(1); }
.g-adapt__lead { margin: 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--text); padding-left: 1.2rem; border-left: 3px solid var(--blue); }
.g-adapt__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.g-adapt__i { position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem 1.4rem 2rem; min-height: 300px; border-right: 1px solid var(--line); isolation: isolate; transition: color .3s; }
.g-adapt__i:last-child { border-right: 0; }
.g-adapt__i::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); border-radius: 0 0 var(--r-m) var(--r-m); }
.g-adapt__i:hover::before { transform: scaleY(1); }
.g-adapt__i--green { --c: var(--green); } .g-adapt__i--blue { --c: var(--blue); } .g-adapt__i--yellow { --c: var(--yellow); } .g-adapt__i--lilac { --c: var(--lilac); }
.g-adapt__n { font: 800 clamp(3rem, 2rem + 3vw, 5rem)/.9 var(--f-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .3s; }
.g-adapt__i:hover .g-adapt__n { color: var(--ink); }
.g-adapt__k { align-self: flex-start; margin-top: auto; padding: .35rem .8rem; border-radius: 999px; background: var(--c); font: 600 .8rem/1 var(--f-body); transition: background .3s; }
.g-adapt__i:hover .g-adapt__k { background: var(--white); }
.g-adapt__i p { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.45; }
@media (max-width: 900px) {
  .g-adapt__top { grid-template-columns: 1fr; }
  .g-adapt__list { grid-template-columns: 1fr 1fr; }
  .g-adapt__i { min-height: 240px; border-bottom: 1px solid var(--line); }
  .g-adapt__i:nth-child(2) { border-right: 0; }
}
@media (max-width: 600px) {
  .g-adapt__list { grid-template-columns: 1fr; }
  .g-adapt__i { min-height: 0; border-right: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; }
  .g-adapt__n { font-size: 2.6rem; }
  .g-adapt__k { margin-top: 0; }
  .g-adapt__i p { flex-basis: 100%; }
}
/* tachado que cruza cada línea */
.g-adapt__no::after { display: none; }
.g-adapt__no { background: linear-gradient(var(--blue), var(--blue)) 0 58% / 0% .1em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.1s .35s var(--ease); }
.g-adapt.is-in .g-adapt__no { background-size: 100% .1em; }
.g-adapt__top { grid-template-columns: 2.2fr 1fr; }
.g-adapt__no { color: var(--blue); background-image: linear-gradient(var(--ink), var(--ink)); }
.g-adapt__no, .g-adapt.is-in .g-adapt__no { background: none; }
.g-adapt__h { font-size: clamp(1.9rem, 1rem + 2.9vw, 3.9rem); }
/* Home: sin animaciones de entrada, todo visible al cargar */
.js body.home [data-reveal], body.home [data-reveal] { opacity: 1; transform: none; transition: none; }
/* Sección de resultados más compacta */
.g-cases { padding-block: clamp(3rem, 6vw, 5rem); }
.g-bighead { margin-bottom: clamp(1.6rem, 3vw, 2.5rem); }
.g-bighead__h { font-size: clamp(1.6rem, .2rem + 5.6vw, 6.2rem); }
.g-bighead__k { margin-bottom: .8rem; }
.g-bighead__s { margin-top: 1rem; font-size: .95rem; }
.g-case { min-height: clamp(340px, 28vw, 440px); }
.g-case__panel, .g-case__side { padding: clamp(1.4rem, 3vw, 2.6rem); }
.g-case__side { padding-left: 0; }
.g-case__logo { max-height: clamp(36px, 3.6vw, 52px); }
.g-case__t { font-size: clamp(1.45rem, 1rem + 1.4vw, 2.3rem); }
.g-case__ex { font-size: 1rem; }
.g-case__side .g-wc__rows b { font-size: clamp(1.9rem, 1.4rem + 1.3vw, 2.7rem); }
.g-case__side .g-wc__rows li { padding: .55rem 0; }
.g-carousel__ctrl { margin-top: 1.2rem; }
.g-more { margin-top: clamp(1.4rem, 3vw, 2rem); }
@media (max-width: 900px) { .g-case__side { padding: 0 1.4rem 1.4rem; } }
/* «Upcofly no es agencia»: foto del equipo de fondo */
.g-cta--photo .g-cta__in { position: relative; overflow: hidden; isolation: isolate; color: var(--white);
  background: url(cases/equipo.webp) center 35% / cover no-repeat; padding-block: clamp(5rem, 11vw, 9rem); }
.g-cta--photo .g-cta__in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28,29,33,.55), rgba(28,29,33,.72)); }
.g-cta--photo .g-h2 { color: var(--white); }
.g-cta--photo .g-sub { color: rgba(255,255,255,.88); }
/* Logo animado gigante al final del pie */
.g-footer__logo { padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.g-footer__logo svg { display: block; width: 100%; height: auto; }
.js .g-footer__logo:not(.is-play) .l { animation-play-state: paused; }
.g-footer__logo svg { width: 80%; margin-inline: auto; opacity: .12; }
.g-footer { padding-bottom: 0; }
.g-footer__logo { padding-bottom: 0; line-height: 0; }
.g-footer__logo svg { margin-bottom: -2.2%; }
.g-footer__logo svg { margin-bottom: 0; overflow: visible; }
.g-footer { overflow: hidden; }

/* ---- Punto del logo: cambia entre los colores corporativos en toda la web ---- */
@keyframes up-dot-color {
  0%, 20%   { fill: #51bae5; }
  25%, 45%  { fill: #64d99b; }
  50%, 70%  { fill: #ffcd57; }
  75%, 95%  { fill: #c10fff; }
  100%      { fill: #51bae5; }
}
.up-logo-svg { display: block; height: auto; }
.up-logo .up-logo-svg { width: 124px; }
.g-footer__mark { width: 124px; }
.g-dock__logo .up-logo-svg { height: 1.05rem; width: auto; }
.up-dot { fill: #51bae5; animation: up-dot-color 8s ease-in-out infinite; }
/* también en el logo gigante animado del pie (conserva su propia animación de entrada) */
.g-footer__logo .l-dot { animation-name: dot, up-dot-color; animation-duration: 5s, 8s; animation-iteration-count: 1, infinite; animation-fill-mode: both, none; animation-timing-function: cubic-bezier(.3,.7,.2,1), ease-in-out; }
@media (prefers-reduced-motion: reduce) { .up-dot { animation: none; } }
@media (max-width: 600px) { .up-logo .up-logo-svg { width: 104px; } }
/* Sin cambio de color en el punto del logo */
.up-dot { fill: inherit; animation: none; }
.g-footer__logo .l-dot { animation-name: dot; animation-duration: 5s; animation-iteration-count: 1; animation-fill-mode: both; animation-timing-function: cubic-bezier(.3,.7,.2,1); }
/* «Nos adaptamos»: sin números */
.g-adapt__i { min-height: 220px; }
.g-adapt__k { margin-top: 0; margin-bottom: auto; }
@media (max-width: 900px) { .g-adapt__i { min-height: 180px; } }
@media (max-width: 600px) { .g-adapt__i { min-height: 0; } .g-adapt__k { margin-bottom: 0; } }

/* ======================================================================
   Landing «IA y automatizaciones» (estructura tipo hops.ai, marca Upcofly)
   ====================================================================== */
.ia-k { margin: 0 0 .9rem; font-weight: 600; font-size: .95rem; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; }
.ia-k::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue); }
.ia-h2 { font: 800 clamp(1.8rem, 1.1rem + 2.1vw, 3rem)/1.06 var(--f-display); letter-spacing: -.015em; margin: 0 0 1rem; }
.ia-lead { color: var(--text); font-size: 1.08rem; max-width: 60ch; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.ia-sec { background: var(--white); }

/* hero */
.ia-hero { padding-bottom: clamp(3rem, 6vw, 5rem); }
.ia-h1 { max-width: 18ch; }
.ia-rot { display: inline-block; color: var(--ink); background: linear-gradient(transparent 62%, var(--blue) 62%, var(--blue) 90%, transparent 90%); padding: 0 .08em; }
.ia-demo { margin-top: .5rem; }
.ia-demo__frame { position: relative; border-radius: 22px; padding: clamp(.6rem, 1.4vw, 1rem); background: linear-gradient(135deg, var(--lilac), var(--blue)); box-shadow: 0 40px 80px -40px rgba(28,29,33,.45); text-align: left; }
.ia-demo__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem; width: max-content; max-width: 100%; margin: 1.2rem auto 0; padding: .3rem; border-radius: 12px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(28,29,33,.08); }
.ia-demo__tabs [role=tab], .ia-ttabs [role=tab] { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 0; border-radius: 9px; background: none; font-weight: 500; font-size: .9rem; color: var(--text); cursor: pointer; transition: background .2s, color .2s; }
.ia-demo__tabs [role=tab] .up-icon { width: 1rem; height: 1rem; }
.ia-demo__tabs [role=tab][aria-selected=true], .ia-ttabs [role=tab][aria-selected=true] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ia-demo__panel[hidden] { display: none; }

/* app de demostración */
.ia-app { display: grid; grid-template-columns: 210px 1fr; min-height: clamp(380px, 34vw, 470px); border-radius: 14px; overflow: hidden; background: var(--white); font-size: .92rem; }
.ia-app__side { background: var(--soft); padding: 1.1rem .8rem; border-right: 1px solid var(--line); }
.ia-app__side p { margin: 0 0 .6rem .5rem; font-size: .75rem; font-weight: 600; color: var(--muted); }
.ia-app__side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.ia-app__side li { display: flex; gap: .45rem; padding: .45rem .6rem; border-radius: 8px; color: var(--text); }
.ia-app__side li span { color: var(--muted); }
.ia-app__side li.is-on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ia-app__main { display: flex; flex-direction: column; }
.ia-app__top { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.ia-app__top span { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--green-deep); }
.ia-app__top .up-icon { width: .95rem; height: .95rem; }
.ia-app__msgs { flex: 1; padding: 1.2rem; display: grid; gap: 1.1rem; align-content: start; }
.ia-msg { display: grid; grid-template-columns: 2.1rem 1fr; gap: .7rem; animation: up-ms-in .5s var(--ease) both; }
.ia-msg + .ia-msg { animation-delay: .25s; }
.ia-msg b { font-size: .88rem; }
.ia-msg p { margin: .2rem 0 0; color: var(--text); }
.ia-av { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--yellow); font-weight: 700; font-size: .85rem; }
.ia-av--bot { background: var(--ink); color: var(--white); font-family: var(--f-display); }
.ia-card { margin-top: .7rem; max-width: 420px; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; background: var(--white); }
.ia-card__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45rem; }
.ia-card__h b { font-size: .88rem; }
.ia-tag { padding: .2rem .55rem; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: .72rem; font-weight: 600; }
.ia-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ia-card li { display: flex; gap: .45rem; align-items: center; font-size: .86rem; color: var(--text); }
.ia-card li .up-icon { width: .95rem; height: .95rem; color: var(--green-deep); }
.ia-app__input { margin: 0 1.2rem 1.1rem; display: flex; justify-content: space-between; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .88rem; }
.ia-app__input span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: var(--blue); color: var(--ink); }
.ia-app__input .up-icon { width: 1rem; height: 1rem; }

/* pasos */
.ia-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ia-step { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: 1.4rem; border-radius: 20px; background: var(--soft); overflow: hidden; }
.ia-step__n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c); font-size: .8rem; font-weight: 700; margin-bottom: 1.2rem; }
.ia-step--green { --c: var(--green); } .ia-step--blue { --c: var(--blue); } .ia-step--yellow { --c: var(--yellow); } .ia-step--lilac { --c: var(--lilac); }
.ia-step h3 { font: 800 1.15rem/1.15 var(--f-display); margin-bottom: .6rem; }
.ia-step p { margin: 0; color: var(--text); font-size: .95rem; }
.ia-step__ill { position: absolute; right: -14px; bottom: -14px; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 34px; background: var(--c); transform: rotate(-10deg); transition: transform .5s var(--ease); }
.ia-step:hover .ia-step__ill { transform: rotate(0) scale(1.06); }
.ia-step__ill .up-icon { width: 48px; height: 48px; stroke-width: 1.5; }

/* tareas */
.ia-sec--tasks { background: var(--white); }
.ia-ttabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 12px; background: var(--soft); margin-bottom: 1rem; }
.ia-ttabs [role=tab] { font-size: .95rem; padding: .6rem 1.1rem; }
.ia-jobs__box { border-radius: 22px; background: var(--soft); padding: clamp(1rem, 2.5vw, 1.8rem); }
.ia-jobs[hidden] { display: none; }
.ia-jobs { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1rem, 3vw, 2.4rem); }
.ia-jobs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; align-content: start; }
.ia-job { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .75rem .85rem; border: 0; border-radius: 10px; background: none; text-align: left; font-weight: 500; font-size: .95rem; color: var(--text); cursor: pointer; }
.ia-job .up-icon { width: 1rem; height: 1rem; flex: none; transform: rotate(45deg); opacity: .5; }
.ia-job:hover { background: rgba(255,255,255,.6); }
.ia-job.is-on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.ia-job.is-on .up-icon { opacity: 1; color: var(--blue); }
.ia-jobs__detail { position: relative; min-height: 300px; border-radius: 18px; padding: clamp(1.6rem, 3.5vw, 3rem); background: var(--white); box-shadow: 0 0 0 clamp(6px, 1vw, 10px) var(--blue); }
.ia-jd { display: none; }
.ia-jd.is-on { display: block; animation: up-ms-in .45s var(--ease) both; }
.ia-jd h3 { font: 800 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.1 var(--f-display); margin-bottom: .8rem; }
.ia-jd p { color: var(--text); font-size: 1.05rem; max-width: 52ch; }
.ia-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.8rem; }
.ia-flow span { padding: .6rem 1rem; border-radius: 10px; background: var(--soft); font-weight: 600; font-size: .9rem; }
.ia-flow span:not(:last-child)::after { content: "→"; margin-left: .9rem; color: var(--blue); font-weight: 700; }
.ia-flow span:last-child { background: var(--blue); }

/* herramientas */
.ia-tools { background: var(--white); overflow: hidden; }
.ia-tools .up-wrap { position: relative; }
.ia-tools__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .8rem; }
.ia-tile { aspect-ratio: 1; border-radius: 16px; background: var(--soft); display: grid; place-items: center; padding: .3rem; text-align: center; font-size: .72rem; font-weight: 600; line-height: 1.15; color: var(--ink); }
.ia-tile.is-tool { background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(0,0,0,.3); }
.ia-tile:nth-child(6n+1).is-tool { box-shadow: 0 0 0 2px var(--blue); } .ia-tile:nth-child(7n+2).is-tool { box-shadow: 0 0 0 2px var(--green); } .ia-tile:nth-child(5n+3).is-tool { box-shadow: 0 0 0 2px var(--yellow); }
.ia-tools__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.ia-tools__txt > * { position: relative; }
.ia-tools__txt::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(620px, 80%); height: 60%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--white) 70%, rgba(255,255,255,0)); }
.ia-tools__txt .ia-lead { margin: 0 auto; }

/* control */
.ia-ctrl { background: var(--soft); }
.ia-ctrl__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ia-ctrl__head .ia-lead { margin: 0; }
.ia-ctrl__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ia-ctrl__c { padding: 1.6rem; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.ia-ctrl__i { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--blue-soft); color: var(--ink); margin-bottom: 1.4rem; }
.ia-ctrl__i .up-icon { width: 1.2rem; height: 1.2rem; }
.ia-ctrl__c h3 { font: 800 1.15rem/1.2 var(--f-display); margin-bottom: .5rem; }
.ia-ctrl__c p { margin: 0; color: var(--text); font-size: .95rem; }

/* preguntas */
.ia-faq { background: var(--white); }
.ia-faq__grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ia-faq__grid a { color: var(--ink); }
.ia-faq__list { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ia-q + .ia-q { border-top: 1px solid var(--line); }
.ia-q summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; cursor: pointer; list-style: none; }
.ia-q summary::-webkit-details-marker { display: none; }
.ia-q summary span { display: grid; place-items: center; transition: transform .3s var(--ease); }
.ia-q summary .up-icon { width: 1.1rem; height: 1.1rem; }
.ia-q[open] summary span { transform: rotate(45deg); }
.ia-q p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--text); }

/* cierre */
.ia-end { background: var(--sand); }
.ia-end__in { text-align: center; }
.ia-end__ico { display: inline-grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 22px; background: var(--blue); margin-bottom: 1.4rem; transform: rotate(-8deg); }
.ia-end__ico .up-icon { width: 2rem; height: 2rem; }
.ia-end .ia-lead { margin: 0 auto 1.8rem; }

@media (max-width: 1080px) { .ia-steps { grid-template-columns: repeat(2, 1fr); } .ia-tools__grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 900px) {
  .ia-app { grid-template-columns: 1fr; }
  .ia-app__side { display: none; }
  .ia-jobs, .ia-ctrl__head, .ia-ctrl__grid, .ia-faq__grid { grid-template-columns: 1fr; }
  .ia-demo__tabs { width: auto; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .ia-demo__tabs [role=tab] { white-space: nowrap; }
}
@media (max-width: 600px) {
  .ia-steps { grid-template-columns: 1fr; }
  .ia-step { min-height: 0; padding-bottom: 6rem; }
  .ia-tools__grid { grid-template-columns: repeat(5, 1fr); }
  .ia-tools__grid .ia-tile:nth-child(n+26) { display: none; }
  .ia-h2 br { display: none; }
}
/* herramientas: franja · texto · franja */
.ia-tools__grid { display: none; }
.ia-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: .8rem; }
.ia-strip:last-child .ia-tile:nth-child(odd) { transform: translateY(12px); }
.ia-strip:first-child .ia-tile:nth-child(even) { transform: translateY(-12px); }
.ia-tools__txt { position: static; display: block; padding: clamp(2.5rem, 5vw, 4rem) 0; pointer-events: auto; }
.ia-tools__txt::before { display: none; }
@media (max-width: 900px) { .ia-strip { grid-template-columns: repeat(6, 1fr); } .ia-strip .ia-tile:not(.is-tool) { display: none; } }
@media (max-width: 600px) { .ia-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .ia-strip { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .ia-strip .ia-tile { aspect-ratio: auto; padding: .8rem .3rem; border-radius: 12px; transform: none !important; }
}
.ia-tile img { width: 46%; height: 46%; object-fit: contain; }
@media (max-width: 600px) { .ia-strip .ia-tile { padding: 1rem .3rem; } .ia-tile img { width: 2rem; height: 2rem; } }
.ia-tile img[src$="woocommerce.svg"] { width: 78%; height: 78%; }

/* Herramientas: constelación de logos con sombra suave */
.ia-cloud { position: relative; height: clamp(460px, 44vw, 600px); }
.ia-chip, .ia-ghost { position: absolute; width: var(--s); height: var(--s); transform: translate(-50%, -50%); border-radius: 22%; }
.ia-chip { display: grid; place-items: center; background: var(--white); box-shadow: 0 1px 2px rgba(28,29,33,.05), 0 14px 30px -12px rgba(28,29,33,.22); animation: ia-float 6s ease-in-out var(--d) infinite; transition: box-shadow .3s; z-index: 1; }
.ia-chip:hover { box-shadow: 0 1px 2px rgba(28,29,33,.06), 0 20px 40px -12px rgba(28,29,33,.32); }
.ia-chip img { width: 46%; height: 46%; object-fit: contain; }
.ia-chip img[src$="woocommerce.svg"] { width: 74%; height: 74%; }
.ia-ghost { background: var(--soft); }
@keyframes ia-float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 8px)); } }
.ia-cloud__txt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 60%); text-align: center; z-index: 2; }
.ia-cloud__txt .ia-lead { margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .ia-chip { animation: none; } }
@media (max-width: 900px) {
  .ia-cloud { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.2rem; padding-top: 0; }
  .ia-ghost { display: none; }
  .ia-chip { position: static; transform: none; width: 64px; height: 64px; animation: none; }
  .ia-cloud__txt { position: static; transform: none; width: 100%; order: -1; margin-bottom: 1.5rem; }
}
.ia-ghost { display: none; }
.ia-cloud__txt { width: min(640px, 62%); }
.ia-cloud__txt .ia-h2 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.5rem); }
.ia-chip img[src$="woocommerce.svg"] { width: 82%; height: 82%; }
.ia-rot { background: none; padding: 0; color: var(--blue); }

/* Mega menú: tarjeta «Nuevo · IA» con degradado animado y destellos de IA */
.up-mega a.up-mega__promo--ia { color: var(--ink); overflow: hidden; isolation: isolate;
  background: linear-gradient(130deg, #c10fff 0%, #8b7cff 30%, #51bae5 62%, #64d99b 100%); background-size: 220% 220%; animation: up-ia-grad 9s ease-in-out infinite; }
.up-mega a.up-mega__promo--ia:hover { background: linear-gradient(130deg, #c10fff 0%, #8b7cff 30%, #51bae5 62%, #64d99b 100%); background-size: 220% 220%; }
.up-mega__promo--ia strong { color: var(--white); }
.up-mega__promo--ia span:not(.up-eyebrow) { color: rgba(255,255,255,.88) !important; }
.up-mega__promo--ia .up-eyebrow { color: var(--white); padding: .3rem .6rem; border-radius: 999px; background: rgba(255,255,255,.22); letter-spacing: .08em; }
.up-mega__promo--ia .up-eyebrow::before { background: var(--white); }
.up-mega__promo--ia > .up-icon { color: var(--white) !important; }
@keyframes up-ia-grad { 0%, 100% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } }
.up-spark { position: absolute; z-index: -1; fill: var(--white); opacity: 0; animation: up-twinkle 2.8s ease-in-out infinite; pointer-events: none; }
.up-spark--1 { width: 34px; height: 34px; right: 18%; top: 30%; animation-delay: 0s; }
.up-spark--2 { width: 18px; height: 18px; right: 8%; top: 52%; animation-delay: .7s; }
.up-spark--3 { width: 22px; height: 22px; right: 30%; top: 14%; animation-delay: 1.4s; }
.up-spark--4 { width: 12px; height: 12px; right: 24%; top: 58%; animation-delay: 2.1s; }
@keyframes up-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 35% { opacity: .95; transform: scale(1) rotate(45deg); } 65% { opacity: .5; transform: scale(.7) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .up-mega a.up-mega__promo--ia, .up-spark { animation: none; } .up-spark { opacity: .7; } }
.up-mega__promo--ia strong { font-size: 1.22rem; overflow-wrap: anywhere; }
.up-mega__promo--ia strong { font-size: 1.05rem; }

/* ---- Banner IA en la portada ---- */
.g-iab-sec { padding-block: clamp(2.5rem, 5vw, 4rem); }
.g-iab { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; padding: clamp(2rem, 5vw, 4.5rem); border-radius: var(--r-xl); overflow: hidden; isolation: isolate; color: var(--white);
  background: linear-gradient(130deg, #c10fff 0%, #8b7cff 30%, #51bae5 62%, #64d99b 100%); background-size: 220% 220%; animation: up-ia-grad 10s ease-in-out infinite; }
.g-iab__sparks { position: absolute; inset: 0; z-index: -1; }
.g-iab__sparks .up-spark { z-index: 0; }
.g-iab__sparks .up-spark--1 { width: 64px; height: 64px; left: 44%; top: 12%; right: auto; }
.g-iab__sparks .up-spark--2 { width: 30px; height: 30px; left: 6%; top: 8%; right: auto; }
.g-iab__sparks .up-spark--3 { width: 42px; height: 42px; left: 48%; top: 74%; right: auto; }
.g-iab__sparks .up-spark--4 { width: 22px; height: 22px; right: 5%; top: 10%; }
.g-iab__k { display: inline-block; margin: 0 0 1.2rem; padding: .4rem .8rem; border-radius: 999px; background: rgba(255,255,255,.22); font-weight: 600; font-size: .85rem; }
.g-iab__h { font: 800 clamp(1.8rem, 1.1rem + 2.2vw, 3.1rem)/1.05 var(--f-display); letter-spacing: -.015em; margin: 0 0 1rem; text-wrap: balance; }
.g-iab__p { margin: 0 0 1.8rem; font-size: 1.08rem; line-height: 1.55; color: rgba(255,255,255,.92); max-width: 52ch; }
.g-iab__act { justify-content: flex-start; }
.g-iab__demo { position: relative; padding: 2.5rem 0; color: var(--ink); }
.g-iab__chat { position: relative; z-index: 1; padding: 1.3rem; border-radius: 18px; background: var(--white); box-shadow: 0 30px 60px -30px rgba(28,29,33,.55); transform: rotate(-2deg); }
.g-iab__chat .ia-card { max-width: none; }
.g-iab__chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: 999px; background: var(--white); font-weight: 600; font-size: .85rem; box-shadow: 0 12px 28px -14px rgba(28,29,33,.5); white-space: nowrap; animation: ia-float2 6s ease-in-out infinite; }
.g-iab__chip .up-icon { width: 1rem; height: 1rem; color: var(--blue); }
.g-iab__chip--1 { left: -6%; top: 0; animation-delay: 0s; }
.g-iab__chip--2 { right: -4%; top: 14%; animation-delay: 1.2s; }
.g-iab__chip--3 { left: 4%; bottom: 0; animation-delay: 2.4s; }
.g-iab__chip--4 { right: 2%; bottom: 8%; animation-delay: 3.6s; }
@keyframes ia-float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .g-iab, .g-iab__chip { animation: none; } }
@media (max-width: 900px) {
  .g-iab { grid-template-columns: 1fr; }
  .g-iab__chip--1 { left: 0; } .g-iab__chip--2 { right: 0; }
}
@media (max-width: 600px) {
  .g-iab__demo { padding: 0; display: flex; flex-direction: column; gap: .5rem; }
  .g-iab__chip { position: static; align-self: flex-start; animation: none; }
  .g-iab__chat { order: -1; transform: none; margin-bottom: .5rem; }
}
.g-iab-sec { overflow: hidden; }
.g-iab__chip--1 { left: -4%; top: -2%; }
.g-iab__chip--2 { right: -4%; top: auto; bottom: 30%; }
.g-iab__chip--4 { right: 6%; bottom: -2%; }
.g-iab__chip--3 { left: -2%; bottom: 6%; }
html { overflow-x: clip; }

/* ======================================================================
   Hero de la home: historia animada de un proyecto (web → SEO → Ads → leads → crecimiento)
   ====================================================================== */
.g-media { background: var(--blue); background-image: radial-gradient(rgba(28,29,33,.14) 1.2px, transparent 1.2px); background-size: 22px 22px; aspect-ratio: auto; height: clamp(440px, 42vw, 600px); }
.gs { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--ink); text-align: left; }
.gs-steps { list-style: none; display: flex; gap: .35rem; margin: clamp(.9rem, 2vw, 1.4rem) auto 0; padding: .3rem; border-radius: 999px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 3; }
.gs-steps li { position: relative; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem .4rem .45rem; border-radius: 999px; font-size: .82rem; font-weight: 600; color: rgba(28,29,33,.6); cursor: pointer; overflow: hidden; transition: color .3s, background .3s; }
.gs-steps li span { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: rgba(28,29,33,.1); font-size: .72rem; }
.gs-steps li.is-on { background: var(--white); color: var(--ink); }
.gs-steps li.is-on span { background: var(--ink); color: var(--white); }
.gs-steps li.is-done span { background: var(--green); color: var(--ink); }
.gs-steps li.is-on::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--blue); animation: gs-prog var(--gs-dur, 4.2s) linear forwards; }
@keyframes gs-prog { from { width: 0; } to { width: 100%; } }
.gs-stage { position: relative; flex: 1; }
.gs-scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; padding: 1rem 1.5rem 5.5rem; }
.gs-scene.is-on { opacity: 1; visibility: visible; }
.gs-scene * { animation-play-state: paused; }
.gs-scene.is-on * { animation-play-state: running; }

/* escena 1: la web se construye y se publica */
.gs-win { width: min(640px, 92%); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -25px rgba(28,29,33,.55); }
.gs-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--soft); }
.gs-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d5cc; }
.gs-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--white); font-size: 11px; color: var(--muted); }
.gs-site { padding: 14px 18px 18px; display: grid; gap: 14px; }
.gs-b { opacity: 0; transform: translateY(10px); animation: gs-in .45s var(--ease) forwards; }
.gs-b--nav { display: flex; align-items: center; gap: 10px; font-size: 13px; animation-delay: .15s; }
.gs-b--nav b { font-family: var(--f-display); font-weight: 800; margin-right: auto; }
.gs-b--nav em { font-style: normal; color: var(--blue); }
.gs-b--nav span { width: 38px; height: 6px; border-radius: 3px; background: #e6e3dc; }
.gs-b--nav u { text-decoration: none; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 11px; }
.gs-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; }
.gs-b--h1 { height: 16px; border-radius: 4px; background: var(--ink); margin-bottom: 8px; animation-delay: .45s; }
.gs-b--short { width: 70%; animation-delay: .6s; }
.gs-b--p { height: 7px; width: 85%; border-radius: 3px; background: #e6e3dc; margin: 10px 0 14px; animation-delay: .75s; }
.gs-b--btn { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--blue); font-size: 11px; font-weight: 600; animation-delay: .9s; }
.gs-b--img { height: 110px; border-radius: 10px; background: linear-gradient(135deg, var(--green), var(--blue)); animation-delay: 1.05s; }
.gs-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gs-b--card { height: 46px; border-radius: 8px; background: var(--soft); animation-delay: 1.2s; }
.gs-b--card:nth-child(2) { animation-delay: 1.3s; } .gs-b--card:nth-child(3) { animation-delay: 1.4s; }
.gs-toast { position: absolute; top: 12%; right: 10%; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; font-size: .9rem; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); opacity: 0; transform: translateY(-12px) scale(.9); animation: gs-pop .5s var(--ease) 2s forwards; }
.gs-toast .up-icon { width: 1rem; height: 1rem; color: var(--green); }
@keyframes gs-in { to { opacity: 1; transform: none; } }
@keyframes gs-pop { 0% { opacity: 0; transform: translateY(-12px) scale(.9); } 70% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }

/* escena 2: búsqueda en Google y subida al #1 */
.gs-google { width: min(600px, 92%); padding: 18px; border-radius: 16px; background: var(--white); box-shadow: 0 30px 60px -25px rgba(28,29,33,.55); }
.gs-search { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; margin-bottom: 12px; }
.gs-search .up-icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.gs-type { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--ink); animation: gs-type 1.3s steps(33) .2s forwards, gs-caret .7s step-end infinite; }
@keyframes gs-type { to { width: 33ch; } }
@keyframes gs-caret { 50% { border-color: transparent; } }
.gs-res { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.gs-r { display: flex; gap: 10px; align-items: center; padding: 10px 6px; border-top: 1px solid #f0ede6; }
.gs-r i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e6e3dc; flex: none; font-style: normal; font: 800 11px/1 var(--f-display); }
.gs-r b { display: block; width: 120px; height: 8px; border-radius: 4px; background: #d9d5cc; }
.gs-r p { width: 220px; height: 6px; border-radius: 3px; background: #ece9e2; margin: 6px 0 0; }
.gs-r--me { position: absolute; left: 0; right: 0; top: 150px; background: var(--green-soft); border-radius: 10px; border: 0; padding: 10px; animation: gs-climb 1.2s var(--ease) 1.8s forwards; }
.gs-r--me i { background: var(--ink); color: var(--white); }
.gs-r--me strong { display: block; font-size: 12px; }
.gs-r--me em { font-style: normal; font-size: 13px; color: #1a5f80; font-weight: 600; }
.gs-rank { margin-left: auto; padding: 4px 9px; border-radius: 999px; background: var(--green); font-weight: 700; font-size: 12px; opacity: 0; animation: gs-pop .4s var(--ease) 3s forwards; }
@keyframes gs-climb { to { top: -6px; box-shadow: 0 12px 26px -14px rgba(0,0,0,.35); } }
.gs-s2 .gs-res { min-height: 196px; }

/* escena 3: anuncio de Google Ads */
.gs-s3 { grid-template-columns: auto auto; gap: 1.5rem; align-content: center; justify-content: center; }
.gs-ad { position: relative; width: min(380px, 80vw); padding: 18px; border-radius: 16px; background: var(--white); box-shadow: 0 30px 60px -25px rgba(28,29,33,.55); opacity: 0; transform: translateY(14px); animation: gs-in .5s var(--ease) .2s forwards; }
.gs-ad__tag { margin: 0 0 4px; font-size: 11px; font-weight: 700; }
.gs-ad strong { display: block; font-size: 12px; }
.gs-ad em { display: block; font-style: normal; font-size: 16px; color: #1a5f80; font-weight: 700; margin: 4px 0 12px; }
.gs-ad__btn { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--yellow); font-weight: 700; font-size: 12px; animation: gs-press .3s ease 1.6s; }
@keyframes gs-press { 50% { transform: scale(.92); } }
.gs-cursor { position: absolute; left: 70%; top: 110%; width: 18px; height: 18px; border-radius: 50%; background: rgba(28,29,33,.85); box-shadow: 0 0 0 6px rgba(28,29,33,.15); animation: gs-cursor 1.4s var(--ease) .4s forwards; }
@keyframes gs-cursor { 0% { left: 80%; top: 120%; opacity: 0; } 30% { opacity: 1; } 85% { left: 22%; top: 76%; } 92% { transform: scale(.7); } 100% { left: 22%; top: 76%; transform: scale(1); } }
.gs-ads-panel { width: 220px; padding: 16px; border-radius: 16px; background: var(--white); box-shadow: 0 30px 60px -25px rgba(28,29,33,.55); opacity: 0; animation: gs-in .5s var(--ease) .5s forwards; transform: translateY(14px); }
.gs-ads-panel p { margin: 0 0 10px; font-size: 12px; font-weight: 700; }
.gs-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.gs-bars i { flex: 1; height: 8%; border-radius: 4px 4px 0 0; background: var(--blue); animation: gs-grow 1s var(--ease) forwards; }
.gs-bars i:nth-child(1) { --h: 22%; animation-delay: 1.8s; } .gs-bars i:nth-child(2) { --h: 34%; animation-delay: 1.95s; } .gs-bars i:nth-child(3) { --h: 30%; animation-delay: 2.1s; }
.gs-bars i:nth-child(4) { --h: 52%; animation-delay: 2.25s; } .gs-bars i:nth-child(5) { --h: 60%; animation-delay: 2.4s; } .gs-bars i:nth-child(6) { --h: 76%; animation-delay: 2.55s; } .gs-bars i:nth-child(7) { --h: 96%; animation-delay: 2.7s; background: var(--green); }
@keyframes gs-grow { to { height: var(--h); } }

/* escena 4: entran los leads */
.gs-s4 { align-content: center; justify-items: center; gap: .6rem; }
.gs-lead-h { margin: 0 0 .2rem; width: min(440px, 90%); font-weight: 700; font-size: .9rem; opacity: 0; animation: gs-in .4s var(--ease) .1s forwards; transform: none; }
.gs-lead { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: min(440px, 90%); padding: 12px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 18px 36px -20px rgba(28,29,33,.5); opacity: 0; transform: translateX(40px); animation: gs-slide .5s var(--ease) forwards; }
.gs-lead:nth-of-type(2) { animation-delay: .4s; } .gs-lead:nth-of-type(3) { animation-delay: 1.2s; } .gs-lead:nth-of-type(4) { animation-delay: 2s; }
.gs-lead b { font-size: 13px; } .gs-lead p { margin: 2px 0 0; font-size: 12px; color: var(--text); }
.gs-lead time { font-size: 11px; color: var(--muted); }
.gs-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); }
.gs-ico--g { background: var(--yellow-soft); } .gs-ico--w { background: var(--green-soft); }
.gs-ico .up-icon { width: 17px; height: 17px; }
@keyframes gs-slide { to { opacity: 1; transform: none; } }

/* escena 5: crecimiento */
.gs-chart { position: relative; width: min(600px, 92%); padding: 18px 18px 12px; border-radius: 16px; background: var(--white); box-shadow: 0 30px 60px -25px rgba(28,29,33,.55); }
.gs-chart p { margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.gs-chart svg { display: block; width: 100%; height: 180px; }
.gs-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 700; stroke-dashoffset: 700; animation: gs-draw 1.8s var(--ease) .2s forwards; }
.gs-area { fill: var(--green-soft); opacity: 0; animation: gs-fade .8s ease 1.4s forwards; }
@keyframes gs-draw { to { stroke-dashoffset: 0; } }
@keyframes gs-fade { to { opacity: 1; } }
.gs-up { position: absolute; right: 16px; top: 14px; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px; background: var(--green); font-weight: 700; font-size: .85rem; opacity: 0; animation: gs-pop .5s var(--ease) 1.9s forwards; }
.gs-up .up-icon { width: 1rem; height: 1rem; }

@media (prefers-reduced-motion: reduce) { .gs-scene *, .gs-scene.is-on * { animation-duration: .01ms !important; animation-delay: 0s !important; } }
@media (max-width: 700px) {
  .g-media { height: 520px; }
  .gs-steps { max-width: calc(100% - 1rem); overflow-x: auto; scrollbar-width: none; }
  .gs-steps li { white-space: nowrap; font-size: .75rem; padding: .35rem .6rem .35rem .35rem; }
  .gs-s3 { grid-template-columns: 1fr; gap: .8rem; }
  .gs-ads-panel { width: min(380px, 80vw); } .gs-bars { height: 70px; }
  .gs-hero { grid-template-columns: 1fr; } .gs-b--img { height: 70px; }
  .gs-type { animation: gs-type2 1.3s steps(33) .2s forwards, gs-caret .7s step-end infinite; }
  @keyframes gs-type2 { to { width: 100%; } }
  .gs-search { overflow: hidden; }
  .gs-r p { width: 140px; }
}
@media (min-width: 1100px) {
  .gs-scene > .gs-win, .gs-scene > .gs-google, .gs-scene > .gs-chart { transform: scale(1.18); }
  .gs-s3 { gap: 3rem; } .gs-s3 > * { scale: 1.15; }
  .gs-s4 > * { scale: 1.1; } .gs-s4 { gap: .9rem; }
  .gs-toast { right: 12%; top: 10%; }
}
@keyframes gs-cursor { 0% { left: 80%; top: 120%; opacity: 0; } 30% { opacity: 1; } 85% { left: 36%; top: 84%; } 92% { transform: scale(.7); } 100% { left: 36%; top: 84%; transform: scale(1); } }

/* Historia del hero: vídeo de fondo + escenas GEO e IA */
.g-media { background: var(--ink); }
.gs-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(81,186,229,.86), rgba(81,186,229,.72) 55%, rgba(28,29,33,.55)); pointer-events: none; }
.gs { z-index: 2; }
.g-media .g-dock { z-index: 3; }
/* escena 2: GEO */
.gs-s2 { grid-template-columns: auto auto; gap: 1.6rem; align-content: center; justify-content: center; }
.gs-s2 .gs-google { width: min(520px, 46vw); }
.gs-geo { width: min(300px, 26vw); padding: 16px; border-radius: 16px; color: var(--white); background: linear-gradient(140deg, #c10fff, #8b7cff 50%, #51bae5); box-shadow: 0 30px 60px -25px rgba(28,29,33,.55); opacity: 0; transform: translateY(14px); animation: gs-in .5s var(--ease) 2.4s forwards; }
.gs-geo__h { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; font-weight: 700; }
.gs-geo__star { width: 16px; height: 16px; fill: var(--white); animation: up-twinkle 2.4s ease-in-out infinite; }
.gs-geo__t { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
.gs-geo__t b { background: rgba(255,255,255,.25); padding: 0 4px; border-radius: 4px; }
.gs-geo__src { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 700; }
/* escena IA: agente de chat */
.gs-s6 { grid-template-columns: auto auto; gap: 1.6rem; align-content: center; justify-content: center; align-items: center; }
.gs-agent { width: min(360px, 40vw); padding: 14px; border-radius: 16px; background: var(--white); box-shadow: 0 30px 60px -25px rgba(28,29,33,.55); display: grid; gap: 8px; }
.gs-agent__top { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.gs-agent__top .ia-av { width: 28px; height: 28px; font-size: 11px; }
.gs-live { margin-left: auto; font-size: 11px; color: var(--green-deep); font-weight: 600; }
.gs-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; }
.gs-bub { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13px; opacity: 0; transform: translateY(8px); animation: gs-in .4s var(--ease) forwards; }
.gs-bub--u { justify-self: end; background: var(--soft); border-bottom-right-radius: 4px; }
.gs-bub--a { justify-self: start; background: var(--blue-soft); border-bottom-left-radius: 4px; }
.gs-bub:nth-child(2) { animation-delay: .3s; } .gs-bub:nth-child(3) { animation-delay: .9s; } .gs-bub:nth-child(4) { animation-delay: 1.5s; }
.gs-flow { display: grid; gap: 10px; }
.gs-step2 { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--white); font-weight: 700; font-size: 13px; box-shadow: 0 16px 30px -18px rgba(28,29,33,.55); opacity: 0; transform: translateX(-16px); animation: gs-slide .45s var(--ease) forwards; }
.gs-step2 .up-icon { width: 16px; height: 16px; color: var(--green-deep); }
.gs-step2:nth-child(1) { animation-delay: 2.1s; } .gs-step2:nth-child(2) { animation-delay: 2.5s; } .gs-step2:nth-child(3) { animation-delay: 2.9s; }
@media (min-width: 1100px) { .gs-s2 > *, .gs-s6 > * { scale: 1.12; } .gs-s2, .gs-s6 { gap: 2.6rem; } .gs-scene > .gs-google { transform: none; } }
/* móvil: nada se sale del escenario */
@media (max-width: 700px) {
  .g-media { height: 600px; }
  .gs-scene { padding: .8rem .8rem 5rem; }
  .gs-scene > *, .gs-s3 > *, .gs-s2 > *, .gs-s6 > * { max-width: 100%; }
  .gs-win, .gs-google, .gs-chart, .gs-ad, .gs-ads-panel, .gs-lead, .gs-lead-h, .gs-agent, .gs-geo { width: 100% !important; }
  .gs-s2, .gs-s6 { grid-template-columns: 1fr; gap: .7rem; width: 100%; }
  .gs-toast { top: 2%; right: 4%; font-size: .78rem; }
  .gs-r p { width: 110px; }
  .gs-s2 .gs-res { min-height: 150px; }
  .gs-r--me { top: 100px; }
}
/* escena anuncios: Google Ads + Meta */
.gs-s3 { grid-template-columns: auto auto auto; gap: 1.2rem; align-items: center; }
.gs-meta { width: 230px; border-radius: 16px; overflow: hidden; background: var(--white); box-shadow: 0 30px 60px -25px rgba(28,29,33,.55); font-size: 12px; opacity: 0; transform: translateY(14px); animation: gs-in .5s var(--ease) .45s forwards; }
.gs-meta__top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.gs-meta__top b { display: block; font-size: 12px; } .gs-meta__top small { color: var(--muted); font-size: 10px; }
.gs-meta__av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--white); font-weight: 800; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); box-shadow: 0 0 0 2px var(--white), 0 0 0 3px #ee2a7b; }
.gs-meta__dots { margin-left: auto; color: var(--muted); }
.gs-meta__img { display: grid; place-items: end start; height: 150px; padding: 12px; background: linear-gradient(140deg, var(--yellow), #f6a37a 45%, #c10fff); color: var(--white); font: 800 15px/1.1 var(--f-display); }
.gs-meta__cta { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: var(--soft); font-weight: 600; }
.gs-meta__cta u { text-decoration: none; padding: 4px 9px; border-radius: 6px; background: #1877f2; color: var(--white); font-size: 11px; animation: gs-press .3s ease 2.2s; }
.gs-meta__ico { display: flex; gap: 12px; padding: 8px 12px 10px; font-style: normal; }
.gs-meta__ico i { font-style: normal; font-size: 14px; }
.gs-meta__ico i:first-child { color: #ee2a7b; animation: gs-like .5s var(--ease) 2.6s both; }
@keyframes gs-like { 0% { transform: scale(1); } 50% { transform: scale(1.5); } 100% { transform: scale(1.15); } }
.gs-s3 .gs-ad { width: min(330px, 30vw); }
.gs-s3 .gs-ads-panel { width: 200px; }
@media (min-width: 1100px) { .gs-s3 > * { scale: 1.08; } .gs-s3 { gap: 2rem; } }
@media (max-width: 700px) {
  .gs-s3 { grid-template-columns: 1fr 1fr; gap: .6rem; align-content: center; }
  .gs-s3 .gs-ad { grid-column: 1 / -1; width: 100%; }
  .gs-meta, .gs-s3 .gs-ads-panel { width: 100% !important; }
  .gs-meta__img { height: 90px; font-size: 12px; }
  .gs-meta__ico { display: none; }
  .gs-s3 .gs-ads-panel .gs-bars { height: 110px; }
}
@media (max-width: 700px) { .gs-meta__cta span { display: none; } .gs-meta__cta { justify-content: flex-start; } }

/* ======================================================================
   Hero home, integración tipo Google: foto natural + una tarjeta de app centrada
   ====================================================================== */
.g-media { height: clamp(580px, 46vw, 700px); background: #cfc7bd url(cases/equipo.webp) center 30% / cover no-repeat; }
.g-media::before { background: linear-gradient(180deg, rgba(28,29,33,.05), rgba(28,29,33,.18)); }
.g-media .g-dock:not(.is-fixed) { display: none; }
.gs--card { position: absolute; inset: auto; left: 50%; top: clamp(1.4rem, 3vw, 2.4rem); bottom: clamp(1.4rem, 3vw, 2.4rem); width: min(420px, 90%); transform: translateX(-50%);
  display: flex; flex-direction: column; border-radius: 28px; background: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 40px 80px -30px rgba(0,0,0,.5); overflow: hidden; }
.gs-head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem .7rem; }
.gs-head__logo { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--ink); color: var(--white); font: 800 1rem/1 var(--f-display); }
.gs-head b { display: block; font-size: .98rem; } .gs-head small { color: var(--muted); font-size: .78rem; }
.gs-head__btn { margin-left: auto; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--soft); }
.gs-head__btn .up-icon { width: .95rem; height: .95rem; }
.gs--card .gs-steps { margin: 0; padding: 0 1rem .7rem; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: .35rem; overflow-x: auto; scrollbar-width: none; max-width: none; flex: none; border-bottom: 1px solid var(--line); }
.gs--card .gs-steps li { flex: none; padding: .38rem .7rem .38rem .38rem; font-size: .76rem; background: var(--soft); color: var(--text); white-space: nowrap; }
.gs--card .gs-steps li.is-on { background: var(--blue-soft); color: var(--ink); }
.gs--card .gs-steps li span { width: 1.2rem; height: 1.2rem; font-size: .66rem; background: var(--white); }
.gs--card .gs-steps li.is-on span { background: var(--ink); color: var(--white); }
.gs--card .gs-steps li.is-on::after { height: 2px; bottom: 0; background: var(--blue); }

/* escenas dentro de la tarjeta: una columna, todo al ancho de la tarjeta */
.gs--card .gs-scene { padding: .9rem 1rem 1rem; grid-template-columns: 1fr !important; align-content: center; justify-items: stretch; gap: .7rem !important; }
.gs--card .gs-scene > * { width: 100% !important; max-width: none !important; transform: none !important; scale: none !important; }
.gs--card .gs-win, .gs--card .gs-google, .gs--card .gs-chart, .gs--card .gs-ad, .gs--card .gs-ads-panel, .gs--card .gs-lead, .gs--card .gs-agent, .gs--card .gs-geo, .gs--card .gs-meta { box-shadow: 0 0 0 1px var(--line), 0 10px 24px -16px rgba(28,29,33,.35); }
/* 1 web */
.gs--card .gs-hero { grid-template-columns: 1fr; gap: 10px; }
.gs--card .gs-b--img { height: 80px; }
.gs--card .gs-toast { position: static; justify-self: center; width: auto !important; }
/* 2 SEO y GEO */
.gs--card .gs-google { padding: 12px; }
.gs--card .gs-search { font-size: 12px; padding: 8px 12px; overflow: hidden; }
.gs--card .gs-type { animation: gs-type2 1.3s steps(33) .2s forwards, gs-caret .7s step-end infinite; }
@keyframes gs-type2 { to { width: 100%; } }
.gs--card .gs-s2 .gs-res { min-height: 150px; }
.gs--card .gs-r--me { top: 100px; }
.gs--card .gs-r p { width: 140px; }
.gs--card .gs-geo { padding: 12px; }
/* 3 anuncios */
.gs--card .gs-s3 { grid-template-columns: 1fr 1fr !important; }
.gs--card .gs-s3 .gs-ad { grid-column: 1 / -1; padding: 12px; }
.gs--card .gs-ad em { font-size: 14px; margin-bottom: 8px; }
.gs--card .gs-meta__img { height: 84px; font-size: 12px; padding: 8px; }
.gs--card .gs-meta__ico { display: none; }
.gs--card .gs-meta__cta span { display: none; }
.gs--card .gs-ads-panel { padding: 10px; } .gs--card .gs-bars { height: 96px; }
.gs--card .gs-ads-panel p { font-size: 11px; }
/* 4 leads, 5 IA, 6 crecimiento */
.gs--card .gs-lead-h { width: 100% !important; }
.gs--card .gs-lead { padding: 10px 12px; }
.gs--card .gs-chart svg { height: 200px; }
.gs--card .gs-flow { grid-template-columns: 1fr; gap: 6px; }
.gs--card .gs-step2 { padding: 8px 12px; }
@media (max-width: 700px) { .g-media { height: 640px; } .gs--card { width: 92%; top: 1rem; bottom: 1rem; } }
.gs--card .gs-chart > .gs-up, .gs--card .gs-up { position: absolute; width: auto !important; height: auto; right: 12px; top: 12px; }
.gs--card .gs-win { overflow: hidden; }
.gs--card .gs-b--nav span { display: none; }
.gs--card .gs-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gs--card .gs-site { padding: 12px; }
.gs--card { top: clamp(1.8rem, 3.5vw, 2.8rem); }
.gs--card .gs-scene .gs-chart .gs-up { position: absolute !important; display: inline-flex !important; width: auto !important; height: auto !important; max-width: none !important; right: 12px; top: 12px; left: auto; bottom: auto; padding: .4rem .75rem; border-radius: 999px; }
.gs-up .up-icon { width: 1rem !important; height: 1rem !important; flex: none; }
/* Selector de sector bajo la animación */
.gs-sectors { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; width: max-content; max-width: 100%; margin: 1.2rem auto 0; padding: .35rem; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 8px 20px -14px rgba(28,29,33,.3); }
.gs-sectors > span { padding: 0 .5rem 0 .6rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.gs-sec { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border: 0; border-radius: 10px; background: none; font-weight: 600; font-size: .9rem; color: var(--text); cursor: pointer; transition: background .2s, color .2s; }
.gs-sec .up-icon { width: 1rem; height: 1rem; }
.gs-sec:hover { background: var(--soft); color: var(--ink); }
.gs-sec.is-on { background: var(--blue); color: var(--ink); }
.gs--card .gs-stage { transition: opacity .2s; }
.gs.is-swap .gs-stage, .gs.is-swap .gs-head small { opacity: 0; }
.gs-head small { transition: opacity .2s; }
@media (max-width: 700px) {
  .gs-sectors { width: auto; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .gs-sectors > span { display: none; }
  .gs-sec { white-space: nowrap; flex: none; }
}
/* Fondo por sector, crédito y pestañas tipo navegador */
.g-media { background-image: url(sectors/logistica.webp); background-position: center; transition: opacity .3s; }
.g-media.is-swap::after { opacity: 1; }
.g-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--white); opacity: 0; transition: opacity .28s; pointer-events: none; }
.gs-credit { position: absolute; z-index: 3; right: 14px; bottom: 10px; font-size: .68rem; color: rgba(255,255,255,.85); text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.gs-credit:hover { text-decoration: underline; }
.gs-sectors { width: auto; max-width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: .25rem; padding: .3rem; margin: 1rem auto 0; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.gs-sectors::-webkit-scrollbar { display: none; }
.gs-sec { flex: none; white-space: nowrap; padding: .55rem .85rem; border-radius: 9px; font-size: .88rem; }
.gs-sec.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.gs-sec.is-on .up-icon { color: var(--blue); }
@media (min-width: 1300px) { .gs-sectors { width: max-content; } }
/* Sin fotos: fondo azul corporativo con trama de puntos */
.g-media { background: var(--blue) radial-gradient(rgba(28,29,33,.16) 1.2px, transparent 1.2px) 0 0 / 22px 22px; }
.g-media::before { display: none; }
.gs-credit { display: none; }

/* ======================================================================
   Landing «Agentes de IA»
   ====================================================================== */
.ia-app__side li { text-transform: capitalize; }
/* comparativa */
.ag-cmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.ag-cmp__c { padding: 1.6rem; border-radius: 20px; background: var(--soft); }
.ag-cmp__c h3 { font: 800 1.25rem/1.15 var(--f-display); margin-bottom: .6rem; }
.ag-cmp__c p { color: var(--text); margin: 0 0 1.2rem; }
.ag-cmp__c ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ag-cmp__c li { display: flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .92rem; }
.ag-cmp__c li .up-icon { width: 1.05rem; height: 1.05rem; padding: .15rem; border-radius: 50%; background: var(--white); }
.ag-cmp__c.is-agent { position: relative; overflow: hidden; isolation: isolate; color: var(--white); background: linear-gradient(130deg, #c10fff 0%, #8b7cff 35%, #51bae5 100%); }
.ag-cmp__c.is-agent p { color: rgba(255,255,255,.9); }
.ag-cmp__c.is-agent li .up-icon { background: rgba(255,255,255,.25); color: var(--white); }
/* galería de agentes */
.ag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ag-card { display: flex; flex-direction: column; padding: 1.6rem; border-radius: 20px; background: var(--soft); transition: transform .4s var(--ease), box-shadow .3s; }
.ag-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(28,29,33,.35); }
.ag-card--blue { --c: var(--blue); } .ag-card--green { --c: var(--green); } .ag-card--yellow { --c: var(--yellow); } .ag-card--lilac { --c: var(--lilac); }
.ag-card__ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--c); margin-bottom: 1.4rem; }
.ag-card__ico .up-icon { width: 1.4rem; height: 1.4rem; }
.ag-card h3 { font: 800 1.2rem/1.15 var(--f-display); margin-bottom: .6rem; }
.ag-card p { color: var(--text); margin: 0 0 1.2rem; }
.ag-card__tools { margin-top: auto; display: flex; flex-wrap: wrap; gap: .35rem; }
.ag-card__tools span { padding: .3rem .65rem; border-radius: 999px; background: var(--white); font-size: .78rem; font-weight: 600; }
/* agentes propios */
.ag-own { background: var(--ink); color: var(--white); }
.ag-own .ia-lead { color: rgba(255,255,255,.75); margin: 0; }
.ia-k--light { color: var(--white); }
.ag-own__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ag-pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; position: relative; }
.ag-node { position: relative; padding: 1.3rem; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-inv); }
.ag-node:not(:last-child)::after { content: ""; position: absolute; right: -.8rem; top: 2.3rem; width: .8rem; height: 2px; background: var(--blue); }
.ag-node__i { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--blue); color: var(--ink); margin-bottom: 1rem; animation: ag-pulse 5s ease-in-out infinite; }
.ag-node:nth-child(2) .ag-node__i { animation-delay: 1s; } .ag-node:nth-child(3) .ag-node__i { animation-delay: 2s; } .ag-node:nth-child(4) .ag-node__i { animation-delay: 3s; } .ag-node:nth-child(5) .ag-node__i { animation-delay: 4s; }
@keyframes ag-pulse { 0%, 16%, 100% { box-shadow: 0 0 0 0 rgba(81,186,229,0); transform: none; } 8% { box-shadow: 0 0 0 8px rgba(81,186,229,.25); transform: scale(1.08); } }
.ag-node__i .up-icon { width: 1.15rem; height: 1.15rem; }
.ag-node b { display: block; font: 800 1.05rem/1.2 var(--f-display); margin-bottom: .4rem; }
.ag-node p { margin: 0; font-size: .88rem; color: rgba(255,255,255,.7); }
.ag-own__foot { display: flex; align-items: center; gap: .6rem; margin: 1.6rem 0 0; color: rgba(255,255,255,.8); font-weight: 600; }
.ag-own__foot .up-icon { width: 1.2rem; height: 1.2rem; color: var(--green); }
/* modelos */
.ag-models { text-align: center; }
.ag-models .ia-h2 { margin-bottom: 2rem; }
.ag-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.2rem; }
.ag-logo { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 20px; background: var(--white); box-shadow: 0 1px 2px rgba(28,29,33,.05), 0 14px 30px -12px rgba(28,29,33,.22); }
.ag-logo img { width: 46%; height: 46%; object-fit: contain; }
/* enlace desde la landing de IA */
.ag-link { position: relative; display: grid; gap: .5rem; padding: clamp(1.6rem, 4vw, 2.6rem); padding-right: 5rem; border-radius: 24px; text-decoration: none; color: var(--white); background: linear-gradient(130deg, #c10fff 0%, #8b7cff 35%, #51bae5 100%); }
.ag-link__k { justify-self: start; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.22); font-weight: 600; font-size: .82rem; }
.ag-link b { font: 800 clamp(1.3rem, 1rem + 1vw, 1.9rem)/1.15 var(--f-display); }
.ag-link span:not(.ag-link__k) { color: rgba(255,255,255,.9); }
.ag-link i { position: absolute; right: 1.6rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--white); color: var(--ink); transition: transform .35s var(--ease); }
.ag-link:hover i { transform: translateY(-50%) rotate(45deg); }
.ag-link i .up-icon { width: 1.2rem; height: 1.2rem; }
@media (max-width: 1080px) { .ag-pipe { grid-template-columns: repeat(3, 1fr); } .ag-node::after { display: none; } .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .ag-cmp, .ag-own__head { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ag-grid, .ag-pipe { grid-template-columns: 1fr; } .ag-logo { width: 60px; height: 60px; } .ag-link { padding-right: 1.6rem; padding-bottom: 5rem; } .ag-link i { top: auto; bottom: 1.4rem; right: 1.4rem; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ag-node__i { animation: none; } }
.ag-hero .ia-app__side li { text-transform: none; }

/* ======================================================================
   Demo de la home con el formato de las páginas de IA (app con barra lateral)
   ====================================================================== */
.g-media { height: clamp(500px, 40vw, 590px); padding: clamp(.6rem, 1.4vw, 1rem); border-radius: 22px; overflow: visible;
  background: linear-gradient(135deg, var(--lilac), var(--blue)); box-shadow: 0 40px 80px -40px rgba(28,29,33,.45); }
.g-media::before, .g-media::after { display: none; }
.gs--card { position: relative; inset: auto; left: auto; top: auto; bottom: auto; transform: none; width: 100%; height: 100%;
  display: grid; grid-template-columns: 220px 1fr; grid-template-rows: auto auto 1fr; grid-template-areas: "k head" "steps head" "steps stage";
  border-radius: 14px; box-shadow: none; overflow: hidden; background: var(--white); }
.gs-side-k { grid-area: k; margin: 0; padding: 1.1rem 1.1rem .6rem; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--soft); border-right: 1px solid var(--line); }
.gs--card .gs-steps { grid-area: steps; flex-direction: column; gap: .15rem; padding: 0 .8rem 1rem; background: var(--soft); border-right: 1px solid var(--line); border-bottom: 0; overflow: visible; }
.gs--card .gs-steps li { justify-content: flex-start; padding: .5rem .6rem; border-radius: 8px; background: none; font-size: .9rem; font-weight: 500; color: var(--text); }
.gs--card .gs-steps li span { width: 1.4rem; height: 1.4rem; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: .7rem; }
.gs--card .gs-steps li.is-on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.gs--card .gs-steps li.is-on span { background: var(--ink); color: var(--white); box-shadow: none; }
.gs--card .gs-steps li.is-done span { background: var(--green); box-shadow: none; }
.gs--card .gs-steps li.is-on::after { left: .6rem; right: .6rem; width: auto; bottom: 3px; border-radius: 2px; }
.gs--card .gs-head { grid-area: head; align-self: start; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.gs--card .gs-head__logo { width: 2.1rem; height: 2.1rem; border-radius: 10px; font-size: .9rem; }
.gs--card .gs-head__btn { width: auto; height: auto; padding: .3rem .7rem; border-radius: 999px; background: var(--green-soft); }
.gs--card .gs-head__btn::before { content: "En línea"; font-size: .75rem; font-weight: 600; color: var(--green-deep); margin-right: .35rem; }
.gs--card .gs-head__btn .up-icon { display: none; }
.gs--card .gs-stage { grid-area: stage; }
.gs--card .gs-scene { padding: 1rem 1.4rem; }
.gs--card .gs-scene > * { width: 100% !important; max-width: 600px !important; justify-self: center; }
.gs--card .gs-s3 { grid-template-columns: 1fr 1fr !important; max-width: 600px; margin: 0 auto; }
.gs-sectors { margin-top: 1.2rem; background: rgba(255,255,255,.7); }
@media (max-width: 900px) {
  .g-media { height: 640px; }
  .gs--card { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; grid-template-areas: "head" "steps" "stage"; }
  .gs-side-k { display: none; }
  .gs--card .gs-steps { flex-direction: row; overflow-x: auto; padding: .6rem .8rem; border-right: 0; border-bottom: 1px solid var(--line); background: var(--white); }
  .gs--card .gs-steps li { flex: none; background: var(--soft); white-space: nowrap; font-size: .78rem; }
}
.g-slide--sand { background: var(--sand); }
.lang-en .gs--card .gs-head__btn::before { content: "Online"; }
.lang-fr .gs--card .gs-head__btn::before { content: "En ligne"; }

/* fichas de proyecto: marco minimalista (sin borde negro) */
.aw-frame, .aw-el .aw-frame { background: none; padding: 0; border-radius: 16px; }
.aw-frame__card, .aw-el .aw-frame__card { background: var(--bg2, #f3f2ee); border-radius: 16px; padding: clamp(1.4rem, 5vw, 4.5rem); }
.aw-el .aw-frame__card { padding: clamp(1rem, 3.5vw, 2.8rem); }
.aw-frame__card img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(28,29,33,.05), 0 24px 48px -32px rgba(28,29,33,.28); }
.aw-ph, .aw-in__card--phones .aw-ph { padding: 0; background: none; border-radius: 20px; box-shadow: 0 0 0 1px rgba(28,29,33,.06), 0 24px 44px -28px rgba(28,29,33,.3); overflow: hidden; }
.aw-ph img { border-radius: 20px; }
.aw-in__desk { border-radius: 8px; box-shadow: 0 0 0 1px rgba(28,29,33,.05), 0 24px 48px -32px rgba(28,29,33,.28); }
@media (max-width: 720px) { .aw-frame { padding: 0; } }

/* selector de idioma */
.g-navbtns { align-items: center; }
.up-lang { position: relative; }
.up-lang summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 2.5rem; padding: .5rem .8rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink); transition: background .2s; user-select: none; }
.up-lang summary::-webkit-details-marker { display: none; }
.up-lang summary .up-icon { width: 1.05rem; height: 1.05rem; }
.up-lang summary:hover, .up-lang[open] summary { background: rgba(28,29,33,.06); }
.up-lang__list { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 60; min-width: 11rem; margin: 0; padding: .35rem; list-style: none; background: var(--white, #fff); border-radius: 14px; box-shadow: 0 0 0 1px rgba(28,29,33,.06), 0 18px 40px -18px rgba(28,29,33,.35); }
.up-lang__list a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.up-lang__list a b { width: 1.6rem; font-size: .75rem; letter-spacing: .04em; color: var(--muted); }
.up-lang__list a:hover { background: rgba(28,29,33,.05); }
.up-lang__list a[aria-current] { background: var(--sand, #ecebe6); font-weight: 600; }
.up-lang__list a[aria-current] b { color: var(--ink); }
@media (max-width: 900px) {
  .up-lang summary { min-height: 3rem; padding: .5rem 1rem; border: 1px solid rgba(28,29,33,.15); }
  .up-lang__list { right: auto; left: 0; top: auto; bottom: calc(100% + .4rem); }
}
