/* ================================================================
   Landings de las apps (apps/*.html): nómina, contabilidad y consulta
   de facturas de proveedores.

   index.html lleva su CSS en línea; estas tres páginas comparten este
   archivo. Los bloques marcados "igual que index.html" repiten reglas
   del landing principal: si cambian allí, hay que cambiarlos aquí.
   ================================================================ */

/* Colores de marca de Odoo (igual que index.html) */
:root {
    --odoo-purple: #714B67;
    --odoo-purple-dark: #5d3d55;
    --odoo-teal: #017E84;
    --odoo-teal-light: #00A09D;
    --app-ink: #2f3542;
    --app-muted: #6c757d;
    --app-line: rgba(0, 0, 0, 0.08);
    --app-bg-soft: #faf8fa;
}

/* Iconos SVG en línea (igual que index.html) */
.ico {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex: none;
    vertical-align: -0.125em;
}

.ico-stroke {
    fill: none;
    stroke: currentColor;
}

.odoo-mark {
    width: 3.174em;
    height: 1em;
    fill: currentColor;
    flex: none;
    vertical-align: -0.08em;
}

/* ----------------------------------------------------------------
   Hero: mismo morado que el panel de cierre del landing principal
   ---------------------------------------------------------------- */
.app-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 90px;
    color: #fff;
    background: linear-gradient(135deg, var(--odoo-purple-dark) 0%, var(--odoo-purple) 55%, #8a5c7d 100%);
}

.app-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    top: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 160, 157, 0.32) 0%, rgba(0, 160, 157, 0) 70%);
    pointer-events: none;
}

.app-hero > .container {
    position: relative;
    z-index: 1;
}

.app-ruta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.app-ruta li + li::before {
    content: "›";
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.45);
}

.app-ruta a {
    color: rgba(255, 255, 255, 0.85);
}

.app-ruta a:hover {
    color: #fff;
}

.app-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.app-eyebrow .ico {
    font-size: 1.05rem;
    color: #9ee2df;
}

.app-hero h1 {
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

.app-lead {
    max-width: 36em;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.06rem;
    line-height: 1.65;
}

.app-lead strong {
    color: #fff;
}

.app-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* El tema fuerza texto oscuro en .btn-outline-light (igual que index.html) */
.app-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
}

.app-hero .btn-outline-light:hover,
.app-hero .btn-outline-light:focus {
    background-color: #fff !important;
    color: var(--odoo-purple) !important;
}

.btn-cta {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Ficha resumen de la app, a la derecha del hero */
.app-ficha {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.app-ficha-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.app-ficha-head .app-ficha-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 22px;
}

.app-ficha-head strong {
    display: block;
    font-size: 1rem;
}

.app-ficha-head span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
}

.app-ficha-lista {
    padding: 0;
    margin: 6px 0 0;
    list-style: none;
}

.app-ficha-lista li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.app-ficha-lista li:last-child {
    border-bottom: 0;
}

.app-ficha-lista span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
}

.app-ficha-lista strong {
    color: #fff;
    font-size: 0.92rem;
    text-align: right;
}

.app-ficha-pie {
    margin: 12px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
}

.app-ficha-pie code {
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* El tema fija h3 { font-size: 30px !important }: los títulos de
   tarjetas y pasos necesitan también !important para bajar de ahí. */
.app-funcion h3,
.app-pasos h3,
.app-manual-head h3,
.app-caja h3,
.app-product-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.35;
}

/* ----------------------------------------------------------------
   Secciones de contenido
   ---------------------------------------------------------------- */
.app-seccion {
    padding: 90px 0;
}

.app-seccion-suave {
    background: var(--app-bg-soft);
}

.app-titulo {
    max-width: 44rem;
    margin: 0 auto 44px;
    text-align: center;
}

.app-titulo h2 {
    margin-bottom: 12px;
    color: var(--app-ink);
    font-size: 1.85rem !important; /* el tema fija h2 a 36px con !important */
    line-height: 1.3;
    font-weight: 700;
}

.app-titulo p {
    margin: 0;
    color: var(--app-muted);
    line-height: 1.65;
}

.app-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--odoo-teal);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Tarjetas de funciones */
.app-funcion {
    height: 100%;
    padding: 26px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 32px -26px rgba(38, 57, 77, 0.55);
}

.app-funcion-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    color: var(--odoo-purple);
    background: #f2eaf0;
    font-size: 22px;
}

.app-funcion h3 {
    margin-bottom: 8px;
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 700;
}

.app-funcion p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Pasos numerados */
.app-pasos {
    counter-reset: paso;
    padding: 0;
    margin: 0;
    list-style: none;
}

.app-pasos li {
    position: relative;
    padding: 0 0 26px 58px;
    counter-increment: paso;
}

