/* Lagarto Growth Lab · landings por rubro (04/12/2026). Va después de lagarto.css.
   Las institucionales (aseguradoras, imprentas, pinturerías, desarrolladoras) usan los tokens de siempre;
   la de emprendedores usa .tema-emprende: más color y movimiento. */

/* ── Portada de rubro: texto + tablero "todo en orden" ── */
.nicho-portada { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 84px) clamp(44px, 6vw, 88px) }
.nicho-portada canvas.rastro { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .4 }
.nicho-portada .envoltura { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center }
.nicho-portada .texto { display: grid; gap: 22px; min-width: 0 }
.nicho-portada h1 { font-size: clamp(1.8rem, 4vw, 3.05rem) }
.nicho-portada .bajada { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 58ch }
@media (max-width: 900px) { .nicho-portada .envoltura { grid-template-columns: minmax(0, 1fr) } }

.calma { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 10px; min-width: 0;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px color-mix(in srgb, var(--brand) 45%, transparent) }
.calma .rotulo { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 10px }
.calma ul { list-style: none; padding: 0; display: grid; gap: 8px }
.calma li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: var(--bg); font-size: .92rem }
.calma li svg { width: 20px; height: 20px; color: var(--brand) }
.calma li small { font-family: var(--f-mono); font-size: .7rem; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap }
.calma .pie-calma { font-size: .8rem; color: var(--muted) }

/* ── Lo que pasa en el rubro ── */
.dolores { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: dolor }
.dolores > div { counter-increment: dolor; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: grid; gap: 8px; align-content: start }
.banda:not(.suave) .dolores > div { background: var(--surface) }
.dolores > div::before { content: counter(dolor, decimal-leading-zero); font-family: var(--f-mono); font-size: .8rem; color: var(--signal) }
.dolores p { color: var(--muted); font-size: .95rem }

/* ── Dato con fuente ── */
.dato { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 4vw, 40px); align-items: center; background: #0B1712; color: #F4F7F3; border: 1px solid var(--line);
  border-radius: 24px; padding: clamp(24px, 5vw, 48px) }
.dato b { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1; color: var(--acento); letter-spacing: -0.04em }
.dato p { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: #DDE6E0 }
.dato .fuente { display: block; margin-top: 10px; font-size: .82rem; color: #A9B8B0 }
.dato .fuente a { color: inherit }
@media (max-width: 640px) { .dato { grid-template-columns: minmax(0, 1fr) } }

/* ── Cierre con CTA ── */
.cierre-nicho { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto }
.cierre-nicho p { color: var(--muted); font-size: 1.08rem }

/* ════════════════════ Emprendedores: color y movimiento ════════════════════ */
.tema-emprende { --coral: #FF6B4A; --violeta: #7B5CFF; --sol: #FFC93C; --cielo: #33C3F0; --rosa: #FF5FA2 }
.tema-emprende h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); letter-spacing: -0.035em }
.marcador { display: inline-block; white-space: nowrap; background: var(--acento); color: #10200A; padding: 0 .18em .04em; border-radius: .18em; transform: rotate(-2deg) }
.emp-portada { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px) }
.emp-portada .envoltura { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 56px); align-items: center }
.emp-portada .texto { display: grid; gap: 22px; min-width: 0 }
.emp-portada .bajada { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 52ch }
@media (max-width: 900px) { .emp-portada .envoltura { grid-template-columns: minmax(0, 1fr) } }

.manchas { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden }
.manchas i { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .45 }
.manchas i:nth-child(1) { width: 380px; height: 380px; background: var(--acento); top: -120px; left: -80px }
.manchas i:nth-child(2) { width: 320px; height: 320px; background: var(--coral); top: 30%; right: -100px; opacity: .3 }
.manchas i:nth-child(3) { width: 280px; height: 280px; background: var(--violeta); bottom: -120px; left: 35%; opacity: .25 }
.manchas i:nth-child(4) { width: 200px; height: 200px; background: var(--cielo); top: 10%; left: 45%; opacity: .25 }

.rota { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.15em }
.rota span { grid-area: 1 / 1; color: var(--brand) }

