/*
  Kambiaso · landing (kambiaso.com)
  Traducción a CSS plano del boceto hecho en Claude Design. Mismos colores,
  medidas y animaciones; sin React ni Babel en el navegador.

  Para cambiar un color, toca solo las variables --k-* de abajo: claro y oscuro
  tienen cada uno su bloque.
*/

/* ------------------------------------------------------------ tipografía */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }

/* ---------------------------------------------------------------- tokens */
:root, [data-theme="light"] {
  --k-bg: #eef4f2; --k-ink: #0f1c19; --k-muted: #46574f;
  --k-accent: #087a66; --k-accent-ink: #ffffff; --k-accent-soft: rgba(8,122,102,.10);
  --k-glass: rgba(255,255,255,.55); --k-glass-border: rgba(255,255,255,.75); --k-hl: rgba(255,255,255,.95);
  --k-line: rgba(15,28,25,.10); --k-line-strong: rgba(15,28,25,.20);
  --k-input: rgba(255,255,255,.75); --k-danger: #b42318;
  --k-shadow: 0 18px 48px rgba(8,80,66,.12);
  --k-b1: #2ee6a0; --k-b2: #14b395; --k-bop: .42;
  --k-ga: #066b59; --k-gb: #0c9a7c; --k-spot: rgba(8,122,102,.16);
  --k-blur: 22px;
  --ease: cubic-bezier(.16,1,.3,1);
  --gutter: clamp(16px,4vw,32px);
  color-scheme: light;
}
[data-theme="dark"] {
  --k-bg: #071210; --k-ink: #e8f3ef; --k-muted: #a5b9b2;
  --k-accent: #34e3a2; --k-accent-ink: #04201a; --k-accent-soft: rgba(52,227,162,.12);
  --k-glass: rgba(22,44,38,.45); --k-glass-border: rgba(255,255,255,.12); --k-hl: rgba(255,255,255,.16);
  --k-line: rgba(255,255,255,.10); --k-line-strong: rgba(255,255,255,.20);
  --k-input: rgba(0,0,0,.28); --k-danger: #ff8a7a;
  --k-shadow: 0 18px 60px rgba(0,0,0,.45);
  --k-b1: #0fa58a; --k-b2: #1fd18f; --k-bop: .26;
  --k-ga: #34e3a2; --k-gb: #a6f8d6; --k-spot: rgba(52,227,162,.18);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--k-bg); color: var(--k-ink);
  font: 400 15px/1.55 "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; transition: background .4s, color .4s;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; }
button, input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--k-accent); text-decoration: none; }
a:hover { color: var(--k-ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--k-accent); outline-offset: 3px; }
::placeholder { color: var(--k-muted); opacity: 1; }
::selection { background: var(--k-accent); color: var(--k-accent-ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------ animaciones */
@keyframes k-word { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes k-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes k-parallax { from { transform: translateY(-10%) scale(1.2); } to { transform: translateY(10%) scale(1.2); } }
@keyframes k-spin { to { transform: rotate(360deg); } }
@keyframes k-float { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(6vw,4vh) scale(1.15); } }
@keyframes k-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes k-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes k-shine { to { background-position: 200% 50%; } }
@keyframes k-pop { 0% { opacity: 0; transform: scale(.82); } 60% { opacity: 1; transform: scale(1.03); } 100% { transform: scale(1); } }

/* Quien pide menos movimiento en su sistema no ve ninguna animación. */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; transition: none !important; }
[data-motion="off"] { scroll-behavior: auto; }

/* ----------------------------------------------------------------- vidrio */
.glass {
  background: var(--k-glass);
  -webkit-backdrop-filter: blur(var(--k-blur)) saturate(170%);
  backdrop-filter: blur(var(--k-blur)) saturate(170%);
  border: 1px solid var(--k-glass-border);
  box-shadow: inset 0 1px 0 var(--k-hl), var(--k-shadow);
}
.glass--flat { box-shadow: inset 0 1px 0 var(--k-hl); }
/* El brillo que sigue al puntero dentro de las tarjetas. */
.spot { background: radial-gradient(260px circle at var(--mx,-300px) var(--my,-300px), var(--k-spot), transparent 70%), var(--k-glass); }
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--k-bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ----------------------------------------------------------------- fondo */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--k-bg); }
.blob { position: absolute; border-radius: 50%; opacity: var(--k-bop); }
.blob--1 { width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; left: -10vw; top: -12vw; background: var(--k-b1); filter: blur(90px); animation: k-float 22s ease-in-out infinite alternate; }
.blob--2 { width: 44vw; height: 44vw; max-width: 620px; max-height: 620px; right: -8vw; top: 30vh; background: var(--k-b2); filter: blur(100px); animation: k-float 26s ease-in-out -8s infinite alternate-reverse; }
.blob--3 { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; left: 24vw; bottom: -14vw; background: var(--k-b1); filter: blur(110px); animation: k-float 30s ease-in-out -4s infinite alternate; }

