/* ════════════════════════════════════════════════════════════════════════
   Prix.casa landing design system (2026-10-03) — light theme, brand colours.
   Origin: the approved Alertas page. Used by every /landing and /landing/marketing
   page that sets @section('theme', 'light') (body.lp-light) and wraps content in
   <main class="lp">. Components: resources/views/components/landing/*.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Page shell (light pages only) ─────────────────────────────────────── */
body.lp-light { background: #f8fafc; color: #0f172a; }
body.lp-light::before { background-image: none; }
body.lp-light .orb { display: none; }
body.lp-light nav.landing-nav { background: #0d2b67 !important; }
body.lp-light footer.landing-footer { background: #0d2b67; position: relative; z-index: 1; }

/* ── Tokens ────────────────────────────────────────────────────────────── */
.lp {
    --ink: #0f172a; --sub: #475569; --muted: #64748b; --line: #e2e8f0; --soft: #f1f5f9;
    --bg: #f8fafc; --card: #fff;
    --teal: #32a2ad; --teal-btn: #1e7a84; --teal-d: #1c5c66; --navy: #0d2b67; --coral: #ff7062; --gold: #f5b700;
    --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    position: relative; z-index: 1; font-size: 17px; line-height: 1.6; color: var(--ink);
}
.lp .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp .wrap--wide { max-width: 1360px; }
.lp h1, .lp h2, .lp h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.02em; }
.lp a { color: inherit; }

/* ── Small pieces ──────────────────────────────────────────────────────── */
.lp .eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--display);
    text-transform: uppercase; letter-spacing: .12em; color: var(--teal-d);
    background: rgba(50,162,173,.10); border: 1px solid rgba(50,162,173,.25); padding: 8px 14px; border-radius: 999px; }
.lp .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); display: inline-block; }
.lp .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.lp .crumbs a { color: var(--muted); text-decoration: none; }
.lp .crumbs a:hover { color: var(--teal-d); }

