@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #f6f8fc;
  --ink: #0a1b3f;
  --muted: #46557a;
  --line: #d9e0ee;
  --blue: #0b5cff;
  --blue-hover: #0847c9;
  --cyan: #19d9e8;
  --dark: #0a1b3f;
  --dark-line: #22335f;
  --dark-muted: #b6c2e0;
  --font-head: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .final :focus-visible { outline-color: var(--cyan); }

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

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: var(--radius); transition: background .15s;
}
.btn:hover { background: var(--blue-hover); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: .55rem 1.05rem; font-size: .93rem; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: #5be8f2; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: .96rem; }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s, top .2s; }
.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 { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -3%; top: 50%; transform: translateY(-50%); width: min(600px, 48vw); aspect-ratio: 446 / 360; background: url("assets/isotipo.svg") center / contain no-repeat; opacity: .08; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 46ch; margin: 1.4rem 0 2rem; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.index { border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a { display: flex; justify-content: space-between; align-items: center; padding: 1.05rem .25rem; font-weight: 600; font-size: 1.06rem; transition: color .15s, padding .15s; }
.index a:hover { color: var(--blue); padding-left: .6rem; }
.index svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Animación de carga: el único movimiento de la página */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lead, .hero-ctas, .index { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero .lead { animation-delay: .08s; }
.hero-ctas { animation-delay: .16s; }
.index { animation-delay: .24s; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-head p { color: var(--muted); margin-top: 1.1rem; max-width: 44ch; }
.rows > div { display: grid; grid-template-columns: 72px 1fr; gap: 1.2rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.rows .tile { width: 72px; height: 72px; border-radius: 14px; background: #e4ecfb; color: var(--blue); display: grid; place-items: center; }
.rows .tile svg { width: 30px; height: 30px; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: .3rem; }
.rows dd { color: var(--muted); max-width: 60ch; }
.integrations { grid-column: 2; color: var(--muted); font-size: .95rem; margin-top: -1rem; }
.integrations span { font-weight: 600; color: var(--ink); }

/* Proyectos (franja oscura) */
.dark { background: var(--dark); color: #eef3ff; overflow-x: clip; }
.dark h2 em { color: var(--cyan); }
.dark-sub { color: var(--dark-muted); margin-top: .6rem; }
.case { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(32px, 6vw, 80px); margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--dark-line); align-items: start; }
.case-meta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.client-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: #fff; }
.case-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.case-tags li { font-size: .85rem; color: var(--dark-muted); border: 1px solid var(--dark-line); padding: .2rem .7rem; border-radius: 999px; }
.case h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.6rem; }
.csr > div { padding: 1rem 0; border-top: 1px solid var(--dark-line); display: grid; grid-template-columns: 90px 1fr; gap: 1rem; }
.csr dt { color: var(--cyan); font-weight: 600; font-size: .95rem; }
.csr dd { color: var(--dark-muted); }
.case-stat { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--dark-line); color: var(--dark-muted); }
.case-stat strong { font-family: var(--font-head); font-size: 1.6rem; color: #fff; margin-right: .3rem; }
/* Carrusel de pantallas */
.carousel { min-width: 0; margin-right: calc((min(1180px, 100vw - 48px) - 100vw) / 2); }
.track { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: none; }
.slide img { height: 540px; width: auto; aspect-ratio: 738/930; object-fit: cover; max-width: none; border-radius: 12px; border: 1px solid var(--dark-line); }
.slide figcaption { margin-top: .6rem; font-size: .88rem; color: var(--dark-muted); }
.car-ctrl { display: flex; gap: .6rem; margin-top: 1rem; }
.car-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--dark-line); display: grid; place-items: center; transition: border-color .15s, background .15s; }
.car-ctrl button:hover { border-color: var(--cyan); }
.car-ctrl svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case-next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(32px, 5vw, 56px); padding: 1.3rem 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); color: var(--dark-muted); transition: color .15s; }
.case-next:hover { color: #fff; }
.case-next strong { color: #fff; }
.case-next svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2rem; margin-top: clamp(32px, 5vw, 56px); }
.steps li { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.step-n { display: block; font-family: var(--font-head); font-weight: 600; color: var(--blue); font-size: .95rem; margin-bottom: .8rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .98rem; }

.why { background: #e4ecfb; }
.why-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.why-head p { color: var(--muted); margin-top: 1rem; }
.why-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.why-cols > div { padding: 0 clamp(20px, 3vw, 40px); border-left: 1px solid #b9c9ea; }
.why-cols > div:first-child { padding-left: 0; border-left: 0; }
.why-cols .tile { width: 56px; height: 56px; border-radius: 12px; background: #fff; color: var(--blue); display: grid; place-items: center; margin-bottom: 1.1rem; }
.why-cols .tile svg { width: 26px; height: 26px; }
.why-cols h3 { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: .4rem; }
.why-cols p { color: var(--muted); }
@media (max-width: 900px) { .why-cols { grid-template-columns: 1fr; gap: 28px; } .why-cols > div, .why-cols > div:first-child { padding: 0; border-left: 0; } }

/* Contacto */
.contact { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-copy p { color: var(--muted); margin: 1rem 0 1.6rem; max-width: 40ch; }
.direct-list { display: grid; gap: .6rem; }
.direct { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; }
.direct:hover { color: var(--blue); }
.direct svg { width: 22px; height: 22px; fill: currentColor; color: var(--blue); }
.builder { display: grid; gap: 1.3rem; }
fieldset { border: 0; }
legend, .field label { font-weight: 600; font-size: .95rem; margin-bottom: .6rem; display: block; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .96rem; transition: border-color .15s, background .15s, color .15s; }
.chips label:hover span { border-color: var(--blue); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: .75rem .9rem; }
.field input::placeholder, .field textarea::placeholder { color: #6b7899; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 92, 255, .15); }
.field textarea { resize: vertical; }
.preview { border-left: 3px solid var(--blue); padding: .4rem 0 .4rem 1rem; }
.preview-label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.preview p { color: var(--ink); font-size: .98rem; }

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 0; font-weight: 600; font-size: 1.06rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 2rem 1.3rem 0; max-width: 62ch; }

/* Cierre y pie */
.final { background: var(--dark); color: #eef3ff; padding: clamp(64px, 9vw, 104px) 0; }
.final-inner { text-align: left; display: grid; gap: 1rem; justify-items: start; }
.final p { color: var(--dark-muted); max-width: 50ch; margin-bottom: .6rem; }
.footer { color: var(--muted); padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 2rem; align-items: center; }
.footer-logo { height: 44px; width: auto; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: flex-end; font-size: .95rem; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { grid-column: 1 / -1; font-size: .88rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; z-index: 40; transition: background .15s; }
.wa-float:hover { background: var(--blue-hover); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* Responsive */
@media (max-width: 900px) {
  .hero::before { width: 110vw; right: -35%; top: 62%; opacity: .06; }
  .hero-inner, .split, .case, .contact-grid { grid-template-columns: 1fr; }
  .integrations { grid-column: 1; margin-top: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 24px 1.2rem; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .csr > div { grid-template-columns: 1fr; gap: .2rem; }
  .slide img { height: 420px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
