/* Inversiones al Día · página pública. Paleta «Esmeralda y oro» (marca/README.md). */
:root {
  --primario: #064E3B;
  --secundario: #10B981;
  --acento: #F5B301;
  --noche: #0B1F2A;
  --crema: #F6F4EC;
  --gris: #5B6475;
  --borde: #DDE5DC;
  --degradado: linear-gradient(135deg, var(--primario), var(--secundario));
  --radio: 22px;
  --sombra: 0 18px 50px rgba(11, 31, 42, .12);
  --letra: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--letra); color: var(--noche); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; max-width: 18ch; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
.contenedor { width: min(1180px, 100% - 32px); margin-inline: auto; }
.saltar { position: absolute; left: -999px; top: 8px; background: var(--noche); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.saltar:focus { left: 8px; }
.texto-marca { background: var(--degradado); -webkit-background-clip: text; background-clip: text; color: transparent; }
.texto-sol { color: var(--acento); }

/* ---------------------------------------------------------------- botones */
.boton { display: inline-flex; align-items: center; gap: .5em; padding: 15px 26px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; border: 2px solid transparent; }
.boton:hover { transform: translateY(-3px); }
.boton:focus-visible { outline: 3px solid var(--acento); outline-offset: 3px; }
.boton--sol { background: var(--acento); color: var(--noche); box-shadow: 0 12px 30px rgba(245, 179, 1, .45); }
.boton--acento:hover { box-shadow: 0 18px 40px rgba(245, 179, 1, .6); }
.boton--borde { border-color: rgba(255, 255, 255, .75); color: #fff; }
.boton--borde:hover { background: rgba(255, 255, 255, .12); }
.boton--claro { background: #fff; color: var(--primario); }
.boton--chico { padding: 9px 18px; font-size: .92rem; }

/* -------------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav__fila { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.con-fondo { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); box-shadow: 0 4px 24px rgba(11, 31, 42, .08); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 1.15rem; font-weight: 600; }
.marca b { font-weight: 900; }
.nav.con-fondo .marca { color: var(--noche); }
.nav.con-fondo .marca b { color: var(--primario); }
.nav__enlaces { display: flex; align-items: center; gap: 26px; }
.nav__enlaces a:not(.boton) { color: #fff; text-decoration: none; font-weight: 600; opacity: .92; }
.nav.con-fondo .nav__enlaces a:not(.boton) { color: var(--noche); }
.nav.con-fondo .boton--claro { background: var(--primario); color: #fff; }
.nav__hamburguesa { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__hamburguesa span { display: block; width: 26px; height: 3px; margin: 5px 0; background: #fff; border-radius: 3px; transition: transform .25s, opacity .25s; }
.nav.con-fondo .nav__hamburguesa span { background: var(--noche); }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--degradado); padding: 130px 0 90px; min-height: 100vh; display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(to top, rgba(11, 31, 42, .18), transparent); }
.hero__brillo { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.hero__brillo--1 { width: 520px; height: 520px; background: #34D399; top: -160px; right: -120px; animation: latido 9s ease-in-out infinite; }
.hero__brillo--2 { width: 420px; height: 420px; background: #065F46; bottom: -180px; left: -140px; animation: latido 11s ease-in-out infinite reverse; }
@keyframes latido { 50% { transform: scale(1.15) translate(-20px, 20px); } }
.monedas .moneda { position: absolute; opacity: .16; animation: flotar 12s ease-in-out infinite; }
.moneda--1 { width: 90px; top: 18%; left: 46%; }
.moneda--2 { width: 54px; top: 70%; left: 8%; animation-delay: -4s !important; }
.moneda--3 { width: 70px; top: 12%; left: 6%; animation-delay: -8s !important; }
@keyframes flotar { 50% { transform: translateY(-28px) rotate(18deg); } }
.hero__fila { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.insignia { display: inline-block; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 900; letter-spacing: -.04em; margin-bottom: 22px; }
.resalte { position: relative; color: var(--acento); white-space: nowrap; }
.resalte svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .28em; overflow: visible; }
.resalte path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: trazo 1.2s .9s ease forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.hero__bajada { font-size: 1.18rem; max-width: 34em; opacity: .95; }
.hero__botones { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero__chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li { padding: 7px 14px; border-radius: 999px; background: rgba(11, 31, 42, .18); font-weight: 700; font-size: .88rem; }
.hero__chips li::before { content: "✓ "; color: var(--acento); }

.aparece { opacity: 0; transform: translateY(26px); animation: aparecer .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.aparece--2 { animation-delay: .12s; } .aparece--3 { animation-delay: .24s; } .aparece--4 { animation-delay: .36s; } .aparece--5 { animation-delay: .48s; }
@keyframes aparecer { to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- celular */
.hero__celular { position: relative; justify-self: center; }
.celular { width: 290px; height: 590px; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #E9EDF3, #A9B2C1); box-shadow: 0 40px 80px rgba(11, 31, 42, .45), inset 0 0 0 2px rgba(255, 255, 255, .6); animation: flotar-celular 6s ease-in-out infinite; }
@keyframes flotar-celular { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.celular__muesca { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 20px; background: #0B111C; z-index: 3; }
.celular__pantalla { height: 100%; border-radius: 36px; background: #F7F8FA; overflow: hidden; color: var(--noche); padding: 46px 14px 14px; position: relative; }
.app-cab { display: flex; justify-content: space-between; font-weight: 800; font-size: .95rem; margin-bottom: 12px; }
.punto-vivo { font-size: .7rem; color: #16A34A; display: flex; align-items: center; gap: 5px; font-weight: 800; }
.punto-vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; animation: pulso 1.4s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); } 100% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } }
.app-tarjeta { background: var(--degradado); color: #fff; border-radius: 20px; padding: 14px; display: grid; gap: 2px; box-shadow: 0 10px 24px rgba(6, 78, 59, .35); }
.app-tarjeta small { opacity: .9; font-size: .72rem; }
.app-tarjeta strong { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; }
.barra { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, .3); margin-top: 8px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--acento); border-radius: 9px; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.feed { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #EEF0F3; border-radius: 14px; padding: 10px; font-size: .78rem; animation: entra-cobro .5s cubic-bezier(.2, .7, .2, 1); }
.feed li i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; background: var(--crema); color: var(--primario); flex: none; }
.feed li div { flex: 1; min-width: 0; }
.feed li b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li small { display: block; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed li em { font-style: normal; font-weight: 800; font-size: .66rem; padding: 3px 8px; border-radius: 999px; background: #DCFCE7; color: #15803D; }
.feed li em.nequi { background: #F3E8FF; color: #7E22CE; }
.feed li em.sin-senal { background: #FEF3C7; color: #B45309; }
@keyframes entra-cobro { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.aviso { position: absolute; z-index: 5; left: -70px; top: 120px; display: flex; gap: 10px; align-items: center; background: #fff; color: var(--noche); padding: 10px 14px; border-radius: 16px; box-shadow: var(--sombra); font-size: .78rem; opacity: 0; transform: translateX(-20px) scale(.95); transition: opacity .45s, transform .45s; }
.aviso.visible { opacity: 1; transform: none; }
.aviso b { display: block; }
.aviso span { color: var(--gris); }

/* ----------------------------------------------------------------- franja */
.franja { background: var(--noche); color: #fff; overflow: hidden; padding: 22px 0; }
.franja__pista { display: flex; gap: 54px; width: max-content; animation: desfile 28s linear infinite; }
.franja span { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; font-style: italic; white-space: nowrap; display: flex; align-items: center; gap: 54px; }
.franja span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--primario); }
@keyframes desfile { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- secciones */
.seccion { padding: 110px 0; }
.seccion--crema { background: var(--crema); }
.seccion--noche { background: var(--noche); color: #fff; position: relative; overflow: hidden; }
.antetitulo { font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; color: var(--primario); margin-bottom: 12px; }
.antetitulo--sol { color: var(--acento); }
.rejilla { display: grid; gap: 22px; margin-top: 46px; }
.rejilla--4 { grid-template-columns: repeat(4, 1fr); }
.rejilla--3 { grid-template-columns: repeat(3, 1fr); }
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px; box-shadow: 0 8px 30px rgba(11, 31, 42, .05); transition: transform .3s, box-shadow .3s, border-color .3s; }
.tarjeta:hover { transform: translateY(-8px); box-shadow: var(--sombra); border-color: var(--secundario); }
.tarjeta p { color: var(--gris); margin: 0; }
.tarjeta--linea { border-top: 5px solid var(--primario); }
.icono { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; background: var(--crema); margin-bottom: 18px; }

/* ------------------------------------------------------------------ pasos */
.pasos { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: paso; position: relative; }
.pasos::before { content: ""; position: absolute; top: 32px; left: 8%; right: 8%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--primario), var(--secundario), var(--acento)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s .2s cubic-bezier(.2, .7, .2, 1); }
.pasos.visible::before { transform: scaleX(1); }
.paso { position: relative; background: #fff; border-radius: var(--radio); padding: 86px 24px 26px; box-shadow: 0 10px 30px rgba(11, 31, 42, .06); }
.paso p { color: var(--gris); margin: 0; }
.paso__num { position: absolute; top: 0; left: 24px; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; color: #fff; background: var(--degradado); box-shadow: 0 12px 26px rgba(6, 78, 59, .35); }

/* ------------------------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.bento__item { border-radius: var(--radio); padding: 26px; background: var(--crema); border: 1px solid var(--borde); transition: transform .3s, box-shadow .3s; }
.bento__item:hover { transform: translateY(-6px); box-shadow: var(--sombra); }
.bento__item p { color: var(--gris); margin: 0; }
.bento__item--grande { grid-column: span 2; grid-row: span 2; background: var(--degradado); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; position: relative; overflow: hidden; }
.bento__item--grande::before { content: ""; position: absolute; width: 260px; height: 260px; right: -60px; top: -60px; background: url(/assets/logo-blanco.svg) no-repeat center / contain; opacity: .14; animation: flotar 10s ease-in-out infinite; }
.bento__item--grande h3 { font-size: 1.9rem; max-width: 14ch; }
.bento__item--grande p { color: #fff; opacity: .95; }
.bento__item--oscuro { background: var(--noche); color: #fff; border: 0; }
.bento__item--oscuro p { color: #CBD2DD; }
.mini-celdas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini-celdas span { background: rgba(11, 31, 42, .2); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }

/* ---------------------------------------------------------------- tablero */
.seccion--noche::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--primario); filter: blur(140px); opacity: .25; left: -200px; top: -200px; }
.tablero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tablero p { color: #CBD2DD; }
.cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 30px; }
.cifra { border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 18px; background: rgba(255, 255, 255, .04); }
.cifra strong { display: block; font-size: 2.6rem; font-weight: 900; color: var(--acento); line-height: 1; }
.cifra span { color: #CBD2DD; font-size: .92rem; }
.grafica { background: #fff; color: var(--noche); border-radius: 26px; padding: 26px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.grafica__cab { display: flex; justify-content: space-between; margin-bottom: 18px; }
.grafica__cab span { color: var(--gris); }
.grafica__fila { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 12px; margin: 14px 0; font-weight: 700; font-size: .92rem; }
.grafica__barra { height: 14px; border-radius: 9px; background: #F2F4F7; overflow: hidden; }
.grafica__barra i { display: block; height: 100%; width: 0; border-radius: 9px; background: var(--degradado); transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.grafica.visible .grafica__barra i { width: var(--v); }
.grafica__nota { color: var(--gris); font-size: .8rem; margin: 14px 0 0; }

/* -------------------------------------------------------------------- cta */
.cta { position: relative; overflow: hidden; background: var(--degradado); color: #fff; padding: 110px 0; text-align: center; }
.cta__fila { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin-inline: auto; max-width: 16ch; }
.cta__logo { width: 96px; margin-bottom: 18px; animation: flotar 7s ease-in-out infinite; }
.cta .hero__botones { justify-content: center; }
.cta__nota { font-size: .92rem; opacity: .9; }

/* ------------------------------------------------------------------- pie */
.pie { background: var(--noche); color: #CBD2DD; padding: 34px 0; }
.pie__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pie p { margin: 0; font-size: .9rem; }
.marca--clara { color: #fff; }
.marca--clara b { color: var(--acento); }

/* ------------------------------------------------------------ al aparecer */
.revelar { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.revelar.visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 1000px) {
  .hero__fila, .tablero { grid-template-columns: 1fr; }
  .hero__celular { margin-top: 20px; }
  .rejilla--4, .bento { grid-template-columns: repeat(2, 1fr); }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .pasos::before { display: none; }
}
@media (max-width: 760px) {
  .nav__hamburguesa { display: block; }
  .nav__enlaces { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 10px 16px 20px; box-shadow: var(--sombra); transform: translateY(-130%); transition: transform .3s; }
  .nav__enlaces.abierto { transform: none; }
  .nav__enlaces a:not(.boton) { color: var(--noche); padding: 14px 4px; border-bottom: 1px solid #F2F4F7; }
  .nav__enlaces .boton { margin-top: 14px; justify-content: center; background: var(--primario); color: #fff; }
  .hero { padding-top: 110px; }
  .aviso { left: 0; top: 70px; }
  .rejilla--4, .rejilla--3, .bento, .pasos, .cifras { grid-template-columns: 1fr; }
  .bento__item--grande { grid-column: auto; }
  .seccion, .cta { padding: 80px 0; }
}

/* Quien prefiere menos movimiento: todo visible, sin animaciones. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .aparece, .revelar { opacity: 1; transform: none; }
}
