/* Herramienta: Editor de diagramas de flujo */

.dg-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(22, 18, 18, 0.06);
}

.dg-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 4px 14px;
}

.dg-bar-hint {
    color: #6B7280;
    font-size: 15px;
}

.dg-frame {
    border: 1px solid #F0E8E8;
    border-radius: 12px;
    overflow: hidden;
    height: calc(100vh - 160px);
    min-height: 560px;
    max-height: 900px;
}

.dg-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.dg-mobile { display: none; }



.dg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    color: #FD3244;
    background: rgba(253, 97, 68, 0.1);
    transition: background-color .2s ease-out, transform .2s ease-out;
}

.dg-btn:hover { background: rgba(253, 97, 68, 0.18); }
.dg-btn svg { width: 18px; height: 18px; }

.dg-btn-solid {
    color: #fff;
    background: #FD6144;
}

.dg-btn-solid:hover { background: #E24A2E; }

.dg-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 64rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.dg-steps li {
    background: #fff;
    border: 1px solid #F0E8E8;
    border-radius: 16px;
    padding: 24px;
}

.dg-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(253, 97, 68, 0.12);
    color: #FD3244;
    font-weight: 700;
    margin-bottom: 14px;
}

.dg-cta {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
    border: 1px solid #F0E8E8;
    border-radius: 16px;
    background: #fff;
}

.dg-cta p { max-width: 40rem; line-height: 1.6; }

.dg-faq {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dg-faq details {
    background: #fff;
    border: 1px solid #F0E8E8;
    border-radius: 12px;
    padding: 16px 20px;
}

.dg-faq summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

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

.dg-faq summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 5px;
    flex-shrink: 0;
    border-right: 2px solid #FD6144;
    border-bottom: 2px solid #FD6144;
    transform: rotate(45deg);
    transition: transform .2s ease-out;
}

.dg-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }

.dg-faq details p {
    margin-top: 10px;
    color: #4B5563;
    line-height: 1.6;
}


@media (max-width: 768px) {
    .dg-card { padding: 10px; }
    .dg-bar { flex-direction: column; align-items: stretch; }
    .dg-bar { display: none; }
    .dg-frame { height: auto; min-height: 0; border: 0; }
    .dg-frame iframe { display: none; }
    .dg-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        padding: 36px 16px;
        color: #4B5563;
    }
    .dg-steps { grid-template-columns: 1fr; }
    .dg-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
}