.lp .btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 14px;
    font: 700 16px/1 var(--display); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.lp .btn-main { background: var(--teal-btn); color: #fff; box-shadow: 0 10px 26px rgba(50,162,173,.32); }
.lp .btn-main:hover { background: var(--teal-d); transform: translateY(-2px); }
.lp .btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.lp .btn-ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.lp .btn svg { width: 16px; height: 16px; }

.lp .ico { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; vertical-align: -.35em; margin: 0 .1em; }
.lp .ico svg { width: .95em; height: .95em; }
.lp .ico.heart { background: #fff1ef; color: var(--coral); }
.lp .ico.eye, .lp .ico.teal { background: #e6f6f7; color: var(--teal-d); }
.lp .ico.navy { background: #e8edf7; color: var(--navy); }

.lp-note { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--sub);
    background: #fffbea; border: 1px solid #fde68a; border-radius: 14px; padding: 12px 14px; }

/* ── Lottie stage + HTML labels over it (coordinates = % of the 400x300 scene) ─ */
.lp .stage { position: relative; container-type: inline-size; aspect-ratio: 4 / 3;
    background: #fff; border: 1px solid var(--line); border-radius: 28px;
    box-shadow: 0 30px 60px -24px rgba(13,43,103,.20); overflow: hidden; }
.lp .stage.bare { background: none; border: 0; box-shadow: none; overflow: visible; }
.lp .stage .lottie { position: absolute; inset: 0; }
.lp .ov { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
    font: 800 3.1cqw/1 var(--display); letter-spacing: .06em; color: var(--navy); }
.lp .ov.left { transform: translate(0, -50%); }
.lp .ov.pill { background: #fff; padding: .45em .8em; border-radius: 999px; box-shadow: 0 4px 14px rgba(13,43,103,.12); }
.lp .ov.light { color: #fff; }
.lp .ov.small { font-size: 2.6cqw; letter-spacing: .03em; }
.lp .ov.sub { font: 600 2.4cqw/1 'Inter', sans-serif; letter-spacing: 0; color: var(--muted); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.lp-hero { padding: 128px 0 56px;
    background: radial-gradient(1100px 520px at 88% 0%, rgba(50,162,173,.16), transparent 60%),
                radial-gradient(800px 420px at 0% 100%, rgba(255,112,98,.10), transparent 60%); }
.lp-hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lp-hero h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; line-height: 1.04; margin: 18px 0 20px; }
.lp-hero h1 em { font-style: normal; color: var(--teal); }
.lp-hero p.lead { font-size: 19px; line-height: 1.6; color: var(--sub); max-width: 560px; margin-bottom: 28px; }
.lp .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Fact cards ────────────────────────────────────────────────────────── */
.lp-facts { padding: 12px 0 76px; }
.lp-facts .row { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 18px; }
.lp-fact { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 22px;
    box-shadow: 0 12px 30px -18px rgba(13,43,103,.25); overflow: hidden; }
.lp-fact::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c, var(--teal)); }
.lp-fact .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 16px;
    background: color-mix(in srgb, var(--c, var(--teal)) 14%, white); color: var(--c, var(--teal)); }
.lp-fact .ic svg { width: 26px; height: 26px; }
.lp-fact strong { display: block; font: 800 30px/1.05 var(--display); color: var(--ink); letter-spacing: -.02em; margin-bottom: 6px; }
.lp-fact span { font-size: 15px; line-height: 1.45; color: var(--sub); }

/* ── Sections, steps ───────────────────────────────────────────────────── */
.lp-section { padding: 80px 0; }
.lp-section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp .sec-title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.1; margin: 16px 0 12px; }
.lp .sec-sub { color: var(--sub); font-size: 18px; max-width: 660px; }
.lp-step { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.lp-step.flip .lp-step-media { order: 2; }
.lp-step .num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    font: 800 20px/1 var(--display); color: #fff; background: var(--c, var(--navy)); margin-bottom: 16px; }
.lp-step h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.lp-step p { font-size: 18px; line-height: 1.6; color: var(--sub); max-width: 480px; }
.lp-step p + p { margin-top: 12px; }
.lp-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; max-width: 500px; }
.lp-list li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center;
    background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 16px; color: var(--sub); }
.lp-list li b { font: 800 14px/1.2 var(--display); color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }

/* ── Feature tiles + country cards ─────────────────────────────────────── */
.lp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.lp-tile { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line);
    border-radius: 22px; padding: 24px 22px; text-decoration: none; box-shadow: 0 12px 30px -18px rgba(13,43,103,.25);
    transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.lp-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c, var(--teal)); }
.lp-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c, var(--teal)) 45%, white);
    box-shadow: 0 22px 40px -22px rgba(13,43,103,.35); }
.lp-tile .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--c, var(--teal)) 14%, white); color: var(--c, var(--teal)); }
.lp-tile .ic svg { width: 24px; height: 24px; }
.lp-tile h3 { font-size: 21px; font-weight: 800; line-height: 1.2; }
.lp-tile p { font-size: 15px; color: var(--sub); flex: 1; }
.lp-tile .more { font: 700 14px/1 var(--display); color: var(--teal-d); }
.lp-group-title { font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 40px; }

