/* Riva Marketing Agency — basado en el Manual de Identidad
   Colores: Azul #1157BC · Negro #000 · Gris #808080 · Gris claro #F6F6F6 · Blanco
   Tipografías: Kanit (textos/títulos) · Stretch Pro (títulos destacados → Archivo Expanded como sustituto web)
                Cairo Semibold (tagline) */

:root {
  --blue: #1157BC;
  --blue-dark: #0c428f;
  --black: #000;
  --gray: #808080;
  --paper: #F6F6F6;
  --white: #fff;
  --line: #e2e2e2;
  --ink: #0b0b0b;
  --muted: #5e5e5e;

  --f-text: "Kanit", system-ui, sans-serif;
  /* Si conseguís la licencia web de Stretch Pro, agregá @font-face y ponela primero acá */
  --f-display: "Stretch Pro", "Archivo", "Kanit", sans-serif;
  --f-tag: "Cairo", "Kanit", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Textura papel (como en el manual) */
.paper-tex, .hero__paper, .section--paper {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Logo */
.logo-riva { width: 96px; height: 49px; color: var(--black); display: block; }
.tagline {
  font-family: var(--f-tag); font-weight: 600; text-transform: uppercase;
  font-size: 9px; letter-spacing: .18em; line-height: 1.15; color: var(--gray);
}
.tagline--line { font-size: 11px; letter-spacing: .3em; }

/* Botones */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: var(--blue);
  display: inline-flex; align-items: center; gap: .5em;
  padding: 14px 26px; border: 2px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 500 15px/1 var(--f-text); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); --bg: var(--black); --bd: var(--black); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--light { --bg: #fff; --fg: var(--blue); --bd: #fff; }
.btn--light:hover { --bg: var(--black); --fg: #fff; --bd: var(--black); }
.btn--ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.6); }
.btn--ghost:hover { --bg: #fff; --fg: var(--blue); --bd: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo { display: flex; align-items: flex-end; gap: 10px; text-decoration: none; }
.nav__logo .logo-riva { width: 78px; height: 40px; }
.nav__logo .tagline { padding-bottom: 2px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 400; font-size: 15px; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--black); transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* HERO */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 100svh; }
.hero__blue {
  position: relative; background: var(--blue); color: #fff;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 80px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow: hidden;
}
/* texturita sobre azul */
.hero__blue::before, .section--blue::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.hero__pre { font-weight: 200; font-size: clamp(22px, 2.4vw, 32px); margin-bottom: 4px; }
.hero__title {
  font-family: var(--f-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(48px, 8.4vw, 120px); line-height: .9; letter-spacing: -.01em;
  color: var(--black); text-transform: uppercase;
  /* se "sale" del azul hacia el papel, como en la pieza del manual */
  width: max-content; max-width: none;
}
.hero__title span { display: block; }
.stack { position: relative; }
.stack::after {
  content: attr(data-text); position: absolute; left: 0; top: .42em; z-index: -1;
  color: transparent; -webkit-text-stroke: 1.5px var(--black);
}
.hero__lead { margin: 48px 0 32px; max-width: 460px; font-size: 18px; color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__paper { position: relative; overflow: hidden; }
.hero__r { position: absolute; right: -6%; bottom: 8%; width: 70%; height: auto; aspect-ratio: 77/80; color: #fff; filter: drop-shadow(0 30px 40px rgba(0,0,0,.08)); }

.label {
  position: absolute; z-index: 3; font-family: var(--f-display); font-weight: 800; font-stretch: 125%;
  text-transform: uppercase; font-size: 11px; letter-spacing: .06em;
}
.label--tl { top: calc(var(--nav-h) + 16px); left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); color: #fff; }
.label--br { right: var(--gutter); bottom: 32px; color: var(--black); }
.label .slash { display: inline-block; width: 1.9em; height: .62em; border: 2px solid #fff; border-radius: 2px; color: transparent; overflow: hidden; vertical-align: -1px; transform: skewX(-25deg); margin: 0 1px; }
.label .o { display: inline-block; width: 1.7em; height: .72em; border: 2px solid currentColor; border-radius: 99px; vertical-align: -1px; margin: 0 1px; }

/* TICKER */
.ticker { background: var(--black); color: #fff; overflow: hidden; padding: 18px 0; }
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: tick 34s linear infinite; }
.ticker span { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; font-size: 18px; text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); flex: none; }
@keyframes tick { to { transform: translateX(-50%); } }

/* SECCIONES */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section--blue { background: var(--blue); color: #fff; overflow: hidden; }
.section--blue .wrap { position: relative; }
.head { max-width: 760px; margin-bottom: 56px; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.head--row .head__lead { max-width: 420px; }
.eyebrow { font-family: var(--f-tag); font-weight: 600; text-transform: uppercase; letter-spacing: .25em; font-size: 12px; color: var(--blue); margin-bottom: 18px; }
.eyebrow--light { color: rgba(255,255,255,.75); }
.h2 { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 68px); letter-spacing: -.01em; line-height: .98; }
.h2 em { font-style: normal; color: var(--blue); }
.h2--light em { color: #fff; -webkit-text-stroke: 0; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.head__lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 600px; }

/* SERVICIOS */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, color .25s; position: relative; }
.svc:hover { background: var(--paper); }
.svc__n { font-family: var(--f-tag); font-weight: 600; font-size: 13px; color: var(--blue); letter-spacing: .1em; }
.svc h3 { font-weight: 500; font-size: 24px; margin: 18px 0 12px; line-height: 1.15; }
.svc p { color: var(--muted); font-size: 16px; }
.svc--feature { grid-column: span 2; background: var(--black); color: #fff; }
.svc--feature:hover { background: var(--blue); }
.svc--feature .svc__n { color: #fff; opacity: .7; }
.svc--feature h3 { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(26px, 3.4vw, 42px); }
.svc--feature p { color: rgba(255,255,255,.82); max-width: 560px; }
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: 4px 14px; font-size: 13px; }

/* CLIENTES */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client { background: var(--white); min-height: 150px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: background .25s, color .25s; }
.client:hover { background: var(--blue); color: #fff; }
.client__name { font-family: var(--f-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: 17px; line-height: 1.1; }
.client__sector { font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.client:hover .client__sector { color: rgba(255,255,255,.8); }
.client__arrow { transition: transform .25s; }
.client:hover .client__arrow { transform: translate(3px, -3px); }

/* PARTNER */
.partner { background: var(--black); color: #fff; padding: clamp(64px, 9vw, 110px) 0; }
.partner__in { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.partner__badge { aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 18%; }
.partner__badge img { width: 100%; height: auto; }
.partner__ph { color: var(--black); text-align: center; font-size: 22px; line-height: 1.2; }
.partner__ph b { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 26px; }
.partner__copy .h2 + p { margin-top: 22px; font-size: 19px; color: rgba(255,255,255,.8); max-width: 620px; }
.partner .h2 em { color: #6ea2ef; }
.stats { list-style: none; margin: 64px 0 0; padding: 32px 0 0; border-top: 1px solid rgba(255,255,255,.25); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.stats b { display: block; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: #fff; }
.stats span { display: block; margin-top: 10px; color: rgba(255,255,255,.7); font-size: 16px; }

/* TRABAJOS */


.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { border: 1px solid var(--black); background: none; border-radius: 99px; padding: 8px 18px; font: 400 14px var(--f-text); cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: var(--paper); }
.chip.is-on { background: var(--black); color: #fff; }
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.work { text-decoration: none; display: block; }
.work[hidden] { display: none; }
.work__img { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work:hover .work__img img { transform: scale(1.04); }
.work__img::after { content: "Ver sitio ↗"; position: absolute; right: 14px; bottom: 14px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.work:hover .work__img::after { opacity: 1; transform: none; }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.work h3 { font-weight: 500; font-size: 22px; }
.work__type { font-size: 13px; color: var(--blue); font-family: var(--f-tag); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.work p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.work--wide { grid-column: span 2; }
.work--wide .work__img { aspect-ratio: 21/9; }

/* NOSOTROS */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px 80px; }
.about__p { margin-top: 28px; font-size: 19px; color: rgba(255,255,255,.88); max-width: 520px; }
.values { list-style: none; padding: 0; margin: 0; align-self: end; display: flex; flex-wrap: wrap; gap: 10px; }
.values li { border: 1.5px solid rgba(255,255,255,.55); border-radius: 99px; padding: 10px 22px; font-size: 16px; font-weight: 400; }
.steps { grid-column: 1 / -1; list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.3); counter-reset: s; }
.steps li { padding: 28px 24px 0 0; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 40px; line-height: 1; margin-bottom: 14px; color: transparent; -webkit-text-stroke: 1.5px #fff; }
.steps b { display: block; font-weight: 500; font-size: 20px; }
.steps span { color: rgba(255,255,255,.8); font-size: 15px; }

/* CONTACTO */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact__list span { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .12em; font-family: var(--f-tag); font-weight: 600; }
.contact__list a { text-decoration: none; font-weight: 400; }
.contact__list a:hover { color: var(--blue); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--paper); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 400; color: var(--ink); padding: 0; margin-bottom: 6px; }
.field input, .field textarea {
  font: 300 16px var(--f-text); color: var(--ink);
  border: 0; border-bottom: 1.5px solid #bdbdbd; background: transparent; padding: 10px 2px; border-radius: 0;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 110px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #c62828; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { margin: 0; cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; border: 1px solid #bdbdbd; border-radius: 99px; padding: 7px 16px; font-size: 14px; background: #fff; transition: all .2s; }
.checks input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.checks input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: 15px; }
.form__status.ok { color: #1b7a3d; }
.form__status.err { color: #c62828; }
.form__status a { color: var(--blue); }

/* FOOTER */
.footer { background: var(--black); color: #fff; padding: 56px 0; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__logo { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.footer__logo .logo-riva { color: #fff; width: 120px; height: 61px; }
.footer__logo .tagline { color: #b3b3b3; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; color: #ccc; font-size: 15px; }
.footer__links a:hover { color: #fff; }
.footer__copy { color: var(--gray); font-size: 14px; }

/* WHATSAPP */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; text-decoration: none;
  height: 60px; padding: 0 20px 0 16px; border-radius: 99px;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  font-weight: 500; transition: transform .2s;
}
.wa:hover { transform: translateY(-3px) scale(1.03); }
.wa svg { width: 30px; height: 30px; }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__blue { padding: calc(var(--nav-h) + 56px) var(--gutter) 64px; min-height: 86svh; }
  .hero__title { width: auto; }
  .hero__paper { min-height: 220px; }
  .hero__r { width: 170px; right: var(--gutter); bottom: 50%; transform: translateY(50%); }
  .label--br { left: var(--gutter); right: auto; }
  .services { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(3, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .partner__in { grid-template-columns: 1fr; gap: 32px; }
  .partner__badge { width: 180px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--gutter) 24px; box-shadow: 0 20px 30px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav__links .btn { margin-top: 18px; justify-content: center; }
  .nav:has(.is-open) { background: #fff; }
  .services { grid-template-columns: 1fr; }
  .svc--feature { grid-column: auto; }
  .clients { grid-template-columns: 1fr 1fr; }
  .client { min-height: 120px; padding: 18px; }
  .client__name { font-size: 14px; }
  .works { grid-template-columns: 1fr; gap: 36px; }
  .work--wide { grid-column: auto; }
  .work--wide .work__img { aspect-ratio: 16/10; }
  .form { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .wa span { display: none; }
  .wa { width: 60px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== HERO TECH ===== */
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__paper { min-height: 100%; }
.float {
  position: absolute; z-index: 4; background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,.06); border-radius: 14px; box-shadow: 0 24px 50px -12px rgba(17,87,188,.28);
  font-size: 13px; color: var(--ink);
}
.float b { font-weight: 500; display: block; font-size: 14px; }
.float span { color: var(--muted); }
.float--a { left: -70px; top: 26%; width: 270px; padding: 16px 18px; animation: bob 6s ease-in-out infinite; }
.float--b, .float--c { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; }
.float--b { right: 8%; top: 14%; animation: bob 7s ease-in-out -2s infinite; transition: opacity .35s, transform .35s; }
.float--b.is-swap { opacity: 0; transform: translateY(-10px); }
.float--c { left: 12%; bottom: 20%; animation: bob 8s ease-in-out -4s infinite; }
.float__head { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: live 1.8s infinite; }
.spark { width: 100%; height: 64px; margin: 12px 0 10px; display: block; }
.spark__line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 2.4s .6s cubic-bezier(.4,0,.2,1) forwards; vector-effect: non-scaling-stroke; }
.spark__area { fill: rgba(17,87,188,.1); opacity: 0; animation: fade 1s 1.8s forwards; }
.float__row { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.float__bars { display: grid; gap: 6px; margin-top: 8px; }
.float__bars b { height: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--blue), #5b9bf5); width: 0; animation: grow 1.6s 1s cubic-bezier(.2,.7,.2,1) forwards; }
.float__bars b:nth-child(2) { animation-delay: 1.2s; } .float__bars b:nth-child(3) { animation-delay: 1.4s; }
.float__ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; background: rgba(17,87,188,.1); flex: none; }
.float__ico--wa { background: rgba(37,211,102,.16); }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes grow { to { width: var(--w); } }
.hero__r { opacity: .9; }

/* Servicios: botón cotizar */
.svc { display: flex; flex-direction: column; }
.svc__cta { margin-top: auto; padding-top: 22px; align-self: flex-start; font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); text-decoration: none; }
.svc__cta:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc--feature .svc__cta { color: #fff; }

/* CTA band */
.cta-band { background: var(--paper); padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--outline { --bg: transparent; --fg: var(--black); --bd: var(--black); }
.btn--outline:hover { --bg: #25D366; --fg: #fff; --bd: #25D366; }

/* Resaltado del form al llegar desde "Cotizar" */
.form.is-flash { animation: flash 1.2s ease; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px var(--blue); } }

@media (max-width: 980px) {
  .hero__paper { min-height: 300px; }
  .float--a { left: var(--gutter); top: 28px; width: 240px; }
  .float--b { right: var(--gutter); top: auto; bottom: 28px; }
  .float--c { display: none; }
}
@media (max-width: 480px) {
  .float--a { width: calc(100% - 2 * var(--gutter)); }
  .float--b { left: var(--gutter); right: auto; }
}
.hero { overflow: hidden; }
.hero__paper { overflow: visible; }
@media (min-width: 981px) {
  .float--a { top: 13%; }
  .float--b { top: 56%; right: 6%; }
  .float--c { bottom: 12%; left: 14%; }
}

/* Partner con sello oficial (respetar zona de respeto: sin elementos encima ni efectos) */
.partner__in { grid-template-columns: minmax(240px, 340px) 1fr; }
.partner__seal { padding: 24px 0; }
.partner__seal img { width: 100%; height: auto; min-width: 200px; display: block; }
.partner__copy p.partner__cert { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.6); font-family: var(--f-tag); font-weight: 600; letter-spacing: .06em; }
@media (max-width: 980px) { .partner__seal { max-width: 280px; } }
.stats[hidden] { display: none; }

/* Identidades + galería */
.work--id { cursor: zoom-in; }
.work--id .work__img::after { content: "Ver identidad ⤢"; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5,10,20,.94); display: flex; flex-direction: column; color: #fff; }
.lb[hidden] { display: none; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--gutter); }
.lb__title { display: block; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 20px; }
.lb__sector { font-size: 14px; color: rgba(255,255,255,.65); }
.lb__actions { display: flex; align-items: center; gap: 12px; }
.lb__ig { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: 8px 16px; font-size: 14px; }
.lb__ig:hover { background: #fff; color: var(--black); }
.lb__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 var(--gutter); }
.lb__img { max-width: min(1200px, 100%); max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }
.lb__nav { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lb__nav:hover, .lb__close:hover { background: var(--blue); }
.lb__dots { display: flex; justify-content: center; gap: 8px; padding: 18px; min-height: 52px; }
.lb__dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; }
.lb__dots button.is-on { background: #fff; transform: scale(1.3); }
@media (max-width: 760px) {
  .lb__nav { position: absolute; bottom: 10px; width: 44px; height: 44px; }
  .lb__prev { left: var(--gutter); } .lb__next { right: var(--gutter); }
  .lb__stage { padding: 0 8px; }
}
.work--id .work__img img { object-position: center; }
.btn--wa { --bg: #25D366; --bd: #25D366; } .btn--wa:hover { --bg: #1da851; --bd: #1da851; }

/* Título del hero en blanco */
.hero__title { color: #fff; }
.stack::after { -webkit-text-stroke-color: rgba(255,255,255,.75); }

/* Tarjeta de resultados (todo sube) */
.float--c { display: block; width: 300px; padding: 16px 18px; }
.kpi { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.kpi li { display: grid; grid-template-columns: 1fr 76px 16px; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.kpi li:first-child { border-top: 0; padding-top: 0; }
.kpi__label { font-size: 13px; font-weight: 400; color: var(--ink) !important; }
.kpi__spark { width: 76px; height: 26px; }
.kpi__spark path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 1.6s var(--d) cubic-bezier(.4,0,.2,1) forwards; }
.kpi__up { color: #16a34a !important; font-size: 12px; opacity: 0; animation: upIn .5s calc(var(--d) + 1.2s) forwards, upBob 2s calc(var(--d) + 1.7s) ease-in-out infinite; }
@keyframes upIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes upBob { 50% { transform: translateY(-3px); } }

@media (min-width: 981px) {
  .float--a { top: 11%; }
  .float--b { top: auto; bottom: 9%; right: 8%; }
  .float--c { top: 44%; bottom: auto; left: auto; right: 6%; }
}
@media (max-width: 980px) {
  .hero__paper { min-height: 420px; }
  .float--a { top: 24px; left: var(--gutter); width: 250px; }
  .float--c { display: block; top: auto; bottom: 24px; right: var(--gutter); left: auto; width: 280px; }
  .float--b { display: none; }
}
@media (max-width: 480px) {
  .hero__paper { min-height: 470px; }
  .float--a { width: calc(100% - 2 * var(--gutter) - 40px); }
  .float--c { width: calc(100% - 2 * var(--gutter) - 20px); }
}
.hero__title { font-size: clamp(44px, 6.6vw, 104px); width: auto; max-width: 100%; }
@media (max-width: 980px) {
  .partner__in { grid-template-columns: 1fr; gap: 24px; }
  .partner__seal { max-width: 260px; padding: 0; }
  .partner__seal img { min-width: 0; }
}
.h2 { overflow-wrap: break-word; }
@media (max-width: 760px) { .label--br { display: none; } }

/* H1 SEO bajo el display MKT AGENCY */
.hero__h1 { margin: 40px 0 0; max-width: 520px; font-family: var(--f-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(18px, 1.7vw, 24px); line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.hero__h1 + .hero__lead { margin-top: 14px; }

/* ===== Páginas de servicios ===== */
.phero { background: var(--blue); color: #fff; padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(64px, 9vw, 120px); position: relative; overflow: hidden; }
.phero::after { content: ""; position: absolute; right: -8%; bottom: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.03); pointer-events: none; }
.phero .wrap { position: relative; z-index: 1; }
.phero__h1 { font-family: var(--f-display); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(34px, 6vw, 80px); line-height: .98; letter-spacing: -.01em; max-width: 16ch; overflow-wrap: break-word; }
.phero__lead { margin: 28px 0 36px; max-width: 600px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.9); }
.crumbs { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 28px; }
.crumbs a { color: #fff; }
.faq__list { border-top: 1px solid var(--line); max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 24px 44px 24px 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 500; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; color: var(--blue); transition: transform .25s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 24px; color: var(--muted); max-width: 720px; }
.more { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.more__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.more__list a { display: inline-block; padding: 12px 20px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 500; transition: border-color .2s, color .2s; }
.more__list a:hover { border-color: var(--blue); color: var(--blue); }
.sub .partner { padding: clamp(64px, 9vw, 110px) 0; }
.svc__more { margin-top: 10px; font-size: 14px; color: inherit; opacity: .75; }
.svc__more:hover { opacity: 1; }
.partner__copy .btn { margin-top: 24px; }
