/* Loro: sitio público. */
:root {
  --pri: #5B4BFF; --pri-o: #4133CC; --pri-s: #ECEAFF; --oro: #FFC53D; --oro-o: #D99B00; --coral: #FF6B5E;
  --verde: #2EB872; --verde-o: #1E8F56; --verde-s: #DDF6E8; --rojo: #F2473F; --rojo-o: #C5302A; --rojo-s: #FFE5E3;
  --fondo: #FBFAFF; --carta: #FFFFFF; --tinta: #1E1B4B; --suave: #5F5D84; --linea: #E3E0F7; --linea-o: #CFCBEF;
  --tit: "Fredoka", "Nunito", system-ui, sans-serif; --txt: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ancho: 1140px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 500 17px/1.55 var(--txt); color: var(--tinta); background: var(--fondo); overflow-x: hidden; }
h1, h2, h3 { font-family: var(--tit); line-height: 1.08; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 4.6vw, 46px); max-width: 780px; }
p { margin: 0; } img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 8px; }
.centro { text-align: center; margin-inline: auto; } .mini { font-size: 14px; color: var(--suave); font-weight: 700; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--pri-s); color: var(--pri); font: 800 13px var(--txt); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.bajada { font-size: clamp(17px, 2vw, 20px); color: var(--suave); max-width: 600px; }
section { max-width: var(--ancho); margin: 0 auto; padding: clamp(56px, 9vw, 104px) 20px; }
#confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 16px; background: var(--pri); color: #fff; font: 800 16px var(--txt); box-shadow: 0 4px 0 var(--pri-o); transition: transform .08s, box-shadow .08s, filter .15s; text-align: center; }
.btn:hover { filter: brightness(1.07); } .btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--pri-o); }
.btn.grande { min-height: 58px; padding: 12px 30px; font-size: 18px; border-radius: 18px; }
.btn.gris { background: var(--carta); color: var(--pri); box-shadow: 0 4px 0 var(--linea-o), inset 0 0 0 2px var(--linea); }
.btn.oro { background: var(--oro); color: #3B2A00; box-shadow: 0 4px 0 var(--oro-o); }
.btn.verde { background: var(--verde); box-shadow: 0 4px 0 var(--verde-o); } .btn.rojo { background: var(--rojo); box-shadow: 0 4px 0 var(--rojo-o); }
.btn.blanco { background: #fff; color: var(--pri); box-shadow: 0 5px 0 rgba(0, 0, 0, .22); }
.liga { color: var(--pri); font-weight: 800; padding: 8px; }

/* barra */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 12px max(20px, calc(50% - var(--ancho) / 2 + 20px)); transition: background .2s, box-shadow .2s; }
.nav.baja { background: rgba(251, 250, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); }
.marca { display: flex; align-items: center; gap: 8px; color: var(--pri); } .marca b { font: 700 28px var(--tit); }
.nav-l { display: none; gap: 26px; margin-left: 26px; font-weight: 800; color: var(--suave); } .nav-l a:hover { color: var(--pri); }
.nav-b { margin-left: auto; display: flex; align-items: center; gap: 14px; } .entrar { font-weight: 800; color: var(--pri); padding: 8px; }
@media (max-width: 420px) { .nav .btn { padding: 10px 14px; font-size: 15px; } .marca b { font-size: 24px; } }
@media (min-width: 860px) { .nav-l { display: flex; } }

/* héroe */
.heroe { display: grid; gap: 30px; align-items: center; padding-top: clamp(24px, 5vw, 60px); }
.heroe h1 { font-size: clamp(44px, 8.4vw, 84px); margin-bottom: 18px; }
.subraya { position: relative; white-space: nowrap; color: var(--pri); } .subraya::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .02em; height: .2em; background: var(--oro); border-radius: 99px; z-index: -1; transform-origin: left; animation: raya .8s .3s both cubic-bezier(.2, .9, .3, 1); }
.heroe-b { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.heroe-i { position: relative; display: grid; place-items: center; min-height: 300px; }
.heroe-i::before { content: ""; position: absolute; width: min(86%, 430px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #EFEAFF, #D8D1FF 60%, #C6BDFF); }
.heroe-loro { position: relative; width: min(74%, 380px); filter: drop-shadow(0 22px 22px rgba(60, 40, 180, .22)); }
.burbuja { position: absolute; z-index: 2; padding: 10px 16px; border-radius: 16px; background: var(--carta); border: 2px solid var(--linea); border-bottom-width: 5px; font: 700 17px var(--tit); white-space: nowrap; animation: flota 3s ease-in-out infinite; }
.b1 { left: 2%; top: 14%; animation-delay: -.6s; } .b2 { right: 0; top: 6%; color: #E06400; animation-delay: -1.4s; } .b3 { right: 4%; bottom: 10%; color: var(--oro-o); animation-delay: -2.1s; }
@media (min-width: 900px) { .heroe { grid-template-columns: 1.1fr .9fr; } .heroe-i { min-height: 480px; } }

/* cifras */
.cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.cifras div { padding: 20px 16px; border-radius: 22px; background: var(--carta); border: 2px solid var(--linea); border-bottom-width: 6px; text-align: center; display: grid; }
.cifras b { font: 700 clamp(34px, 5vw, 50px)/1 var(--tit); color: var(--pri); } .cifras span { color: var(--suave); font-weight: 800; font-size: 15px; }
.cifras div:nth-child(2) b { color: var(--coral); } .cifras div:nth-child(3) b { color: var(--verde); } .cifras div:nth-child(4) b { color: var(--oro-o); }
@media (min-width: 760px) { .cifras { grid-template-columns: repeat(4, 1fr); } }

/* demo */
.demo { display: grid; gap: 34px; align-items: center; }
.demo-t p:not(.chip) { color: var(--suave); margin: 14px 0 18px; max-width: 480px; }
.palomas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .palomas li { position: relative; padding-left: 34px; font-weight: 700; }
.palomas li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--verde-s); color: var(--verde-o); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.telefono { justify-self: center; width: min(100%, 380px); padding: 12px; border-radius: 46px; background: #1E1B4B; box-shadow: 0 30px 60px -20px rgba(60, 40, 180, .45), inset 0 0 0 2px #3B3780; }
.tel-in { position: relative; min-height: 560px; border-radius: 36px; background: #F6F5FF; padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.tel-in.pasa > *:not(.m-top) { animation: pasa .3s cubic-bezier(.2, .8, .3, 1); }
.barra { height: 14px; border-radius: 9px; background: var(--linea); overflow: hidden; } .barra i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(180deg, #8F84FF, var(--pri)); transition: width .45s cubic-bezier(.3, 1.4, .5, 1); }
.m-ins { font: 700 21px var(--tit); }
.m-foco { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; flex-wrap: wrap; } .m-foco.col { flex-direction: column; gap: 6px; }
.m-foco b { font: 700 42px var(--tit); } .m-foco b.es { font-size: 34px; } .m-foco b.or { font-size: 25px; line-height: 1.35; } .m-foco small { color: var(--suave); font-weight: 700; font-size: 15px; } .m-e { font-size: 60px; width: 100%; }
.bocina { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--pri); color: #fff; box-shadow: 0 4px 0 var(--pri-o); } .bocina:active { transform: translateY(4px); box-shadow: none; }
.blanco { display: inline-block; min-width: 76px; min-height: 1.25em; border-bottom: 4px solid var(--linea-o); color: var(--pri); vertical-align: bottom; padding: 0 6px; border-radius: 6px 6px 0 0; } .blanco.bien { color: var(--verde-o); border-color: var(--verde); background: var(--verde-s); } .blanco.mal { color: var(--rojo-o); border-color: var(--rojo); background: var(--rojo-s); }
.m-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .m-pares { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; } .m-pares > div { display: grid; gap: 10px; }
.op { min-height: 58px; padding: 10px; border-radius: 16px; background: var(--carta); border: 2px solid var(--linea); border-bottom-width: 5px; font: 800 17px var(--txt); transition: transform .08s, background .12s, border-color .12s; }
.op:hover:not([disabled]) { border-color: var(--linea-o); } .op:active:not([disabled]) { transform: translateY(3px); border-bottom-width: 2px; margin-bottom: 3px; }
.op.sel { border-color: var(--pri); background: var(--pri-s); color: var(--pri); } .op.bien { border-color: var(--verde); background: var(--verde-s); color: var(--verde-o); animation: brinca .35s; } .op.mal { border-color: var(--rojo); background: var(--rojo-s); color: var(--rojo-o); animation: tiembla .35s; } .op[disabled]:not(.bien):not(.mal) { opacity: .5; } .par.bien { opacity: .45; }
.m-pie { min-height: 104px; margin: 0 -18px -18px; padding: 14px 18px 18px; display: grid; gap: 6px; align-content: start; } .m-pie b { font: 700 21px var(--tit); } .m-pie span { font-weight: 800; font-size: 15px; } .m-pie .btn { margin-top: 6px; }
.m-pie.bien { background: var(--verde-s); color: var(--verde-o); animation: sube .22s; } .m-pie.mal { background: var(--rojo-s); color: var(--rojo-o); animation: sube .22s; }
.m-fin { flex: 1; display: grid; align-content: center; justify-items: center; gap: 8px; text-align: center; } .m-fin h3 { font-size: 30px; } .m-fin p { color: var(--suave); font-weight: 700; } .m-fin img { animation: brinca .6s; }
.m-xp { font: 700 26px var(--tit); color: var(--oro-o); padding: 8px 22px; border-radius: 16px; background: #FFF1CC; margin: 6px 0 10px; animation: brinca .6s .15s backwards; } .m-fin .btn { width: 100%; }
@media (min-width: 900px) { .demo { grid-template-columns: 1fr 1fr; } }

/* cómo */
.como, .niveles, .precio, .dudas { text-align: center; } .como h2, .niveles h2, .precio h2, .dudas h2 { margin-inline: auto; }
.tarjetas { display: grid; gap: 16px; margin-top: 40px; text-align: left; }
.tarjetas article { padding: 26px 24px; border-radius: 26px; background: var(--carta); border: 2px solid var(--linea); border-bottom-width: 6px; transition: transform .2s, border-color .2s; }
.tarjetas article:hover { transform: translateY(-5px); border-color: var(--pri); }
.tarjetas i { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--pri-s); font-style: normal; font-size: 30px; margin-bottom: 16px; }
.tarjetas article:nth-child(2) i { background: #DDF6E8; } .tarjetas article:nth-child(3) i { background: #FFF1CC; } .tarjetas article:nth-child(4) i { background: #DDF1FF; } .tarjetas article:nth-child(5) i { background: #FFE5E3; } .tarjetas article:nth-child(6) i { background: #FFEBD6; }
.tarjetas h3 { font-size: 23px; margin-bottom: 8px; } .tarjetas p { color: var(--suave); font-size: 16px; }
@media (min-width: 640px) { .tarjetas { grid-template-columns: 1fr 1fr; } } @media (min-width: 980px) { .tarjetas { grid-template-columns: repeat(3, 1fr); } }

/* pantallas */
.pantallas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 14px; padding-top: 0; }
.pan { text-align: center; } .pan img { width: 100%; max-width: 250px; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 30px; border: 8px solid #1E1B4B; box-shadow: 0 24px 40px -18px rgba(60, 40, 180, .4); background: #F6F5FF; }
.pan h3 { font-size: 20px; margin: 16px 0 4px; } .pan p { color: var(--suave); font-size: 15px; max-width: 240px; margin: 0 auto; }
.pan:nth-child(even) { margin-top: 34px; }
@media (min-width: 900px) { .pantallas { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

/* niveles */
.etapas { display: grid; gap: 18px; margin-top: 40px; text-align: left; }
.etapa { position: relative; padding: 26px 24px; border-radius: 28px; color: #fff; overflow: hidden; background: var(--c); box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 70%, #000); }
.e1 { --c: #5B4BFF; } .e2 { --c: #F28A1F; } .e3 { --c: #2B2466; }
.etapa header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; } .etapa header span { font: 700 30px var(--tit); } .etapa header b { padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .22); font-size: 14px; }
.etapa > p { opacity: .92; font-weight: 700; margin-bottom: 14px; }
.etapa ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: n var(--ini, 0); }
.etapa ol[start="5"] { --ini: 4; } .etapa ol[start="9"] { --ini: 8; }
.etapa li { counter-increment: n; position: relative; padding: 10px 12px 10px 52px; border-radius: 16px; background: rgba(255, 255, 255, .14); font-size: 14.5px; line-height: 1.35; } .etapa li b { display: block; font: 700 17px var(--tit); }
.etapa li::before { content: counter(n); position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 11px; background: #fff; color: var(--c); display: grid; place-items: center; font: 700 16px var(--tit); }
.etapa img { display: block; margin: 14px auto -10px; width: 140px; }
@media (min-width: 900px) { .etapas { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

/* racha */
.racha { display: grid; gap: 20px; align-items: center; justify-items: center; text-align: center; } .racha p:not(.chip) { color: var(--suave); margin-top: 14px; max-width: 560px; } .racha h2 { max-width: 620px; }
.semana-d { display: flex; gap: 9px; margin-top: 22px; justify-content: center; } .semana-d i { width: 44px; height: 44px; border-radius: 50%; background: var(--linea); display: grid; place-items: center; font: 700 16px var(--tit); font-style: normal; color: var(--suave); } .semana-d i.on { background: #FF9A1F; color: #fff; }
.racha.visto .semana-d i.on { animation: brinca .45s backwards; } .semana-d i:nth-child(2) { animation-delay: .1s !important; } .semana-d i:nth-child(3) { animation-delay: .2s !important; } .semana-d i:nth-child(4) { animation-delay: .3s !important; } .semana-d i:nth-child(5) { animation-delay: .4s !important; }
@media (min-width: 860px) { .racha { grid-template-columns: 300px 1fr; text-align: left; justify-items: start; } .semana-d { justify-content: flex-start; } }

/* precio */
.planes { display: grid; gap: 20px; margin: 40px auto 0; max-width: 820px; text-align: left; align-items: start; }
.plan { position: relative; padding: 30px 26px; border-radius: 30px; background: var(--carta); border: 2px solid var(--linea); border-bottom-width: 7px; display: grid; gap: 14px; }
.plan h3 { font-size: 28px; } .costo { display: flex; align-items: baseline; gap: 8px; } .costo b { font: 700 58px/1 var(--tit); } .costo span { color: var(--suave); font-weight: 800; }
.plan .btn { width: 100%; margin-top: 8px; } .plan .palomas li { font-weight: 600; font-size: 16px; }
.plan.pro { border-color: var(--oro); background: linear-gradient(175deg, #FFF6D6, #fff 46%); box-shadow: 0 30px 60px -30px rgba(217, 155, 0, .55); }
.plan.pro img { position: absolute; right: 14px; top: -34px; width: 112px; } .cinta { justify-self: start; padding: 5px 13px; border-radius: 99px; background: var(--oro); color: #3B2A00; font: 800 12.5px var(--txt); text-transform: uppercase; letter-spacing: .05em; }
@media (min-width: 760px) { .planes { grid-template-columns: 1fr 1fr; } .plan.pro { transform: translateY(-10px); } }

/* dudas */
.dudas details { max-width: 760px; margin: 12px auto 0; text-align: left; background: var(--carta); border: 2px solid var(--linea); border-radius: 20px; overflow: hidden; } .dudas h2 { margin-bottom: 30px; }
.dudas summary { cursor: pointer; padding: 18px 54px 18px 20px; font: 700 19px var(--tit); list-style: none; position: relative; } .dudas summary::-webkit-details-marker { display: none; }
.dudas summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--pri-s); color: var(--pri); display: grid; place-items: center; font-size: 22px; transition: rotate .2s; } .dudas details[open] summary::after { rotate: 45deg; }
.dudas details p { padding: 0 20px 20px; color: var(--suave); }

/* cierre y pie */
.cierre { max-width: none; margin: 40px 14px 0; border-radius: 40px; background: linear-gradient(150deg, var(--pri), #8F6BFF); color: #fff; text-align: center; display: grid; justify-items: center; gap: 12px; }
.cierre h2 { font-size: clamp(32px, 5vw, 52px); } .cierre p { font-size: 20px; opacity: .92; margin-bottom: 14px; } .cierre img { animation: flota 3s ease-in-out infinite; padding: 16px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .92) 0 62%, rgba(255, 255, 255, 0) 64%); }
.pie { max-width: var(--ancho); margin: 0 auto; padding: 40px 20px 50px; display: grid; gap: 18px; justify-items: center; text-align: center; color: var(--suave); font-size: 15px; }
.pie nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-weight: 800; } .pie nav a:hover { color: var(--pri); }

/* páginas de texto */
.texto { max-width: 760px; padding-top: 30px; } .texto h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; } .texto h2 { font-size: 24px; margin: 30px 0 8px; } .texto p, .texto li { color: #3B3960; margin-bottom: 10px; } .texto ul { padding-left: 22px; } .texto a { color: var(--pri); font-weight: 800; }

/* aparición */
.ver { opacity: 0; transform: translateY(34px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .3, 1); } .ver.visto { opacity: 1; transform: none; }
.ver.visto .tarjetas article, .ver.visto .pan, .ver.visto .etapa, .ver.visto .plan { animation: aparece .6s backwards; }
.tarjetas article:nth-child(2), .pan:nth-child(2), .etapa:nth-child(2), .plan:nth-child(2) { animation-delay: .1s !important; } .tarjetas article:nth-child(3), .pan:nth-child(3), .etapa:nth-child(3) { animation-delay: .2s !important; } .tarjetas article:nth-child(4), .pan:nth-child(4) { animation-delay: .3s !important; } .tarjetas article:nth-child(5) { animation-delay: .4s !important; } .tarjetas article:nth-child(6) { animation-delay: .5s !important; }
@keyframes aparece { from { opacity: 0; transform: translateY(26px) scale(.97); } }
@keyframes flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes raya { from { transform: scaleX(0); } }
@keyframes brinca { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes tiembla { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes pasa { from { opacity: 0; transform: translateX(24px); } }
@keyframes sube { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .ver { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
