/* =====================================================================
   PRODUCTO · TALLERES · BLOQUE "CARACTERÍSTICA" (secciones 3,4,5,7)
   ---------------------------------------------------------------------
   Patrón reutilizable: a un lado texto (badge "Característica", título,
   subtítulo, párrafo y checklist) y al otro una imagen. La disposición
   alterna con el modificador .g-ptf--img-left (imagen a la izquierda).
   Namespacing g-ptf-*. Consume el contrato de colores.
   ===================================================================== */

.g-ptf {
    padding: var(--g-section-y) 0;       /* ritmo vertical estándar (token global) */
}

.g-ptf__row {
    align-items: center;
}

/* ---------- Texto ---------- */
.g-ptf__badge {
    display: inline-block;
    background-color: var(--g-white);
    color: var(--g-text);
    border: 1px solid var(--g-border);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 18px;
    border-radius: var(--g-radius-pill);
    margin-bottom: 18px;
}

.g-ptf__title {
    color: var(--g-dark);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

.g-ptf__subtitle {
    color: var(--g-dark);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 18px;
}

.g-ptf__text {
    color: var(--g-text);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 22px;
}
.g-ptf__text strong { color: var(--g-dark); font-weight: 600; }

/* ---------- Checklist ---------- */
.g-ptf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.g-ptf-list li {
    display: flex;
    align-items: baseline;
    margin-bottom: var(--g-lista-separacion);
}
.g-ptf-list li:last-child { margin-bottom: 0; }
.g-ptf-list li i {
    flex: 0 0 auto;
    width: var(--g-lista-icono-ancho);   /* columna del icono = separación icono↔texto */
    color: var(--g-primary);
    font-size: var(--g-lista-icono-tamano);
}
.g-ptf-list li span {
    color: var(--g-text);
    font-size: 16px;
    line-height: 1.5;
}
.g-ptf-list li span strong { color: var(--g-dark); font-weight: 600; }

/* ---------- Imagen ---------- */
.g-ptf__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--g-radius-md);
}

/* ---------- Pie opcional (orden de muestra + botones) ---------- */
.g-ptf__footnote {
    text-align: center;
    color: var(--g-text);
    font-size: 16px;
    max-width: 640px;
    margin: 36px auto 20px;
}
.g-ptf__footnote strong { color: var(--g-dark); font-weight: 600; }

.g-ptf__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}
/* Los botones de esta sección usan el sistema ESTÁNDAR del sitio:
   .btn.btn-primary (Orden digital) y .btn.btn-secondary (Orden en PDF),
   definidos en g-bootstrap.css. Las clases g-ptf__btn* quedaron obsoletas. */

/* ---------- Diagrama de integraciones (sección 7) ---------- */
.g-ptf-integra {
    position: relative;
    background-color: var(--g-bg-light);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius-lg);
    padding: 40px 24px;
    text-align: center;
}
.g-ptf-integra__nodes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 34px;
}
.g-ptf-integra__node {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background-color: var(--g-white);
    border: 2px solid var(--g-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--g-text);
    position: relative;
}
.g-ptf-integra__node i { font-size: 34px; color: #96a0ad; }
.g-ptf-integra__node::after {
    content: "";
    position: absolute;
    bottom: -34px;
    left: 50%;
    width: 2px;
    height: 34px;
    background-color: var(--g-border);
}
.g-ptf-integra__hub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--g-white);
    border: 2px solid var(--g-border);
    border-radius: var(--g-radius-md);
    padding: 18px 34px;
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.g-ptf-integra__hub img { height: 34px; width: auto; }

/* ---------- Animación Rive de integraciones (sección 7) ----------
   El artboard es cuadrado (700×700). El canvas escala con la columna y
   Rive ajusta el buffer de dibujo al tamaño real (nitidez en pantallas HiDPI). */
.g-ptf-rive {
    text-align: center;
}
.g-ptf-rive__canvas {
    display: block;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;      /* preserva el cuadrado aunque cambie el buffer */
    height: auto;
    margin: 0 auto;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 991.98px) {
    /* En apilado, la imagen SIEMPRE va arriba, sin importar el modificador */
    .g-ptf__media { order: -1; margin-bottom: 30px; }
    .g-ptf__img { max-width: 620px; margin-left:auto; margin-right:auto; }
}

@media (max-width: 575.98px) {
    .g-ptf__title { font-size: 25px; }
    .g-ptf__subtitle { font-size: 18px; }
}
