/* Diseño v3: formas redondeadas, cielo y ondas, tarjetas de color y movimiento. Solo colores de CreApp. */
.v3 { --soft: #F1FCE3; --tint: #E7F5D6; --lime2: #A8E456; }
.v3 .demo { display: block; width: 100%; height: auto; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.v3 .hx-phone .demo { border-radius: inherit; }
.v3 .hx-phone { overflow: hidden; }
.v3 .hx-btn { border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.v3 .hx-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(8,34,48,.18); }
.v3 .section-head h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -.03em; }
.v3 .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--lime); color: var(--petrol); }
.v3 .hx-dark .kicker, .v3 .hx-metrics .kicker { background: var(--lime); }
.v3 .kicker::before { border-bottom-color: var(--petrol) !important; }

/* ---------- Héroe: cielo CreApp, centrado ---------- */
.v3 .hx-hero, .v3 .pg-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #D9F7AE 0%, #EAFBD2 45%, #F7FDEF 100%); }
.v3 section.hx-hero { padding: 64px 0 96px; }
.v3 .hx-hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; gap: 40px; }
.v3 .hx-hero-copy { max-width: 820px; }
.v3 .hx-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); line-height: 1.04; letter-spacing: -.035em; }
.v3 .hx-hero mark { background: linear-gradient(transparent 62%, #fff 62%, #fff 92%, transparent 92%); }
.v3 .hx-hero .hx-lead { margin-inline: auto; max-width: 680px; font-size: 1.18rem; color: var(--petrol-3); }
.v3 .hx-hero .btns, .v3 .hx-hero .hx-assure { justify-content: center; }
.v3 .hx-stage { width: min(940px, 100%); margin-inline: auto; }
.v3 .hx-stage-bg { border-radius: 48px; overflow: hidden; background: var(--petrol); }
.v3 .hx-stage-bg .hx-art { opacity: .55; }
.v3 .hx-stage-bg img { width: 100%; height: 100%; object-fit: cover; }
.v-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.v-blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.v-blob.b1 { width: 560px; height: 560px; left: -220px; top: -180px; background: radial-gradient(circle at 60% 60%, rgba(191,243,118,.95), rgba(191,243,118,0) 70%); animation: v-drift 14s ease-in-out infinite; }
.v-blob.b2 { width: 640px; height: 640px; right: -260px; top: 40px; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.95), rgba(255,255,255,0) 68%); animation: v-drift 18s ease-in-out infinite reverse; }
.v-blob.b3 { width: 460px; height: 460px; left: 20%; bottom: -260px; background: radial-gradient(circle, rgba(22,64,90,.20), rgba(22,64,90,0) 70%); animation: v-drift 16s ease-in-out infinite; }
.v-tri { position: absolute; width: 56px; height: 52px; background: var(--petrol); clip-path: polygon(50% 0, 100% 100%, 50% 80%, 0 100%); opacity: .12; animation: v-spin 12s ease-in-out infinite; }
.v-tri.t1 { left: 8%; top: 18%; } .v-tri.t2 { right: 10%; top: 12%; width: 92px; height: 84px; animation-delay: -4s; } .v-tri.t3 { right: 22%; bottom: 16%; width: 38px; height: 35px; animation-delay: -7s; }
.v-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; z-index: -1; }
.v3 .pg-hero { padding-bottom: 110px !important; }
.v3 .pg-visual > * { animation: v-float 7s ease-in-out infinite; }

