/* =========================================================
   sistema-ventas.css - Página del Sistema Multisucursal
   (usa las variables y componentes de home-secciones.css)
   ========================================================= */

.sv-page { font-family: 'Montserrat', 'Open Sans', sans-serif; color: var(--hb-texto); }
.sv-page h1, .sv-page h2, .sv-page h3, .sv-page h4 { letter-spacing: normal; }
.sv-page html { scroll-behavior: smooth; }
.sv-page section[id] { scroll-margin-top: 140px; }
.sv-page details[id] { scroll-margin-top: 175px; }

/* ---------- Hero ---------- */
.sv-hero { padding-top: 80px; padding-bottom: 90px; }
.sv-hero .hb-title { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.sv-hero-stats {
    list-style: none;
    padding: 0;
    margin: 36px 0 0;
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}
.sv-hero-stats li { display: flex; flex-direction: column; }
.sv-hero-stats b { font-family: 'Oswald', sans-serif; font-size: 2rem; color: var(--hb-amarillo); font-weight: 600; line-height: 1; }
.sv-hero-stats span { font-size: .8rem; color: #9d9da4; margin-top: 6px; }

.sv-pos-search {
    background: #fff;
    color: #8a8a90;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: .8rem;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 2px solid var(--hb-amarillo);
}
.sv-pos-search i { color: var(--hb-negro); font-size: 1rem; }
.sv-pos-pay { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sv-pos-pay span {
    text-align: center;
    font-size: .68rem;
    padding: 8px 4px;
    border-radius: 7px;
    background: #1f1f23;
    color: #a7a7ad;
    border: 1px solid #2c2c31;
}
.sv-pos-pay .on { background: rgba(241, 197, 14, .15); color: var(--hb-amarillo); border-color: var(--hb-amarillo); font-weight: 700; }
.sv-pos-total {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1f1f23;
    border-radius: 10px;
    padding: 12px 14px;
}
.sv-pos-total span { font-size: .75rem; color: #8b8b92; text-transform: uppercase; letter-spacing: .1em; }
.sv-pos-total b { font-family: 'Oswald', sans-serif; font-size: 1.6rem; color: #fff; font-weight: 500; flex: 1; }
.sv-pos-total em {
    font-style: normal;
    background: var(--hb-amarillo);
    color: var(--hb-negro);
    font-weight: 800;
    font-size: .8rem;
    padding: 9px 18px;
    border-radius: 30px;
}

/* ---------- Submenú fijo ---------- */
.sv-subnav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e7e7e4;
}
.sv-subnav .hb-wrap {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 16px;
    scrollbar-width: none;
}
.sv-subnav .hb-wrap::-webkit-scrollbar { display: none; }
.sv-subnav a {
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 600;
    color: var(--hb-texto) !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 30px;
    transition: background .2s ease;
}
.sv-subnav a:hover { background: var(--hb-amarillo); }

/* ---------- Introducción ---------- */
.sv-intro { background: #fff; }
.sv-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.sv-card {
    background: var(--hb-gris);
    border-radius: var(--hb-radio);
    padding: 30px 28px;
    border: 1px solid #ebebe8;
    transition: transform .3s ease, box-shadow .3s ease;
}
.sv-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .08); }
.sv-card > i {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--hb-negro);
    color: var(--hb-amarillo);
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.sv-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; color: inherit; }
.sv-card p { font-size: .92rem; line-height: 1.65; color: var(--hb-texto-suave); margin: 0; }
.sv-card.dark { background: var(--hb-negro-2); border-color: rgba(255, 255, 255, .08); }
.sv-card.dark > i { background: rgba(241, 197, 14, .12); }
.sv-card.dark h3 { color: #fff; }
.sv-card.dark p { color: #a3a3aa; }

.sv-flow {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(var(--sv-pasos, 4), minmax(0, 1fr));
    gap: 0;
    counter-reset: paso;
}
.sv-flow > div {
    position: relative;
    padding: 0 18px;
    text-align: center;
}
.sv-flow > div:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 30px);
    right: calc(-50% + 30px);
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--hb-amarillo) 0 8px, transparent 8px 14px);
}
.sv-flow span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--hb-amarillo);
    color: var(--hb-negro);
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.sv-flow b { display: block; font-size: .98rem; margin-bottom: 6px; }
.sv-flow small { display: block; font-size: .85rem; color: var(--hb-texto-suave); line-height: 1.5; }

