/* ================= Home corporativo — Soporte valladares.org ================= */
.hm-main { padding: 0; }
.hm-main > .alert { max-width: 1140px; margin: 1rem auto; }

.hm-hero { position: relative; background: var(--sv-navy); color: rgba(255, 255, 255, .78); padding: 5rem 0 5.5rem; overflow: hidden; }
.hm-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 95%); }
.hm-hero .container { position: relative; }
.hm-eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #93c5fd;
  padding-bottom: .5rem; border-bottom: 2px solid rgba(147, 197, 253, .35); margin-bottom: 1.4rem; }
.hm-title { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; max-width: 640px; }
.hm-lead { font-size: 1.08rem; line-height: 1.65; max-width: 600px; margin-top: 1.1rem; color: rgba(255, 255, 255, .75); }
.hm-hero .btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .35); --bs-btn-hover-bg: rgba(255, 255, 255, .08);
  --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: rgba(255, 255, 255, .6); --bs-btn-color: #fff; }
.hm-hero-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-size: .88rem; }
.hm-hero-facts i { color: #93c5fd; margin-right: .35rem; }

.hm-panel { background: #fff; color: var(--sv-text); border-radius: var(--sv-radius); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55); overflow: hidden; }
.hm-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--sv-border);
  font-weight: 600; font-size: .92rem; }
.hm-status-ok { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: #15803d; background: #dcfce7;
  padding: .25rem .6rem; border-radius: 999px; }
.hm-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.hm-panel-list { list-style: none; margin: 0; padding: .35rem 1.25rem; }
.hm-panel-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #edf1f6;
  font-size: .9rem; }
.hm-panel-list li:last-child { border-bottom: 0; }
.hm-panel-list span { color: var(--sv-text-2); }
.hm-panel-list i { color: var(--sv-muted); margin-right: .45rem; }
.hm-panel-list strong { font-weight: 600; min-width: 0; }
.hm-panel-cta { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.25rem; background: var(--sv-surface-2);
  border-top: 1px solid var(--sv-border); font-weight: 600; font-size: .9rem; text-decoration: none; }

.hm-metrics { background: #fff; border-bottom: 1px solid var(--sv-border); }
.hm-metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.hm-metrics-grid > div { padding: 1.75rem 1.5rem; border-right: 1px solid var(--sv-border); }
.hm-metrics-grid > div:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) {
  .hm-metrics-grid { grid-template-columns: repeat(4, 1fr); }
  .hm-metrics-grid > div:nth-child(2n) { border-right: 1px solid var(--sv-border); }
  .hm-metrics-grid > div:last-child { border-right: 0; }
}
.hm-metric-value { font-size: 1.85rem; font-weight: 700; color: var(--sv-navy); letter-spacing: -.02em; }
.hm-metric-label { font-size: .85rem; color: var(--sv-muted); }

.hm-section { padding: 5rem 0; }
.hm-section-alt { background: #fff; border-top: 1px solid var(--sv-border); border-bottom: 1px solid var(--sv-border); }
.hm-section-head { max-width: 640px; margin-bottom: 2.5rem; }
.hm-h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 700; letter-spacing: -.015em; margin: .5rem 0 .75rem; }
.hm-section-lead { color: var(--sv-muted); font-size: 1rem; line-height: 1.6; }
.hm-link { font-weight: 600; font-size: .9rem; text-decoration: none; }