/* ---------- Franja que se desplaza ---------- */
.v-marquee { background: var(--petrol); color: #fff; padding: 26px 0 28px; overflow: hidden; }
.v-marquee p { margin: 0 0 14px; text-align: center; font-weight: 800; font-size: .9rem; color: var(--lime); }
.v-track { display: flex; width: max-content; animation: v-scroll 38s linear infinite; }
.v-marquee:hover .v-track { animation-play-state: paused; }
.v-track ul { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.v-track li { white-space: nowrap; padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); font-weight: 700; }
.v-track li:nth-child(3n+1) { background: var(--lime); border-color: var(--lime); color: var(--petrol); }

/* ---------- Tarjetas de color ---------- */
.v3 .hx-trust li img { filter: grayscale(1); transition: filter .2s; }
.v3 .hx-trust li a:hover img { filter: none; }
.v3 .hx-goals { padding-top: 64px; }
.v3 .hx-goals a { border: 0; border-radius: 28px; flex-direction: column; align-items: flex-start; padding: 26px; min-height: 176px; font-size: 1.15rem; box-shadow: none; }
.v3 .hx-goals i { margin: auto 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--petrol); color: var(--lime); }
.v3 .hx-goals li:nth-child(1) a { background: var(--lime); }
.v3 .hx-goals li:nth-child(2) a { background: var(--petrol); color: #fff; }
.v3 .hx-goals li:nth-child(2) i { background: var(--lime); color: var(--petrol); }
.v3 .hx-goals li:nth-child(3) a { background: var(--tint); }
.v3 .hx-goals li:nth-child(4) a { background: var(--petrol-3); color: #fff; }
.v3 .hx-goals li:nth-child(4) i { background: var(--lime); color: var(--petrol); }
.v3 .hx-goals li:nth-child(odd) .hx-ico { background: #fff; }
.v3 .hx-goals a:hover { color: var(--petrol); }
.v3 .hx-goals li:nth-child(even) a:hover { color: #fff; }
.v3 .hx-card, .v3 .hx-features li, .v3 .hx-difs li, .v3 .pg-need li, .v3 .hx-app, .v3 .hx-story, .v3 .pg-related a { border-radius: 28px; transition: transform .22s ease, box-shadow .22s ease; }
.v3 .hx-card:hover, .v3 .hx-features li:hover, .v3 .hx-difs li:hover, .v3 .pg-need li:hover, .v3 .hx-story:hover, .v3 .pg-related a:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(8,34,48,.16); }
.v3 .hx-card:nth-child(2) .hx-art, .v3 .hx-card:nth-child(4) .hx-art { filter: hue-rotate(0deg); }
.v3 .hx-features li:nth-child(4n+1) { background: var(--lime); border-color: var(--lime); }
.v3 .hx-features li:nth-child(4n+3) { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.v3 .hx-features li:nth-child(4n+3) h3 { color: #fff; } .v3 .hx-features li:nth-child(4n+3) p { color: rgba(255,255,255,.8); }
.v3 .hx-features li:nth-child(4n+1) p { color: var(--petrol); }
.v3 .hx-features li:nth-child(4n+1) .hx-ico { background: #fff; }
.v3 .hx-difs li:nth-child(5) { background: #fff; border-color: #fff; }
.v3 .hx-difs li:nth-child(5) h3, .v3 .hx-difs li:nth-child(5) p { color: var(--petrol); }
.v3 .hx-difs li:nth-child(9) { background: var(--petrol-3); }
.v3 .hx-tabpanel { border-radius: 40px; background: linear-gradient(135deg, #E4F9C4, #F7FDEF 70%); }
.v3 .hx-tabpanel:not([hidden]) { animation: v-in .45s ease both; }
.v3 .hx-metrics strong { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.v3 section.hx-dark { border-radius: 48px 48px 0 0; }

/* ---------- Un día con tu app ---------- */
.v3 section.v-day { background: linear-gradient(180deg, #fff, var(--soft)); }
.v-day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.v-day-grid > * { min-width: 0; }
.v-steps { list-style: none; margin: 0; padding: 0; }
.v-step { padding: 30px 32px; margin-bottom: 20px; border-radius: 28px; border: 2px solid var(--line); background: #fff; transition: background .3s, border-color .3s, transform .3s; }
.v-step h3 { margin: 12px 0 6px; font-size: 1.5rem; letter-spacing: -.02em; }
.v-step p { margin: 0; color: var(--muted); }
.v-time { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--tint); color: var(--petrol); font-weight: 800; }
.v-step-shot { display: none; }
.v-js .v-step { min-height: 260px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.v-js .v-step.on { background: var(--petrol); border-color: var(--petrol); color: #fff; transform: translateX(8px); }
.v-js .v-step.on h3 { color: #fff; } .v-js .v-step.on p { color: rgba(255,255,255,.82); } .v-js .v-step.on .v-time { background: var(--lime); }
.v-sticky { position: sticky; top: calc(var(--head-h) + 28px); align-self: start; height: 640px; display: grid; place-items: center; }
.v-halo { position: absolute; width: 500px; height: 500px; max-width: 100%; border-radius: 42% 58% 60% 40% / 48% 42% 58% 52%; background: var(--lime); animation: v-morph 12s ease-in-out infinite; }
.v3 .hx-phone.v-stack { position: relative; width: 272px; aspect-ratio: 320 / 695; }
.v-layer { position: absolute; inset: 0; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .4s ease, transform .4s ease; }
.v3 .v-stack .v-layer { inset: 7px; border-radius: 30px; overflow: hidden; }
.v-layer.on { opacity: 1; transform: none; }
.v-day .hx-phone, .v-gallery .hx-phone { position: relative; left: auto; right: auto; top: auto; transform: none; }

/* ---------- Galería ---------- */
.v3 section.v-gallery { background: var(--petrol); color: #fff; overflow: hidden; }
.v-gallery .section-head h2 { color: #fff; } .v-gallery .section-head p { color: rgba(255,255,255,.75); }
.v-rail { list-style: none; margin: 0; padding: 14px 4px 24px; display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--lime) transparent; }
.v-rail li { flex: 0 0 232px; scroll-snap-align: start; text-align: center; transition: transform .25s ease; }
.v-rail li:nth-child(even) { margin-top: 34px; }
.v-rail li:hover { transform: translateY(-10px); }
.v3 .v-rail .hx-phone { width: 100%; }
.v-rail li > span { display: inline-block; margin-top: 16px; padding: 5px 16px; border-radius: 999px; background: var(--lime); color: var(--petrol); font-weight: 800; font-size: .88rem; }
.v-arrows { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.v-arrows button { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--lime); background: transparent; color: var(--lime); font-size: 1.3rem; cursor: pointer; }
.v-arrows button:hover { background: var(--lime); color: var(--petrol); }
.v3 .v-gallery :focus-visible { outline-color: var(--lime); }

/* ---------- Explora ---------- */
.v3 section.v-explore { background: #fff; }
.v-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.v-cards a { display: flex; flex-direction: column; height: 100%; border-radius: 28px; overflow: hidden; background: var(--soft); text-decoration: none; color: var(--petrol); transition: transform .22s, box-shadow .22s; }
.v-cards a:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(8,34,48,.16); color: var(--petrol); }
.v-cards .hx-art { width: 100%; aspect-ratio: 16 / 10 !important; overflow: hidden; background: var(--tint); }
.v-cards .hx-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.v-cards a:hover img { transform: scale(1.06); }
.v-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.v-card-body small { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--petrol); color: var(--lime); font-weight: 800; }
.v-card-body b { font-size: 1.2rem; line-height: 1.25; }
.v-card-body i { margin-top: auto; font-style: normal; font-weight: 800; }

/* ---------- Botones flotantes ---------- */
.v-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; gap: 10px; align-items: center; }
.v-wa { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--petrol); color: var(--lime); font-weight: 800; text-decoration: none; box-shadow: 0 14px 30px rgba(8,34,48,.3); border: 2px solid var(--lime); }
.v-wa:hover { background: var(--lime); color: var(--petrol); }
.v-wa svg { width: 24px; height: 24px; }
.v-top { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--petrol); font-size: 1.2rem; cursor: pointer; box-shadow: 0 8px 20px rgba(8,34,48,.18); }
.v-top[hidden] { display: none; }

/* ---------- Pantallas animadas ---------- */
.demo .eq { transform-box: fill-box; transform-origin: bottom; animation: v-eq 1.2s ease-in-out infinite; }
.demo .blink { animation: v-blink 1.4s ease-in-out infinite; }
.demo .demo-push { animation: v-push 5s ease-in-out infinite; }
.v3 .hx-phone-l { animation: v-float 7s ease-in-out -2s infinite; }
.v3 .hx-phone-r { animation: v-float 7s ease-in-out -4s infinite; }
.v3 .hx-toast { animation: v-float 5s ease-in-out infinite; }

/* ---------- Aparición al desplazarse (solo con JS) ---------- */
.v-js .rv { opacity: 0; translate: 0 34px; }
.v-js .rv.in { opacity: 1; translate: 0 0; transition: opacity .7s ease var(--d, 0s), translate .7s ease var(--d, 0s), transform .22s ease, box-shadow .22s ease; }

@keyframes v-drift { 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes v-spin { 50% { transform: translateY(-22px) rotate(14deg); } }
@keyframes v-float { 50% { translate: 0 -12px; } }
@keyframes v-scroll { to { transform: translateX(-50%); } }
@keyframes v-eq { 50% { transform: scaleY(.35); } }
@keyframes v-blink { 50% { opacity: .2; } }
@keyframes v-push { 0%, 8% { opacity: 0; transform: translateY(-24px); } 20%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes v-morph { 33% { border-radius: 60% 40% 45% 55% / 55% 60% 40% 45%; } 66% { border-radius: 45% 55% 50% 50% / 40% 50% 50% 60%; } }
@keyframes v-in { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 900px) {
  .v-day-grid, .v-cards { grid-template-columns: minmax(0, 1fr); }
  .v-sticky { display: none; }
  .v-step-shot { display: block; width: min(230px, 78%); margin: 20px auto 0; }
  .v3 .v-step-shot .hx-phone { width: 100%; }
  .v-js .v-step, .v-step { min-height: 0; display: block; }
  .v-js .v-step.on { transform: none; }
  .v-wa span { position: absolute; left: -9999px; }
  .v-wa { width: 56px; padding: 0; justify-content: center; }
  .v3 section.hx-dark { border-radius: 28px 28px 0 0; }
}
@media (max-width: 640px) { .v3 .hx-goals a { min-height: 0; flex-direction: row; align-items: center; padding: 16px; font-size: 1rem; } .v3 .hx-goals i { margin: 0 0 0 auto; flex: none; } .v-rail li { flex-basis: 200px; } }
@media (prefers-reduced-motion: reduce) {
  .v3 *, .v3 *::before, .v3 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.v3 .hx-tabcopy .hx-more { margin-left: 16px; }