.stickers { position: relative; min-height: 420px }
.post { position: absolute; width: 58%; aspect-ratio: 4 / 5; border-radius: 22px; padding: 16px; display: grid; align-content: space-between;
  color: #10200A; box-shadow: 0 20px 40px -18px rgba(0,0,0,.35); font-family: var(--f-display); font-weight: 600 }
.post small { font-family: var(--f-mono); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8 }
.post b { font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.1 }
.post .foto { border-radius: 14px; background: rgba(255,255,255,.55); aspect-ratio: 1; display: grid; place-items: center; font-family: var(--f-mono);
  font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; border: 2px dashed rgba(16,32,10,.3) }
.post.p1 { background: var(--acento); left: 0; top: 4%; transform: rotate(-7deg) }
.post.p2 { background: var(--sol); right: 0; top: 0; transform: rotate(6deg) }
.post.p3 { background: var(--coral); left: 22%; top: 38%; transform: rotate(-2deg); color: #fff }
.post.p3 .foto { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.2) }
.chapa { position: absolute; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--ink); color: var(--bg); white-space: nowrap;
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.4) }
.chapa.c1 { right: 4%; bottom: 8%; background: var(--violeta); color: #fff }
.chapa.c2 { left: -2%; bottom: 22%; background: var(--cielo); color: #06202A }
@media (max-width: 900px) { .stickers { min-height: 360px; max-width: 460px; width: 100%; margin: 0 auto } }

/* Cinta que corre */
.cinta-color { background: #0B1712; color: #F4F7F3; overflow: hidden; padding-block: 16px; transform: rotate(-1.5deg); margin-block: -10px 10px; position: relative; z-index: 2 }
.cinta-color .pista { display: flex; gap: 28px; width: max-content; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.6rem); white-space: nowrap }
.cinta-color .pista span:nth-child(4n+1) { color: var(--acento) } .cinta-color .pista span:nth-child(4n+2) { color: var(--sol) }
.cinta-color .pista span:nth-child(4n+3) { color: var(--cielo) } .cinta-color .pista span:nth-child(4n) { color: var(--rosa) }

/* Tarjetas de color */
.colores { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) }
.colores > div { border-radius: 24px; padding: 26px; display: grid; gap: 12px; align-content: start; color: #10200A; min-width: 0 }
.colores > div:nth-child(1) { background: var(--acento) } .colores > div:nth-child(2) { background: var(--sol) }
.colores > div:nth-child(3) { background: var(--cielo); color: #06202A } .colores > div:nth-child(4) { background: var(--coral); color: #fff }
.colores h3 { font-size: 1.3rem }
.colores p { opacity: .85 }
.colores .num { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .75 }
.colores ul { padding-left: 18px; display: grid; gap: 4px; font-size: .95rem }

/* Cómo funciona: fotos reales → plantillas → publicado */
.flujo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: flujo }
.flujo > div { counter-increment: flujo; position: relative; border: 2px solid var(--ink); border-radius: 22px; padding: 24px; background: var(--surface); display: grid; gap: 10px; align-content: start;
  box-shadow: 6px 6px 0 var(--ink) }
.flujo > div::before { content: counter(flujo); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display);
  font-weight: 600; background: var(--acento); color: #10200A; border: 2px solid var(--ink) }
.flujo > div:nth-child(2)::before { background: var(--sol) } .flujo > div:nth-child(3)::before { background: var(--coral); color: #fff }
.flujo p { color: var(--muted) }
@media (max-width: 860px) { .flujo { grid-template-columns: minmax(0, 1fr) } }

.tema-emprende .boton { border-width: 2px }
.tema-emprende .boton.gordo { padding: 16px 28px; font-size: 1.05rem; box-shadow: 4px 4px 0 var(--ink); border-color: var(--ink) }
.tema-emprende .boton.gordo:hover { filter: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink) }
.tema-emprende .formulario { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--acento) }

/* ── Movimiento (solo si no se pidió menos) ── */
@media (prefers-reduced-motion: no-preference) {
  .aparece { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1) }
  .aparece.visto { opacity: 1; transform: none }
  .colores.aparece > div, .flujo.aparece > div, .dolores.aparece > div { opacity: 0; transform: translateY(24px) rotate(-1deg); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1) }
  .aparece.visto > div { opacity: 1; transform: none }
  .aparece.visto > div:nth-child(2) { transition-delay: .1s } .aparece.visto > div:nth-child(3) { transition-delay: .2s } .aparece.visto > div:nth-child(4) { transition-delay: .3s }
  .colores > div { transition: transform .25s ease }
  .colores.visto > div:hover { transform: translateY(-6px) rotate(-1.2deg) }

  .manchas i { animation: flota 14s ease-in-out infinite alternate }
  .manchas i:nth-child(2) { animation-duration: 17s } .manchas i:nth-child(3) { animation-duration: 20s } .manchas i:nth-child(4) { animation-duration: 12s }
  @keyframes flota { to { transform: translate(60px, 40px) scale(1.15) } }

  .post.p1 { animation: bamboleo1 6s ease-in-out infinite } .post.p2 { animation: bamboleo2 7s ease-in-out infinite } .post.p3 { animation: bamboleo3 5.5s ease-in-out infinite }
  @keyframes bamboleo1 { 50% { transform: rotate(-4deg) translateY(-12px) } }
  @keyframes bamboleo2 { 50% { transform: rotate(9deg) translateY(10px) } }
  @keyframes bamboleo3 { 50% { transform: rotate(1deg) translateY(-8px) } }
  .chapa { animation: late 2.6s ease-in-out infinite } .chapa.c2 { animation-delay: 1.3s }
  @keyframes late { 50% { transform: scale(1.08) rotate(-3deg) } }

  .marcador { animation: estampa .7s .3s cubic-bezier(.2,1.4,.4,1) both }
  @keyframes estampa { from { transform: rotate(-12deg) scale(.4); opacity: 0 } }

  .rota span { animation: rota 9s infinite; opacity: 0 }
  .rota span:nth-child(2) { animation-delay: 3s } .rota span:nth-child(3) { animation-delay: 6s }
  @keyframes rota { 0% { opacity: 0; transform: translateY(100%) } 4%, 30% { opacity: 1; transform: none } 34%, 100% { opacity: 0; transform: translateY(-100%) } }

  .cinta-color .pista { animation: corre 30s linear infinite }
  @keyframes corre { to { transform: translateX(-50%) } }
}
@media (prefers-reduced-motion: reduce) { .rota span:not(:first-child) { display: none } }

