/* =====================================================================
   BuenVecino — Landing internacional · VARIANTE v2
   ADN visual del home de Argentina (hero oscuro con foto + overlay,
   badge glassmorphism, título Raleway 900, botones pill con gradiente,
   stats strip, feature cards, steps sobre fondo oscuro, plan-cards),
   pero rearmado mobile-first y self-contained (sin Bootstrap).
   ===================================================================== */

:root {
    --c-primary: #5193c1;
    --c-primary-dark: #3f7ea9;
    --c-primary-deep: #315d86;
    --c-heading: #244261;
    --c-muted: #74849a;
    --c-accent: #d67967;
    --c-footer: #18324d;
    --c-success: #59b98d;
    --c-soft: #f4f8fb;
    --c-border: #e6edf3;
    --primary-rgb: 81, 147, 193;
    --primary-dark-rgb: 63, 126, 169;
    --accent-rgb: 214, 121, 103;
    --footer-rgb: 24, 50, 77;
    --sticky-h: 76px;
}

* { box-sizing: border-box; }

body.lp {
    margin: 0;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--c-heading);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.lp2-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.lp2-wrap--narrow { max-width: 760px; }

/* ---------- Botones (pill con gradiente, estilo AR) ---------- */
.lp2-btn {
    display: inline-block; text-align: center; cursor: pointer;
    font-weight: 700; font-size: 16px; letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 15px 36px; border-radius: 50px; border: none;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 32px rgba(var(--primary-rgb), 0.34);
    transition: transform .25s ease, box-shadow .25s ease, opacity .2s ease;
}
.lp2-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(var(--primary-dark-rgb), 0.42); color: #fff; }
.lp2-btn--lg { font-size: 17px; padding: 17px 44px; }
.lp2-btn--sm { font-size: 12px; padding: 9px 20px; box-shadow: none; }
.lp2-btn--block { display: block; width: 100%; }
.lp2-btn--ghost {
    background: transparent; color: rgba(255,255,255,0.92);
    border: 2px solid rgba(255,255,255,0.46); box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.lp2-btn--ghost:hover { background: rgba(var(--primary-rgb), 0.16); border-color: rgba(255,255,255,0.8); color: #fff; }
/* CTA de alto contraste sobre secciones de gradiente oscuro */
.lp2-on-dark .lp2-btn {
    background: #fff; color: var(--c-footer);
    box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}
.lp2-on-dark .lp2-btn:hover { color: var(--c-footer); opacity: 0.96; }

/* ---------- Topbar (fija, transparente sobre el hero, sólida al scroll) ---------- */
.lp2-topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
    transition: background .35s ease, box-shadow .35s ease;
}
.lp2-topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp2-logo { font-size: 21px; font-weight: 400; color: #fff; letter-spacing: -0.2px; transition: color .35s ease; }
.lp2-logo strong { font-weight: 800; }
.lp2-topbar.lp2-scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}
.lp2-topbar.lp2-scrolled .lp2-logo { color: var(--c-heading); }
.lp2-topbar.lp2-scrolled .lp2-logo strong { color: var(--c-primary); }
.lp2-topbar__login {
    color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.3px;
    opacity: 0.92; transition: color .35s ease, opacity .2s ease;
}
.lp2-topbar__login:hover { color: #fff; opacity: 1; }
.lp2-topbar.lp2-scrolled .lp2-topbar__login { color: var(--c-heading); }

/* ---------- Hero ---------- */
.lp2-hero {
    position: relative; min-height: 92vh;
    display: flex; flex-direction: column; justify-content: center;
    text-align: center; overflow: hidden;
    padding: 110px 0 130px;
}
.lp2-hero__bg {
    position: absolute; inset: 0;
    background: url("../images/home/edificios.jpg") center 40% / cover no-repeat;
    transform: scale(1.04);
}
.lp2-hero__overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 115% 78% at 50% 40%, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0.15) 42%, transparent 68%),
        linear-gradient(180deg, rgba(var(--footer-rgb),0.62) 0%, rgba(var(--primary-rgb),0.30) 48%, rgba(var(--footer-rgb),0.80) 100%);
}
.lp2-hero__inner { position: relative; z-index: 2; }
.lp2-hero__content { max-width: 820px; margin: 0 auto; }
.lp2-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(var(--primary-rgb), 0.18);
    border: 1px solid rgba(255,255,255,0.18);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: rgba(255,255,255,0.92); border-radius: 100px;
    padding: 7px 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.6px;
    margin-bottom: 26px; text-transform: uppercase;
}
.lp2-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 6px var(--c-success); animation: lp2-pulse 2s infinite; }
@keyframes lp2-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.lp2-hero__title {
    font-size: 38px; font-weight: 900; color: #fff; line-height: 1.1;
    margin: 0 0 20px; letter-spacing: -0.6px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.lp2-hero__title .accent { color: #8ec0e4; }
.lp2-hero__subtitle {
    font-size: 18px; color: rgba(255,255,255,0.9); max-width: 560px;
    margin: 0 auto 36px; line-height: 1.6;
    text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.lp2-hero__ctas { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lp2-hero__ctas .lp2-btn { width: 100%; max-width: 360px; }
.lp2-hero__cta-note {
    margin: 14px 0 0; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.lp2-hero__trust {
    margin: 22px 0 0; font-size: 14px; color: rgba(255,255,255,0.82);
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.lp2-hero__trust strong { color: #fff; }

/* ---------- Stats strip ---------- */
.lp2-stats {
    position: relative; z-index: 10; margin-top: -1px;
    background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}
.lp2-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.lp2-stat { padding: 26px 12px; text-align: center; border-right: 1px solid #f0f0f0; }
.lp2-stat:last-child { border-right: none; }
.lp2-stat__num { font-size: 34px; font-weight: 900; color: var(--c-primary); line-height: 1; display: block; }
.lp2-stat__desc { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #aab; margin-top: 8px; display: block; }

/* ---------- Secciones compartidas ---------- */
.lp2-section { padding: 64px 0; }
.lp2-section--soft { background: var(--c-soft); }
.lp2-section--dark { background: linear-gradient(145deg, var(--c-footer) 0%, var(--c-primary-deep) 55%, var(--c-primary) 100%); }
.lp2-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.lp2-tag {
    display: inline-block; background: rgba(var(--primary-rgb), 0.12); color: var(--c-primary);
    border-radius: 100px; padding: 5px 18px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.lp2-tag.light { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.lp2-h2 { font-size: 30px; font-weight: 900; color: var(--c-heading); line-height: 1.18; margin: 0 0 12px; letter-spacing: -0.5px; }
.lp2-h2.light { color: #fff; }
.lp2-lead { font-size: 16px; color: var(--c-muted); line-height: 1.7; margin: 0; }
.lp2-lead.light { color: rgba(255,255,255,0.7); }

/* ---------- Feature cards (beneficios) ---------- */
.lp2-cards { display: grid; gap: 18px; }
.lp2-card {
    background: #fff; border-radius: 18px; padding: 26px 24px;
    border: 1.5px solid rgba(0,0,0,0.04); box-shadow: 0 4px 28px rgba(0,0,0,0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}
.lp2-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(var(--primary-rgb), 0.16); }
.lp2-card__chip {
    width: 48px; height: 48px; border-radius: 13px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px;
    background: rgba(var(--primary-rgb), 0.12); color: var(--c-primary);
}
.lp2-card:nth-child(2) .lp2-card__chip { background: rgba(var(--accent-rgb), 0.12); color: var(--c-accent); }
.lp2-card:nth-child(3) .lp2-card__chip { background: rgba(89,185,141,0.14); color: var(--c-success); }
.lp2-card:nth-child(4) .lp2-card__chip { background: rgba(230,126,34,0.12); color: #e67e22; }
.lp2-card__text { font-size: 16px; font-weight: 700; color: var(--c-heading); margin: 0; }

/* ---------- ¿Para quién es? (doble público) ---------- */
.lp2-audiences { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }
.lp2-aud {
    background: #fff; border: 1.5px solid var(--c-border); border-radius: 18px;
    padding: 28px 26px; box-shadow: 0 4px 28px rgba(0,0,0,0.05);
}
.lp2-aud__icon {
    width: 54px; height: 54px; border-radius: 14px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px;
    background: rgba(var(--primary-rgb), 0.12); color: var(--c-primary);
}
.lp2-aud:nth-child(2) .lp2-aud__icon { background: rgba(var(--accent-rgb), 0.12); color: var(--c-accent); }
.lp2-aud__title { font-size: 19px; font-weight: 800; color: var(--c-heading); margin: 0 0 8px; }
.lp2-aud__text { font-size: 15px; color: var(--c-muted); line-height: 1.6; margin: 0; }

/* ---------- Cómo funciona (sobre fondo oscuro) ---------- */
.lp2-steps { display: grid; gap: 30px; }
.lp2-step { text-align: center; }
.lp2-step__visual { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 18px; }
.lp2-step__num {
    width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(145deg, var(--c-primary), var(--c-primary-dark));
    color: #fff; font-size: 21px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(var(--primary-dark-rgb), 0.4);
}
.lp2-step__tile {
    width: 62px; height: 62px; border-radius: 16px; flex-shrink: 0;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
}
.lp2-step__tile i { font-size: 32px; color: #fff; }
.lp2-step__title { font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.lp2-step__text { font-size: 15px; color: rgba(255,255,255,0.72); margin: 0; max-width: 280px; margin-left: auto; margin-right: auto; }

/* ---------- Precios (plan-cards estilo AR) ---------- */
/* Mobile: carrusel horizontal con "peek" de la próxima tarjeta + snap. */
.lp2-plans {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 8px;
    margin: 0 -4px;
    scrollbar-width: none;
}
.lp2-plans::-webkit-scrollbar { display: none; }
.lp2-plan {
    position: relative; background: #fff; border-radius: 18px; padding: 30px 26px;
    border: 1.5px solid var(--c-border); box-shadow: 0 8px 30px rgba(var(--footer-rgb), 0.08);
    overflow: hidden;
    /* En el carrusel mobile cada tarjeta ocupa 82% (se asoma la siguiente). */
    flex: 0 0 82%;
    scroll-snap-align: center;
}
.lp2-plan::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
}
.lp2-plan--featured { border-color: var(--c-primary); box-shadow: 0 20px 50px rgba(var(--footer-rgb), 0.18); }
.lp2-plan__badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.6px; padding: 5px 12px; border-radius: 100px;
}
.lp2-plan__name { font-size: 22px; font-weight: 900; color: var(--c-heading); margin: 6px 0 4px; }
.lp2-plan__for { font-size: 14px; color: var(--c-muted); margin: 0 0 16px; }
.lp2-plan__price { margin: 0; }
.lp2-plan__amount { font-size: 40px; font-weight: 900; color: var(--c-heading); }
.lp2-plan__period { font-size: 15px; color: var(--c-muted); }
.lp2-plan__note { margin: 2px 0 18px; font-size: 13px; font-weight: 700; color: var(--c-primary-deep); }
.lp2-plan__feats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.lp2-plan__feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #556; }
.lp2-plan__feats i { color: var(--c-success); font-size: 18px; margin-top: 1px; flex: none; }
.lp2-pricing__free { text-align: center; color: var(--c-muted); margin: -8px 0 26px; }
.lp2-pricing__free a { color: var(--c-primary-dark); font-weight: 800; }
.lp2-pricing__legend { text-align: center; font-size: 13px; color: var(--c-muted); margin: 24px auto 0; max-width: 560px; }
.lp2-plans-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.lp2-dot {
    width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
    background: var(--c-border); transition: background .2s ease, transform .2s ease;
}
.lp2-dot.is-active { background: var(--c-primary); transform: scale(1.3); }

/* ---------- FAQ ---------- */
.lp2-faq__item { border: 1px solid var(--c-border); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.lp2-faq__item summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 16px; color: var(--c-heading); padding: 16px 0; position: relative; padding-right: 30px; }
.lp2-faq__item summary::-webkit-details-marker { display: none; }
.lp2-faq__item summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 24px; color: var(--c-primary); font-weight: 800; }
.lp2-faq__item[open] summary::after { content: "\2013"; }
.lp2-faq__item p { margin: 0 0 18px; color: var(--c-muted); font-size: 15px; }

/* ---------- CTA final ---------- */
.lp2-cta-final { text-align: center; }
.lp2-cta-final .lp2-lead { margin: 0 auto 28px; }

/* ---------- Footer ---------- */
.lp2-footer { background: var(--c-footer); color: rgba(255,255,255,0.85); padding: 30px 0; }
.lp2-footer__inner { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.lp2-footer__nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; font-size: 15px; font-weight: 600; }
.lp2-footer__nav a { color: rgba(255,255,255,0.85); }
.lp2-footer__nav a:hover { color: #fff; }
.lp2-footer__nav i { color: var(--c-success); }

/* ---------- Sticky CTA (mobile) ---------- */
.lp2-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060;
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(var(--footer-rgb), 0.10);
    /* Oculto hasta pasar el hero (se revela por JS) para no duplicar el CTA del hero. */
    transform: translateY(120%);
    transition: transform .3s ease;
}
.lp2-sticky.lp2-sticky--visible { transform: translateY(0); }

/* =====================================================================
   Scroll-reveal (aparición al entrar en viewport)
   - El contenido es visible por defecto; sólo se anima si hay JS (que agrega
     .lp2-reveal-on al body) y el usuario no pidió reducir movimiento.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
    body.lp2-reveal-on [data-reveal] {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
        will-change: opacity, transform;
    }
    body.lp2-reveal-on [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
    /* Stagger en grupos (tarjetas y pasos entran escalonados) */
    body.lp2-reveal-on .lp2-card:nth-child(2),
    body.lp2-reveal-on .lp2-step:nth-child(2) { transition-delay: .08s; }
    body.lp2-reveal-on .lp2-card:nth-child(3),
    body.lp2-reveal-on .lp2-step:nth-child(3) { transition-delay: .16s; }
    body.lp2-reveal-on .lp2-card:nth-child(4) { transition-delay: .24s; }
}

/* =====================================================================
   Tablet / desktop
   ===================================================================== */
@media (min-width: 768px) {
    .lp2-hero { padding: 150px 0 150px; }
    .lp2-hero__title { font-size: 60px; }
    .lp2-hero__subtitle { font-size: 21px; }
    .lp2-hero__ctas { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .lp2-hero__ctas .lp2-btn { width: auto; }
    .lp2-section { padding: 90px 0; }
    .lp2-h2 { font-size: 38px; }
    .lp2-cards { grid-template-columns: repeat(2, 1fr); }
    .lp2-audiences { grid-template-columns: 1fr 1fr; gap: 24px; }
    .lp2-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    /* Desktop: vuelve a grilla de 3 (sin carrusel). */
    .lp2-plans {
        display: grid; grid-template-columns: repeat(3, 1fr); align-items: start;
        gap: 22px; overflow: visible; margin: 0; padding: 0;
    }
    .lp2-plan { flex: none; }
    .lp2-plans-dots { display: none; }
    .lp2-plan--featured { transform: scale(1.04); }
    .lp2-footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
    .lp2-sticky { display: none; }
    body.lp { padding-bottom: 0; }
}

@media (min-width: 992px) {
    .lp2-cards { grid-template-columns: repeat(4, 1fr); }
}