/* ── Example box ───────────────────────────────────────────────────────── */
.lp-example .box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center;
    background: linear-gradient(135deg, #e8f7f8 0%, #fff4f2 100%); border: 1px solid var(--line); border-radius: 30px; padding: 46px; }
.lp-example .tag { color: var(--coral); font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: .12em; }
.lp-example h2 { font-size: 32px; font-weight: 800; line-height: 1.15; margin-top: 12px; }
.lp-example ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.lp-example li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; font-size: 17px; color: var(--ink); }
.lp-example li::before { content: counter(s); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
    background: var(--navy); color: #fff; font: 800 15px/1 var(--display); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.lp-faq .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; align-items: start; }
.lp-faq details { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.lp-faq summary { cursor: pointer; font: 700 17px/1.35 var(--display); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--teal); font-size: 24px; line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin-top: 10px; color: var(--sub); font-size: 16px; line-height: 1.6; }
.lp-faq details p a { color: var(--teal-d); font-weight: 700; }

/* ── Final CTA ─────────────────────────────────────────────────────────── */
.lp-final { padding: 84px 0; text-align: center; }
.lp-final h2 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin-bottom: 12px; }
.lp-final p { color: var(--sub); font-size: 18px; margin: 0 auto 26px; max-width: 580px; }
.lp-final .ctas { justify-content: center; }

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.lp-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(var(--i, 0) * 70ms); }
.lp-reveal.is-in { opacity: 1; transform: none; }
.no-js .lp-reveal { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .lp-hero .grid, .lp-step, .lp-example .box { grid-template-columns: 1fr; }
    .lp-step.flip .lp-step-media { order: 0; }
    .lp-facts .row { grid-template-columns: repeat(2, 1fr); }
    .lp-faq .grid { grid-template-columns: 1fr; }
    .lp-tiles { grid-template-columns: repeat(2, 1fr); }
    .lp-hero { padding-top: 108px; }
    .lp-example .box { padding: 28px; }
    .lp-hero .stage.bare { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
    .lp-facts .row, .lp-tiles { grid-template-columns: 1fr; }
    .lp-list li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp .btn, .lp-tile, .lp-reveal { transition: none; }
    .lp-reveal { opacity: 1; transform: none; }
    .lp-tile:hover, .lp .btn-main:hover { transform: none; }
}

/* ── /landing map hero: photo anchored left (all countries visible), glass panel right ── */
.lp-maphero { position: relative; min-height: clamp(700px, 54.5vw, 1000px); display: flex; align-items: center;
    overflow: hidden; background: #050b1a; padding: 112px 0 64px; }
.lp-maphero-band { position: absolute; inset: 0; }
/* The frame keeps the photo's shape so pins stay on their countries; it always covers the hero:
   width = max(hero width, hero height x 1.8338). --hh (hero height) is set by a tiny script; without
   it the frame is simply full width. */
.lp-maphero-frame { position: absolute; left: 0; bottom: 0; aspect-ratio: 1920 / 1047;
    width: max(100%, calc(var(--hh, 0px) * 1.8338)); }
.lp-maphero-frame img { width: 100%; height: 100%; display: block; }
.lp-maphero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(270deg, rgba(5,11,26,.70) 0%, rgba(5,11,26,.35) 30%, rgba(5,11,26,0) 50%),
                linear-gradient(0deg, rgba(5,11,26,.55) 0%, rgba(5,11,26,0) 16%); }
.lp-maphero-grid { position: relative; z-index: 1; width: 100%; display: grid; pointer-events: none;
    grid-template-columns: 1fr minmax(380px, 480px); align-items: center; }
/* Panel hugs the right edge of the screen (over the ocean), not the centred container. */
.lp .wrap.lp-maphero-grid { max-width: none; padding: 0 clamp(16px, 5vw, 110px); }
.lp-maphero-copy { grid-column: 2; color: #fff; pointer-events: auto;
    background: rgba(5,11,26,.62); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 32px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); }