.nicho-sol { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) }

/* ── 05/12: lagartos de fondo en toda la página ── */
html:has(body.nicho) { background: var(--bg) }
body.nicho { background: transparent }
canvas.fondo-lagartos { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: .55 }
body.nicho > main, body.nicho > footer { position: relative; z-index: 1 }
body.nicho .banda.suave { background: color-mix(in srgb, var(--surface) 72%, transparent) }
body.nicho .sitio-pie { background: color-mix(in srgb, var(--bg) 70%, transparent) }

/* ── Tablero en vivo ── */
.punto-vivo { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; margin-right: 8px; vertical-align: middle }
.calma .contador { color: var(--brand); font-variant-numeric: tabular-nums }
.calma.animado li { opacity: .38; transform: scale(.98); transition: opacity .35s ease, transform .45s cubic-bezier(.2,1.6,.4,1), background .35s }
.calma.animado li svg { transform: scale(0); transition: transform .4s cubic-bezier(.2,1.8,.4,1) }
.calma.animado li small { opacity: 0; transition: opacity .3s .15s }
.calma.animado li.listo { opacity: 1; transform: none; background: var(--brand-soft) }
.calma.animado li.listo svg { transform: none }
.calma.animado li.listo small { opacity: 1 }
@media (prefers-reduced-motion: no-preference) {
  .punto-vivo { animation: vivo 1.4s ease-in-out infinite }
  @keyframes vivo { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, #E5484D 25%, transparent) } }
  .contador.late { animation: sube .5s cubic-bezier(.2,1.8,.4,1) }
  @keyframes sube { from { transform: translateY(6px) scale(1.25) } }
  .nicho-portada .texto > * { animation: entra .7s cubic-bezier(.2,.8,.2,1) both }
  .nicho-portada .texto > :nth-child(2) { animation-delay: .08s } .nicho-portada .texto > :nth-child(3) { animation-delay: .16s }
  .nicho-portada .texto > :nth-child(4) { animation-delay: .24s } .nicho-portada .texto > :nth-child(5) { animation-delay: .32s }
  .nicho-portada .calma { animation: entra .8s .3s cubic-bezier(.2,.8,.2,1) both, flota-suave 6s 1.1s ease-in-out infinite }
  @keyframes entra { from { opacity: 0; transform: translateY(22px) } }
  @keyframes flota-suave { 50% { transform: translateY(-8px) } }
  .nicho-portada h1 em { background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--acento)), var(--brand)); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: brillo 5s linear infinite }
  @keyframes brillo { to { background-position: -200% 0 } }
  .nicho-sol.aparece > .servicio { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1), border-color .2s }
  .nicho-sol.aparece.visto > .servicio { opacity: 1; transform: none }
  .nicho-sol.visto > .servicio:nth-child(2) { transition-delay: .08s } .nicho-sol.visto > .servicio:nth-child(3) { transition-delay: .16s }
  .nicho-sol.visto > .servicio:nth-child(4) { transition-delay: .24s } .nicho-sol.visto > .servicio:nth-child(5) { transition-delay: .32s } .nicho-sol.visto > .servicio:nth-child(6) { transition-delay: .4s }
  .nicho-sol .servicio:hover { transform: translateY(-4px); border-color: var(--brand) }
  .nicho-sol .servicio:hover .icono { animation: sacude .5s }
  @keyframes sacude { 30% { transform: rotate(-10deg) scale(1.1) } 60% { transform: rotate(8deg) } }
  .dato.aparece { opacity: 0; transform: scale(.96) } .dato.aparece.visto { opacity: 1; transform: none; transition: opacity .6s, transform .7s cubic-bezier(.2,1.4,.4,1) }
}

