/* Sistema visual de habacuck.com aplicado a partners (portado del prototipo aprobado). */
/* Sistema visual de habacuck.com (tokens reales del tema) aplicado al prototipo de partners. */

:root {
  --paper: #FBFBFB; --paper-2: #F2F3EF; --ink: #141518; --ink-soft: #55575C; --rule: #E0E2DC;
  --lima: #BDFB15; --lima-glow: #E5FF7E; --lima-edge: #A6E00A;
  --bosque: #1B6B4C; --bosque-deep: #124B36;
  --coral: #E06666; --coral-ink: #B84A4A;
  --on-bosque: #F4FBF6;
  --font: 'Archivo', "Helvetica Neue", system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --marker: 'Caveat', "Bradley Hand", cursive;
  --gutter: clamp(1.1rem, 4.5vw, 4rem);
  --maxw: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bosque); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--lima); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* marcador lima, firma de la web */
.mk { background: var(--lima); color: var(--ink); padding: 0 .14em; border-radius: .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.it { font-style: italic; }

/* botones en píldora */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.25rem; padding: .7rem 1.5rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.lima { background: var(--lima); color: var(--ink); border-color: var(--lima); }
.btn.ol { background: transparent; color: var(--ink); }
.dark .btn.ol { color: var(--paper); border-color: var(--paper); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* aviso breve */
#toast { width: max-content; position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); border: 2px solid var(--lima); padding: .85rem 1.3rem; border-radius: 999px; font-weight: 600; max-width: min(92vw, 30rem); text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* banda oscura con estrellas, igual que la web */
.band { background: var(--ink); color: var(--lima); overflow: hidden; white-space: nowrap; padding: 1rem 0; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.band span { display: inline-block; padding-right: 2.2rem; animation: marquee 26s linear infinite; }
.band i { color: var(--coral); font-style: normal; padding: 0 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

input[type=text] { width: 100%; min-height: 3.25rem; border: 2px solid var(--ink); border-radius: 14px; padding: .7rem 1rem; background: #fff; }
input[type=range] { width: 100%; accent-color: var(--bosque); height: 2rem; }

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


/* Concepto A · CAMINO: una app que te acompaña. Siempre te dice cuál es el próximo paso y cuánto falta para el siguiente logro. */
body { padding-bottom: 6rem; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(251,251,251,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top .in { max-width: var(--maxw); margin: 0 auto; padding: .8rem var(--gutter); display: flex; align-items: center; gap: 1rem; }
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.logo b { display: inline-block; width: .5em; height: .5em; background: var(--lima); border-radius: 50%; margin-left: .15em; }
.logo small { font-weight: 500; font-size: .75em; color: var(--ink-soft); letter-spacing: 0; margin-left: .35em; }
.nav { display: none; margin-left: auto; gap: .35rem; align-items: center; }
.nav a { text-decoration: none; white-space: nowrap; padding: .6rem .85rem; border-radius: 999px; font-weight: 600; color: var(--ink-soft); }
.nav a[aria-current=page] { background: var(--ink); color: var(--paper); }
.nav .btn { min-height: 2.9rem; margin-left: .5rem; }
.who { margin-left: auto; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--bosque); color: var(--on-bosque); display: grid; place-items: center; font-weight: 800; }
@media (min-width: 80rem) { .nav { display: flex; } .who { margin-left: .5rem; } body { padding-bottom: 0; } .tabs, .float { display: none !important; } }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .2rem .55rem; text-decoration: none; font-size: .72rem; font-weight: 600; color: var(--ink-soft); min-height: 4rem; }
.tabs a .ic { width: 1.6rem; height: 1.6rem; }
.tabs a[aria-current=page] { color: var(--ink); }
.tabs a[aria-current=page] .ic { background: var(--lima); border-radius: 10px; padding: 3px; width: 2.1rem; height: 1.7rem; box-sizing: border-box; }
.float { position: fixed; right: 1rem; bottom: 5rem; z-index: 29; box-shadow: 0 6px 20px rgba(0,0,0,.18); }

.page { max-width: var(--maxw); margin: 0 auto; padding: 1.8rem var(--gutter) 3rem; }
.h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); line-height: 1.02; margin-bottom: .9rem; }
.h1 .soft { font-weight: 400; }
.lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 38rem; }
.cols { display: grid; gap: 1.4rem; margin-top: 2rem; }
@media (min-width: 62rem) { .cols { grid-template-columns: 1.35fr 1fr; align-items: start; } }

.next { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 1.6rem; position: relative; overflow: hidden; }
.next::before { content: ""; position: absolute; right: -4rem; top: -4rem; width: 14rem; height: 14rem; background: radial-gradient(closest-side, rgba(189,251,21,.45), transparent); }
.sticker { display: inline-block; background: var(--lima); color: var(--ink); font-family: var(--marker); font-size: 1.35rem; padding: .1rem .9rem; border-radius: 999px; transform: rotate(-3deg); margin-bottom: .9rem; position: relative; }
.next h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); position: relative; }
.next p { color: #D5D7DB; margin: .6rem 0 1.3rem; max-width: 30rem; position: relative; }
.next .btn { position: relative; }

.card { background: #fff; border: 1.5px solid var(--rule); border-radius: 24px; padding: 1.3rem; }
.card h2, .card h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.card + .card { margin-top: 1.2rem; }

.path { list-style: none; margin: 0; padding: 0; }
.path li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; padding-bottom: 1.1rem; position: relative; }
.path li:not(:last-child)::before { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; bottom: .1rem; width: 2px; background: var(--rule); }
.path .dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-items: center; background: #fff; }
.path .done .dot { background: var(--lima); border-color: var(--ink); }
.path .now .dot { border-color: var(--ink); border-width: 3px; }
.path .now .dot::after { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--ink); }
.path .t { font-weight: 700; padding-top: .35rem; }
.path .todo .t { color: var(--ink-soft); font-weight: 500; }
.bar { height: .9rem; border-radius: 999px; background: var(--paper-2); border: 1.5px solid var(--ink); overflow: hidden; margin-top: .55rem; }
.bar i { display: block; height: 100%; background: var(--lima); border-right: 1.5px solid var(--ink); }
.small { font-size: .9rem; color: var(--ink-soft); }
.full { margin: 2.5rem calc(50% - 50vw) 0; border-radius: 0; }

