/* Inicio: Ejemplos (galería de las 10 apps con enlace a su página), Cómo funciona (4 pasos con muestras de la
   interfaz, sin teléfono animado) y Reseñas (encabezado compacto y tarjetas sobrias). Mismo estilo que las páginas de
   cada app (/assets/css/landing.css): líneas finas, tipografía grande y muestras reales en vez de íconos en cajitas. */
.hx { --hx-tx: #ededed; --hx-mut: #9a9a9a; --hx-dim: #6b6b6b; --hx-line: rgba(255,255,255,.09); --hx-line2: rgba(255,255,255,.18); --hx-card: #111113; --hx-ui: #0b141a; }
html[data-theme="light"] .hx { --hx-tx: #141414; --hx-mut: #5c5c5c; --hx-dim: #8a8a8a; --hx-line: rgba(0,0,0,.08); --hx-line2: rgba(0,0,0,.16); --hx-card: #fff; }
.hx-kick { display: block; font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--hx-dim); margin-bottom: 14px; }

/* Calificación compacta (portada, reseñas) */
.hx-rate { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--hx-mut, #a1a1aa); text-decoration: none; }
.hx-rate b { color: var(--hx-tx, #fafafa); font-weight: 700; font-size: 15px; }
.hx-rate .st { color: #fbbf24; letter-spacing: 1px; font-size: 13px; }
a.hx-rate:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hero2 .hx-rate { margin-top: 18px; }
.hero2 .hx-rate[hidden] { display: none; }

/* ---------- Ejemplos: galería ---------- */
.hx-ex .hx-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.hx-ex .sec2-head { margin: 0; }
.hx-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.hx-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hx-line2); background: transparent; color: var(--hx-tx); cursor: pointer; transition: border-color .15s, background .15s; }
.hx-arrows button:hover { border-color: var(--hx-tx); }
.hx-arrows button:disabled { opacity: .3; cursor: default; }
.hx-rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 18px; margin: 0 -2px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 80px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 80px), transparent); }
.hx-rail::-webkit-scrollbar { display: none; }
.hx-rail.at-end { -webkit-mask-image: none; mask-image: none; }
.hx-card { flex: 0 0 236px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--hx-tx); }
.hx-ph { display: block; border-radius: 38px; padding: 7px; background: #000; border: 1px solid #2c2c2c; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.hx-ph img { display: block; width: 100%; height: auto; aspect-ratio: 375 / 812; object-fit: cover; border-radius: 31px; background: #111; }
.hx-card:hover .hx-ph { transform: translateY(-6px); }
.hx-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.hx-meta b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.hx-meta b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hx-meta small { font-size: 13.5px; color: var(--hx-mut); line-height: 1.45; }
.hx-meta em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--hx-mut); display: inline-flex; align-items: center; gap: 6px; }
.hx-meta em i { font-size: 11px; transition: transform .15s; }
.hx-card:hover .hx-meta em { color: var(--hx-tx); }
.hx-card:hover .hx-meta em i { transform: translateX(3px); }

