/* Landing publica de Zelanda Nexo (/). Linea visual enterprise clara:
   fondo blanco, bordes finos, tipografia contenida, preview del
   producto en marco de navegador. Sin dependencias de sesion. */

html { scroll-behavior: smooth; }

.landing {
    min-height: 100vh;
    background: #FFFFFF;
    color: #334155;
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* ---------- Scroll reveal (activado por landing.js) ---------- */
.rv {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s cubic-bezier(.22, .61, .36, 1) var(--rv-d, 0ms),
                transform .55s cubic-bezier(.22, .61, .36, 1) var(--rv-d, 0ms);
    will-change: opacity, transform;
}
.rv.rv-in { opacity: 1; transform: none; }

/* ---------- Entrada del hero ---------- */
@keyframes landUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.land-hero-copy > * { animation: landUp .6s cubic-bezier(.22, .61, .36, 1) both; }
.land-hero-copy > *:nth-child(2) { animation-delay: .08s; }
.land-hero-copy > *:nth-child(3) { animation-delay: .16s; }
.land-hero-copy > *:nth-child(4) { animation-delay: .24s; }
.land-hero-copy > *:nth-child(5) { animation-delay: .32s; }
.land-hero-visual { animation: landUp .7s cubic-bezier(.22, .61, .36, 1) .2s both; }

@keyframes landBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ---------- Nav ---------- */
.land-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 2rem;
    height: 64px;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #E2E8F0;
    transition: box-shadow .25s ease;
}
.land-nav.is-scrolled { box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18); }
.land-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: inherit;
}
.land-brand img { width: 32px; height: 32px; }
.land-brand b { font-size: 1rem; letter-spacing: -.01em; color: #0F172A; }
.land-brand small {
    display: block;
    font-size: .65rem;
    color: #94A3B8;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.land-nav-links {
    display: flex;
    gap: 1.75rem;
    font-size: .85rem;
    font-weight: 500;
}
.land-nav-links a { color: #64748B; text-decoration: none; transition: color .15s ease; }
.land-nav-links a:hover { color: #0F172A; }
.land-nav-actions { display: flex; align-items: center; gap: .6rem; }

.land-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.1rem;
    border-radius: .5rem;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s ease,
                background .18s ease, border-color .18s ease, color .18s ease;
}
.land-btn:active { transform: scale(.96); }
.land-btn i { font-size: .8em; transition: transform .18s ease; }
.land-btn:hover i.fa-arrow-right { transform: translateX(3px); }
.land-btn-ghost {
    color: #334155;
    border-color: #CBD5E1;
    background: #fff;
}
.land-btn-ghost:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #94A3B8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .18);
}
.land-btn-primary {
    background: #2563EB;
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.land-btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-18deg);
    transition: left .5s ease;
}
.land-btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .45);
}
.land-btn-primary:hover::after { left: 130%; }
.land-btn-lg { padding: .8rem 1.5rem; font-size: .9rem; border-radius: .6rem; }

/* ---------- Hero ---------- */
.land-hero {
    position: relative;
    max-width: 76rem;
    margin: 0 auto;
    padding: 4.5rem 2rem 3rem;
    overflow: hidden;
}
.land-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
}
.land-glow-a { width: 480px; height: 480px; background: rgba(37, 99, 235, .08); top: -160px; left: -120px; }
.land-glow-b { width: 420px; height: 420px; background: rgba(20, 184, 166, .07); bottom: -140px; right: -100px; }

.land-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
}

