.herramienta-container {
    font-family: "Inter", sans-serif;
    width: 100%;
    max-width: 100%;
    padding: 2% 3%;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-sizing: border-box;
}

textarea, input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    padding: 12px 39px;
    margin: 10px 0;
    border: 1px solid #4f45e5;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4f45e5;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #222222;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Reduce el espacio entre los botones */
    justify-content: flex-start; /* Alinea los botones al principio */
}

textarea[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Ajuste para la fila de reemplazo */
.replace-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.replace-group span {
    flex-shrink: 0;
    white-space: nowrap;
}

.replace-group input {
    flex: 1;
    min-width: 200px;
}

.replace-group button {
    flex-shrink: 0;
}

/* Ajuste para la fila de creación de saltos de línea */
.radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.radio-group span {
    flex-shrink: 0;
    white-space: nowrap;
}

.radio-group input[type="text"] {
    flex: 1;
    min-width: 200px;
}

.radio-group button {
    flex-shrink: 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* Estilo responsive */
@media (max-width: 768px) {
    .button-group button {
        width: 100%;
        margin-bottom: 5px; /* Reduce el espacio vertical */
    }

    button {
        width: 100%;
    }

    .replace-group {
        flex-direction: column;
        align-items: stretch;
    }

    .radio-group {
        flex-direction: column;
        align-items: stretch;
    }
}
