/* front.css — portada enfocada en landing y tienda, sistemas bajo pedido y banner de alianza. */

/* Hero en dos columnas: texto + maqueta de la web que el cliente va a recibir */
.lf-hero { padding-bottom: 88px; }
.lf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.lf-hero__copy { gap: 22px; }
.lf-hero__copy .ll-h1 { font-size: clamp(42px, 6.2vw, 76px); }
.lf-hero__media { min-width: 0; }
.lf-trustline { margin: 4px 0 0; font-size: 14px; color: var(--muted-dark); line-height: 1.5; }
.lf-trustline span { color: #8E9893; }
.lf-trustline a { color: #fff; text-decoration: underline; text-decoration-color: rgba(245, 213, 71, .6); text-underline-offset: 3px; }

.lf-mock { position: relative; background: #fff; color: var(--ink); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; transform: rotate(-1.5deg); }
.lf-mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #EFEDE6; border-bottom: 1px solid var(--line); }
.lf-mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #D3CFC4; }
.lf-mock__bar em { margin-left: 10px; font: 500 12px/1 var(--mono); font-style: normal; color: var(--muted); background: #fff; border-radius: 999px; padding: 6px 12px; }
.lf-mock__hero { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; background: var(--lemon); }
.lf-mock__hero b { display: block; width: 72%; height: 22px; border-radius: 6px; background: var(--ink); }
.lf-mock__hero i { display: block; width: 88%; height: 9px; border-radius: 4px; background: rgba(11, 15, 13, .35); }
.lf-mock__hero i.short { width: 60%; }
.lf-mock__cta { align-self: flex-start; margin-top: 6px; font: 700 12px/1 var(--body); background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 999px; }
.lf-mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 22px 26px; }
.lf-mock__grid span { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(160deg, #F1EEE5, #E2DED2); }
.lf-mock__wa { position: absolute; right: 16px; bottom: 16px; font: 700 12px/1 var(--body); background: #25D366; color: #fff; padding: 10px 14px; border-radius: 999px; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }

/* Paquetes principales: dos columnas anchas */
.lf-primary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.lf-minis { display: flex; flex-direction: column; gap: 10px; }
.lf-mini { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
.lf-mini strong { display: block; font-size: 17px; }
.lf-mini span { color: var(--muted); font-size: 15px; }
.lf-mini .lf-mini__price { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); white-space: nowrap; }
.lf-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Sistemas bajo pedido: tarjetas compactas, sin precio */
.lf-sys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.lf-sys__item { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--tone, var(--lemon)); border-radius: 18px; padding: 20px; }
.lf-sys__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.lf-sys__cat { font: 500 12px/1 var(--mono); color: var(--muted); }
.lf-sys__state { font: 600 12px/1 var(--body); background: #F1EEE5; color: var(--ink); padding: 6px 10px; border-radius: 999px; }
.lf-sys__item h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.lf-sys__item p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.lf-sys__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 4px; }
.lf-sys__more { color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.lf-sys__more:hover { text-decoration: underline; }

/* Banner del aliado en /alianza */
.lf-ally { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: var(--lemon); color: var(--ink); border-radius: 18px; padding: 16px 20px; font-size: 16px; }
.lf-ally strong { font-family: var(--display); font-weight: 800; font-size: 18px; }
.lf-ally small { font-size: 13px; opacity: .8; }

/* Botón "Cotizar" en la cabecera cuando "Crear cuenta" está apagado */
.ll-header__cta button.ll-btn { cursor: pointer; }

@media (max-width: 900px) {
    .lf-hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .lf-mock { transform: none; max-width: 520px; }
    .lf-mini { grid-template-columns: 1fr auto; }
    .lf-mini .ll-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .lf-mock { transform: none; }
}

/* WhatsApp: botón del hero, botón flotante y acceso en la cabecera del asistente */
.lf-btn-wa { background: #25D366; color: #0B2E1A; border-color: #25D366; }
.lf-btn-wa:hover { background: #1FBE5B; border-color: #1FBE5B; }
.lf-wa-float { position: fixed; right: 26px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, .4); text-decoration: none; }
.lf-wa-float:hover { background: #1FBE5B; }
.lf-wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ll-chat-open .lf-wa-float { display: none; }
.ll-chat__wa { display: grid; place-items: center; background: #25D366; color: #fff; text-decoration: none; }
.ll-chat__wa:hover { background: #1FBE5B; }
@media print { .lf-wa-float { display: none !important; } }

/* ===================== Resultados: tarjetas y visor de caso ===================== */
.rs-card__cover .rs-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s ease; }
.rs-card:hover .rs-card__cover .rs-card__img { transform: scale(1.03); }
.rs-card__media { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.rs-card__media span { font: 600 12px/1 var(--body); background: rgba(11, 15, 13, .82); color: #fff; padding: 7px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rs-card__mods { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink); }
.rs-card__mods li { position: relative; padding-left: 22px; line-height: 1.35; }
.rs-card__mods li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 11px; height: 6px; border-left: 2px solid var(--mint-ink); border-bottom: 2px solid var(--mint-ink); transform: rotate(-45deg); }
.rs-card__mods li.rs-card__more { color: var(--muted); padding-left: 22px; }
.rs-card__mods li.rs-card__more::before { display: none; }

/* Visor */
dialog.cs { width: min(1120px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 24px; overflow: auto; overscroll-behavior: contain; background: #fff; color: var(--ink); }
dialog.cs::backdrop { background: rgba(11, 15, 13, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cs__bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; background: var(--ink); color: #fff; }
.cs__dots { display: flex; gap: 6px; }
.cs__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A4440; }
.cs__dots i:first-child { background: #FF5F57; } .cs__dots i:nth-child(2) { background: #FEBC2E; } .cs__dots i:nth-child(3) { background: #28C840; }
.cs__url { flex: 1; min-width: 0; font: 500 13px/1 var(--mono); color: var(--muted-dark); background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 999px; padding: 9px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs__x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; }
.cs__x:hover { background: var(--lemon); }

.cs__stage { position: relative; background: color-mix(in srgb, var(--tone, var(--lemon)) 28%, #F4F2EC); padding: 28px 64px 20px; }
.cs__stage--brand { min-height: 240px; padding: 0; background: linear-gradient(135deg, var(--tone, var(--lemon)), color-mix(in srgb, var(--tone, var(--lemon)) 50%, #fff)); }
.cs__slide { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cs__slide[hidden] { display: none; }
.cs__shot { display: block; width: 100%; line-height: 0; cursor: zoom-in; }
.cs__shot img { width: 100%; max-height: 62vh; object-fit: contain; object-position: top; border-radius: 12px; background: #fff; box-shadow: 0 18px 50px rgba(11, 15, 13, .22); }
.cs__slide--phone .cs__shot { width: auto; }
.cs__slide--phone .cs__shot img { width: auto; max-width: min(300px, 70vw); max-height: 60vh; border: 10px solid var(--ink); border-radius: 38px; }
.cs__slide .ll-video { width: 100%; border-radius: 14px; box-shadow: 0 18px 50px rgba(11, 15, 13, .25); }
.cs__slide figcaption { font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, .75); padding: 6px 12px; border-radius: 999px; text-align: center; }
.cs__slide.is-broken .cs__shot { display: none; }
.cs__slide.is-broken::before { content: "Captura no disponible"; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: rgba(255, 255, 255, .6); color: var(--muted); font-size: 15px; }
.cs__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.cs__nav:hover { background: #2A322E; }
.cs__nav--prev { left: 12px; } .cs__nav--next { right: 12px; }

.cs__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.cs__thumb { flex: none; width: 112px; height: 70px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #F4F2EC center / cover no-repeat; cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.cs__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cs__thumb:hover { opacity: 1; }
.cs__thumb.is-active { opacity: 1; border-color: var(--ink); box-shadow: 0 0 0 2px var(--lemon); }
.cs__thumb--video { display: grid; place-items: center; background-color: var(--ink); }
.cs__thumb--video span { width: 30px; height: 30px; border-radius: 50%; background: var(--lemon); color: var(--ink); display: grid; place-items: center; font-size: 12px; }

.cs__body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 32px; padding: 28px 32px 36px; }
.cs__main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cs__main h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.02em; line-height: 1.05; }
.cs__sum { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 68ch; }
.cs__h { margin: 10px 0 0; font: 500 13px/1.2 var(--mono); color: var(--muted); }
.cs__mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.cs__mods li { position: relative; background: #F7F6F1; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 42px; display: flex; flex-direction: column; gap: 4px; }
.cs__mods li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; border-radius: 50%; background: var(--mint); }
.cs__mods li::after { content: ""; position: absolute; left: 19px; top: 21px; width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.cs__mods strong { font-size: 15.5px; line-height: 1.3; }
.cs__mods span { font-size: 14px; color: var(--muted); line-height: 1.45; }

.cs__facts { align-self: start; position: sticky; top: 76px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cs__facts dl { margin: 0; display: flex; flex-direction: column; }
.cs__facts dl div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.cs__facts dl div:first-child { border-top: 0; padding-top: 0; }
.cs__facts dt { color: var(--muted); }
.cs__facts dd { margin: 0; font-weight: 600; }
.cs__facts .cs__h { margin: 0; }
.cs__stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cs__stack li { font: 500 12.5px/1 var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; }
.cs__ctas { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

@media (max-width: 820px) {
    dialog.cs { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
    .cs__stage { padding: 16px 12px 14px; }
    .cs__nav { width: 36px; height: 36px; font-size: 22px; }
    .cs__nav--prev { left: 6px; } .cs__nav--next { right: 6px; }
    .cs__shot img { max-height: 46vh; }
    .cs__thumbs { padding: 10px 12px; }
    .cs__thumb { width: 84px; height: 54px; }
    .cs__body { grid-template-columns: 1fr; gap: 20px; padding: 20px 18px calc(28px + env(safe-area-inset-bottom, 0px)); }
    .cs__facts { position: static; }
}
@media (prefers-reduced-motion: reduce) {
    .rs-card__cover .rs-card__img { transition: none; }
}

/* Botón secundario de texto bajo "Lo quiero" */
.ll-link-btn{background:none;border:0;padding:6px 0 0;font:inherit;font-size:14px;color:inherit;opacity:.75;text-decoration:underline;cursor:pointer;width:100%}
.ll-link-btn:hover{opacity:1}
.lf-mini .ll-buy{width:auto}

/* =====================================================
   Encabezado v2: una sola línea en computadora, menú limpio en celular
   ===================================================== */
.ll-header__inner { flex-wrap: nowrap; padding-top: 14px; padding-bottom: 14px; gap: 20px; }
.ll-logo { flex: none; color: #fff; }
.ll-menuwrap { flex-wrap: nowrap; gap: 24px; margin-left: 12px; min-width: 0; }
.ll-nav { flex-wrap: nowrap; gap: 4px; margin: 0 auto; }
.ll-nav > a, .ll-nav .ll-menu summary { padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-size: 15px; color: #D7DCD9; transition: background .15s, color .15s; }
.ll-nav > a:hover, .ll-nav .ll-menu summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.ll-header__cta { flex-wrap: nowrap; align-items: center; gap: 14px; flex: none; }
.ll-navtext { color: #D7DCD9; text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.ll-navtext:hover { color: #fff; }
.ll-btn--nav { padding: 10px 20px; min-height: 0; font-size: 15px; white-space: nowrap; }
.ll-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; color: #fff; text-decoration: none; transition: background .15s; }
.ll-cart:hover { background: rgba(255,255,255,.1); }
.ll-cart__n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lemon, #F5D547); color: var(--ink, #0B0F0D); font: 800 11px/18px var(--body, sans-serif); text-align: center; }
.ll-header__quick { display: none; align-items: center; gap: 6px; margin-left: auto; }
@media (max-width: 1100px) {
    .ll-nav > a, .ll-nav .ll-menu summary { padding: 8px 9px; font-size: 14px; }
    .ll-menuwrap { gap: 14px; }
}
@media (max-width: 900px) {
    .ll-header__quick { display: flex; }
    .ll-header__quick .ll-burger { margin-left: 0; }
    .ll-only-desk { display: none; }
    .ll-menuwrap { padding: 8px 20px 28px; gap: 4px; }
    .ll-nav { margin: 0; }
    .ll-nav > a, .ll-nav .ll-menu summary { padding: 16px 4px; font-size: 18px; border-radius: 0; color: #fff; }
    .ll-nav > a:hover, .ll-nav .ll-menu summary:hover { background: none; }
    .ll-header__cta { flex-direction: column-reverse; align-items: stretch; gap: 12px; padding-top: 18px; }
    .ll-header__cta .ll-btn--nav { width: 100%; padding: 14px 20px; font-size: 16px; text-align: center; }
    .ll-navtext { text-align: center; padding: 8px; }
}