/* clip y no hidden: recorta los halos giratorios de la mascota sin crear un
   contenedor de scroll (la cabecera fija y el scroll suave siguen igual). */
.page { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
main { flex: 1; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px;
  background: var(--k-accent); color: var(--k-accent-ink); font-weight: 600;
}
.skip:focus { top: 12px; color: var(--k-accent-ink); }

/* ------------------------------------------------------------------ botones */
.btn {
  height: 52px; display: inline-flex; align-items: center; gap: 10px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap; border: none; cursor: pointer;
  transition: transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--k-accent); color: var(--k-accent-ink); box-shadow: 0 10px 30px var(--k-accent-soft); }
.btn--primary:hover { color: var(--k-accent-ink); }
.btn--ghost { color: var(--k-ink); }
.btn--ghost:hover { color: var(--k-ink); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; gap: 8px; box-shadow: none; }
.btn--sm:hover { transform: translateY(-1px); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.icon-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--k-line-strong); background: transparent; color: var(--k-ink); cursor: pointer;
}
.icon-btn:hover { background: var(--k-accent-soft); }
.icon-btn--solid { border: none; background: var(--k-accent); color: var(--k-accent-ink); }
.icon-btn--solid:hover { background: var(--k-accent); }

/* El icono del tema: sol en oscuro, luna en claro. */
.ico-sol { display: none; }
[data-theme="dark"] .ico-sol { display: block; }
[data-theme="dark"] .ico-luna { display: none; }

/* --------------------------------------------------------------- cabecera */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 20; padding: 0 clamp(12px,3vw,24px); }
.nav {
  max-width: 1200px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 18px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--k-ink); }
.brand:hover { color: var(--k-ink); }
.brand img { width: 32px; height: 32px; }
.brand span { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 10px 14px; border-radius: 999px; color: var(--k-ink); font-size: 15px; font-weight: 500; }
.nav-link:hover { background: var(--k-accent-soft); color: var(--k-ink); }
.nav-sep { width: 1px; height: 22px; background: var(--k-line-strong); margin: 0 6px; }
.nav-login { display: inline-flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }

.mobile-menu {
  max-width: 1200px; margin: 8px auto 0; padding: 8px; border-radius: 24px;
  display: flex; flex-direction: column; gap: 2px; animation: k-rise .3s var(--ease);
}
.mobile-menu a { padding: 14px 16px; border-radius: 16px; color: var(--k-ink); font-size: 17px; font-weight: 600; }
.mobile-menu a:hover { background: var(--k-accent-soft); }
.mobile-menu .mobile-login { color: var(--k-accent); border-top: 1px solid var(--k-line); border-radius: 0 0 16px 16px; margin-top: 4px; }