.linkcard { background: var(--bosque); color: var(--on-bosque); border-radius: 24px; padding: 1.4rem; }
.linkcard h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.linkcard p { color: #CFE5D8; margin-bottom: 1rem; }
.linkcard code { display: block; background: rgba(0,0,0,.22); padding: .8rem 1rem; border-radius: 14px; margin-bottom: .9rem; font-weight: 700; word-break: break-all; }

.chips { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1.4rem 0; }
.chip { border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; min-height: 2.9rem; }
.chip[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.grid { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .grid.g3 { grid-template-columns: repeat(3, 1fr); } }
.offer { display: flex; flex-direction: column; gap: .6rem; }
.offer h3 { font-size: 1.2rem; margin: 0; }
.offer .price { font-weight: 800; font-size: 1.3rem; }
.offer .price small { font-weight: 500; font-size: .85rem; color: var(--ink-soft); }
.gain { display: inline-block; align-self: flex-start; background: var(--lima); border-radius: 8px; padding: .15rem .6rem; font-weight: 700; font-size: .95rem; }
.tag { display: inline-block; align-self: flex-start; background: var(--paper-2); border-radius: 999px; padding: .15rem .7rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.offer .btn { margin-top: auto; }
.sec { font-size: 1.5rem; margin: 2.2rem 0 .3rem; }

.steps { counter-reset: s; display: grid; gap: 1.2rem; }
.step { background: #fff; border: 1.5px solid var(--rule); border-radius: 24px; padding: 1.3rem; }
.step h2 { font-size: 1.3rem; display: flex; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.step h2 span { width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--lima); display: grid; place-items: center; font-size: 1rem; flex: none; }
.line { display: grid; grid-template-columns: 1fr auto; gap: .5rem .8rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--rule); }
.line:first-of-type { border-top: 0; }
.line b { display: block; }
.line .stepper { display: inline-flex; align-items: center; gap: .3rem; }
.sq { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; padding: 0; }
.qty { min-width: 1.6rem; text-align: center; font-weight: 800; }
.sum { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 1.5rem; }
@media (min-width: 62rem) { .sum { position: sticky; top: 6rem; } }
.sum dl { margin: 0 0 1.1rem; }
.sum .r { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #34363B; color: #D5D7DB; }
.sum .r b { color: var(--paper); }
.win { margin: 1.1rem 0; }
.win .l { color: #D5D7DB; }
.win .v { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; display: inline-block; margin-top: .2rem; }
.note { background: #2A2C31; border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1rem; font-size: .95rem; }

.avs { margin-top: 1.8rem; }
.avs .sec2 { margin: 0 0 .7rem; }
.avlist { display: grid; gap: .6rem; }
.aviso { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1.5px solid var(--rule); border-radius: 18px; padding: .75rem 1rem; text-decoration: none; font-size: .95rem; min-height: 3.4rem; transition: border-color .15s; }
.aviso:hover { border-color: var(--ink); }
.aviso .at { flex: 1; }
.aviso .ai { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; flex: none; }
.aviso .ai .ic { width: 1.1rem; height: 1.1rem; }
.aviso > .ic { color: var(--ink-soft); }
.offerhome { margin-top: 2.2rem; }
.offerhome .sec { margin: 0 0 .3rem; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.sec2 { font-size: 1.3rem; margin: 2rem 0 .2rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.tile { text-align: left; background: #fff; border: 1.5px solid var(--rule); border-radius: 24px; padding: 1.1rem; min-height: 10rem; display: flex; flex-direction: column; gap: .7rem; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile .ti { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--lima); display: grid; place-items: center; }
.tile b { display: block; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1; margin-bottom: .25rem; }
.tile small { display: block; font-size: .88rem; line-height: 1.3; color: var(--ink-soft); }
.tile .from { margin-top: auto; font-weight: 800; font-size: .92rem; display: flex; align-items: center; justify-content: space-between; gap: .35rem; border-top: 1px solid var(--rule); padding-top: .7rem; }
.prods { padding: .3rem 1.2rem; }
.prodrow { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--rule); }
.prodrow:first-child { border-top: 0; }
.prodrow b { display: block; font-size: 1.1rem; } .prodrow .small { display: block; }
.btn.sm { min-height: 2.9rem; padding: .4rem 1.1rem; }
@media (max-width: 30rem) { .prodrow { grid-template-columns: 1fr; gap: .5rem; } .prodrow .gain { background: none; padding: 0; color: var(--bosque); } .prodrow .btn { justify-self: start; } .tile { min-height: 9.5rem; padding: .95rem; } }
.empty { text-align: center; padding: 2rem 1rem; color: var(--ink-soft); }
.empty .btn { margin-top: 1rem; }

.client { display: grid; gap: .9rem; }
.client header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.client h3 { font-size: 1.25rem; margin: 0; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.stages div { font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.stages div::before { content: ""; display: block; height: .5rem; border-radius: 999px; background: var(--paper-2); border: 1.5px solid var(--rule); margin-bottom: .35rem; }
.stages .on::before { background: var(--lima); border-color: var(--ink); }
.stages .cur { color: var(--ink); font-weight: 800; }
.won { background: var(--lima); border-radius: 999px; padding: .1rem .8rem; font-weight: 800; font-size: .88rem; }

.moment { margin-top: 2rem; }
.moment h2 { font-size: 1.5rem; }
.mat { display: flex; flex-direction: column; gap: .6rem; }
.mat h3 { font-size: 1.1rem; margin: 0; }
.mat .btn { margin-top: auto; }
.bigstat { display: grid; gap: 1rem; margin-top: 1.4rem; }
@media (min-width: 46rem) { .bigstat { grid-template-columns: 1fr 1fr; } }
.row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--rule); align-items: center; }
.row:first-of-type { border-top: 0; }
.row b { display: block; }
.st { font-size: .85rem; font-weight: 700; border-radius: 999px; padding: .15rem .7rem; background: var(--paper-2); white-space: nowrap; }
.st.lista { background: var(--lima); }


/* formularios de acceso */
.auth { max-width: 32rem; margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.auth h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: .8rem; }
.auth .lead { margin-bottom: 1.6rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 700; }
.field input, .field textarea { width: 100%; min-height: 3.25rem; border: 2px solid var(--ink); border-radius: 14px; padding: .7rem 1rem; background: #fff; font: inherit; }
.field textarea { min-height: 7rem; resize: vertical; }
.field .err { color: var(--coral-ink); font-weight: 600; font-size: .95rem; }
.okbox { background: var(--lima); border-radius: 18px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-weight: 600; }
.hero-pub { padding: 3rem var(--gutter) 2rem; max-width: var(--maxw); margin: 0 auto; }
.hero-pub .h1 { font-size: clamp(2.4rem, 8vw, 5rem); }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.foot { max-width: var(--maxw); margin: 0 auto; padding: 2rem var(--gutter) 3rem; color: var(--ink-soft); font-size: .92rem; }
.linkbtn { background: none; border: 0; padding: .6rem .85rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }

a.chip { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
a.chip[aria-pressed=true] { background: var(--ink); color: var(--paper); }
form.salir { margin: 0; display: none; }
@media (min-width: 80rem) { form.salir { display: block; } }
.who { text-decoration: none; }
a.tile, a.aviso { text-decoration: none; }
a.tile:hover { border-color: var(--ink); }

/* El avatar no se aplasta aunque el menú sea ancho */
.who { flex: none; width: 2.7rem; height: 2.7rem; min-width: 2.7rem; aspect-ratio: 1; }
.top .in { gap: .75rem; }
.top .in .nav { min-width: 0; flex-wrap: nowrap; }
.nav a { padding: .6rem .7rem; }
.logo { flex: none; }
form.salir .linkbtn { white-space: nowrap; }

.top .in .nav { flex: 1; justify-content: flex-end; }
.nav .btn { white-space: nowrap; flex: none; min-height: 2.9rem; padding: .5rem 1.1rem; }

.field select { width: 100%; min-height: 3.25rem; border: 2px solid var(--ink); border-radius: 14px; padding: .7rem 1rem; background: #fff; font: inherit; }

/* Mis enlaces */
.enlace-fila { display: grid; gap: .6rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.enlace-fila:first-of-type { border-top: 0; }
.enlace-fila b { display: block; font-size: 1.1rem; } .enlace-fila .small { display: block; }
.enlace-url { display: block; background: var(--paper-2); border-radius: 12px; padding: .7rem .9rem; font-weight: 700; word-break: break-all; font-size: .92rem; }
.enlace-fila > .btn { justify-self: start; }
.enlace-nombre-campo { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.enlace-nombre-campo input { flex: 1; min-width: 9rem; min-height: 2.9rem; border: 2px solid var(--ink); border-radius: 12px; padding: .4rem .8rem; background: #fff; font: inherit; }
.metricas { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .8rem; }
.metrica { background: #fff; border: 1.5px solid var(--rule); border-radius: 20px; padding: 1rem; }
.metrica b { display: block; font-size: 1.8rem; letter-spacing: -.02em; line-height: 1.1; }
.metrica span { color: var(--ink-soft); font-size: .9rem; }
.barras { display: flex; align-items: flex-end; gap: 2px; height: 8rem; margin-top: .8rem; }
.barras i { flex: 1; background: var(--lima); border: 1px solid var(--ink); border-radius: 3px 3px 0 0; min-width: 2px; }
.rank { display: grid; grid-template-columns: minmax(6rem, 10rem) 1fr auto auto; gap: .7rem; align-items: center; padding: .55rem 0; }
.rank-n { font-weight: 600; overflow-wrap: anywhere; }
.rank-barra { background: var(--paper-2); border-radius: 999px; height: .8rem; overflow: hidden; }
.rank-barra i { display: block; height: 100%; background: var(--lima); border-right: 1.5px solid var(--ink); }
@media (max-width: 30rem) { .rank { grid-template-columns: 1fr auto; } .rank-barra { grid-column: 1 / -1; order: 3; } }
.tabs { grid-template-columns: repeat(6, 1fr); }
.tabs a { font-size: .68rem; }

/* El menú nunca pisa al logo: si no entra, se achica el espacio, no se superpone. */
.top .in { flex-wrap: nowrap; }
.top .in .nav { gap: .1rem; overflow: hidden; }
.nav a { padding: .6rem .6rem; }
.nav .btn { margin-left: .4rem; }

/* Encabezado de las páginas públicas: siempre visible, y en celular solo el botón principal */
.nav.pub { display: flex; }
@media (max-width: 30rem) { .nav.pub a:not(.btn) { display: none; } .nav.pub .btn { margin-left: 0; } .logo small { display: none; } }

/* Escala tipográfica más cómoda para el uso diario (antes 18 px base y títulos de hasta 64 px). */
html { font-size: 16.5px; }
.h1 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); line-height: 1.08; }
.hero-pub .h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.auth h1 { font-size: clamp(1.7rem, 5.5vw, 2.3rem); }
.lead { font-size: 1rem; }
.metrica b { font-size: 1.55rem; }
.next h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
.offerhome .sec, .sec { font-size: clamp(1.35rem, 3.4vw, 1.75rem); }