/* ── Emprendedores: piezas reales en la portada ── */
.vitrina { position: relative; min-height: 520px }
.celu { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 230px; aspect-ratio: 9 / 16; border-radius: 30px; border: 8px solid #10200A;
  background: #10200A; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); z-index: 2 }
.celu img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.celu .despues { clip-path: inset(0 0 0 0) }
.celu .tag { position: absolute; left: 10px; top: 10px; z-index: 3; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; background: rgba(16,32,10,.75); color: #fff }
.celu .tag b { color: var(--acento); font-weight: 500 }
.celu .barra { position: absolute; left: 0; right: 0; top: 0; z-index: 3; width: 3px; height: 100%; background: var(--acento); box-shadow: 0 0 12px var(--acento); opacity: 0 }
.ig { position: absolute; width: 200px; background: #fff; color: #10200A; border-radius: 16px; padding: 8px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); z-index: 1; font-size: .78rem }
.ig header { display: flex; align-items: center; gap: 6px; padding: 2px 4px 8px; font-weight: 700 }
.ig header i { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--sol), var(--coral), var(--violeta), var(--sol)); flex: none }
.ig img { width: 100%; height: auto; border-radius: 10px; display: block; aspect-ratio: 4 / 5; object-fit: cover }
.ig p { padding: 8px 4px 2px; line-height: 1.35 }
.ig p b { font-weight: 700 }
.ig small { display: block; padding: 2px 4px; color: #5d6b63; font-size: .7rem }
.ig.i1 { left: 0; top: 40px; transform: rotate(-8deg) }
.ig.i2 { right: 0; top: 150px; transform: rotate(7deg) }
.vitrina .chapa.c1 { right: 2%; bottom: 6%; z-index: 3 } .vitrina .chapa.c2 { left: 0; bottom: 14%; z-index: 3 }
.vitrina .chapa.c3 { left: 50%; top: -14px; transform: translateX(-50%); background: var(--acento); color: #10200A; z-index: 4 }
.vitrina-nota { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 10px }
.vitrina-nota a { color: inherit }
@media (max-width: 900px) { .vitrina { min-height: 470px; max-width: 460px; width: 100%; margin: 0 auto } .celu { width: 200px } .ig { width: 160px } }
@media (max-width: 420px) { .ig { width: 136px; font-size: .7rem } .ig p { display: none } }
@media (prefers-reduced-motion: no-preference) {
  .celu .despues { animation: revela 7s ease-in-out infinite }
  .celu .barra { animation: barre 7s ease-in-out infinite }
  @keyframes revela { 0%, 18% { clip-path: inset(0 0 0 100%) } 45%, 85% { clip-path: inset(0 0 0 0) } 100% { clip-path: inset(0 0 0 100%) } }
  @keyframes barre { 0%, 18% { left: 100%; opacity: 0 } 20% { opacity: 1 } 45% { left: 0; opacity: 1 } 47%, 100% { left: 0; opacity: 0 } }
  .celu .tag .t-antes { animation: t1 7s infinite } .celu .tag .t-despues { animation: t2 7s infinite }
  @keyframes t1 { 0%, 30% { opacity: 1 } 35%, 95% { opacity: 0 } 100% { opacity: 1 } }
  @keyframes t2 { 0%, 30% { opacity: 0 } 35%, 95% { opacity: 1 } 100% { opacity: 0 } }
  .ig.i1 { animation: bamboleo1 6s ease-in-out infinite } .ig.i2 { animation: bamboleo2 7s ease-in-out infinite }
  .celu { animation: flota-celu 5s ease-in-out infinite }
  @keyframes flota-celu { 50% { transform: translateX(-50%) translateY(-10px) } }
}
.celu .tag span { display: inline-block } .celu .tag .t-despues { position: absolute; left: 8px; top: 4px }
@media (prefers-reduced-motion: reduce) { .celu .tag .t-antes { opacity: 0 } }