@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
}
@media (min-width: 1101px) { .mobile-menu { display: none !important; } }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: clamp(140px,17vh,168px) var(--gutter) clamp(48px,8vh,88px);
  min-height: 100dvh; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,360px),1fr));
  align-items: center; gap: clamp(32px,5vw,64px);
}
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at calc((var(--px,0) + 1) * 50%) calc((var(--py,0) + 1) * 50%), var(--k-spot), transparent 65%);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; min-width: 0; }
.hero-title { font-size: clamp(44px,6.4vw,92px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.hero-title .w { display: inline-block; animation: k-word .9s var(--ease) var(--d,0s) both; }
.hero-title .w--rot { min-width: 4.6ch; padding-bottom: .08em; }
.grad {
  display: inline-block; padding-bottom: .08em;
  background-image: linear-gradient(90deg, var(--k-ga), var(--k-gb), var(--k-ga)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: k-word .7s var(--ease) both, k-shine 3s linear infinite;
}
.hero-lead { max-width: 34ch; font-size: clamp(18px,1.6vw,21px); line-height: 1.5; color: var(--k-muted); text-wrap: pretty; animation: k-rise .8s var(--ease) .5s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; animation: k-rise .8s var(--ease) .6s both; }

.mascot { position: relative; justify-self: center; width: min(100%,560px); aspect-ratio: 1; animation: k-pop 1.1s var(--ease) .2s both; }
.mascot-halo { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 0deg,#2ee6a0,#0fa58a,transparent 40%,#1fd18f 60%,transparent 80%,#2ee6a0); filter: blur(46px); opacity: .6; animation: k-spin 14s linear infinite; }
.mascot-disc { position: absolute; inset: 6%; border-radius: 50%; box-shadow: inset 0 2px 0 var(--k-hl), inset 0 -30px 60px var(--k-accent-soft), var(--k-shadow); }
.mascot-ring { position: absolute; inset: -2%; border-radius: 50%; border: 1.5px dashed var(--k-line-strong); animation: k-spin 60s linear infinite; }
.mascot-move { position: absolute; inset: 0; transform: translate3d(calc(var(--px,0) * -10px), calc(var(--py,0) * -10px), 0); transition: transform .5s var(--ease); }
.mascot-move img { position: absolute; left: 4%; top: 8%; width: 92%; height: auto; filter: drop-shadow(0 24px 30px rgba(6,60,48,.25)); animation: k-bob 6s ease-in-out infinite; }
.chip-wrap { position: absolute; z-index: 2; transition: transform .4s var(--ease); transform: translate3d(calc(var(--px,0) * var(--f)), calc(var(--py,0) * var(--f)), 0); }
.chip-wrap--1 { left: 0; top: 12%; --f: 22px; }
.chip-wrap--2 { right: 0; top: 44%; --f: 30px; }
.chip-wrap--3 { left: 8%; bottom: 2%; --f: 16px; }
.chip { width: clamp(56px,7vw,76px); height: clamp(56px,7vw,76px); border-radius: 22px; display: grid; place-items: center; color: var(--k-accent); animation: k-bob var(--t,5s) ease-in-out var(--dl,0s) infinite; }

/* ------------------------------------------------------------- tecnologías */
.tech { padding: 8px 0 clamp(24px,4vw,40px); display: flex; flex-direction: column; gap: 20px; }
.tech-label { margin: 0 auto; max-width: 1200px; width: 100%; padding: 0 var(--gutter); font-size: 15px; font-weight: 500; color: var(--k-muted); }
.marquee { overflow: hidden; opacity: .85; -webkit-mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); mask-image: linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); }
.marquee-track { display: flex; width: max-content; animation: k-marquee 45s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(40px,5vw,64px); padding-right: clamp(40px,5vw,64px); flex: none; list-style: none; margin: 0; }
.tech-item { display: flex; align-items: center; gap: 12px; flex: none; }
.tech-item svg { width: 28px; height: 28px; flex: none; fill: var(--k-ink); }
.tech-item span { font-size: 17px; font-weight: 600; color: var(--k-ink); white-space: nowrap; }

/* -------------------------------------------------------------- secciones */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(56px,9vw,112px) var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.h2 { font-size: clamp(32px,4.2vw,52px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* Servicios */
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; }
.tab { min-height: 44px; padding: 0 22px; border-radius: 999px; border: none; cursor: pointer; font: 600 15px/1 "Poppins", system-ui, sans-serif; background: transparent; color: var(--k-ink); transition: background .25s, color .25s; }
.tab[aria-selected="true"] { background: var(--k-accent); color: var(--k-accent-ink); }
.panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,340px),1fr)); gap: 16px; }
.feature {
  border-radius: 28px; padding: clamp(28px,3.5vw,40px); position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 380px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--k-shadow); animation: k-rise .5s var(--ease);
}
.feature--dev { background: linear-gradient(180deg,rgba(4,52,43,.55) 0%,rgba(4,58,48,.92) 62%), linear-gradient(150deg,rgba(5,88,74,.6),rgba(15,159,127,.3)), url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1200&q=70") center/cover, #04493d; }
.feature--infra { background: linear-gradient(180deg,rgba(6,30,26,.5) 0%,rgba(6,34,29,.93) 62%), linear-gradient(150deg,rgba(11,43,37,.6),rgba(10,106,86,.3)), url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1200&q=70") center/cover, #0b2b25; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), var(--k-shadow); }
.feature-body { display: flex; flex-direction: column; gap: 12px; }
.feature h3 { font-size: clamp(28px,3vw,36px); letter-spacing: -0.02em; font-weight: 800; }
.feature p { font-size: 17px; line-height: 1.5; max-width: 30ch; color: #e3fbf2; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,230px),1fr)); gap: 16px; animation: k-rise .5s var(--ease) .05s both; }
.card { border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-3px); }
.card-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--k-accent-soft); color: var(--k-accent); }
.card h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 15px; line-height: 1.5; color: var(--k-muted); }