.lp .lp-maphero h1 { color: #fff; font-size: clamp(32px, 3vw, 46px); font-weight: 800; line-height: 1.08; margin: 14px 0 14px; }
.lp .lp-maphero h1 em { font-style: normal; color: #5cc4cf; }
.lp-maphero .lead { color: #cbd5e1; font-size: 17px; line-height: 1.6; margin-bottom: 18px; }
.lp-maphero .eyebrow { color: #a5e3e8; background: rgba(50,162,173,.16); border-color: rgba(92,196,207,.35); }
.lp-maphero .lp-promo { margin: 0 0 22px; padding: 12px 14px; border-radius: 14px;
    border: 1px solid rgba(245,183,0,.5); background: rgba(245,183,0,.10); color: #fff; font-size: 15px; line-height: 1.45; }
.lp-maphero .lp-promo strong { color: #ffd84d; font: 800 12px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.lp-maphero .lp-promo span { display: block; margin-top: 4px; color: rgba(255,255,255,.78); font-size: 13.5px; }
.lp-maphero .ctas { flex-wrap: nowrap; }
.lp-maphero .btn { padding: 14px 20px; font-size: 15px; white-space: nowrap; }
.lp-maphero .btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.lp-maphero .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.lp-pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; z-index: 2;
    background: #5cc4cf; border: 2px solid #fff; animation: lp-ping 2.2s ease-out infinite; cursor: default; }
.lp-pin span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; opacity: 0;
    transition: opacity .15s; pointer-events: none;
    font: 800 12px/1 var(--display); color: #0d2b67; background: #fff; padding: 5px 8px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.lp-pin:hover span, .lp-pin:focus span { opacity: 1; }
@keyframes lp-ping { 0% { box-shadow: 0 0 0 0 rgba(92,196,207,.7); } 80%, 100% { box-shadow: 0 0 0 18px rgba(92,196,207,0); } }

/* ── Country cards + chips ─────────────────────────────────────────────── */
.lp-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.lp-country { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 18px; text-decoration: none; box-shadow: 0 12px 30px -18px rgba(13,43,103,.25); transition: transform .2s, border-color .2s; }
.lp-country:hover { transform: translateY(-3px); border-color: var(--teal); }
.lp-country .flag { font-size: 34px; line-height: 1; }
.lp-country b { display: block; font: 800 18px/1.2 var(--display); color: var(--ink); }
.lp-country small { color: var(--teal-d); font-weight: 700; font-size: 14px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lp-chip { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--sub); }

@media (max-width: 1024px) {
    .lp-maphero { min-height: 0; display: block; padding: 64px 0 0; }
    .lp-maphero-band { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
    .lp-maphero-band .lp-maphero-frame { left: -6%; width: 150%; }
    .lp-maphero::after { display: none; }
    .lp-maphero-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, #050b1a, transparent); }
    .lp-maphero-grid { display: block; padding: 0 16px 40px; background: #050b1a; }
    .lp-maphero-copy { background: none; border: 0; box-shadow: none; padding: 8px 0 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .lp-maphero .ctas { flex-wrap: wrap; }
}
@media (min-width: 600px) and (max-width: 1024px) {
    .lp-maphero-band { aspect-ratio: 16 / 9; }
    .lp-maphero-band .lp-maphero-frame { width: 118%; left: -4%; }
}
@media (prefers-reduced-motion: reduce) { .lp-pin { animation: none; } }

/* ── Language switcher in the landing nav (2026-10-04) — ES · EN · PT · FR → ?lang=xx ── */
nav.landing-nav .lp-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 999px; flex-shrink: 0; }
nav.landing-nav .links .lp-lang a { font: 700 11px/1 'Inter', sans-serif; letter-spacing: .06em;
    color: rgba(255,255,255,.72); padding: 6px 7px; border-radius: 999px; text-decoration: none; }
nav.landing-nav .links .lp-lang a:hover { color: #fff; }
nav.landing-nav .links .lp-lang a.is-on { background: rgba(255,255,255,.16); color: #fff; }
nav.landing-nav .links .lp-lang a:focus-visible { outline: 2px solid var(--teal-l, #5cc4cf); outline-offset: 1px; }
@media (max-width: 560px) {
    nav.landing-nav .nav-inner .links { gap: 10px; }
    nav.landing-nav .links .lp-lang a { padding: 6px 5px; font-size: 10.5px; letter-spacing: .03em; }
}
@media (max-width: 420px) {
    nav.landing-nav .nav-logo img { max-width: 112px; height: 30px; }
    nav.landing-nav .links .nav-cta { padding: 8px 11px; font-size: 12px; white-space: nowrap; }
}