.hm-card { display: flex; flex-direction: column; height: 100%; padding: 1.6rem; background: #fff; border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius); box-shadow: var(--sv-shadow); color: var(--sv-text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.hm-card:hover { border-color: #a9bdf0; box-shadow: var(--sv-shadow-md); color: var(--sv-text); }
.hm-card h3 { font-size: 1.08rem; margin: 1.1rem 0 .5rem; }
.hm-card p { color: var(--sv-muted); font-size: .92rem; line-height: 1.6; flex: 1; }
.hm-card-link { font-weight: 600; font-size: .88rem; color: var(--sv-primary); }
.hm-card-link i { transition: transform .2s; display: inline-block; }
.hm-card:hover .hm-card-link i { transform: translateX(3px); }

.hm-features { display: grid; gap: 1px; background: var(--sv-border); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); overflow: hidden; }
@media (min-width: 576px) { .hm-features { grid-template-columns: 1fr 1fr; } }
.hm-feature { display: flex; gap: 1rem; padding: 1.5rem; background: #fff; }
.hm-feature > i { font-size: 1.3rem; color: var(--sv-primary); line-height: 1; margin-top: .15rem; }
.hm-feature h3 { font-size: .98rem; margin-bottom: .35rem; }
.hm-feature p { font-size: .88rem; color: var(--sv-muted); margin: 0; line-height: 1.55; }

.hm-app { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius); text-decoration: none; color: var(--sv-text); height: 100%; transition: border-color .2s, box-shadow .2s; }
.hm-app:hover { border-color: #a9bdf0; box-shadow: var(--sv-shadow-md); color: var(--sv-text); }
.hm-app img, .hm-app-fallback { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; }
.hm-app-fallback { display: grid; place-items: center; font-weight: 700; background: var(--sv-primary-soft); color: var(--sv-primary); }
.hm-app-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hm-app-name { font-weight: 600; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-app-type { font-size: .8rem; color: var(--sv-muted); }
.hm-app-arrow { margin-left: auto; color: #94a3b8; }

.hm-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: none; }
@media (min-width: 768px) { .hm-steps { grid-template-columns: repeat(4, 1fr); } }
.hm-steps li { padding-top: 1.25rem; border-top: 2px solid var(--sv-border); position: relative; }
.hm-steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--sv-primary); }
.hm-step-num { font-family: var(--bs-font-monospace); font-size: .8rem; color: var(--sv-primary); font-weight: 500; }
.hm-steps h3 { font-size: 1rem; margin: .5rem 0 .4rem; }
.hm-steps p { font-size: .9rem; color: var(--sv-muted); margin: 0; line-height: 1.55; }

.hm-cta { padding: 0 0 4rem; }
.hm-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; background: var(--sv-navy);
  color: rgba(255, 255, 255, .78); border-radius: var(--sv-radius); padding: 2.5rem; border-top: 3px solid transparent;
  border-image: var(--sv-brand-line) 1; border-image-width: 3px 0 0 0; }
.hm-cta-inner h2 { color: #fff; font-size: 1.5rem; margin-bottom: .35rem; }
.hm-cta-inner p { margin: 0; }
.hm-cta .btn-light { color: var(--sv-navy); }
.hm-cta .btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .35); --bs-btn-hover-bg: rgba(255, 255, 255, .08); --bs-btn-hover-color: #fff; }
.sv-body-public .sv-footer { margin-top: 0; }

/* Aparición suave al hacer scroll */
.hm-reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.hm-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hm-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Catálogo público de productos ---------- */
.hm-product { display: flex; flex-direction: column; gap: .75rem; height: 100%; padding: 1.15rem 1.2rem; background: #fff; border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius); text-decoration: none; color: var(--sv-text); transition: border-color .2s, box-shadow .2s; }
.hm-product:hover { border-color: #a9bdf0; box-shadow: var(--sv-shadow-md); color: var(--sv-text); }
.hm-product-head { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.hm-product-head img, .hm-product-fallback { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; border: 1px solid var(--sv-border); }
.hm-product-fallback { font-size: 1.5rem; }
.hm-product-desc { font-size: .88rem; color: var(--sv-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-product-foot { display: flex; align-items: center; gap: .5rem; margin-top: auto; font-size: .82rem; color: var(--sv-primary); font-weight: 500; }
.hm-product-foot > span:first-child:not(.ms-auto) { color: var(--sv-muted); font-weight: 400; }
.hm-product-hero { display: flex; gap: 1.5rem; align-items: center; }
.hm-product-hero img, .hm-product-fallback-lg { width: 112px; height: 112px; border-radius: 24px; flex-shrink: 0; border: 1px solid var(--sv-border); }
.hm-product-fallback-lg { display: grid; place-items: center; font-size: 2.5rem; font-weight: 700; background: var(--sv-primary-soft); color: var(--sv-primary); }
@media (max-width: 575.98px) { .hm-product-hero { flex-direction: column; align-items: flex-start; } .hm-product-hero img { width: 88px; height: 88px; border-radius: 20px; } }
.hm-shots { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.hm-shots img { height: 420px; max-height: 60vh; width: auto; border-radius: 16px; border: 1px solid var(--sv-border); scroll-snap-align: start; flex-shrink: 0; }
.hm-product-text { color: var(--sv-text-2); line-height: 1.65; }
.min-w-0 { min-width: 0; }