/* ---------- Videos ---------- */
.sv-videos { background: var(--hb-negro); }
.sv-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.sv-video {
    background: var(--hb-negro-2);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: var(--hb-radio);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .3s ease, transform .3s ease;
}
.sv-video:hover { border-color: rgba(241, 197, 14, .5); transform: translateY(-5px); }
.sv-video-main { grid-column: span 2; grid-row: span 2; }
.sv-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.sv-video-frame iframe,
.sv-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sv-video-soon {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background:
        radial-gradient(circle at 50% 40%, rgba(241, 197, 14, .18), transparent 60%),
        linear-gradient(135deg, #1b1b1e, #0f0f11);
    color: var(--hb-amarillo);
}
.sv-video-soon i { font-size: 2.6rem; }
.sv-video-main .sv-video-soon i { font-size: 4.5rem; }
.sv-video-soon span {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #b9b9bf;
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 5px 12px;
    border-radius: 30px;
}
.sv-video-info { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.sv-video-info h3 { font-size: 1.02rem; font-weight: 700; color: #fff; margin: 4px 0 8px; }
.sv-video-main .sv-video-info h3 { font-size: 1.4rem; }
.sv-video-info p { font-size: .86rem; line-height: 1.55; color: #a3a3aa; margin: 0; }

/* ---------- Módulos ---------- */
.sv-modulos { background: var(--hb-gris); }
.sv-mod-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.sv-mod {
    background: #fff;
    border-radius: var(--hb-radio);
    padding: 26px 24px;
    border: 1px solid #e9e9e6;
    border-top: 4px solid var(--hb-amarillo);
    transition: transform .3s ease, box-shadow .3s ease;
}
.sv-mod:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .1); }
.sv-mod > i { font-size: 1.9rem; color: var(--hb-negro); }
.sv-mod h3 { font-size: 1.05rem; font-weight: 700; margin: 12px 0 14px; color: inherit; line-height: 1.35; }
.sv-mod ul { list-style: none; padding: 0; margin: 0; }
.sv-mod li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: .85rem;
    line-height: 1.45;
    color: #44444a;
}
.sv-mod li::before {
    content: '\F26E'; /* bi-check-lg */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 5px;
    color: #b08d00;
    font-weight: 700;
}
.sv-mod-soon { border-top-color: #9d9da4; background: #fbfbfa; }
.sv-mod-soon .hb-badge-nuevo { background: #e8e8e5; color: #55555b; font-size: .6rem; margin: 6px 0 0; display: inline-block; }

/* ---------- Manual ---------- */
.sv-manual { background: #fff; overflow: visible; }
.sv-print { margin-top: 22px; }
.sv-manual-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}
.sv-toc {
    position: sticky;
    top: 150px;
    background: var(--hb-gris);
    border-radius: var(--hb-radio);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sv-toc strong {
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #8a8a90;
    margin-bottom: 8px;
}
.sv-toc a {
    font-size: .88rem;
    color: var(--hb-texto) !important;
    text-decoration: none !important;
    padding: 7px 10px;
    border-radius: 8px;
    transition: background .2s ease;
}
.sv-toc a:hover { background: #fff; box-shadow: inset 3px 0 0 var(--hb-amarillo); }

.sv-acc { display: grid; gap: 12px; }
.sv-acc details {
    border: 1px solid #e6e6e3;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.sv-acc details[open] { border-color: var(--hb-amarillo); box-shadow: 0 12px 30px rgba(0, 0, 0, .07); }
.sv-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding-right: 54px;
}
.sv-acc summary::-webkit-details-marker { display: none; }
.sv-acc summary::after {
    content: '\F4FE'; /* bi-plus-lg */
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 22px;
    font-size: 1.1rem;
    transition: transform .25s ease;
}
.sv-acc details[open] summary::after { transform: rotate(45deg); }
.sv-acc summary span {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--hb-negro);
    color: var(--hb-amarillo);
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
}
.sv-acc details > div { padding: 0 24px 22px 70px; font-size: .93rem; line-height: 1.7; color: #3b3b40; }
.sv-acc h4 { font-size: .95rem; font-weight: 700; margin: 16px 0 6px; color: var(--hb-texto); }
.sv-acc h4:first-child { margin-top: 0; }
.sv-acc ol, .sv-acc ul { padding-left: 20px; margin: 0 0 10px; }
.sv-acc li { margin-bottom: 6px; }
.sv-acc p { margin: 0 0 10px; }
.sv-tip {
    display: flex;
    gap: 10px;
    background: #fff9dc;
    border-left: 4px solid var(--hb-amarillo);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .88rem;
}
.sv-tip i { color: #8a6d00; margin-top: 2px; }

/* ---------- Requisitos / FAQ ---------- */
.sv-req { background: var(--hb-negro); }
.sv-faq { background: var(--hb-gris); }
.sv-acc-faq { max-width: 860px; margin: 0 auto; }
.sv-acc-faq details > div { padding-left: 22px; }
.sv-cta { padding-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .sv-mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .sv-cards-3 { grid-template-columns: 1fr; }
    .sv-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-manual-layout { grid-template-columns: 1fr; }
    .sv-toc { position: static; }
    .sv-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; }
    .sv-flow > div::after { display: none; }
}
@media (max-width: 575px) {
    .sv-video-grid, .sv-mod-grid, .sv-flow { grid-template-columns: 1fr; }
    .sv-video-main { grid-column: auto; grid-row: auto; }
    .sv-acc details > div { padding: 0 18px 18px 18px; }
    .sv-acc summary { padding: 16px 48px 16px 16px; font-size: .95rem; }
    .sv-hero-stats { gap: 22px; }
}

/* ---------- Impresión del manual ---------- */
@media print {
    body.sv-printing header,
    body.sv-printing footer,
    body.sv-printing nav,
    body.sv-printing .whatsapp-float,
    body.sv-printing .sv-page > section:not(#manual),
    body.sv-printing .sv-toc,
    body.sv-printing .sv-print { display: none !important; }
    body.sv-printing .sv-manual { padding: 0; }
    body.sv-printing .sv-manual-layout { grid-template-columns: 1fr; }
    body.sv-printing .sv-acc details { break-inside: avoid; box-shadow: none; border-color: #ccc; }
    body.sv-printing .sv-acc summary::after { display: none; }
}

/* ---------- Videos y material: fotos y documentos ---------- */
.sv-foto { position: absolute; inset: 0; display: block; overflow: hidden; cursor: zoom-in; }
.sv-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sv-foto:hover img { transform: scale(1.05); }
.sv-foto span {
    position: absolute; right: 12px; bottom: 12px;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, .65); color: var(--hb-amarillo);
    opacity: 0; transition: opacity .3s ease;
}
.sv-foto:hover span, .sv-foto:focus span { opacity: 1; }
.sv-doc {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(circle at 50% 40%, rgba(241, 197, 14, .16), transparent 60%), linear-gradient(135deg, #1b1b1e, #0f0f11);
    color: #fff !important; text-decoration: none !important;
}
.sv-doc > i { font-size: 3.2rem; color: var(--hb-amarillo); }
.sv-video-main .sv-doc > i { font-size: 5rem; }
.sv-doc b { font-size: .75rem; letter-spacing: .12em; color: #b9b9bf; font-weight: 600; }
.sv-doc span {
    background: var(--hb-amarillo); color: var(--hb-negro);
    font-weight: 700; font-size: .82rem; padding: 8px 18px; border-radius: 30px;
    transition: transform .25s ease;
}
.sv-doc:hover span { transform: translateY(-2px); }

/* Visor de fotos */
.sv-visor {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, .92);
    display: none; align-items: center; justify-content: center;
    padding: 50px 60px;
}
.sv-visor.abierto { display: flex; }
.sv-visor figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.sv-visor img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.sv-visor figcaption { color: #ddd; margin-top: 12px; font-size: .95rem; }
.sv-visor button {
    position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0;
    width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.sv-visor button:hover { background: var(--hb-amarillo); color: var(--hb-negro); }
.sv-visor-cerrar { top: 16px; right: 16px; }
.sv-visor-nav.prev { left: 12px; top: 50%; transform: translateY(-50%); }
.sv-visor-nav.next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575px) { .sv-visor { padding: 60px 10px; } }
