/* ============================================================
   extensions-hub.css — vitrina /extensiones y páginas de cada
   extensión (Cost Lens). Prefijo xh- (hub) y cl- (Cost Lens).
   ============================================================ */
.xh { background: #05060f; color: #e2e8f0; }
.xh .container { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.xh-hero { position: relative; overflow: hidden; padding: 140px 0 80px; }
.xh-hero-bg span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; animation: shDrift 20s ease-in-out infinite alternate; }
.xh-hero-bg span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -16vw; background: radial-gradient(circle, rgba(34,211,238,.5), transparent 70%); }
.xh-hero-bg span:nth-child(2) { width: 42vw; height: 42vw; right: -10vw; top: 0; background: radial-gradient(circle, rgba(168,85,247,.5), rgba(99,102,241,.2) 55%, transparent 70%); animation-duration: 26s; }
@keyframes shDrift { to { transform: translate3d(4vw, 3vw, 0) scale(1.1); } }
.xh-browsers { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.xh-plug { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, #22d3ee, #6366f1 55%, #a855f7); box-shadow: 0 8px 24px rgba(99,102,241,.45); }
.xh-title { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; color: #fff; margin: 0 0 18px; max-width: 900px; }
.sh-shine-lite { background: linear-gradient(100deg, #22d3ee, #818cf8 45%, #c084fc 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.xh-lead { color: #cbd5e1; font-size: 1.1rem; line-height: 1.7; max-width: 680px; margin: 0 0 28px; }
.xh-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.xh-cta .btn, .xh-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.xh-stats { margin-top: 34px; }
.sh-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin: 30px 0 0; padding: 0; }
.xh-stats { grid-template-columns: repeat(3, auto); }
.sh-stats div { display: flex; flex-direction: column; padding: 0 22px; border-left: 1px solid rgba(255,255,255,.12); }
.sh-stats div:first-child { padding-left: 0; border-left: 0; }
.sh-stats dd { order: -1; margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.1; background: linear-gradient(180deg, #fff, #a5b4fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sh-stats dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8; }

/* ---------- Filtros y tarjetas ---------- */
.xh-list { padding: 20px 0 90px; }
.xh-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.xh-filters button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: #cbd5e1; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: background .2s, border-color .2s, color .2s; }
.xh-filters button b { font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.1); }
.xh-filters button:hover { color: #fff; border-color: rgba(129,140,248,.6); }
.xh-filters button.is-active { color: #fff; background: linear-gradient(135deg, rgba(34,211,238,.25), rgba(168,85,247,.3)); border-color: rgba(168,85,247,.6); }

.xh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.xh-card { --c: #a855f7; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); transition: transform .25s, border-color .25s, box-shadow .25s; }
.xh-card[hidden] { display: none; }
.xh-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 70%, transparent); }
.xh-card:first-child { grid-column: 1 / -1; flex-direction: row; }
.xh-card:first-child .xh-card-art { flex: 0 0 52%; aspect-ratio: auto; }
.xh-card-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0b1020; }
.xh-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.xh-card:hover .xh-card-art img { transform: scale(1.04); }
.xh-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.xh-card h2 { font-size: 1.3rem; margin: 2px 0 0; line-height: 1.2; }
.xh-card h2 a { color: #fff; text-decoration: none; }
.xh-card p { margin: 0; color: #94a3b8; line-height: 1.6; font-size: .95rem; }
.xh-card .xh-tagline { color: #e2e8f0; font-weight: 600; font-size: 1.02rem; }
.xh-card .ext-tile-head { display: flex; align-items: center; gap: 14px; }
.xh-card .ext-tile-head .android-new { margin: 0 0 0 auto; }
.xh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.xh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.xh-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: #cbd5e1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.xh-chip.is-reach { color: #a5f3fc; border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.1); }
.xh-soon { border-style: dashed; background: transparent; justify-content: center; }
.xh-soon h2 { color: #fff; }
.xh-soon-ic { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; font-size: 1.4rem; color: #fde68a; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.35); }

/* tonos compartidos con la home */
.tone-violet { --c: #a855f7; } .tone-cyan { --c: #22d3ee; } .tone-green { --c: #34d399; } .tone-gold { --c: #fbbf24; } .tone-pink { --c: #ff3fa4; }
.ext-tile-kicker { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.ext-tile-head img { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: 0 8px 20px rgba(0,0,0,.45); }

/* ---------- Promesa / privacidad ---------- */
.xh-promise { padding: 70px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); background: radial-gradient(700px 300px at 50% 0%, rgba(99,102,241,.14), transparent 70%); }
.xh-promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.xh-promise h3, .cl-feature h3 { color: #fff; font-size: 1.08rem; margin: 12px 0 6px; }
.xh-promise p, .cl-feature p { color: #94a3b8; margin: 0; line-height: 1.6; font-size: .94rem; }
.xh-p-ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.25rem; color: #a5b4fc; background: rgba(99,102,241,.14); border: 1px solid rgba(129,140,248,.3); }

/* ---------- Cost Lens ---------- */
.cl-hero { padding-bottom: 90px; }
.cl-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 54px; align-items: center; }
.cl-back { display: inline-flex; align-items: center; gap: 4px; color: #94a3b8; font-size: .88rem; text-decoration: none; margin-bottom: 18px; }
.cl-back:hover { color: #fff; }
.cl-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cl-brand img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px rgba(99,102,241,.5); }
.cl-name { margin: 0; font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.1; }
.cl-for { margin: 0; font-size: .92rem; font-weight: 600; color: #a5b4fc; }
.cl-brand .android-new { margin: 0 0 0 4px; }
.cl-hero .xh-title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.cl-hero-chips { margin-top: 22px; }
.cl-shot { position: relative; }
.cl-window { border-radius: 16px; overflow: hidden; background: #0b1020; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 60px -10px rgba(99,102,241,.45); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cl-shot:hover .cl-window { transform: none; }
.cl-window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #111827; border-bottom: 1px solid rgba(255,255,255,.08); }
.cl-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.cl-window-bar i:nth-child(1) { background: #f87171; } .cl-window-bar i:nth-child(2) { background: #fbbf24; } .cl-window-bar i:nth-child(3) { background: #34d399; }
.cl-window-bar span { margin-left: 10px; font-size: .74rem; color: #94a3b8; font-family: var(--font-mono, monospace); }
.cl-window img { display: block; width: 100%; height: auto; }
.cl-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); animation: clFloat 5s ease-in-out infinite; }
.cl-float-cost { left: -22px; top: 18%; background: #fff; color: #0f172a; font-size: 1.05rem; }
.cl-float-cost .dot { width: 10px; height: 10px; border-radius: 50%; background: #16a34a; }
.cl-float-cost span { color: #64748b; font-weight: 600; }
.cl-float-cost em { font-style: normal; padding: 1px 8px; border-radius: 6px; background: #dcfce7; color: #15803d; }
.cl-float-saved { right: -14px; bottom: 12%; color: #fff; font-size: .92rem; background: linear-gradient(90deg, #22d3ee, #6366f1 55%, #a855f7); animation-delay: -2.5s; }
@keyframes clFloat { 50% { transform: translateY(-10px); } }

.xh-section { padding: 90px 0; }
.xh-section-alt { background: rgba(255,255,255,.02); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.xh-h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; color: #fff; margin: 8px 0 34px; max-width: 760px; }
.cl-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cl-feature { padding: 22px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09); transition: border-color .25s, transform .25s; }
.cl-feature:hover { border-color: rgba(129,140,248,.45); transform: translateY(-3px); }
.cl-findings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.cl-findings .xh-h2 { margin-bottom: 16px; }
.cl-find-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-find-list li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; background: #0b1020; border: 1px solid rgba(255,255,255,.08); color: #e2e8f0; font-weight: 600; font-size: .95rem; }
.cl-find-list li span { flex: none; min-width: 64px; text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.sev-high span { color: #fecaca; background: rgba(239,68,68,.18); }
.sev-mid span { color: #fde68a; background: rgba(234,179,8,.16); }
.sev-low span { color: #bae6fd; background: rgba(56,189,248,.14); }
.cl-video { position: relative; display: block; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; overflow: hidden; background: #000; cursor: pointer; }
.cl-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .3s, transform .5s; }
.cl-video:hover img { opacity: 1; transform: scale(1.03); }
.cl-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #22d3ee, #6366f1 55%, #a855f7); box-shadow: 0 0 0 10px rgba(255,255,255,.08), 0 18px 40px rgba(99,102,241,.6); }
iframe.cl-video { border: 0; }
.cl-faq { max-width: 860px; }
.cl-faq details { border-bottom: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.cl-faq summary { cursor: pointer; font-weight: 700; color: #fff; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.cl-faq summary::-webkit-details-marker { display: none; }
.cl-faq summary::after { content: "+"; color: #a5b4fc; font-size: 1.3rem; line-height: 1; }
.cl-faq details[open] summary::after { content: "–"; }
.cl-faq p { color: #94a3b8; line-height: 1.7; margin: 12px 0 0; }
.xh-final { padding: 90px 0 100px; text-align: center; background: radial-gradient(600px 300px at 50% 100%, rgba(168,85,247,.2), transparent 70%); }
.xh-final img { border-radius: 16px; margin-bottom: 16px; }
.xh-final h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 auto 26px; max-width: 640px; line-height: 1.15; }
.xh-final .btn { display: inline-flex; align-items: center; gap: 8px; }
.xh-legal { margin: 34px auto 0; max-width: 720px; font-size: .78rem; color: #64748b; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .cl-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .xh-hero { padding: 116px 0 56px; }
    .xh-grid { grid-template-columns: 1fr; }
    .xh-card:first-child { flex-direction: column; }
    .xh-card:first-child .xh-card-art { flex: none; aspect-ratio: 16 / 10; }
    .xh-promise-grid { grid-template-columns: 1fr; gap: 22px; }
    .cl-hero-grid, .cl-findings { grid-template-columns: 1fr; gap: 36px; }
    .cl-window { transform: none; }
    .cl-float-cost { left: 8px; top: auto; bottom: -18px; font-size: .9rem; }
    .cl-float-saved { right: 8px; bottom: auto; top: -18px; font-size: .8rem; }
    .xh-section { padding: 64px 0; }
}
@media (max-width: 560px) {
    .cl-features { grid-template-columns: 1fr; }
    .xh-stats { grid-template-columns: repeat(3, auto); }
    .sh-stats div { padding: 0 14px; }
    .sh-stats dd { font-size: 1.6rem; }
    .xh-card-body { padding: 20px; }
    .xh-actions .btn { flex: 1 1 auto; justify-content: center; }
    .cl-find-list li { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
    .xh-hero-bg span, .cl-float { animation: none; }
    .xh-card, .cl-feature, .cl-window, .xh-card-art img, .cl-video img { transition: none; }
}
.cl-find-list li .cl-find-txt { all: unset; }