/* Misión y visión */
.mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,360px),1fr)); gap: 16px; }
.mv-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px,4vw,48px); min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; transition: transform .4s var(--ease); }
.mv-card:hover { transform: translateY(-4px); }
.mv-card--mision { color: #fff; background: linear-gradient(145deg,#04493d,#087a66 55%,#0e9d7f); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--k-shadow); }
.mv-orb { position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle,#2ee6a0,transparent 70%); opacity: .55; animation: k-bob 8s ease-in-out infinite; }
.mv-ico { position: relative; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--k-accent-soft); color: var(--k-accent); }
.mv-card--mision .mv-ico { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #a6f8d6; }
.mv-body { position: relative; display: flex; flex-direction: column; gap: 14px; }
.mv-body h3 { font-size: 18px; font-weight: 600; color: var(--k-accent); }
.mv-card--mision .mv-body h3 { color: #a6f8d6; }
.mv-body p { font-size: clamp(22px,2.4vw,30px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; text-wrap: pretty; }

/* Proceso */
.section--proceso { gap: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: 16px; }
.step { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 16px; min-height: 260px; transition: transform .4s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step-bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--k-line); }
.step-bar span { position: absolute; inset: 0; background: linear-gradient(90deg,var(--k-ga),var(--k-gb)); transform-origin: left; transform: scaleX(0); transition: transform .7s var(--ease); }
.step.is-done .step-bar span { transform: scaleX(1); }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#04493d,#0a8a70); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 24px rgba(8,122,102,.25); }
.step-num { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--k-line-strong); }
.step-body { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.step-body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.step-body p { font-size: 16px; line-height: 1.5; color: var(--k-muted); }

/* Equipo */
.section--equipo { padding-top: clamp(24px,4vw,48px); padding-bottom: clamp(24px,4vw,48px); }
.team { position: relative; overflow: hidden; border-radius: 32px; min-height: clamp(380px,48vw,560px); display: flex; align-items: flex-end; padding: clamp(16px,3vw,32px); box-shadow: var(--k-shadow); background: linear-gradient(145deg,#04493d,#0a8a70); }
.team > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); color: transparent; /* si la foto no carga, no se ve el texto alternativo encima del verde */ }
@supports (animation-timeline: view()) {
  .team > img { animation: k-parallax linear both; animation-timeline: view(); }
}
.team-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(4,40,33,0) 30%,rgba(4,40,33,.55) 100%); }
.team-card { position: relative; max-width: 560px; border-radius: 24px; padding: clamp(20px,3vw,32px); display: flex; flex-direction: column; gap: 12px; }
.team-card h2 { font-size: clamp(26px,3.2vw,40px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
.team-card p { font-size: 17px; line-height: 1.5; color: var(--k-muted); }

/* ---------------------------------------------------------------- contacto */
.section--contacto { padding-bottom: clamp(64px,10vw,120px); }
.contact { border-radius: 32px; padding: clamp(24px,4vw,56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,360px),1fr)); gap: clamp(32px,5vw,64px); }
.contact-copy { display: flex; flex-direction: column; gap: 20px; justify-content: space-between; }
.contact-copy > div { display: flex; flex-direction: column; gap: 16px; }
.contact-copy .h2 { max-width: 14ch; }
.contact-copy p { font-size: 18px; line-height: 1.5; color: var(--k-muted); max-width: 36ch; }
.contact-mail { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; min-height: 44px; overflow-wrap: anywhere; }

.form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field legend { font-size: 15px; font-weight: 600; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--k-line-strong);
  background: var(--k-input); color: var(--k-ink); font: 400 16px "Poppins", system-ui, sans-serif;
}
textarea.input { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 120px; }
.input[aria-invalid="true"] { border-color: var(--k-danger); }
.field-error { font-size: 14px; color: var(--k-danger); }
fieldset.field { border: none; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-opt span {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 15px; border: 1px solid var(--k-line-strong); color: var(--k-ink); transition: background .2s, color .2s;
}
.chip-opt input:checked + span { background: var(--k-accent-soft); color: var(--k-accent); border-color: var(--k-accent); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--k-accent); outline-offset: 3px; }
/* Campo trampa para bots: invisible para personas y lectores de pantalla. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.form-alert { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--k-danger); color: var(--k-danger); font-size: 15px; line-height: 1.5; }

.thanks { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; animation: k-rise .6s var(--ease); }
.thanks img { width: 160px; height: auto; animation: k-bob 5s ease-in-out infinite; }
.thanks h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.thanks p { font-size: 17px; line-height: 1.5; color: var(--k-muted); max-width: 34ch; overflow-wrap: anywhere; }
.btn-outline { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--k-line-strong); background: transparent; color: var(--k-ink); cursor: pointer; font: 600 15px "Poppins", system-ui, sans-serif; }
.btn-outline:hover { background: var(--k-accent-soft); }

/* ------------------------------------------------------------------ pie */
.footer { border-top: 2px solid var(--k-line); }
.footer-in { max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.footer-brand img { width: 24px; height: 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.footer nav a { color: var(--k-muted); }
.footer nav a:hover { color: var(--k-ink); }
.footer small { font-size: 14px; color: var(--k-muted); }


/* =====================================================================
   v3 · SELECTOR DE LÍNEA DE NEGOCIO Y MODO "CAMBIO DE DIVISAS"
   ===================================================================== */
@keyframes k-pulse { 0% { box-shadow: 0 0 0 0 rgba(46,230,160,.6); } 100% { box-shadow: 0 0 0 10px rgba(46,230,160,0); } }
@keyframes k-pulse-amber { 0% { box-shadow: 0 0 0 0 rgba(245,179,1,.6); } 100% { box-shadow: 0 0 0 10px rgba(245,179,1,0); } }
@keyframes k-ring { 0% { stroke-dashoffset: 603; } 70%, 100% { stroke-dashoffset: 0; } }

/* ---- selector Servicios TI / Cambio de divisas */
.modo-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; }
.modo-switch--nav { background: var(--k-accent-soft); border: 1px solid var(--k-line); margin-right: 8px; }
.modo-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--k-accent); box-shadow: 0 6px 18px rgba(8,122,102,.3); transition: transform .45s var(--ease); }
[data-linea="fx"] .modo-pill { transform: translateX(100%); }
.modo-switch button { position: relative; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: none; background: transparent; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--k-ink); transition: color .3s; }
.modo-switch button[aria-pressed="true"] { color: var(--k-accent-ink); }
.modo-movil { display: none; justify-content: center; margin-top: 8px; }
@media (max-width: 1100px) {
  .modo-switch--nav { display: none; }
  .modo-movil { display: flex; }
}
@media (max-width: 380px) { .modo-switch button { padding: 0 10px; font-size: 13px; gap: 6px; } }

