/* =====================================================================
   FacturaGo · Landing sobre el template Formax (Webestica)

   Orden de carga: assets/css/style.css (Formax) → assets/css/color.css (el naranja de FacturaGo)
   → este archivo. Aquí va solo lo que el template no trae; lo demás se hace con sus clases.
   ===================================================================== */

/* Inter (licencia OFL), la letra del template, servida desde el sitio en lugar de Google Fonts.
   Es variable: un solo archivo trae los pesos 400 a 700. Subconjunto latino (español completo). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fuentes/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }

.saltar {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--bs-primary); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.saltar:focus { top: 12px; color: #fff; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--lleno { fill: currentColor; stroke: none; }

kbd {
    font-family: inherit; font-size: .85em; font-weight: 700; padding: .1em .45em; border-radius: 6px;
    background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); border: 1px solid rgba(var(--bs-primary-rgb), .3);
}

/* ----------------------------- Cabecera ----------------------------- */

.cabecera { position: sticky; top: 0; z-index: 1030; background: #fff; transition: box-shadow .2s ease; }
.cabecera--con-sombra { box-shadow: 0 6px 24px -12px rgba(7, 28, 55, .25); }
.cabecera .navbar-top a { color: #fff; }
.cabecera .navbar-nav .nav-link[aria-current="page"] { color: var(--bs-primary); }
/* El template pone mayúscula a cada palabra del menú («Punto De Venta»): en español no va */
.navbar-nav .nav-link { text-transform: none; white-space: nowrap; }
/* Entre 992 y 1199 px no caben las 6 opciones con el espacio del template: se acortan los márgenes */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link { padding-left: .45rem !important; padding-right: .45rem !important; font-size: .8rem; }
    .navbar .marca-logo { font-size: 1.25rem; }
}

.marca-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; color: var(--bs-dark); }
.marca-logo b { color: var(--bs-primary); }
.marca-logo--clara { color: #fff; }

/* ----------------------------- Hero ----------------------------- */

.hero-captura { position: relative; }
.hero-captura img { display: block; width: 100%; height: auto; }

.flotante {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
    background: #fff; color: var(--bs-dark); padding: 12px 16px; border-radius: 14px;
    box-shadow: 0 18px 40px -12px rgba(7, 28, 55, .45); font-size: .85rem; line-height: 1.3;
    animation: flotar 5s ease-in-out infinite;
}
.flotante b { display: block; }
.flotante small { color: #5d6675; }
.flotante--sunat { left: -40px; bottom: -26px; }
.flotante--yape { right: -40px; top: 46%; animation-delay: -2.5s; }
.flotante__icono { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-weight: 800; }
.flotante__icono svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flotante__icono--verde { background: #22c55e; }
.flotante__icono--morado { background: #7c3aed; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 1199.98px) { .flotante--sunat { left: -12px; } .flotante--yape { right: -12px; } }
@media (max-width: 575.98px) {
    .flotante { padding: 8px 12px; font-size: .78rem; }
    .flotante--sunat { left: -6px; bottom: -40px; }
    .flotante--yape { right: -6px; top: -40px; }
}

/* ----------------------------- Lo que fastidia (antes / ahora) ----------------------------- */

.dolor__antes { position: relative; padding-left: 30px; font-style: italic; }
.dolor__antes::before,
.dolor__ahora::before {
    position: absolute; left: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    font-size: .7rem; font-style: normal; font-weight: 800;
}
.dolor__antes::before { content: "✕"; top: 2px; background: #fee2e2; color: #dc2626; }
.dolor__ahora { position: relative; padding: 14px 0 0 30px; margin: 0; border-top: 1px dashed #e5e7eb; color: var(--bs-dark); }
.dolor__ahora::before { content: "✓"; top: 16px; background: #dcfce7; color: #16a34a; }

/* ----------------------------- Lista con check ----------------------------- */

.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lista-check li { position: relative; padding-left: 32px; }
.lista-check li b { color: var(--bs-dark); }
.lista-check li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.bg-dark .lista-check li b { color: #fff; }

/* ----------------------------- Maqueta: cobro del POS ----------------------------- */

.cobro { background: #0d1117; color: #fff; border-radius: 24px; padding: 26px; position: relative; box-shadow: 0 40px 80px -30px rgba(13, 17, 23, .55); }
.cobro__cabeza { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 18px; }
.cobro__cabeza small { display: block; color: #9aa3b2; font-weight: 600; font-size: .78rem; letter-spacing: .08em; }
.cobro__cabeza b { font-size: 2.1rem; font-weight: 700; }
.cobro__falta { text-align: right; }
.cobro__falta b { font-size: 1.3rem; color: #ff9a3d; }
.cobro__formas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cobro__formas span { text-align: center; padding: 11px 6px; border-radius: 12px; font-weight: 700; font-size: .9rem; background: #1f2630; border: 1px solid #2a313c; }
.cobro__formas .activa { background: var(--bs-primary); border-color: var(--bs-primary); }
.cobro__pago { margin: 14px 0; padding: 10px 14px; border-radius: 12px; background: rgba(124, 58, 237, .16); border: 1px solid rgba(124, 58, 237, .4); font-weight: 700; font-size: .92rem; }
.cobro__pago small { color: #c4b5fd; font-weight: 500; margin-left: 6px; }
.cobro__cuerpo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.teclado span { display: grid; place-items: center; height: 46px; border-radius: 10px; background: #1f2630; font-weight: 700; font-size: 1.05rem; }
.cobro__lado { display: flex; flex-direction: column; gap: 10px; }
.billetes { display: flex; flex-wrap: wrap; gap: 6px; }
.billetes span { padding: 7px 11px; border-radius: 9px; font-weight: 700; font-size: .85rem; background: rgba(255, 120, 0, .12); color: #ff9a3d; border: 1px solid rgba(255, 120, 0, .3); }
.cobro__fila { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: #1f2630; }
.cobro__fila span { color: #9aa3b2; font-size: .88rem; font-weight: 600; }
.cobro__fila b { font-size: 1.1rem; }
.cobro__fila--vuelto { background: rgba(34, 197, 94, .14); }
.cobro__fila--vuelto b { font-size: 1.7rem; color: #4ade80; }
.cobro__boton { margin-top: 16px; padding: 16px; text-align: center; border-radius: 14px; background: var(--bs-primary); font-weight: 700; letter-spacing: .03em; font-size: 1.05rem; }
.cobro__listo {
    position: absolute; right: -16px; bottom: -22px; display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; border-radius: 14px; background: #22c55e; color: #fff; font-weight: 700;
    box-shadow: 0 16px 34px -10px rgba(34, 197, 94, .7); animation: flotar 4s ease-in-out infinite;
}
.cobro__listo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 575.98px) { .cobro { padding: 20px; } .cobro__cuerpo { grid-template-columns: 1fr; } .cobro__listo { right: 8px; } }

/* ----------------------------- Maqueta: lista con estados ----------------------------- */

.estados { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 40px 80px -40px rgba(7, 28, 55, .35); border: 1px solid #eef0f3; }
.estados__cabeza { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--bs-dark); }
.estados__cabeza span { font-size: .82rem; font-weight: 700; color: var(--bs-primary); border: 1px solid rgba(var(--bs-primary-rgb), .35); padding: 6px 12px; border-radius: 10px; white-space: nowrap; }
.estados ul { list-style: none; margin: 0; padding: 0; }
.estados li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f2f5; }
.estados li b { display: block; font-size: .95rem; color: var(--bs-dark); }
.estados li small { font-size: .82rem; }
.estado { font-style: normal; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.estado--ok { background: #dcfce7; color: #15803d; }
.estado--obs { background: #fef3c7; color: #a16207; }
.estado--pend { background: #e0e7ff; color: #4338ca; }
.estado--nv { background: #f1f5f9; color: #64748b; }

/* ----------------------------- Rubros ----------------------------- */

.rubro-emoji { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(var(--bs-primary-rgb), .12); font-size: 1.4rem; flex: none; }
a.card:hover { border-color: var(--bs-primary) !important; }

/* ----------------------------- Atajos de teclado ----------------------------- */

.atajo kbd { display: inline-block; font-size: 1.1rem; padding: .3em .7em; margin-bottom: 10px; }

/* ----------------------------- Contacto ----------------------------- */

.formulario__error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: .9rem; font-weight: 600; }
.form-control[aria-invalid="true"], .form-select[aria-invalid="true"] { border-color: #dc3545; }

/* ----------------------------- WhatsApp flotante ----------------------------- */

.wa-flotante {
    position: fixed; right: 22px; bottom: 22px; z-index: 1040;
    display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
    transition: transform .2s ease;
}
.wa-flotante:hover { transform: scale(1.08); color: #fff; }
.wa-flotante svg { width: 30px; height: 30px; }

/* ----------------------------- Animaciones (2026-11-11) -----------------------------
 * Livianas: solo CSS y js/main.js, sin librerías. main.js pone .anima en <html> (si el visitante no pidió
 * «reducir movimiento») y marca con .revelar lo que aparece al bajar; sin JavaScript todo se ve quieto. */

/* Aparecer al bajar, en cascada (--retraso lo pone main.js) */
.anima .revelar {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--retraso, 0s);
}
.anima .revelar.visto { opacity: 1; transform: none; }
.anima .revelar--zoom { transform: scale(.94) translateY(20px); }

/* Portada: entrada en secuencia */
@keyframes entrar { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.anima .entrada > * { animation: entrar .8s cubic-bezier(.2, .7, .2, 1) both; }
.anima .entrada > :nth-child(2) { animation-delay: .12s; }
.anima .entrada > :nth-child(3) { animation-delay: .24s; }
.anima .entrada > :nth-child(4) { animation-delay: .36s; }
.anima .entrada > :nth-child(5) { animation-delay: .48s; }
.anima .entrada > :nth-child(6) { animation-delay: .6s; }
/* La captura del sistema entra junto con la portada, sin esperar a que se baje */
.anima .hero-captura { animation: entrar 1s .55s cubic-bezier(.2, .7, .2, 1) both; }

/* Subrayado naranja que se dibuja */
.resaltar { position: relative; white-space: nowrap; z-index: 0; }
.resaltar::after {
    content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em; z-index: -1;
    border-radius: 6px; background: rgba(var(--bs-primary-rgb), .28); transform-origin: left;
}
@keyframes subrayar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.anima .resaltar::after { animation: subrayar .9s .7s cubic-bezier(.6, 0, .2, 1) both; }

/* Manchas de color que flotan detrás del primer bloque (las agrega main.js) */
.con-burbujas { position: relative; overflow: hidden; isolation: isolate; }
.con-burbujas > .container { position: relative; z-index: 1; }
.burbujas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.burbujas span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.burbujas span:nth-child(1) { width: 380px; height: 380px; left: -90px; top: -60px; background: rgba(255, 120, 0, .45); animation: deriva 16s ease-in-out infinite; }
.burbujas span:nth-child(2) { width: 300px; height: 300px; right: -70px; top: 20%; background: rgba(124, 58, 237, .28); animation: deriva 19s ease-in-out infinite reverse; }
.burbujas span:nth-child(3) { width: 260px; height: 260px; left: 40%; bottom: -120px; background: rgba(255, 170, 60, .35); animation: deriva 22s ease-in-out infinite; }
@keyframes deriva {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.12); }
    66% { transform: translate(-40px, 70px) scale(.92); }
}

/* Botones: se levantan y el principal tiene un brillo que lo recorre */
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn-primary:hover, .btn-dark:hover, .btn-light:hover, .btn-outline-primary:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(var(--bs-primary-rgb), .9); }
.btn-brillo { position: relative; overflow: hidden; }
.btn-brillo::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg); animation: brillo 3.8s ease-in-out 1.5s infinite;
}
@keyframes brillo { 0% { left: -60%; } 35%, 100% { left: 130%; } }

/* Tarjetas: se levantan al pasar el mouse y el ícono salta */
.card { transition: transform .25s ease, box-shadow .25s ease; }
a.card:hover, .card.shadow:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(7, 28, 55, .35) !important; }
.card:hover .icon-md, a.card:hover .rubro-emoji { animation: saltito .5s ease; }
@keyframes saltito { 0%, 100% { transform: none; } 40% { transform: translateY(-6px) rotate(-6deg); } 70% { transform: translateY(1px) rotate(3deg); } }

/* El cobro de ejemplo «cobra solo» al verlo (main.js pone .cobro--activo) */
.cobro__listo { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), opacity .3s ease; }
.anima .cobro:not(.cobro--activo) .cobro__listo { opacity: 0; transform: scale(.6); }
.cobro--activo .billetes span:nth-child(4) { animation: tecla .5s ease .1s 2; }
.cobro--activo .cobro__boton { animation: tecla .45s ease 1.3s; }
@keyframes tecla { 50% { transform: scale(.9); background: var(--bs-primary); color: #fff; } }

/* WhatsApp flotante: late para que lo vean */
.wa-flotante::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
    animation: latido 2.4s ease-out infinite;
}
@keyframes latido { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

/* Barra de lectura arriba */
.progreso {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1050; pointer-events: none;
    background: linear-gradient(90deg, var(--bs-primary), #ffb347); transform-origin: left; transform: scaleX(0);
}

/* ----------------------------- Portada de impacto (2026-11-11) ----------------------------- */

.hero-impacto {
    background-color: #0d1117;
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 120, 0, .22), transparent 70%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    color: #c9ccd3;
}
.hero-impacto .text-primary { color: #ff9a3d !important; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    color: #f4f1ec; font-size: .9rem; font-weight: 600;
}
.punto-vivo { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
.punto-vivo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: latido 1.8s ease-out infinite; }
.hero-titulo {
    color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
    font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.6rem);
}
.degradado {
    background: linear-gradient(90deg, #ff7800, #ffb347 55%, #ff7800);
    background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: degradar 6s linear infinite;
}
@keyframes degradar { to { background-position: 200% center; } }
.hero-impacto .resaltar::after { background: rgba(255, 120, 0, .22); }
.hero-lead { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: #c9ccd3; max-width: 46rem; margin-inline: auto; }
.rotador { display: inline-grid; justify-items: start; color: #fff; font-weight: 700; vertical-align: bottom; transition: width .45s ease; }
.rotador > span { white-space: nowrap; }
.rotador > span { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s ease; }
.rotador > span:not(.activa) { opacity: 0; transform: translateY(.5em); }
.rotador > span.sale { opacity: 0; transform: translateY(-.5em); }
.btn-grande { padding: 1rem 1.9rem; font-size: 1.1rem; font-weight: 700; border-radius: 14px; display: inline-flex; align-items: center; gap: 10px; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: #1ebe5a; border-color: #1ebe5a; color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(37, 211, 102, .9); }
.btn-whatsapp .ico { width: 1.3em; height: 1.3em; }
.hero-precio { color: #f4f1ec; font-size: 1.05rem; }
.hero-precio b { color: #ff9a3d; }
.hero-confianza { color: #9aa3b2; }
@media (max-width: 575.98px) { .btn-grande { width: 100%; justify-content: center; } }

/* La captura: entra inclinada y se endereza al bajar (main.js pone --inclina) */
.hero-captura { position: relative; }
.hero-pantalla { transform: perspective(1600px) rotateX(calc(var(--inclina, 0) * 1deg)); transform-origin: 50% 0; transition: transform .1s linear; }
.hero-brillo {
    position: absolute; inset: 8% 6% -6%; z-index: -1; border-radius: 40px; filter: blur(60px);
    background: radial-gradient(closest-side, rgba(255, 120, 0, .55), transparent);
}
.flotante__icono--naranja { background: var(--bs-primary); font-size: .8rem; }
.flotante--venta { left: -40px; top: 14%; animation: aviso 6s ease-in-out infinite; }
@keyframes aviso {
    0%, 8% { opacity: 0; transform: translateY(14px) scale(.9); }
    14%, 70% { opacity: 1; transform: none; }
    78%, 100% { opacity: 0; transform: translateY(-10px) scale(.95); }
}
@media (max-width: 1199.98px) { .flotante--venta { left: -12px; } }
@media (max-width: 575.98px) { .flotante--venta { top: -18px; left: 8px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Caja del ícono grande (bloque de seguridad) */
.escudo-caja { display: grid; place-items: center; min-height: 320px; }

/* ----------------------------- Planes ----------------------------- */

.plan-lista { display: grid; gap: 10px; }
.plan-lista li { position: relative; padding-left: 28px; }
.plan-lista li b { color: var(--bs-dark); }
.plan-lista li::before {
    content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center;
    width: 19px; height: 19px; border-radius: 50%; font-size: .7rem; font-weight: 800; background: #dcfce7; color: #16a34a;
}
.plan-lista li.plan-lista__no { color: #9aa3b2; }
.plan-lista li.plan-lista__no::before { content: "✕"; background: #f1f5f9; color: #94a3b8; }
.plan-lista--oscura li { color: rgba(255, 255, 255, .7); }
.plan-lista--oscura li b { color: #fff; }