.land-hero h1 {
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.12;
    margin: 0 0 1.1rem;
    color: #0F172A;
}
.land-hero h1 em {
    font-style: normal;
    color: #2563EB;
}
.land-hero p.land-sub {
    max-width: 34rem;
    margin: 0 0 2rem;
    font-size: 1.02rem;
    line-height: 1.65;
    color: #64748B;
}
.land-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.6rem;
}
.land-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .78rem;
    color: #94A3B8;
}
.land-hero-proof i { color: #16A34A; margin-right: .3rem; }

/* ---------- Preview del producto (marco de navegador) ---------- */
.land-hero-visual { position: relative; }
.land-frame {
    border-radius: .9rem;
    border: 1px solid #E2E8F0;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, .02) inset,
        0 24px 60px -24px rgba(15, 23, 42, .25);
    overflow: hidden;
}
.land-frame-bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem .85rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}
.ldot { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.ldot:first-child { background: #F87171; }
.ldot:nth-child(2) { background: #FBBF24; }
.ldot:nth-child(3) { background: #4ADE80; }
.land-frame-url {
    margin-left: .75rem;
    flex: 1;
    text-align: center;
    font-size: .68rem;
    color: #94A3B8;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: .35rem;
    padding: .28rem .7rem;
}
.land-frame-url i { margin-right: .3rem; font-size: .6rem; color: #16A34A; }

.land-frame-body {
    display: grid;
    grid-template-columns: 44px 1fr;
    min-height: 260px;
}
.land-frame-side {
    border-right: 1px solid #F1F5F9;
    padding: .8rem .55rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    align-items: center;
}
.lside-item {
    width: 26px; height: 26px;
    border-radius: .45rem;
    background: #F1F5F9;
}
.lside-item.on { background: #DBEAFE; box-shadow: 0 0 0 1px #93C5FD; }

.land-frame-main { padding: 1.1rem 1.2rem; }
.lframe-title {
    width: 40%; height: 14px; border-radius: 4px;
    background: #E2E8F0;
    margin-bottom: 1rem;
}
.lframe-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-bottom: 1rem;
}
.ltile {
    border: 1px solid #E2E8F0;
    border-radius: .6rem;
    padding: .7rem .6rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    align-items: flex-start;
    background: #F8FAFC;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ltile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--c, #2563EB) 35%, #E2E8F0);
    background: #fff;
}
.ltile i { color: var(--c, #2563EB); font-size: .95rem; }
.ltile span { font-size: .6rem; font-weight: 600; color: #64748B; }
.lframe-row { height: 10px; border-radius: 4px; background: #F1F5F9; margin-bottom: .55rem; }
.lframe-row.sm { width: 62%; }

/* tarjetas flotantes sobre el preview */
.land-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    border-radius: .7rem;
    background: #fff;
    border: 1px solid #E2E8F0;
    box-shadow: 0 12px 32px -10px rgba(15, 23, 42, .18);
}
.land-float i { font-size: .9rem; }
.land-float b { display: block; font-size: .72rem; color: #0F172A; }
.land-float span { font-size: .62rem; color: #94A3B8; }
.land-float-a { top: 8%; right: -14px; animation: landBob 5s ease-in-out infinite; }
.land-float-a i { color: #16A34A; }
.land-float-b { bottom: 10%; left: -18px; animation: landBob 6s ease-in-out .8s infinite; }
.land-float-b i { color: #D97706; }

/* ---------- Metricas ---------- */
.land-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 76rem;
    margin: 0 auto;
    padding: 0 2rem;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}
.land-metric {
    padding: 1.75rem 1rem;
    text-align: center;
    border-right: 1px solid #F1F5F9;
}
.land-metric:last-child { border-right: none; }
.land-metric { transition: background .2s ease; }
.land-metric:hover { background: #F8FAFC; }
.land-metric b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}
.land-metric span { font-size: .75rem; color: #94A3B8; }

/* ---------- Secciones ---------- */
.land-section {
    position: relative;
    max-width: 76rem;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.land-kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2563EB;
    margin-bottom: .8rem;
}
.land-section-head { max-width: 40rem; margin-bottom: 2.6rem; }
.land-section-head h2, .land-split-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #0F172A;
    margin: 0 0 .8rem;
    line-height: 1.2;
}
.land-section-head p, .land-split-copy p {
    color: #64748B;
    line-height: 1.65;
    font-size: .95rem;
    margin: 0;
}

/* grid del ecosistema */
.land-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .9rem;
}
.land-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: .85rem;
    padding: 1.35rem 1.25rem;
    transition: transform .22s cubic-bezier(.22, .61, .36, 1), border-color .22s ease, box-shadow .22s ease;
}
.land-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--c, #2563EB) 40%, #E2E8F0);
    box-shadow: 0 16px 36px -16px rgba(15, 23, 42, .18);
}
.land-card-icon { transition: transform .22s cubic-bezier(.34, 1.56, .64, 1); }
.land-card:hover .land-card-icon { transform: scale(1.08) rotate(-3deg); }
.land-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .95rem;
}
.land-card-icon {
    width: 38px; height: 38px;
    border-radius: .55rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--c, #2563EB);
    background: color-mix(in srgb, var(--c, #2563EB) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--c, #2563EB) 25%, #E2E8F0);
}
.land-card-tag {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #94A3B8;
}
.land-card h3 { font-size: .95rem; font-weight: 700; color: #0F172A; margin: 0 0 .35rem; }
.land-card p { font-size: .8rem; color: #64748B; line-height: 1.55; margin: 0; }

/* seccion seguridad: copy + 2x2 */
.land-split {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}
.land-split-copy { position: sticky; top: 6rem; }
.land-split-copy p { margin-bottom: 1.75rem; }

.land-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}
.land-trust-item {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1.3rem;
    border-radius: .85rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-top: 2px solid #93C5FD;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.land-trust-item:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #BFDBFE;
    border-top-color: #2563EB;
}
.land-trust-item i {
    color: #2563EB;
    font-size: 1rem;
    margin-top: .15rem;
    transition: transform .2s ease;
}
.land-trust-item:hover i { transform: scale(1.15); }
.land-trust-item b { display: block; font-size: .86rem; color: #0F172A; margin-bottom: .3rem; }
.land-trust-item span { font-size: .78rem; color: #64748B; line-height: 1.55; }

/* planes / esquemas */
.land-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
}
.land-plan {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: .85rem;
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: transform .22s cubic-bezier(.22, .61, .36, 1), border-color .22s ease, box-shadow .22s ease;
}
.land-plan:hover {
    transform: translateY(-3px);
    border-color: #93C5FD;
    box-shadow: 0 16px 36px -16px rgba(15, 23, 42, .18);
}
.land-plan h3 { font-size: 1.05rem; font-weight: 700; color: #0F172A; margin: 0; }
.land-plan p { font-size: .85rem; color: #64748B; line-height: 1.55; margin: 0; flex: 1; }
.land-plan-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    margin-top: .4rem;
}
.land-plan-link i { font-size: .75em; transition: transform .18s ease; }
.land-plan-link:hover i { transform: translateX(3px); }
.land-plans-contact {
    text-align: center;
    color: #64748B;
    font-size: .85rem;
    margin: 1.75rem 0 0;
}
.land-plans-contact a { color: #2563EB; font-weight: 600; text-decoration: none; }
.land-plans-contact a:hover { text-decoration: underline; }

/* CTA final */
.land-cta {
    border: 1px solid #BFDBFE;
    border-radius: 1.1rem;
    background:
        linear-gradient(180deg, #EFF6FF, transparent 70%),
        #F8FAFC;
    padding: 3.5rem 2rem;
    text-align: center;
}
.land-cta h2 {
    margin: 0 0 .8rem;
    color: #0F172A;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -.02em;
}
.land-cta p { color: #64748B; margin: 0 auto 1.9rem; max-width: 30rem; font-size: .92rem; }
.land-cta .land-hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.land-footer {
    border-top: 1px solid #E2E8F0;
    max-width: 76rem;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
}
.land-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.land-footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.land-footer-brand img { width: 30px; height: 30px; margin-top: .1rem; }
.land-footer-brand b { font-size: .95rem; color: #0F172A; display: block; margin-bottom: .4rem; }
.land-footer-brand p { font-size: .78rem; color: #94A3B8; line-height: 1.55; margin: 0; max-width: 16rem; }
.land-footer nav { display: flex; flex-direction: column; gap: .65rem; }
.land-footer nav b {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: .2rem;
}
.land-footer nav a {
    color: #94A3B8;
    text-decoration: none;
    font-size: .82rem;
    transition: color .15s ease, transform .15s ease;
}
.land-footer nav a:hover { color: #0F172A; transform: translateX(2px); }
.land-footer nav a { display: inline-block; width: fit-content; }
.land-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    padding-top: 1.4rem;
    border-top: 1px solid #F1F5F9;
    font-size: .75rem;
    color: #94A3B8;
}
.land-footer-note i { color: #16A34A; font-size: .65rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .land-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .land-hero { padding-top: 3rem; }
    .land-hero p.land-sub { margin-bottom: 1.6rem; }
    .land-split { grid-template-columns: 1fr; gap: 2rem; }
    .land-split-copy { position: static; }
    .land-metrics { grid-template-columns: repeat(2, 1fr); }
    .land-plans { grid-template-columns: 1fr; }
    .land-metric:nth-child(2) { border-right: none; }
    .land-metric { border-bottom: 1px solid #F1F5F9; }
    .land-footer-grid { grid-template-columns: 1fr 1fr; }
    .land-nav-links { display: none; }
}
@media (max-width: 560px) {
    .land-nav { padding: 0 1rem; }
    .land-brand small { display: none; }
    .land-nav-links { display: none; }
    .land-hero { padding: 2.5rem 1.25rem 2.5rem; }
    .land-section { padding: 2.75rem 1.25rem; }
    .land-metrics { padding: 0 1.25rem; }
    .land-float { display: none; }
    .land-trust { grid-template-columns: 1fr; }
    .land-footer { padding: 2.25rem 1.25rem 1.25rem; }
    .land-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .rv { opacity: 1; transform: none; transition: none; }
    .land-hero-copy > *, .land-hero-visual { animation: none; }
    .land-float-a, .land-float-b { animation: none; }
    .land-card, .land-btn, .land-trust-item, .land-metric,
    .land-tile, .ltile, .land-card-icon, .land-btn i,
    .land-footer nav a { transition: none; }
    .land-btn-primary::after { display: none; }
}