/* ---------- Cómo funciona: 4 columnas ---------- */
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hx-line); }
.hx-steps > li { display: flex; flex-direction: column; padding: 28px 22px 8px 0; }
.hx-steps > li + li { padding-left: 22px; border-left: 1px solid var(--hx-line); }
.hx-n { font: 500 13px/1 ui-monospace, Menlo, Consolas, monospace; color: var(--hx-dim); margin-bottom: 18px; }
.hx-steps h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; color: var(--hx-tx); }
.hx-steps p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--hx-mut); }
.hx-vig { margin-top: auto; min-height: 118px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; border-radius: 12px; background: var(--hx-ui); color: #e9edef; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-chips span { padding: 5px 10px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(134,150,160,.4); color: #aebac1; }
.hx-chips span.on { background: #25d366; border-color: #25d366; color: #0b141a; font-weight: 600; }
.hx-who { display: flex; align-items: center; gap: 10px; }
.hx-who i.av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #f0abfc, #818cf8 60%, #38bdf8); flex-shrink: 0; }
.hx-who b { display: block; font-size: 14px; }
.hx-who b .fa-circle-check { color: #53bdeb; font-size: 12px; margin-left: 3px; }
.hx-who small { display: block; font-size: 12px; color: #8696a0; }
.hx-sb { display: flex; justify-content: space-between; font-weight: 600; font-size: 12.5px; color: #e9edef; }
.hx-sb span:last-child { display: inline-flex; gap: 5px; font-size: 11px; }
.hx-b { max-width: 90%; padding: 6px 9px; border-radius: 8px; font-size: 13px; line-height: 1.35; background: #202c33; align-self: flex-start; }
.hx-b.out { background: #005c4b; align-self: flex-end; }
.hx-keys { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8696a0; }
.hx-keys kbd { font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; padding: 3px 6px; border-radius: 5px; border: 1px solid rgba(255,255,255,.2); border-bottom-width: 2px; color: #e9edef; }
.hx-files { display: flex; gap: 7px; }
.hx-files span { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 8px; background: #202c33; font: 700 11.5px/1 ui-monospace, Menlo, Consolas, monospace; }
.hx-files i { font-size: 15px; color: #8696a0; }
.hx-files span.on { box-shadow: inset 0 0 0 1.5px #25d366; }
.hx-files span.on i { color: #25d366; }
.hx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 40px; }
.hx-cta span { font-size: 14px; color: var(--hx-dim); }

/* ---------- Reseñas ---------- */
.hx-rev { position: relative; }
.hx-rev .hx-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.hx-rev .sec2-head { margin: 0; }
.hx-rev .hx-rate { margin-top: 14px; }
.hx-rev .btn2 { height: 46px; }
.hx-rev #reviewsContainer { padding-top: 6px; }
.hx-rev .review-card { flex: 0 0 340px; max-width: 340px; min-width: 0; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px;
    background: var(--hx-card); border: 1px solid var(--hx-line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: border-color .3s, transform .3s; }
.hx-rev .review-card.is-focus { border-color: var(--hx-line2); background: var(--hx-card); }
.hx-rcard .st { color: #fbbf24; font-size: 12px; letter-spacing: 1.5px; }
.hx-rcard h4 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--hx-tx); }
.hx-rcard p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--hx-mut); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.hx-rcard footer { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hx-line); }
.hx-rcard footer img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #222; }
.hx-rcard footer b { font-size: 13.5px; font-weight: 600; color: var(--hx-tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-rev .reviews-controls { max-width: none; margin: 8px 0 0; }
.hx-rev .reviews-play { color: var(--hx-tx); background: transparent; border: 1px solid var(--hx-line2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hx-rev .reviews-play:hover { background: transparent; border-color: var(--hx-tx); }
.hx-rev .reviews-track { background: var(--hx-line); }
.hx-rev .reviews-bar { background: var(--hx-tx); }

/* ---------- Tablet y celular ---------- */
@media (max-width: 1023.98px) {
    .hx-steps { grid-template-columns: 1fr 1fr; }
    .hx-steps > li:nth-child(3) { padding-left: 0; border-left: 0; }
    .hx-steps > li:nth-child(n+3) { border-top: 1px solid var(--hx-line); }
}
@media (max-width: 640px) {
    .hx-arrows { display: none; }
    .hx-card { flex-basis: 64vw; }
    .hx-rail { gap: 16px; -webkit-mask-image: none; mask-image: none; }
    .hx-steps { grid-template-columns: 1fr; }
    .hx-steps > li, .hx-steps > li + li { padding: 24px 0 8px; border-left: 0; }
    .hx-steps > li + li { border-top: 1px solid var(--hx-line); }
    .hx-rev .hx-top { align-items: flex-start; }
    .hx-rev .btn2 { width: 100%; }
    .hx-rev .review-card { flex-basis: 82vw; max-width: 82vw; }
}
html[data-theme="light"] .hero2 .hx-rate b { color: #0f0f14; } html[data-theme="light"] .hero2 .hx-rate { color: #52525b; }