/* ---- hero de divisas */
.hero--fx { grid-template-columns: repeat(auto-fit, minmax(min(100%,380px),1fr)); }
.fx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; animation: k-rise .8s var(--ease) both; }
.fx-pill [data-tasa] { font-variant-numeric: tabular-nums; }
.dot-live { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #2ee6a0; animation: k-pulse 1.6s ease-out infinite; }
.hero-title--fx { font-size: clamp(42px,6vw,86px); }
.hero-title .w--rot-fx { min-width: 5.4ch; padding-bottom: .08em; }
.fx-coins { display: flex; align-items: center; gap: 16px; animation: k-rise .8s var(--ease) .6s both; }
.fx-coins > span { font-size: 15px; font-weight: 600; color: var(--k-muted); }

.coins { display: flex; align-items: center; }
.coin { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--k-hl); box-shadow: 0 6px 16px rgba(0,0,0,.15); display: grid; place-items: center; }
.coin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coin--usdt { background: #26a17b; }
.coin--usdt img { width: 58%; height: 58%; object-fit: contain; }
.coin-bob { display: flex; animation: k-bob var(--t,5s) ease-in-out var(--dl,0s) infinite; }
.coins--lg .coin-bob + .coin-bob { margin-left: -14px; }
.coins--md .coin { width: 56px; height: 56px; }
.coins--md .coin-bob + .coin-bob { margin-left: -16px; }
.coins--sm .coin { width: 30px; height: 30px; }
.coins--sm .coin + .coin { margin-left: -10px; }

/* ---- tarjeta de cotización */
.fx-card-wrap { position: relative; justify-self: center; width: min(100%,480px); animation: k-pop 1s var(--ease) .2s both; }
.fx-glow { position: absolute; inset: 8% -4% -4% 8%; border-radius: 40px; background: conic-gradient(from 0deg,#2ee6a0,#0fa58a,transparent 40%,#1fd18f 60%,transparent 80%,#2ee6a0); filter: blur(50px); opacity: .55; animation: k-spin 16s linear infinite; }
.fx-peek { position: absolute; right: 18px; top: -86px; width: 120px; height: auto; z-index: 0; filter: drop-shadow(0 12px 18px rgba(6,60,48,.25)); animation: k-bob 6s ease-in-out infinite; }
.fx-card { position: relative; z-index: 1; border-radius: 32px; padding: clamp(20px,3vw,28px); display: flex; flex-direction: column; gap: 14px; }
.fx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fx-card-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--k-muted); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #f5b301; animation: k-pulse-amber 1.6s ease-out infinite; }
.live.is-live .dot { background: #2ee6a0; animation-name: k-pulse; }

.calc-pair { position: relative; display: flex; flex-direction: column; gap: 8px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border-radius: 20px; background: var(--k-input); border: 1px solid var(--k-line); }
.calc-label { font-size: 14px; font-weight: 600; color: var(--k-muted); }
.calc-row { display: flex; align-items: center; gap: 12px; }
.calc-amount, .calc-out { flex: 1; min-width: 0; font-size: clamp(26px,3vw,32px); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-amount { border: none; background: transparent; color: var(--k-ink); padding: 0; outline: none; }
.calc-out { color: var(--k-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cur { position: relative; display: flex; align-items: center; gap: 8px; flex: none; padding: 6px 32px 6px 6px; border-radius: 999px; background: var(--k-glass); border: 1px solid var(--k-line-strong); }
.cur:focus-within { outline: 2px solid var(--k-accent); outline-offset: 2px; }
.cur select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; }
.cur-ico { width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.cur-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cur-ico.is-usdt { background: #26a17b; }
.cur-ico.is-usdt img { width: 60%; height: 60%; object-fit: contain; }
.cur-code { font-size: 16px; font-weight: 700; }
.cur-chev { position: absolute; right: 10px; pointer-events: none; }
.swap { position: absolute; left: 50%; top: 50%; z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; display: grid; place-items: center; border: 4px solid var(--k-bg); background: var(--k-accent); color: var(--k-accent-ink); cursor: pointer; box-shadow: 0 8px 20px rgba(8,122,102,.35); transition: transform .3s var(--ease); }
.swap:hover { transform: scale(1.08); }
.swap:active { transform: scale(.95); }
.swap-ico { display: grid; place-items: center; transition: transform .5s var(--ease); }
.calc-meta { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 0; margin: 0; font-size: 14px; }
.calc-meta div { display: flex; justify-content: space-between; gap: 12px; }
.calc-meta dt { color: var(--k-muted); }
.calc-meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-time { display: inline-flex; align-items: center; gap: 6px; color: var(--k-accent); }
.btn--block { width: 100%; min-height: 56px; justify-content: center; }
.calc-note { font-size: 12px; line-height: 1.4; color: var(--k-muted); text-align: center; }

/* ---- marquesina de tasas */
.ticker { padding: 8px 0 clamp(24px,4vw,40px); }
.ticker .marquee { opacity: 1; -webkit-mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.ticker .marquee-track { padding: 18px 0; animation-duration: 40s; }
.ticker .marquee-group { gap: 56px; padding-right: 56px; }
.tk-item { display: flex; align-items: center; gap: 14px; flex: none; }
.tk-par { font-size: 16px; font-weight: 700; white-space: nowrap; }
.tk-val { font-size: 15px; color: var(--k-muted); white-space: nowrap; }
.tk-val strong { color: var(--k-ink); font-variant-numeric: tabular-nums; }
.tk-item--fast { gap: 10px; color: var(--k-accent); }
.tk-item--fast .tk-par { color: var(--k-ink); }

/* ---- pares y empresas */
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); gap: 16px; }
.pair { border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 24px; transition: transform .4s var(--ease); }
.pair:hover { transform: translateY(-4px); }
.pair-body { display: flex; flex-direction: column; gap: 6px; }
.pair h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.pair p { font-size: 15px; line-height: 1.5; color: var(--k-muted); }
.pair-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rate-box { padding: 12px 14px; border-radius: 16px; background: var(--k-accent-soft); display: flex; flex-direction: column; gap: 2px; }
.rate-box span { font-size: 13px; color: var(--k-muted); }
.rate-box strong { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-line { margin-top: auto; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--k-line-strong); background: transparent; color: var(--k-ink); cursor: pointer; font: 600 15px "Poppins", system-ui, sans-serif; transition: background .2s; }
.btn-line:hover { background: var(--k-accent-soft); }

.biz { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px,4vw,44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: linear-gradient(100deg,rgba(4,52,43,.94) 30%,rgba(4,58,48,.55)), url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=70") center/cover, #04493d; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), var(--k-shadow); }
.biz-copy { display: flex; align-items: center; gap: 20px; }
.biz-ico { width: 60px; height: 60px; flex: none; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); color: #a6f8d6; }
.biz-copy > div:last-child { display: flex; flex-direction: column; gap: 6px; }
.biz h3 { font-size: clamp(22px,2.4vw,28px); font-weight: 700; letter-spacing: -0.02em; }
.biz p { font-size: 16px; line-height: 1.5; color: #e3fbf2; }
.btn--light { min-height: 52px; height: auto; background: #fff; color: #04493d; }
.btn--light:hover { color: #04493d; }

/* ---- 15 minutos */
.fast { border-radius: 32px; padding: clamp(28px,5vw,56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,300px),1fr)); align-items: center; gap: clamp(32px,5vw,64px); }
.ring { position: relative; justify-self: center; width: min(100%,280px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 14; }
.ring-track { stroke: var(--k-line); }
.ring-fill { stroke-linecap: round; stroke-dasharray: 603; animation: k-ring 5s cubic-bezier(.65,0,.35,1) infinite; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: var(--k-muted); }
.ring-num { font-size: clamp(64px,8vw,88px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--k-ink); }
.fast-copy { display: flex; flex-direction: column; gap: 24px; }
.h2--md { font-size: clamp(30px,3.8vw,46px); line-height: 1.08; max-width: 16ch; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.benefits li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; }
.benefit-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--k-accent-soft); color: var(--k-accent); }

/* Qué línea se ve: lo decide el atributo data-linea de <html>, que pone
   tema.js ANTES de pintar (así no parpadea al volver a la página en Divisas).
   Sin JavaScript se ve Servicios TI. */
.modo[data-modo="fx"] { display: none; }
[data-linea="fx"] .modo[data-modo="fx"] { display: block; }
[data-linea="fx"] .modo[data-modo="ti"] { display: none; }