.app-pasos li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    background: var(--odoo-purple);
    font-weight: 700;
}

/* Línea que une los pasos */
.app-pasos li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 42px;
    bottom: 4px;
    width: 2px;
    background: #e6dce3;
}

.app-pasos h3 {
    margin: 6px 0 6px;
    color: var(--app-ink);
    font-size: 1rem;
    font-weight: 700;
}

.app-pasos p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Cifras destacadas (reglas salariales, reportes, etc.) */
.app-cifra {
    height: 100%;
    padding: 26px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--app-line);
}

.app-cifra strong {
    display: block;
    color: var(--odoo-purple);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.app-cifra .app-cifra-nombre {
    display: block;
    margin: 8px 0 12px;
    color: var(--app-ink);
    font-weight: 700;
}

.app-cifra p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Listas con viñeta de verificación */
.app-check {
    padding: 0;
    margin: 0;
    list-style: none;
}

.app-check li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    color: #4f5661;
    font-size: 0.93rem;
    line-height: 1.55;
}

.app-check li + li {
    border-top: 1px solid #efeaee;
}

.app-check .ico {
    margin-top: 0.2em;
    color: var(--odoo-teal-light);
}

.app-check.app-check-no .ico {
    color: #b9bec6;
}

.app-caja {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
}

.app-caja h3 {
    margin-bottom: 14px;
    color: var(--app-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.app-caja code,
.app-titulo code,
.faq-body code {
    color: var(--odoo-purple);
    font-size: 0.85em;
}

/* Módulos que instala (contabilidad) */
.app-modulos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.app-modulos li {
    padding: 8px 0;
    border-bottom: 1px solid #efeaee;
    font-size: 0.86rem;
    color: var(--app-muted);
}

.app-modulos code {
    display: block;
    color: var(--app-ink);
    font-size: 0.84rem;
}

/* Manuales en PDF */
.app-manual {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border: 1px solid var(--app-line);
    border-top: 4px solid var(--odoo-teal-light);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 35px -28px rgba(59, 41, 55, 0.7);
}

.app-manual-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.app-manual-head .ico {
    font-size: 28px;
    color: var(--odoo-purple);
}

.app-manual-head h3 {
    margin: 0;
    color: var(--app-ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.app-manual-head span {
    display: block;
    color: var(--app-muted);
    font-size: 0.78rem;
}

.app-manual p {
    color: var(--app-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.app-manual .app-check {
    flex: 1;
    margin-bottom: 20px;
}

.app-manual .app-check li {
    padding: 6px 0;
    font-size: 0.86rem;
}

.app-manual .btn {
    align-self: flex-start;
}

/* Preguntas frecuentes: <details> nativo (igual que index.html) */
.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 6px;
    background: #fff;
}

.faq-item + .faq-item {
    margin-top: 12px;
}

.faq-item summary {
    position: relative;
    padding: 16px 44px 16px 20px;
    color: var(--app-ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--odoo-purple);
    font-size: 1.3rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item .faq-body {
    padding: 0 20px 18px;
    line-height: 1.65;
}

/* ----------------------------------------------------------------
   Panel de compra (igual que .cta-panel de index.html, reducido)
   ---------------------------------------------------------------- */
.cta-panel {
    position: relative;
    overflow: hidden;
    padding: 48px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--odoo-purple-dark) 0%, var(--odoo-purple) 55%, #8a5c7d 100%);
    box-shadow: 0 30px 60px -30px rgba(45, 27, 40, 0.75);
}

.cta-panel::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -140px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 160, 157, 0.35) 0%, rgba(0, 160, 157, 0) 70%);
    pointer-events: none;
}

.cta-panel > * {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
}

.cta-lead {
    max-width: 34em;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.cta-points {
    padding: 0;
    margin: 0;
    list-style: none;
}

.cta-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.94rem;
}

.cta-points .ico {
    margin-top: 0.18em;
    font-size: 1.05rem;
    color: var(--odoo-teal-light);
}

.cta-precio {
    margin: 0;
    color: #fff;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

.cta-precio span {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    font-weight: 600;
    vertical-align: 0.75em;
}

.cta-precio-sub {
    margin: 8px 0 22px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
}

.cta-caja {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.cta-caja .btn + .btn {
    margin-top: 10px;
}

/* Venta cruzada: el paquete completo, bajo los botones de la app */
.cta-paquete {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    line-height: 1.5;
}

.cta-paquete a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Precio en las tarjetas de otras apps */
.app-product-precio {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--odoo-purple);
    color: #fff;
    letter-spacing: 0.02em;
}

/* WhatsApp en el verde de la marca (igual que index.html) */
.btn-wa {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #10321d !important;
}

.btn-wa:hover,
.btn-wa:focus {
    background-color: #1fb856 !important;
    border-color: #1fb856 !important;
    color: #0b2415 !important;
}

/* ----------------------------------------------------------------
   Otras apps (mismas tarjetas que la sección de apps de index.html)
   ---------------------------------------------------------------- */
.app-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 32px -24px rgba(38, 57, 77, 0.55);
}

.app-product-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
    font-size: 24px;
}

.app-product-icon-payroll { color: #8a5a00; background: #fff3d6; }
.app-product-icon-accounting { color: var(--odoo-purple); background: #f2eaf0; }
.app-product-icon-invoices { color: var(--odoo-teal); background: #e4f5f4; }

.app-product-label {
    margin-bottom: 8px;
    color: #8a8f98;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-product-card h3 {
    color: var(--app-ink);
    font-size: 1.1rem;
    font-weight: 700;
}

.app-product-card p {
    flex: 1;
    color: var(--app-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.app-product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.app-manual-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--odoo-purple);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ----------------------------------------------------------------
   Piezas de venta
   ---------------------------------------------------------------- */

/* Franja de garantías bajo los botones del hero */
.app-confianza {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.86rem;
}

.app-confianza li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-confianza .ico {
    color: #9ee2df;
}

.app-hero .app-link-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: #fff;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-ficha-precio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.app-ficha-precio p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    line-height: 1.4;
}

.app-ficha-precio strong {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.1;
}

.app-ficha-precio strong span {
    margin-right: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Antes / con la app */
.app-antes,
.app-con {
    height: 100%;
    padding: 30px;
    border-radius: 14px;
}

.app-antes {
    background: #f4f4f6;
    border: 1px solid #e6e6ea;
}

.app-con {
    background: #fff;
    border: 2px solid var(--odoo-teal-light);
    box-shadow: 0 22px 40px -30px rgba(1, 126, 132, 0.8);
}

.app-antes h3,
.app-con h3 {
    margin-bottom: 16px;
    font-size: 1.05rem !important;
    font-weight: 700;
}

.app-antes h3 { color: #6c757d; }
.app-con h3 { color: var(--odoo-teal); }

.app-antes .app-check li { color: #6c757d; }
.app-antes .app-check .ico { color: #c0392b; opacity: 0.55; }
.app-con .app-check li { color: var(--app-ink); }

/* Comparativa Community / Enterprise / Facturalatam */
.app-versus-wrap {
    overflow-x: auto;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
}

.app-versus {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border-collapse: collapse;
}

.app-versus th,
.app-versus td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    text-align: left;
    vertical-align: middle;
}

.app-versus thead th {
    background: #faf8fa;
    color: var(--app-ink);
    font-size: 0.84rem;
    font-weight: 700;
}

.app-versus tbody th {
    color: var(--app-ink);
    font-weight: 600;
}

.app-versus td {
    color: var(--app-muted);
}

.app-versus tr:last-child th,
.app-versus tr:last-child td {
    border-bottom: 0;
}

.app-versus .col-fl {
    background: rgba(113, 75, 103, 0.06);
    color: var(--app-ink);
    font-weight: 600;
}

.app-versus thead .col-fl {
    color: #fff;
    background: var(--odoo-purple);
}

.app-versus .ico {
    margin-right: 6px;
}

.vs-si { color: var(--odoo-teal); }
.vs-no { color: #c9ccd1; }

.app-versus-nota {
    margin: 14px 0 0;
    color: #8a8f98;
    font-size: 0.8rem;
    text-align: center;
}

/* Banda de la demo */
.app-demo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 34px;
    border-radius: 16px;
    background: #e4f5f4;
    border: 1px solid rgba(1, 126, 132, 0.2);
}

.app-demo h2 {
    margin: 0 0 6px;
    color: var(--app-ink);
    font-size: 1.4rem !important;
    font-weight: 700;
}

.app-demo p {
    margin: 0;
    max-width: 40em;
    color: #4f5661;
    font-size: 0.95rem;
}

.app-demo .btn {
    flex: none;
}

/* Datos técnicos plegados, para quien los busque */
.app-mas {
    margin-top: 24px;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fff;
}

.app-mas > summary {
    padding: 16px 22px;
    color: var(--odoo-purple);
    font-weight: 600;
    cursor: pointer;
}

.app-mas > div {
    padding: 0 22px 20px;
}

/* Nota de marca registrada, en el pie (igual que index.html) */
.trademark-note {
    font-size: 0.78rem;
    opacity: 0.75;
}

@media (max-width: 991.98px) {
    .app-hero {
        padding: 120px 0 70px;
    }

    .app-seccion {
        padding: 70px 0;
    }
}

@media (max-width: 767.98px) {
    .cta-panel {
        padding: 30px 22px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .app-acciones .btn {
        width: 100%;
    }
}
