/* Xavi Tunning - INICIO
   Home de TPV Pro (index.php). Todo con prefijo .hm- y dentro de body.home para no tocar el resto de la web ni la landing.
   Colores de marca: violeta #3E019A / #5b34d6, texto #14042C, acento amarillo del botón .default-btn.
   Xavi Tunning - FIN */

body.home { --hm-ink: #14042C; --hm-muted: #5b5270; --hm-soft: #f5f2fb; --hm-line: #e4def0; --hm-violet: #5b34d6; --hm-deep: #3E019A; --hm-grad: linear-gradient(135deg, #a82cf0 0%, #5b34d6 55%, #4b2bbd 100%); }
body.home main section { scroll-margin-top: 90px; }
body.home .hm-img { display: block; width: 100%; height: auto; }

/* ---------- Bloques ---------- */
body.home .hm-section { padding: 90px 0; background: #fff; }
body.home .hm-section--soft { background: var(--hm-soft); }
body.home .hm-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }

body.home .hm-tag { display: inline-block; margin-bottom: 16px; padding: 6px 16px; border-radius: 999px; background: #ece3ff; color: var(--hm-deep); font-family: "Jost", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
body.home .hm-tag--light { background: rgba(255,255,255,.16); color: #fff; }
body.home .hm-title { margin: 0 0 18px; font-family: "Jost", sans-serif; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; font-weight: 600; color: var(--hm-ink); }
body.home .hm-title b { font-weight: 700; background: var(--hm-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.home .hm-title--xl { font-size: clamp(34px, 4.6vw, 58px); font-weight: 700; }
body.home .hm-title--light { color: #fff; }
body.home .hm-title--light b { background: none; color: #ffd873; -webkit-text-fill-color: #ffd873; }
body.home .hm-lead { margin: 0 0 24px; font-size: 18px; line-height: 1.65; color: var(--hm-muted); }
body.home .hm-lead--light { color: #e6ddf7; }

/* ---------- Botones ---------- */
body.home .hm-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
body.home .hm-actions--center { justify-content: center; }
body.home .hm-btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border: 2px solid var(--hm-violet); border-radius: 10px; color: var(--hm-violet); font-family: "Jost", sans-serif; font-weight: 600; font-size: 16px; transition: background .2s, color .2s; }
body.home .hm-btn-ghost:hover, body.home .hm-btn-ghost:focus-visible { background: var(--hm-violet); color: #fff; }

/* ---------- Hero ---------- */
body.home .hm-hero { padding: 70px 0 80px; background: linear-gradient(135deg, #f6f1ff 0%, #e8f3ff 100%); }
body.home .hm-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; }
body.home .hm-points li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--hm-ink); }
body.home .hm-points i, body.home .hm-checks i { display: inline-flex; flex: 0 0 auto; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #2fbf71; color: #fff; font-size: 14px; }

/* ---------- Listas ---------- */
body.home .hm-features { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
body.home .hm-features li { display: flex; gap: 16px; align-items: flex-start; }
body.home .hm-features h3 { margin: 0 0 4px; font-family: "Jost", sans-serif; font-size: 20px; font-weight: 600; color: var(--hm-ink); }
body.home .hm-features p { margin: 0; color: var(--hm-muted); }
body.home .hm-ico { display: inline-flex; flex: 0 0 auto; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: #efe6ff; color: var(--hm-violet); font-size: 24px; }
body.home .hm-ico--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 32px; margin-bottom: 18px; }
body.home .hm-checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
body.home .hm-checks li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: var(--hm-ink); }

/* ---------- Pasos ---------- */
body.home .hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: hm; }
body.home .hm-steps li { position: relative; padding: 32px 24px 28px; border: 1px solid var(--hm-line); border-radius: 20px; background: #fff; text-align: center; }
body.home .hm-num { display: inline-flex; width: 52px; height: 52px; margin-bottom: 16px; align-items: center; justify-content: center; border-radius: 50%; background: var(--hm-grad); color: #fff; font-family: "Jost", sans-serif; font-size: 24px; font-weight: 700; }
body.home .hm-steps h3 { margin: 0 0 8px; font-family: "Jost", sans-serif; font-size: 22px; font-weight: 600; color: var(--hm-ink); }
body.home .hm-steps p { margin: 0; color: var(--hm-muted); }

/* ---------- Tarjetas ---------- */
body.home .hm-card { height: 100%; padding: 32px 26px; border: 1px solid var(--hm-line); border-radius: 20px; background: #fff; text-align: center; }
body.home .hm-card .hm-ico { margin-left: auto; margin-right: auto; }
body.home .hm-card h3 { margin: 0 0 8px; font-family: "Jost", sans-serif; font-size: 22px; font-weight: 600; color: var(--hm-ink); }
body.home .hm-card p { margin: 0; color: var(--hm-muted); }

/* ---------- Verifactu y Kit Digital ---------- */
body.home .hm-kit { background: linear-gradient(135deg, #1b1030 0%, #3E019A 100%); }
body.home .hm-amounts { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 14px; }
body.home .hm-amount { min-width: 190px; padding: 18px 24px; border: 1px solid rgba(255,255,255,.2); border-radius: 16px; background: rgba(255,255,255,.08); }
body.home .hm-amount strong { display: block; font-family: "Jost", sans-serif; font-size: 40px; line-height: 1.1; color: #fff; }
body.home .hm-amount span { display: block; margin-top: 4px; color: #d9d0ee; }
body.home .hm-legal { margin: 0 0 24px; font-size: 14px; color: #d9d0ee; }

/* ---------- Preguntas ---------- */
body.home .hm-faq { max-width: 820px; margin: 0 auto; }
body.home .hm-faq .accordion-item { margin-bottom: 12px; border: 1px solid var(--hm-line); border-radius: 14px !important; overflow: hidden; background: #fff; }
body.home .hm-faq .accordion-header { margin: 0; font-size: inherit; }
body.home .hm-faq .accordion-button { padding: 18px 22px; font-family: "Jost", sans-serif; font-size: 19px; font-weight: 600; color: var(--hm-ink); background: #fff; box-shadow: none; }
body.home .hm-faq .accordion-button:not(.collapsed) { color: var(--hm-deep); background: var(--hm-soft); }
body.home .hm-faq .accordion-button:focus-visible { outline: 3px solid #12d6e8; outline-offset: -3px; }
body.home .hm-faq .accordion-body { padding: 18px 22px 22px; color: var(--hm-muted); font-size: 17px; line-height: 1.6; }

/* ---------- Llamada final ---------- */
body.home .hm-cta { padding-top: 0; }
/* Xavi Tunning - INICIO: CTA final pegado a la seccion suave anterior (Otras paginas) -> separacion superior */
body.home .hm-section--soft + .hm-cta { padding-top: 64px; }
/* Xavi Tunning - FIN */
body.home .hm-cta__box { padding: 56px 32px; border-radius: 28px; background: linear-gradient(135deg, #efe9ff 0%, #e1f0ff 100%); text-align: center; }
body.home .hm-cta__box .hm-lead { margin-bottom: 28px; }
body.home .hm-talk { margin: 28px 0 0; color: var(--hm-muted); font-size: 17px; }
body.home .hm-talk a { margin-left: 16px; color: var(--hm-deep); font-weight: 700; }
body.home .hm-talk a:hover { text-decoration: underline; }
body.home .hm-talk i { vertical-align: -2px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    body.home .hm-section { padding: 64px 0; }
    body.home .hm-hero { padding: 48px 0 56px; }
    body.home .hm-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    body.home .hm-steps { grid-template-columns: 1fr; }
    body.home .hm-actions .default-btn, body.home .hm-actions .hm-btn-ghost { width: 100%; }
    body.home .hm-amount { width: 100%; }
    body.home .hm-talk a { display: inline-block; margin: 8px 12px 0 0; }
    body.home .hm-cta__box { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) { body.home * { transition: none !important; } }

/* Xavi Tunning - INICIO: precios tachados a mano (mismo tachón que la landing) y template común de precios */
body.home .hm-old { display: inline-block; position: relative; margin: 0; font-weight: 500; line-height: 1.2; text-decoration: none; opacity: .85; }
body.home .hm-old::after { content: ""; position: absolute; left: -10%; right: -10%; top: 0; bottom: 0; background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMDAgNDAnIHByZXNlcnZlQXNwZWN0UmF0aW89J25vbmUnPjxwYXRoIGQ9J00zIDM0IEMgMjIgMzAsIDQwIDI3LCA1OCAyMCBTIDg4IDksIDk3IDUnIGZpbGw9J25vbmUnIHN0cm9rZT0nI2ZmNWM3YScgc3Ryb2tlLXdpZHRoPSc2JyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHZlY3Rvci1lZmZlY3Q9J25vbi1zY2FsaW5nLXN0cm9rZScvPjxwYXRoIGQ9J004IDM3IEMgMzAgMzEsIDU1IDI0LCA5MyAxMScgZmlsbD0nbm9uZScgc3Ryb2tlPScjZmY1YzdhJyBzdHJva2Utd2lkdGg9JzMnIHN0cm9rZS1saW5lY2FwPSdyb3VuZCcgb3BhY2l0eT0nLjcnIHZlY3Rvci1lZmZlY3Q9J25vbi1zY2FsaW5nLXN0cm9rZScvPjwvc3ZnPg==") center / 100% 100% no-repeat; }
body.home .hm-chip { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
/* en la banda oscura de Kit Digital de la home */
body.home .hm-amount strong:has(.hm-old) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
body.home .hm-amount .hm-old { font-size: .72em; color: #bfb4e0; }
body.home .hm-amount .hm-chip { margin-top: 8px; background: rgba(255,255,255,.14); color: #fff; }
/* tarjetas del template de precios */
body.home .hm-price { height: 100%; padding: 32px 26px; border: 1px solid var(--hm-line); border-radius: 20px; background: #fff; text-align: center; }
body.home .hm-price--main { border: 2px solid var(--hm-violet); box-shadow: 0 14px 40px rgba(91,52,214,.14); }
body.home .hm-price h3 { margin: 0 0 14px; font-family: "Jost", sans-serif; font-size: 22px; font-weight: 600; color: var(--hm-ink); }
body.home .hm-price__amount { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 16px; margin: 0 0 8px; }
body.home .hm-price__amount strong { font-family: "Jost", sans-serif; font-size: 48px; line-height: 1.1; color: var(--hm-deep); }
body.home .hm-price__amount .hm-old { font-size: 30px; color: var(--hm-muted); }
body.home .hm-price .hm-chip { margin-bottom: 14px; background: #ece6fb; color: var(--hm-deep); }
body.home .hm-price__text { margin: 0; color: var(--hm-muted); }
body.home .hm-legal--dark { margin: 28px 0 24px; text-align: center; color: var(--hm-muted); }
/* Xavi Tunning - FIN */

/* Xavi Tunning - INICIO: enlaces a otras soluciones (enlazado interno) */
body.home .hm-related { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0; padding: 0; list-style: none; }
body.home .hm-related a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1px solid var(--hm-line); border-radius: 999px; background: #fff; color: var(--hm-deep); font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
body.home .hm-related a:hover { background: var(--hm-deep); border-color: var(--hm-deep); color: #fff; }
/* Xavi Tunning - FIN */

/* Xavi Tunning - INICIO: video explicativo de la home */
body.home .hm-video { margin: 40px auto 0; max-width: 920px; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(60, 30, 120, .18); background: #1c1233; line-height: 0; }
body.home .hm-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1c1233; }
@media (max-width: 767.98px) { body.home .hm-video { margin-top: 28px; border-radius: 16px; } }
/* Xavi Tunning - FIN */
/* Xavi Tunning - INICIO: pagina Demo (video mas grande, nota de idioma, parrafos alineados a la izquierda) */
body.home .hm-video--demo { max-width: 1040px; margin-top: 8px; }
body.home .hm-video__note { text-align: center; margin: 14px 0 0; font-size: .9rem; color: var(--hm-muted, #6b6585); }
body.home .hm-lead--left { text-align: left; }
/* Xavi Tunning - FIN */
/* Xavi Tunning - INICIO: mapa web */
body.home .hm-related--map { max-width: 960px; margin: 0 auto; }
/* Xavi Tunning - FIN */


/* Xavi Tunning - INICIO: opiniones de clientes (templates/_opiniones.php). Carrusel con scroll-snap: se desliza con el dedo, flechas y puntos en escritorio */
body.home .hm-slider { position: relative; }
body.home .hm-reviews { display: flex; gap: 24px; margin: 0; padding: 6px 4px 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
body.home .hm-reviews::-webkit-scrollbar { display: none; }
body.home .hm-review { display: flex; flex-direction: column; flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; padding: 28px 26px; border: 1px solid var(--hm-line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(62,1,154,.06); }
body.home .hm-reviews-sec--white .hm-review { background: var(--hm-soft); box-shadow: none; }
body.home .hm-stars { display: inline-flex; gap: 2px; margin-bottom: 14px; color: #ffb400; font-size: 20px; }
body.home .hm-review blockquote { flex: 1 1 auto; margin: 0 0 22px; padding: 0; border: 0; }
body.home .hm-review blockquote p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--hm-ink); }
body.home .hm-review__who { display: flex; align-items: center; gap: 12px; }
body.home .hm-avatar { display: inline-flex; flex: 0 0 48px; width: 48px; height: 48px; }
body.home .hm-review__who strong { display: block; font-family: "Jost", sans-serif; font-size: 17px; color: var(--hm-ink); }
body.home .hm-review__who small { display: block; font-size: 14px; color: var(--hm-muted); }
body.home .hm-review__who small a { color: var(--hm-violet); text-decoration: underline; }
body.home .hm-slider__btn { position: absolute; top: 50%; z-index: 2; display: inline-flex; width: 44px; height: 44px; margin-top: -30px; align-items: center; justify-content: center; border: 1px solid var(--hm-line); border-radius: 50%; background: #fff; color: var(--hm-violet); font-size: 26px; box-shadow: 0 6px 18px rgba(62,1,154,.15); cursor: pointer; }
body.home .hm-slider__btn--prev { left: -22px; } body.home .hm-slider__btn--next { right: -22px; }
body.home .hm-slider__btn:disabled { opacity: .35; cursor: default; }
body.home .hm-slider__btn:focus-visible { outline: 3px solid var(--hm-violet); outline-offset: 2px; }
body.home .hm-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
body.home .hm-slider__dots span { width: 10px; height: 10px; border-radius: 50%; background: #cfc4ea; transition: background .2s, width .2s; }
body.home .hm-slider__dots span.on { width: 26px; border-radius: 6px; background: var(--hm-violet); }
@media (max-width: 1199px) { body.home .hm-slider__btn--prev { left: -6px; } body.home .hm-slider__btn--next { right: -6px; } }
@media (max-width: 991px) { body.home .hm-review { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 767px) { body.home .hm-review { flex-basis: 86%; } body.home .hm-slider__btn { display: none; } }
/* Xavi Tunning - FIN */

/* Xavi Tunning - INICIO: cursor pointer en el video (home y demo) para indicar que se puede hacer clic en todo el video */
body.home .hm-video video { cursor: pointer; }
/* Xavi Tunning - FIN */
